CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2011
    Posts
    3

    Question Write image to AFS directory

    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.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Write image to AFS directory

    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-u...rmissions-afs/
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Apr 2011
    Posts
    3

    Re: Write image to AFS directory

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured