|
|
|
|
|
|
|
|
|
Like this code?
Show the author your appreciation.
|
| |
| <?php
function Redirect($url, $permanent = false)
{
if (headers_sent() === false)
{
header('Location: ' . $url, true, ($permanent === true) ? 301 : 302);
}
exit();
}
?> | |
Usage:
| <?php
Redirect('http://www.google.com');
Redirect('http://www.google.com', true); // permanent redirect
?> | | |
|
| URL validator and reformatter Categories : PHP, URLs | | | PHP function which gets all the data from a webpage into a string, we can perform regular expression functions on that data afterwards to get our desired data.
Categories : PHP, URLs, HTML and PHP | | | PHP Script to find url links in a page Categories : PHP, URLs, Regexps, Arrays | | | Class to Create protected URLs Categories : PHP, PHP Classes, URLs | | | Pageinfo: Array containing page URI, page query string (parameters), request method (GET or POST) and the complete URI Categories : Variables, PHP Options and Info, Arrays, URLs, PHP | | | getting the name of the current script and query string Categories : PHP, Global Variables, Variables, URLs | | | PHP5 URL Object Categories : PHP, PHP Classes, URLs, Strings | | | Get the self URL of current page Categories : PHP, URLs, Beginner Guides | | | valid link! Categories : HTTP, URLs, PHP | | | a file explorer for the web, filesystem php php3 files dirs directories pictures files windows linux system list ls scripts Categories : PHP, URLs, Directories, Filesystem | | | phpHoo2 (Xhoo using php3/MySQL) is a Yahoo-like link directory. Much like the Open Directory Project (dmoz.org). Categories : PHP, Complete Programs, Directories, MySQL, URLs | | | SubmitForce URL power submitter (searchengine submission class) Categories : PHP, Search Engines, URLs, PHP Classes | | | rawurldecode -- Decode URL-encoded strings Categories : PHP, PHP Functions, URLs | | | pick up an array of variables from a query string such as:
http://www.archipro.com/test.php?state=AB&state=BC
Categories : PHP, Strings, URLs, Global Variables | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | |
| |
| |
|