Menu

Help with PROCESS.PHP, please

Help
nickypoo
2006-07-21
2013-06-03
  • nickypoo

    nickypoo - 2006-07-21

    Last time I've had a problem user: tnteveret1 helpt me alot, I hope someone can help me with this problem as wall.

    I moved my form To a separate folder after I generated the it, now After I submit the form  I get this error:

    Warning: copy(files/02_18_46_Picture 028.jpg): failed to open stream: Permission denied in /home/nicky/public_html/UpForm/1pac/process.php on line 32

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/UpForm/1pac/process.php:32) in /home/nicky/public_html/UpForm/1pac/process.php on line 53

    Line32 is:
    copy($HTTP_POST_FILES['Yourpictureonpostcard']['tmp_name'], "files/".$image_part);

    And line 53 is:
    header("Refresh: 0;url=http://xxxxxxxxxxxxx.com/checkout");

    I don't have much knowledge of PHP and I hope someone can help :)

    Thank's Nickypoo

     
    • TNTEverett

      TNTEverett - 2006-07-21

      Tough to say without more information. 
      Did you try a test case with a file that follows the 8.3 DOS filename format? 

       
    • nickypoo

      nickypoo - 2006-07-21

      Line32 is:
      copy($HTTP_POST_FILES['Yourpictureonpostcard']['tmp_name'], "files/".$image_part);

      It looks like I got temp name for the files uploaded.
      Just tall me what kind of info you need.
      Thank you for your time.

       
      • TNTEverett

        TNTEverett - 2006-07-21

        I want you to create a simple test case.  Using Notepad, create a file named abc123.txt and try to use it in your form to see if you get the same error messages. 

         
    • nickypoo

      nickypoo - 2006-07-26

      I'm getting :
      Warning: copy(files/02_00_31_j0262862.jpg): failed to open stream: Permission denied in /home/nicky/public_html/UpForm/1pac/process.php on line 32

      Warning: Cannot modify header information - headers already sent by (output started at /home/nicky/public_html/UpForm/1pac/process.php:32) in /home/nicky/public_html/UpForm/1pac/process.php on line 53
      -------------------------------------------------If it is O.K I'll send you my process.php file
      I'ev tried the abc123.txt file but I stil get this error, thank you

       
    • Musawir Ali

      Musawir Ali - 2006-07-26

      You don't have proper permissions on the new directory. Make sure the files directory is writeable. It needs to have mode 766 (read+write access to the group and everyone else)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.