On Jun 25, 2007, at 5:13 PM, Marius Toma wrote:
I can not create .php files from PHP. I can save them as *.php5,
*.php3, asp, *.txt , etc... but not as .php. I tried both touch and
fopen but
none of them worked.
I'm running PHP 5.1.6 on Apache 2, safe_mode is off
Is this a security measure somewhere? How can I bypass it?
Thank you,
Marius
I had trouble with this also running php 5.1.2 and now 5.2.1. But I got
the hang of it to the point
that I have mostly abandoned xml and flat files for temporary files and
quick and dirty data bases
that can just be included for their content. I do not remember what I
did that got it going but it is
definitely possible, almost spooky. You certainly do not want any user
supplied content written to
a php file as variable values or anything without being completely
sanitized.
I also had trouble opening and modifying html files but got the hang of
that too.
I am running Apache 1.3.x on FreeBSD 6.0, 6.2, Mac OSX, and Yellow Dog
Linux.
Keep trying...I had to.
JK
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php