Pedster2k
10-29-2003, 10:16 AM
Im very new to PHP, so excuse my ignorance..
Say I wanted to hide bits of text/images on certain page names (i.e test.php), would that be possible with the...
parse_url($_SERVER["HTTP_REFERRER"]);
If so, how could I pick out the name of a page....
Like.. if a url has : http://www.mydomain.com/test.php?catid=8
and say I wanted to find out what the php file is called?
Can I do this, i.e:
if ($page == "test.php") {
blah blah
}
$page could be from a 'function' routine or something?
Can this be done, as this would make coding simpler for me.
TIA and sorry if I confused you all :)
Say I wanted to hide bits of text/images on certain page names (i.e test.php), would that be possible with the...
parse_url($_SERVER["HTTP_REFERRER"]);
If so, how could I pick out the name of a page....
Like.. if a url has : http://www.mydomain.com/test.php?catid=8
and say I wanted to find out what the php file is called?
Can I do this, i.e:
if ($page == "test.php") {
blah blah
}
$page could be from a 'function' routine or something?
Can this be done, as this would make coding simpler for me.
TIA and sorry if I confused you all :)