bejayel
07-24-2003, 09:31 AM
lol so i am having major problems with php under iis 4 i think. i installed php 4.3.2 (cause it was always the best for me, and thats what most pre-made cripts run for anyway now a days) and for some reason i cannot hae the script write, open, change or make a new file. it jsut wont let me. just put out errors. can anyone help me out here? php info is running on my site at the home page
http://207.195.35.125/
and for an example f what is happening, go here and do what it sais. or just press install and see what it does. i dont understand PLEASE HELP!!!!!!
http://207.195.35.125/upload/install.php
thanks in advance.
christiandude03
07-24-2003, 04:22 PM
Did you set permissions on the files you want to write to?
toosweet4u
07-24-2003, 04:37 PM
You're getting those notices because array variables must have quotes around them.
$arr[name] = 'you'; // bad
$arr['name'] = 'me'; // good
$arr["name"] = 'them'; // good
bejayel
07-25-2003, 04:55 AM
ok first of all it is a windows based server, i think i said iis. so permissions dont have to be set. and second some other guy made the script. and now i haveto go fix it... lol oh well thanks guys!!! i really appreciate the help! one day i will be a php expert...you'll see.
bejayel
07-25-2003, 05:11 AM
so thsi php expert thing isnt coming as fast as i would liek it too. anwyay it is stil messing up.lots of the errors are gone nwo though ;). anyway here is what is messing up now. please helkp again
<?php
if($_GET['act']=="go")
{
$w = fopen("confsettings.txt","w");
fputs($w,rtrim($_POST['name'])."\n");
fputs($w,rtrim($_POST['points'])."\n");
fputs($w,rtrim($_POST['welcome'])."\n");
fputs($w,rtrim($_POST['topsiteurl'])."\n");
fputs($w,rtrim($_POST['homeurl'])."\n");
fclose($w);
echo("Done! <b><u>Make sure to delete install.php!!!</u></b>");
//------------------------Logger------------------------
$LogText="Install file executed";
$logger = fopen("conflogs/".date("M-d-Y").".log","a");
fputs($logger,$REMOTE_ADDR." - - [".date("d/M/Y:H:i:s O")."] \"".$LogText."\" \"".$_SERVER[HTTP_REFERER]."\" ".$_SERVER[HTTP_USER_AGENT]." \n");
fclose($logger);
//--------------------End-Logger------------------------
return 0;
}
?>
so far it is only ythe part in bold as far as i can see. i dont knwo what wrong with it though... lol. thanks again. umm try the thing again. the first error is access is denied. but you dont set permissions with iis right. so i have no idea.
the setting under conf setting.php are read write and log visits, (wheni checked script source access, nothing changed) and it does not expire.