PDA

View Full Version : help with PHP.


azn4ever
02-10-2003, 02:14 AM
Can anyone pls help me...my script is following...
<?php

if (isset($name))
{

if (!isset($file)) { $file="index"; }
$modpath="modules/$name/$file.php";
if (file_exists($modpath)) {
include($modpath);
}
else{
echo " file doesn't exist";
}

}

?>

...but what I receive for the $file is "1.php"..

example to run the scripts..
htt://www.myname.com/index.php&name=mp3z&file=create
..now what I suppose to get for the $file is "create.php" but instead what I got is "1.php"....
Can anyone help me please..anyhelp would be appreciated..

Azn4Ever.

WinterGhost
02-10-2003, 10:41 PM
Boy that sucked, I was sittin here workin away on the problem, and while i was on a call I go to submit it, and it was idle too long so sent me back to the login... hummphhhhhh! Still workin on it though..