PHP function to get your Current URL
Posted by admin
This is a PHP function to get your Current URL. You could used this if want to redirect again to the same page when submitting a form.
Please fell free to comment and improve this function. Thanks...!
Please fell free to comment and improve this function. Thanks...!
function current_url(){
$explode = explode( "/", $_SERVER['SERVER_PROTOCOL'] );
$protocol = strtolower( $explode[0] );
$current_url = $protocol.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
return $current_url;
} Back to List | Comments (0) | October 03, 2009 at 03:22 pm
Leave a Reply
Latest News (2)
iWebProvider.com No 1 at Yahoo search engine for the keyword -filipino web developer.
Posted on October 02, 2009
On Sept 6, 2009 iWebProvider.com is No. 1 at Yahoo and Google for keyword "filipino web developer".
continue reading
Launching of the updated iWebProvider.com
Posted on October 02, 2009
Now as of July 7, 2009 the launching of iWebProvider.com with its improve feature and the used of its very own CMS. It now has features like Blogs, comments on News articles and the upcoming user registration.
continue reading
Wise Words
"It's not about how many you have learned but how much you have utilized and mastered what you have learned."
- by: Mark Lester

0 Responses
No Records Yet.