2,928 Topics

Member Avatar for
Member Avatar for Dani

We host some page resources, such as fonts, on a different subdomain (e.g. webpages are at www.daniweb.com and resources are at cdn.daniweb.com) An HTTP header of `access-control-allow-origin: *` is being sent from all cdn.daniweb.com requests. When inspecting indexed pages from Google Search Console, from the URL Inspection tool I click …

Member Avatar for Dani
2
172
Member Avatar for micjustin33

Before going on to tell how to get DD-WRT secured with VPN, it is important to determine whether your router is compatible with DD-WRT or not. Most commonly used wireless routers including Linksys, Cisco, D-Link, Verizon, Sitecom and TP-Link are DD-WRT compatible. Check out whether your router’s name appears in …

Member Avatar for markanderson_1
1
377
Member Avatar for sankar2000

Hello everyone. I am building a websocket client app that receives all the data and inserts it into a MongoDB database. The program runs, but after a while, some exceptions are rising. import websocket import _thread import time import json import asyncio import os import pwd import socket import traceback …

Member Avatar for rproffitt
0
85
Member Avatar for dimitrilc

I came across this [article](https://developer.ibm.com/articles/messaging-protocols/) from IBM. It states that a **protocol** describes the **format of the bytes** that are transferred over the wire. > A protocol is sometimes referred to as the wire protocol, and it describes the format of the bytes that are transferred over the wire, and …

1
56
Member Avatar for dimitrilc

## Introduction ## The Hyper Text Transfer Protocol (`HTTP`) is one of the most common communication protocol on the internet. There are three major versions of HTTP that you should be aware of: **1.1**, **2.0**, **3.0**. Versions 1.1 and 2.0 are widely used today, so this tutorial mainly focuses on …

Member Avatar for pritaeas
3
209
Member Avatar for happygeek

Hands up if you remember Opera Software, you know the Norway-based developer of alternative web browser clients. In the days before Firefox, Opera was the client most likely to shake up Microsoft and for a while seemed to be doing pretty well in that regard. Then Firefox came along and …

Member Avatar for jacquelinelop
0
341
Member Avatar for dimitrilc

## Introduction ## Proto DataStore is a great way to store the **permanent** state of your application, especially if you prefer type safety. In this tutorial, we will learn how to store our App state using the Proto DataStore. ## Goals ## At the end of the tutorial, you would …

2
135
Member Avatar for genesis.aix

Issue: I need example.no-ip.org to point to example.no-ip.org:20202 I have read that this is not possible with just DNS. However no-ip.org lets me set up DNS SRV (records?). Ive have followed this guide to set it up, but it does not redirect to IP : PORT [url]http://www.no-ip.com/support/guides/other/configuring_srv_records_with_no-ip.html#1[/url] Still cant get …

Member Avatar for ProGamerBG
1
12K
Member Avatar for marilubray

Internal links are wrecked – One of the ways to rank websites pages in search engines is by swarming their links. If there are deceased links or broken links on your website, it can stop search engine bots from crawling your site and, thus, indexing it. It is good that …

Member Avatar for Dani
0
135
Member Avatar for srednausab

want to sent an AuthnRequest from my python-based SP (I;m using python 2.7) that I'm developing to my simpleSAMLphp installation (it's an IDP). I'm using the "requests" module to do a get like this: response = requests.get(url, verify='/home/me/my.crt') where the URL is: https://bingo.bas.com/simplesaml/module.php/core/authenticate.php?as=example-sql/?SAMLRequest=' + saml_request_base64 and the saml_request is (but …

0
24
Member Avatar for harshadgowda

Hi! Recently I have decided to change my website from Fred's Fashion Boutique to Fred's Fashion (because the URL became available) and I was in the process of a redesign so I thought it would be a good time. My website is only about 3 months old so wasn't receiving …

Member Avatar for Dani
1
53
Member Avatar for kouty

Hi. I have recently a problem to access to sites https in all browsers. In the past I had a similar situation and that the problem was solved by removing Bytedefender. Now, I have no antivirus, Windows security only, and there is an app called Lenovo VANTAGE in which the …

Member Avatar for rproffitt
0
419
Member Avatar for Dani

If you need your PHP script to redirect to a different website, you can send an HTTP header to do that. Remember, `header()` must be called before any actual output is sent, which includes not just HTML, but blank lines, etc.. as well.

Member Avatar for bngwebguru
0
3K
Member Avatar for TheVendor

Hello, I have been searching around the net looking for solutions to my problem, but none have worked. My issue is that when i redirect using: <meta http-equiv="Refresh" content="0; url=<?php echo $URL; ?>"> The hash tag part of URL gets removed by IE. So example.com/sample#foo will just load as example.com/sample. …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Rahul47

Hello guys, we all have read about HTTP, TCP/IP and all kinds of protocols OSI model. My genuine question is whether a protocol is hardware or it is a software or combination of both ? Your views are valuable. Thanks.

Member Avatar for pty
2
3K
Member Avatar for niranga

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt …

Member Avatar for Mukul_2
0
13K
Member Avatar for gentlemedia

I'm using the following to redirect http to https in my root directory htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> But this seems not to work if I access directly sub directories (http://example.com/sub-directory/) unless I place this mod_rewrite in an htaccess file in …

Member Avatar for cereal
0
465
Member Avatar for UI

Folks, Why do I keep on getting this error when everytime I input a url in the url field in the following web proxy script: **"The specified URL could not be returned due to a status code of 400."** It says unless the Status Code is 200 then to show …

Member Avatar for UI
0
403
Member Avatar for UI

Howdy Pros! If I was going to just track which urls from my own domain get clicked then I know how to do it. On everyone of my links, I'll just add my tracking url, like so: http://mydomain.com/?tracker.php But like I said, I want to track what my users do …

Member Avatar for UI
0
1K
Member Avatar for Saqlainz

Cache in local storage of browsers gets cleared when website page redirects from AliPay payment website. This is happening in some computers and working fine in some. From my website user selects AliPay payment method then user is redirected to payment website and on successful payment is being redirected back …

Member Avatar for rproffitt
0
496
Member Avatar for jkon

I found myself starting to answer a question that I have answered many times , so I thought why not making a code snippet and just reference this. This is a short code snippet only to demonstrate how this thing work (with apache and rewrite engine on) , in real …

Member Avatar for jkon
2
665
Member Avatar for Ivan_10

I want to redirect every user on my site to folder - if folder exists with htaccess. Regardless to which page he wants to access (index.php, team.php, custom.php), he must be redirected to the folder I want.

Member Avatar for rproffitt
0
425
Member Avatar for toxicandy

Hello, currently on one of my development servers I have SQL Server 2014 installed, the problem I HAD was that when I executed any of my PHP sites connected to various databases I was getting `SQLSTATE[HY2000][2002] Connection was activily refused...` I fixed that error by forwarding the port through the …

Member Avatar for toxicandy
0
411
Member Avatar for Aeonix

Since I totally F'd up entire topic. [Over here](https://www.daniweb.com/programming/software-development/threads/502281/verify-if-data-sent-by-servers-how-do-bigger-companies-do-that), where nobody has ever known what I meant, until I realized that I said a lot of things that didn't make sense at all, nor I could make up any reasonable statements from smart people out there. By suggestion of said …

Member Avatar for Aeonix
0
246
Member Avatar for wolfgang1983

I have a rss feed project that I am working on Question: I would like to know if there is a way of only displaying 5 result at a time. Currently it displays over 10 [Codepen Example](http://codepen.io/riwakawebsitedesigns/pen/mVMEmO) $(document).ready(function() { url = 'http://codepen.io/riwakawebsitedesigns/public/feed/'; $.ajax({ type: "GET", url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q=' + …

Member Avatar for diafol
0
322
Member Avatar for Piers Rollins

I saw various search engine blogs/journals regarding http to https conversion, where all are saying that it is best to change your website from Http to Https for obtaining better Google rankings. However, is it recommended/accepted by Bing and Yahoo as a ranking factor?

0
179
Member Avatar for praba_web

Hi there, Routing is not working in codeigniter hostgator shared hosting. When i login www.doamain.com/admin this redirects to www.domain.com am using below in my config.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically …

Member Avatar for praba_web
0
4K
Member Avatar for gianx80

I'm using Mamp 3 (pro) on Mac OS X Yosemite 10.10; I'v already compiled and installed mod_proxy_html (3.1.2) and mod_xml2enc, they are both correctly loaded by Apache 2.2.29 without issues. This is my typical html file: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Authorization" content="Bearer dummyToken"> <title>Header …

Member Avatar for cereal
0
570
Member Avatar for davy_yg

Hello, I am trying to build this website with bootstrap that connects with clients. I wonder why whenever I open it in android the client list change into vertical and it still too wide for android like the navigation does not filled the whole horizontal screen and the client still …

0
149
Member Avatar for lalamax3d

Hi Everyone. History: i am self taught developer (5 years + ). mostly doing simple automations in 3dsmax / foundy nuke, maya etc. i worked at a studio (film / animation) as Technical Artist. My weaker side is (server / client). i have done basic sockets tutorials etc to send …

0
205
Member Avatar for davy_yg

Hello, Please cek this website: http://www.innovation.web.id/One/portfolio-filter.php This is the code: portfolio-filter.php <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Portfolio</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/carouselstyles.css"> <link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="bootstrap-3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="bootstrap-3.3.5/css/custom.css"> <script src="bootstrap-3.3.5/js/jquery.min.js"></script> <script src="bootstrap-3.3.5/js/bootstrap.min.js"></script> </head> <body> <?php include('nav.php'); ?> <br><br><br> <div style="text-align:center;"><h2><b>Our Portfolio</b></h2></div> <p> …

0
151
Member Avatar for darren2005

Hi, does anyone know how I could search for the protocol used in CSS? I did try use "document.querySelectorAll" but failed to get it working. So basically I am trying to find out via Javascript if CSS is calling the http protocol for example: <style> body { background-image: url("http://mysite.com/images/logo.jpg"); } …

Member Avatar for darren2005
0
196
Member Avatar for davy_yg

Hello, I am trying to create carousel that would fits the whole screen up to touching the navigation bar and the whole horizontal screen. http://www.innovation.web.id/One/One/ This is my code (it does not fits my expectation): index.php <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Home</title> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> …

Member Avatar for janetriever
0
361
Member Avatar for davy_yg

Hello, I am trying to create carousel that is liquid (with bootstrap): index.php <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Home</title> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/chili-1.7.pack.js"></script> <script src="js/jquery.cycle.all.js" type="text/javascript"></script> <script src="js/jquery.easing.1.3.js" type="text/javascript" ></script> <link href= "css/style.css" rel="stylesheet" type="text/css" media="screen"> <link href="css/styledrop.css" rel="stylesheet" type="text/css" media="screen" …

Member Avatar for diafol
0
163
Member Avatar for phoenix254

I am trying to creating websocket with php and here is my connection that i used for create socket connection <?php if(!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Couldn't create socket: [$errorcode] $errormsg \n"); } echo "Socket created \n"; //Connect socket to remote server if(!socket_connect($sock …

Member Avatar for jkon
0
539
Member Avatar for blueguy777

I got smpp class from [Click Here](http://www.phpclasses.org/package/1373-PHP-Sends-SMS-messages-via-an-SMPP-server.html) i am able to send sms to the single mobile number using SMPP connection but unable to send sms to multiple mobile numbers The code is as follows: <?php include_once('smppclass.php'); /* File: smppexample.php Implements: exmaple for smppclass.php::SMPPCLass() License: GNU Lesser Genercal Public License: …

Member Avatar for diafol
0
1K
Member Avatar for anitg

I dont know whether this is the relevant forum but I dont know why I am getting the above mentioned error when I try to open website www.magicbricks.com from my laptop. I can open this on my office computer..! The error details are as below; HTTP Status 500 - error.security.userNotActive …

Member Avatar for diafol
0
332
Member Avatar for anitg

I am trying to use a sms gateway app for android called SMSGateway with a http header request using curl as below; $curl_handle=curl_init(); curl_setopt($curl_handle, CURLOPT_URL,"http://192.168.1.2:9090/sendsms?phone=$phone&text=$message1&password=xxxxxxxx"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 10000); curl_setopt($curl_handle, CURLOPT_TIMEOUT,50000); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0'); $query = curl_exec($curl_handle); if($query){echo "Message Sent to $phone …

Member Avatar for anitg
0
551
Member Avatar for joshl_1995

Hello Daniweb Community, Would there be a reason why [Google Chrome](https://www.google.com/chrome) is striking out a bunch of HTTPS websites? Even ones that used to be green but are now red and strike out.

Member Avatar for joshl_1995
0
270
Member Avatar for scrapple

Hi, hoping someone might be able to help me with a possible infection. A few months ago, I started to notice some mouse lagging whenever I started chrome. I didn't think anything of it at the time because I usually start chrome with 5 tabs and 5 extensions, and figured …

Member Avatar for scrapple
0
666
Member Avatar for vegaseat

Reading the content of a web page with a given URL is pretty simple with Go. Here we defer the closing of the response body (at an early point, so we won't later forget) until the program exits.

0
22K
Member Avatar for jazzyjaj

Hi I have been experiencing high CPU usage for the past few days. Upon investigation I found out that the iphlpsvc was constantly running at 25% alongwith gpsvc, together putting the CPU usage to frequently 100%. I ran MBAM and AVAST scans I assume they couldnt find anything to fix …

Member Avatar for jazzyjaj
0
1K
Member Avatar for HenCa

I have a GUI which I have compiled it with Cygwin and it talks to an electricity meter using Chinese protocol DLT/645. However, in some other parts it seems that IEC1107 is used to communicate. The thing is I would like to know how I can used the current GUI …

0
62
Member Avatar for RikTelner

Almost every single topic I'll start will start with `OP Kudos:`? Just because I have **+18** on reputation now? Not all of the questions I ask are that extremely important, some are just normal question where I ask you to share your knowledge, or I ask your opinion. Sure, it's …

Member Avatar for diafol
0
327
Member Avatar for Akshay_4

HTTP Status 404 - /grid/ type Status report message /grid/ description The requested resource (/grid/) is not available. Apache Tomcat/5.5.20

Member Avatar for stultuske
0
80
Member Avatar for Akshay_4

HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/gridjet/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 …

Member Avatar for stultuske
0
363
Member Avatar for digital-ether

Here is a PHP class written for PHP4 and PHP5 that will validate email addresses by querying the SMTP (Simple Mail Transfer Protocol) server. This is meant to complement validation of the syntax of the email address, which should be used before validating the email via SMTP, which is more …

Member Avatar for lps
0
4K
Member Avatar for pelusa

I have a few dozen links like: http://www.domain.com/publication?id=test http://www.domain.com/publication?id=test&tkn=25MMI7 http://www.domain.com/publication?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s I want to be able to redirect them to: http://www.domain.com/publication/?id=test http://www.domain.com/publication/?id=test&tkn=25MMI7 http://www.domain.com/publication/?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s How can I do this? Thank you.

Member Avatar for reygcalantaol
0
223
Member Avatar for kilegoty

Here she is! Logfile of Trend Micro HijackThis v2.0.5 Scan saved at 6:52:26 PM, on 3/25/2015 Platform: Windows 7 SP1 (WinNT 6.00.3505) MSIE: Internet Explorer v11.0 (11.00.9600.17689) FIREFOX: 33.1.1 (x86 en-US) Boot mode: Normal Running processes: C:\Program Files (x86)\Malwarebytes' Anti-Malware\mbamgui.exe C:\Program Files (x86)\Extensis\Suitcase Fusion 5\FMCore.exe C:\Program Files (x86)\Intel\Bluetooth\BTPlayerCtrl.exe C:\Program Files …

Member Avatar for Rik_
0
225
Member Avatar for Ketsuekiame

This "FakeWebClient" will allow a C# application to send and receive cookies as part of the request. This behaviour is not available by default. Please note that on line 35 there is a possible NullReferenceException, I managed this at a level higher but you may wish to handle it in …

Member Avatar for Pavel_47
3
5K

The End.