Forum Moderators: coopster

Message Too Old, No Replies

fwrite() and permissions

works with 666, 777 but not 644

         

ScottM

11:52 pm on Feb 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm working on getting a froogle feed going and the best way I can see to get things work for me is to fwrite to a .txt file and then convert and upload.

I've played around a little with the function fwrite() and got things working but I'm a little concerned about the permissions needed to make it work.

It works with:

666
777

but not with:
644
744

Is there a way to secure this? It's just a froogle feed, so I'm not worried about someone seeing my .txt page, I just don't want to open any doors that should remain locked.

Right now I have a .csv file with about 10 rows, so I need to reduce this automatically. It is not a MySQL database, so I can't ask for advice on that.

Is there something I need to or CAN place in the script to make it work for me?

Or am I safe to leave it as 666? Or what?

jatar_k

11:52 pm on Feb 12, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if you really want to secure it just pop it in a directory that is htpass'ed and no worries.

ScottM

12:30 am on Feb 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Excellent-perfect!

Completely understand.

Thanks!