Re: Create .php file with php

From: Date: Tue, 03 Jul 2007 07:29:59 +0000
Subject: Re: Create .php file with php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258096@lists.php.net to get a copy of this message
On Mon, June 25, 2007 7: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? There is nothing whatsoever in PHP nor Apache to stop you from writing files whose names happen to end in .php Whatever else you did differently for the .php files is what messed you up, not the filenames. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#258096) next »