[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] wget in php



Depends how php is setup.

Although I'd say it is running as WWW:WWW so you may need chmod 777 before it can write to things.

Check the apache log file, it will give you any errors.


On 10/10/2005, at 4:08 PM, Christian Kent wrote:


Hi folks, I have this in a php file ...

$string = `wget -Coff -q -O /home/whophd/public_html/blah http://foo`;


When I run it via 'php' command line, it works, but when the php file is executed via http, this line gets ignored. It's only the wget command, and if I leave off the URL, I do get an error, so it's executing.


It just refuses to write to the path /home/.../blah when you run it via http. What am I forgetting?

Is this an occasion to use that magic chmod bit?

CK.

-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc- request@xxxxxxxxxxxxxxxxxxx
If you are having trouble, ask owner-progsoc@xxxxxxxxxxxxxxxxxx for help.




-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@xxxxxxxxxxxxxxxxxxx
If you are having trouble, ask owner-progsoc@xxxxxxxxxxxxxxxxxx for help.