Search Results
… rules to replace settings with real values. --> <regexp pattern="\$db_url = 'mysql:\/\/username:password\@localhost\/databasename';" replace="\$db_url = '${drupal.destination.database.url}';" ignoreCase="true"/> <regexp pattern="\$db_prefix = '';" …
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 …
Article: PHP Easter Eggs
… for PHP by appending one of the following strings to the end of the URL. ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 …
… $feed = new SimplePie(); $feed->set_feed_url('http://www.example.com/feed'); $feed->init(); echo '<ul>'; // … also pull out categories from your Wordpress blog by setting the feed URL to something like this. …
… $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 …