Zoom
April 29th, 2001, 00:13
I have PHPscript:
<?php
$num=$REQUEST_URI;
$num = eregi_replace ( "http://www.bla-bla.com", "", $num );
$num = eregi_replace ( ".php", "", $num );
?>
it cuts from $num "http://www.bla-bla.com" and ".php"!
But how can i edit this script to cut all after .php, for example the url bar is: http://www.bla-bla.com/df.php3?434
and $num will be "df"
HELP!!!!!!!
<?php
$num=$REQUEST_URI;
$num = eregi_replace ( "http://www.bla-bla.com", "", $num );
$num = eregi_replace ( ".php", "", $num );
?>
it cuts from $num "http://www.bla-bla.com" and ".php"!
But how can i edit this script to cut all after .php, for example the url bar is: http://www.bla-bla.com/df.php3?434
and $num will be "df"
HELP!!!!!!!