Click to See Complete Forum and Search --> : PHP Write image to AFS directory
Goodspeed3503
April 18th, 2011, 07:44 AM
I am writing a script that creates a CAPTCHA image via randomly assigned numbers from a php script and i am having trouble figuring out the last part of the program which is to write the image to an AFS directory by changing the http write privileges, but im not sure how to go about this from the PHP/HTTP side or the AFS side so any help would be great. I'll make the current code available if necessary, thanks in advance.
PeejAvery
April 18th, 2011, 12:50 PM
You have to set the permissions for PHP on the AFS server. This cannot be done through PHP code itself.
http://moronicbajebus.com/blog/php-upload-file-permissions-afs/
Goodspeed3503
April 19th, 2011, 02:03 PM
Great thanks for the response to clarify the permission problems which is probably going to be my next step but, i've been struggling to find the correct PHP command to post or upload the file to the directory in order to get to the incorrect permission problem. The image itself is created within the PHP and displayed via the HTML and should automatically be uploaded to an AFS directory but other examples ive looked up have been long winded and not automatic so any further assistance would be great.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.