Search Results
Article: Testing 301 Redirects Using PHP
… through it using the PHP function get_headers() to test that the first URL redirects to the second. If any problems are found then the line … ($headers === FALSE) { echo "Line " . ($line_num + 1) . ": Malformed URL found!\n"; } else if (!isset($headers['Location'])) { echo "Line " …
… The usual example used is of a web server that can be accessed via a URL that is translated behind the scenes into an IP address, but IP …
… correct content types in advance. Because SimpleTest works by issuing CURL requests to pages the most reliable way of doing certain tasks is …
Article: Using JavaScript To Run Form Events
… JavaScript code (commonly called a bookmarklet) in the place of any URL in the action attribute of the form. Next, in order to actually get …
… $query = "http://maps.google.co.uk/maps/geo?q=".urlencode($code)."&output=json&key=".$mapsApiKey; $data = …
… on the link. One way of doing this would be to add a parameter to the URL of the link, if the parameter is present then it is a user going …
… the other being the subjects. It will then create the necessary RSS URLs and use the multi-feed aggregator feature of SimplePie to collate … $feeds[] = 'http://upcoming.yahoo.com/syndicate/v2/search_all/?q='.urlencode($subject).'&loc='.$location.'&rt=1'; } } // create SimplePie … $feed = new SimplePie(); // add feeds to SimplePie $feed->set_feed_url($feeds); // turn off feed ordering by date …
… The setRedirect() function takes two parameters. The first is the URL to be redirected to and the second is the HTTP response code. … …
Article: Apache Log File Into MySQL Table
… first line of the request, basically the method used (GET/POST) the URL that was accessed and the HTTP protocol level that was used. This …
… sending out the email, which will reset the password. Here is the URL that can be used to reset the password. …