Search Results
Article: PHP Page Redirection
… tag being the amount of time to wait before the refresh. Adding the URL parameter into the content tells the browser to refresh to a different URL, essentially a redirect. <meta http-equiv="refresh" content="0;URL=http://www.hashbangcode.com" /> Here is the full version. $url = …
… code is what I came up with. $username = 'philipnorton42'; $scrobbler_url = "http://ws.audioscrobbler.com/2.0/user/" . $username . "/recenttracks"; if ($scrobbler_xml = file_get_contents($scrobbler_url)) { $scrobbler_data = simplexml_load_string($scrobbler_xml); echo … is the name of the album that the track belongs to (e.g. "Nocturnal"). url : This is a URL that links back to the track information on the …
… URL canonicalisation is where you have a website with different URLs outputting the same content. When search engine spiders see all … to what page to display in search engine result pages. The following URLs, although they are different, actually produce the same content. …
… { default: { disable_error_log: false, launch_url: 'https://nightwatchjs.org', screenshots: { enabled: … code to it. All this does is to tell Nightwatch.js to open the URL you designate. module.exports = { 'User can visit website': function (browser) { browser .url('https://www.hashbangcode.com/') } } When we run this Nightwatch.js …
… simple thing to do and it is quite easy to add a little link to your Wordpress posts. If the user is logged into Twitter on the web (which … to post'); ?> To include a link to the Wordpress blog post that the link it for use the get_permalink() function, which … ensure that the user is able to post to Twitter without leaving your blog. <a href="<?php echo …
… If you have a site with parts of it using SSL, but want to turn it off for mundane pages like the blog section then use the following code. This uses the … 301); exit(); } Don't include both of these scripts on the same page or you will break the site! Also, make sure that no headers have been …
… Outbound - An outbound path is any path that Drupal generates a URL. The outbound path processor will be called in order to change the path so that the URL can be generated correct. Basically, the inbound processor is used … allows us to perform any additional checks on query strings on the URL or other parameters that may have been added to the request. The …
… Setting up a permalinks structure in Wordpress one of the things I normally do right after installing a blog, before event getting started on the templates. However, I always …
… Zend Lucene is a powerful search engine, but it does take a bit of setting up to get it working properly. One thing that I have had trouble getting up and … there is a lot to cover on this subject I thought I would create a blog post in multiple parts. For this post I will be looking at how to …
Article: PHP Streams
… to the script. Let's say we called a script with the following curl request. curl -X POST -d "data1=thing" -d "data2=anotherthing" … For example, when we use the file_get_contents() function to access a URL it will always do this using a GET request. echo …