Hi Everyone:
Last week I posted a problem to the listserv where I
could not get my php script to work. The initial php
script had a post to the directory "/var/www/html" and
no file transfer could occur.
The size of the file was small, about 10k. And so
everyone thought that it was a permissions problem.
Now, even when I changed the permissions of
"/var/www/html" to 777 it still would not upload, so I
am thinking that php.ini might be the problem. I went
there and changed the configuration to send all files
to "/var/www/html" but it still would not take.
Then I thought, the directory that any php script
writes to is temporary so I changed the directory to
"/tmp/" and it worked.
"/tmp/" has a permissions code of 777. But I do not
care because I want to allow anyone out there to post
to my server.
Now, all I have to do is to write another script to
take the file in "/tmp/", a temporary folder anyway to
funnel it to "/home/$user_name/public_html".
Problem solved after hacking and thinking about it for
1 week. I'm learning. And my next task is learning how
to deal with arrays in php.
Programming can be such a pain.
Tony
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Sep 7 15:59:25 2006
This archive was generated by hypermail 2.1.8 : Thu Sep 07 2006 - 15:59:25 AKDT