LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > 4.013 PHP5 HTTP_POST method no longer works

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-22-2010, 11:05 PM
chernann chernann is offline
Member
 
Join Date: Nov 2006
Posts: 13
Default 4.013 PHP5 HTTP_POST method no longer works

I just updated to 4.013 and PHP5 HTTP_POST does not work. Verified working fine in 4.012 and Apache.

Here's the code:
Code:
<form method=post action="pictureform.php">
<input type="FILE" name="userpic" size="30">
<input type=submit>
</form>
PHP Code:
        $source $HTTP_POST_FILES['userpic']['tmp_name']; 
Under 4.012 and Apache $source will return the temporary file location of the file (e.g. /tmp/adoije)

4.013 returns a null value. It appears the temporary file is not actually created from the upload form.

edit: Changing the script to the $_FILES super global solved the issue. Although this might be a problem for older scripts.

Last edited by chernann; 02-22-2010 at 11:16 PM..
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:48 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.