|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 14:06 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
I programmed a webforum in PHP and ran it on my linux system in which it ran fine. I then moved the system to win 98 without changing the code and am having problems with writing and reading to files. I do not suspect the code. To check this I created the following code to test it: <html> <head> <title>PHP Test</title> </head> <body> <?php $filePointer = fopen("test.txt","w") echo "\$filePointer=$filePointer<br>"; if($filePointer) { fwrite($filePointer,"this is a test"); fclose($filePointer); } ?> </body> </html> I received the following error: Parse error: parse error in c:\program files\apache group\apache\htdocs\php\test.php3 on line 9 I suspect a configuration in apache that disallows the php code to write to files. I'm using Apache 1.3.6. Are there any known issues with it or is there a setting I have to change? Any help is appreciated.