User Profile
Collapse
-
hi please help me how to next the page in php -
Hi...
I just want to ask why does my server is too slow whenever I upload a quite large fie. Is it because I save the file to the database.
Thank you.... -
-
-
Ok, and thank you very much on all your help.
Ooops, I just want to ask... Is this uploading codes can support mp4 and mp3 files? I already increase my upload and post_max_size.
Thanks..Leave a comment:
-
Hi Atli,
Why does the link to the next page of this forum is not visible anymore?
Thanks..Leave a comment:
-
Hi, I'm sorry I have another question..
Can anyone know why this warning message occur:
Here's the code on the said line.
Code:$name = mysql_real_escape_string($dbLink, $_FILES['uploaded_file']['name']); $mime = mysql_real_escape_string($dbLink, $_FILES['uploaded_file']['type']); $size = $_FILES['uploaded_file']['size']; $data = mysql_real_escape_string($dbLink, file_g
Leave a comment:
-
Hi, why does this error occur:
Error:
I don't know what to edit anymore..
Thanks.....Leave a comment:
-
mysql_real_escape_string errror: expects string, resource given.
Hi, can anyone please help me why I got this error every I uploaded files.
Error:
Here is the code on the said warning message:
Code:# Gather all required data $name = mysql_real_escape_string($dbLink, $_FILES['uploaded_file']['name']); $mime = mysql_real_escape_string($dbLink, $_FILES['uploaded_file']['type']); $size = $_FILES['uploaded_file']['size'];
-
Yup, I already restart my server and the old values returned by the phpinfo change. Even if I test my codes in our hosting not locally. Still the 2Mb and above didn't work. Of course I already change the post and upload max size in our hosting. Do you think its not the php.ini and our hosting have the problem? Is it possible that its with my code?
Thank you very much.Leave a comment:
-
I found the php.ini and I tried to change the upload_maz_file size to 200M and the post_max_size to 100M. But still if I upload a file about 3Mb it still does not work.
Thanks..Leave a comment:
-
How to increase the max size of a file upload.
Hi, I just want to ask if there is any way I can increase the upload_max_file _size so I can also upoad mp4 file as well as large pdf file.
Thanks in advance. -
Ooops, I got it. Sorry..
You posted that already.
Thanks anyway.Leave a comment:
-
Hi Atli..
Correct me if I'm wrong.
Error Code:2 = large file
Error code:4 = there's no file to upload
And what is the other error user may encounter using the codes above?
Thanks..Leave a comment:
-
Atli was right, I move the connection of database outside the if statement and the error regrading mysql_close(); was gone.
In max_file_size.. I put 1 000 000. And pdf file is already working, but some pdf file didn't work. Maybe because they are a too large file. Is 1000000, the maximum file size I can put?Leave a comment:
-
-
That warning and error only appear if pdf file was being uploaded.Leave a comment:
-
-
Error! An error accured while the file was being uploaded. Error code: 2
Notice: Undefined variable: dbLink in c:\Inetpub\wwwr oot\uploadingfi les\add_file.ph p on line 86
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in c:\Inetpub\wwwr oot\uploadingfi les\add_file.ph p on line 86Leave a comment:
-
Oki here's my code.
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body>
Leave a comment:
No activity results to display
Show More
Leave a comment: