[Tfug] writing files from PHP

Paul Scott waterhorse at ultrasw.com
Wed Jun 18 23:15:23 MST 2008


On Jun 18, 2008, at 5:36 PM, Brian Murphy wrote:

> Check your safe_mode and open_basedir settings.  They could  
> restrict the
> fopen function.

Neither problem machine has those defined (in php.ini).

Thanks,

Paul


>
> Most good webhosting services (like mine :) ) run php via suexec or  
> suphp
> so that your scripts run as your user ID, not the generic apache user.
>
> Brian
>
> On Tue, 17 Jun 2008 23:06:14 -0700, Paul Scott  
> <waterhorse at ultrasw.com>
> wrote:
>> Dumb question:  With permissions 644 I can open and write files with
>> version 4.4.8 of PHP on a web server.  With the same version of PHP
>> and the same file permissions I can't open the files for writing on
>> this Mac PPC or my home computer.   The code uses fopen().
>>
>> I haven't found any obvious options with phpinfo() that give me a  
>> clue.
>>
>> TIA for any help,
>>
>> Paul Scott
>>
>>
>>
>>
>> _______________________________________________
>> Tucson Free Unix Group - tfug at tfug.org
>> Subscription Options:
>> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>





More information about the tfug mailing list