balsa8
05-08-2006, 08:40 AM
Hi all:
I downloaded and unzipped a project called phpcollab. I was trying to get it to run on my web server. I follow the directions to install it. I use Mozilla to go to /installation/setup.php.
After filling out the form, i hit submit and i get the warning:
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/apache2-default/installation/setup.php on line 249
At lines 248-249 is the code:
$fp = @fopen("../includes/settings.php",'wb+');
$fw = fwrite($fp,$content);
i grep-ed for "apache" looking for some path definition and I find a line of code in the same file which looks like it so i changed it to:
\$fullPath = "/var/www/apache2-default"; //no slash at the end
since that is where i have always put php scripts. i took a community college course that included PHP MySQL programming. I look at this thing with over 500 script files - whoa! this ain't like the homework assignments!
regards
I downloaded and unzipped a project called phpcollab. I was trying to get it to run on my web server. I follow the directions to install it. I use Mozilla to go to /installation/setup.php.
After filling out the form, i hit submit and i get the warning:
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/apache2-default/installation/setup.php on line 249
At lines 248-249 is the code:
$fp = @fopen("../includes/settings.php",'wb+');
$fw = fwrite($fp,$content);
i grep-ed for "apache" looking for some path definition and I find a line of code in the same file which looks like it so i changed it to:
\$fullPath = "/var/www/apache2-default"; //no slash at the end
since that is where i have always put php scripts. i took a community college course that included PHP MySQL programming. I look at this thing with over 500 script files - whoa! this ain't like the homework assignments!
regards