|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Upload and Download with PHP & MSSql
i have some problems with that operation
these are my steps: First i put the uploaded file into the required table PHP Code:
After that i want to downlod that file like this : getfile.php PHP Code:
but for example if i will upload a file with size of 108 the file that i will download will have 134, and is not the same file.(I've tried with a gif file ) What is wrong ? ps. in my MSSQL table field f_file have data_type image |
|
#2
|
|||
|
|||
|
Hi.
What scenario are you using this code in? I assume people upload files and then you call clean? Remember that for MS SQL, you need to replace ' with '' and not \', so the addslashes might be causing your errors... Check this article: http://www.devarticles.com/art/1/68. It's about blobbing with PHP and MySQL, but has the same principles if you can get your head around MySQL. Can you paste the code for how your using it too... and do you get any errors on the download file script? |
|
#3
|
|||
|
|||
|
after I read that article , my script is sitill not working
supose that my contents lok like this : after i replace ' with " i get an error for this text for example but now is the " newest on the ". And how i will get the initial form of the $file ? what should i do ? I think that my problem is on the format that i put on the table Last edited by clawdragos : May 19th, 2002 at 01:53 AM. |
|
#4
|
|||
|
|||
|
no i don't get any errors on the download, the problem is that the content is different
so where is the problem ? ho should I get rid of that ' |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Upload and Download with PHP & MSSql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|