Most php detect current page related news are at:
How To Find The Current URL In PHP 6 Apr 2009 | 07:04 am
In your valiant conquest of the web development industry, you will notice that some scripts will require that you know the current URL the user is browsing to provide certain services. A prime example...
A Simple Yet Elegant Contact Form In PHP 5 Apr 2009 | 12:29 pm
3 Files Used: contact.php captcha.php captcha.png Requirements: GD Library Installed (For Captacha- it’s 99% likely it’s already installed) Simplicity is bliss. Unfortunately for webmasters, a s...
More php detect current page related news:
Show childpage/subpage only from current page noviar.info 10 Nov 2011 | 10:06 pm
<ul> <?php $pages = get_pages('child_of='.$post->ID.'&sort_column=post_title'); $count = 0; foreach($pages as $page) { ?> <li><a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_ti...
PHP Code to Get Current Page’s URL zenverse.net 1 Jul 2012 | 10:43 pm
It is quite often that we need to redirect users back to current URL. I wrote my own function for this purpose, but then I realized some weaknesses: it cannot capture HTTPS and the port number, which ...
Conditional Statement to Detect VirtueMart Pages tips4developer.com 17 Jan 2013 | 04:20 pm
Here in this post I am sharing a way to detect if your current visited page is a VirtueMart page, VirtueMart category page or VirtueMart product detail page. I think most of you have experience that w...
Php function to check the current page url/name technodigits.wordpress.com 30 May 2013 | 01:22 pm
This is a function which i found it very useful while i was building a large static website (approximately 50 pages). I was using includes for the header, footer and sidebar sections of the website be...
Conditional Statement to Detect VirtueMart Pages tips4developer.com 17 Jan 2013 | 04:20 pm
Here in this post I am sharing a way to detect if your current visited page is a VirtueMart page, VirtueMart category page or VirtueMart product detail page. I think most of you have experience that ...
PHP – WordPress – Get the Current Page Template Name phpmoot.com 5 Jun 2013 | 12:27 pm
This following PHP example helps you to get the current page templage name in WordPress. Code Example:
Redirect mobile devices users with Detect Mobile Browsers vpsnoob.com 8 May 2012 | 09:54 pm
If you have troubles in redirect mobile device users to a specific page, you must have a look at Detect Mobile Browsers. Detect Mobile Browsers provides many ways, like PHP,Perl,ASP,jQuery,etc, to de...
List Current Parent and Child Pages in WordPress corymathews.com 23 Nov 2011 | 10:19 am
Recently in WordPress I needed to create a navigation that would display a page’s parent page and all of that pages children, I am a bit rusty with PHP but here is what I got to work. If you need to ...
Dynamic PHP Copyright Date Code paulmason.name 24 Feb 2011 | 09:14 pm
Pretty simple but pretty handy too! Here's a short tutorial to generate the current year in your footer's copyright declaration. It also detects if the the site has been running for less than a year t...
Detect and clean Malware on MediaTemple (gs) epictrim.com 5 Aug 2010 | 12:00 am
A couple weeks ago, some accounts on Media Temple (gs) has been exploited. This attack consist on insert Javascript code in the html pages and create php files (example: fwrite.php, fclose.php, etc.) ...