<?
// Answering "How do you get the URL in php?"
// Your Function for getting URL data
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
// Lets echo it out on your page ;)
echo curPageURL();
// Hope it works :)
?>
Copy the URL with the .php, The .php is part of the page.
The GET method in PHP allows you to grab information from the URL to use in your script.For example, say you are on the URL index.php?id=1 you could then in the PHP script grab the id using the GET method to use in your script.
Websites are servers that present pages as they are requested. Pages, in this context, are merely different kinds of files -- much like images and word documents. The "php" appended at the end of a URL indicates you are requesting a PHP type file, which is composed with the PHP language. PHP is a programming language that stands for "PHP: Hypertext Preprocessor." It is used to develop websites that present dynamic content and allow page-to-page interaction, such as forums and wikis.
Here is the code below to redirect a webpage using php: <?php header('Location: url of the webpage'); // example: header('Location: index.php') exit; // exit after redirection is very important as php executes code line by line ?>
Here is a List: [url]http://askyourpc.com/blog1.php/fun/on-the-web/is-there-a-youtube-for-kids[/url] or go here: www.totlol.com
http://www.howrseinfo.com/level8.php this is the URL to the page with all of the answers to this quiz
http://www.howrseinfo.com/level2.php this is the URL for a page with all of the answers for this quiz
100 characters (I think because that is the maximum for the php _GET Mothod)
http://www.howrseinfo.com/level8.php this is the URL to the page that has all of the answers to this quiz
http://howrseinfo.com/level2.php this is the URL to the page that has all of the answers to this quiz.
Refer this URL: http://www.indiacgny.org/php/showContent.php?linkid=229
cURL - A Command line tool for getting or sending files using URL syntax