You are here: Try to write files using php5 on Linux « PHP Programming Language « IT news, forums, messages
Try to write files using php5 on Linux

Posted by Matthias Braun on 07/22/05 18:30

Help!

I am using SuSE 9.3, php5 and Apache2 on Linux. I try to write files to
the hard drive using the following command:

$filename = "test.txt";
if (!file_exists($filename))
touch($filename);
if (is_writable($filename))
$myfile = fopen( $filename,'w+');
else
{
echo "Cannot write to file ($filename)";
exit(1);
}

The script neither creates a file nor open it for writing. When using
the same script on Windows everything works fine so I think it is a
permission problem.

Thanks in advance,

Matthias

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация