Jump to content

damion

Members
  • Posts

    47
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

damion's Achievements

Member

Member (2/5)

0

Reputation

  1. mac_gyver, thanks for your help. The server is a 64bit and phpinfo() shows what I have in my php.ini file for post_max_size. It is 3072M. But...the form does not have a name="", not even a blank value for it. This is it: <form id="form1" action="upload.php" method="post" enctype="multipart/form-data"> Unfortunatley, I won't be able to help with the answer of how the form is being produced. I don't know. But I do know there is PHP, js, and ajax there. And some flash too for the uploader. So several files can be uploaded at one time, the form has multiple file fields if it helps you to know. Thanks again.
  2. Hope you can help explain this warning. I have an upload script that chokes intermittently during uploads, but very rare when it does. It's an annoyance more than anything else. There are no helpful errors on the form when it does fail, but I happened to look at the error log on the server and found this repeated a few dozen times (always has the same limit value): PHP Warning: Unknown: POST Content-Length of 0 bytes exceeds the limit of -1051798902 bytes in Unknown on line 0 My php.ini file bumps up the memory, post and upload size, etc, and I can upload pretty huge files successfully, the biggest was over a half gigabyte once. I know ftp is the best way to go for large files. But this is reliable enough for my use and I'm just trying to understand the warning message. I can't find any results when I do a google search that has '0' as the content length, it's always a larger number. Tnx
  3. When I try to submit my form it doesn't enter the data into the database. My page also shows this message: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in .... line 18 Line 18 is marked below in the code. Aside the code being dated, I can't get a handle on what to do to solve it. Can someone please help me out? error_reporting (2039); extract($_GET); extract($_POST); $server = "server.com"; $username = "uname"; $password = "pword"; $database = "mydb"; $db = @mysql_connect($server,$username,$password); mysql_select_db($database); if($submit =="save") { $sales = addslashes($sales); $billing = addslashes($billing); $support = addslashes($support); $query = mysql_query("update variables set sales ='$sales', billing='$billing', support ='$support' where id = 1"); } $query = mysql_query("select sales, billing, support from variables"); $row = mysql_fetch_array($query, MYSQL_ASSOC); // line 18 $sales = stripslashes($row['sales']); $billing = stripslashes($row['billing']); $support = stripslashes($row['support']);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.