Forum Moderators: coopster

Message Too Old, No Replies

running PHP in a specific directory?

/scripts running in /

         

senior mcinvale

3:31 pm on Apr 25, 2003 (gmt 0)

10+ Year Member



i have something set up with .htaccess that allows me to run PHP out of safe mode.

/scripts is that dir.

i need to access some scripts in there with a script that is in /. i have it set up to include a file in /scripts but its still running in safe mode.

how can i get it to run the files in /scripts out of safemode?

maybe this will help, here is how i am calling the script:


if (file_exists($_FILES['image']['tmp_name']) )

{

$getID = mysql_query("select max(id) as id from Items",$db);

list($id) = mysql_fetch_row($getID);

include ("scripts/add_image.php");

}

anything i can do?

jatar_k

4:37 am on Apr 30, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sorry senior_mcinvale,

did you figure this out?

DrDoc

4:43 am on Apr 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not just move the second file out of the /scripts folder?

senior mcinvale

3:35 pm on Apr 30, 2003 (gmt 0)

10+ Year Member



if i move everything into the /scripts folder they will all run out of safemode. it is more secure to only have very specific files in the /scripts dir.

i havent had a chance to mess with this anymore, im thinking that i might just do it the less secure way (putting everything in /scripts). its more of a pain than its worth, i dont think anyone will be messing with the /scripts dir.

i generaly try to make everything as secure as possible though....