|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Mitchell Harper Adding Blobs to the database
I too have a quick question about the Blobing tool which Mitchell created. I have downloaded the zipfile from the thread "I found the problem" and I have tried to use it. But when I run the getfiles app and put both a description and the file I want uploaded, it gives me an error message to enter a Description and file before uploading.
Can anyone tell me what I am doing wrong Thanks Bob Bolder |
|
#2
|
|||
|
|||
|
I found my answer
After further research I uncovered the answer to my question. The resolution was in the fact that I was running version 4.3 of PHP, I was required to look at reqister_global and turn it from Off to On in PHP.ini. This resolved my problem immedately.
Bob |
|
#3
|
|||
|
|||
|
Bob,
Although it's a simple workaround, I would recommend against turning it ON... You're better off changing the code by using the superglobal arrays $_POST[] and $_GET[]... It will make the code more secure.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#4
|
|||
|
|||
|
You can set the register_globals to Off and use this syntax:
$_FILES["form_field"]["tmp_name"] -> this is the name of the file created by the server. It's equal to: $form_field $_FILES["form_field"]["type"] -> this is the mime type of the file. It's equal to: $form_field_type $_FILES["form_field"]["name"] -> this is the name of the file at the form, the original filename. It's equal to: $form_field_name
__________________
Regards, Ramiro Varandas Jr. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Database Development > Mitchell Harper Adding Blobs to the database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|