|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Re: Blobbing data with PHP and MySQL
Hi I have just started to learn about PHP and MySQL, and Iīm trying to run a script collection that Mr. Michell Harper wrote ( "Blobbing data with PHP and MySQL" ArticleId 68) But I have a little problem. Iīm using a IBM ThinkPad whith win2000 and IIS 5.0, PHP 4, MySQL. (I use PHPMyAdmin without problems) When I try to store a file in the myFiles database, it doesnīt work. I canīt get furter than "You must enter both description and file" allthough I had done that. I think itīs a problem whith my php settings, because I canīt find the temporary file that PHP should generate in c:\WINNT\TEMP I have a ZIP file with info about PHP settings and database info, that I can send to anyone interested. If itīs possible, I would be very thankful for assistance in this matter. //PW |
|
#2
|
|||
|
|||
|
you must change the temp file to something else. like for example C:\PHP\TEMP DON'T use the windows temp directory cause it sucks.
what version of php do you have. do you see the following in your php.ini file.................PHP Code:
if not copy this and paste it in your php.ini file k. hope this helps... ![]()
__________________
Apache Expert |
|
#3
|
|||
|
|||
|
In the first text, you wrote c:/php/temp and in the php.ini file you wrote c
hptemp ??any way... I created a phptemp folder in the c: directory and wrote c:/phptemp in the php.ini file, but it still doesnŦt work. Do you have any other suggestions? //pw |
|
#4
|
|||
|
|||
|
C:\PHP\TEMP is what i meant so change your settings accordingly.
also what version of php are you running? ![]() |
|
#5
|
|||
|
|||
|
what is your open_basedir and safemode settings in php? you should comment the open_basedir line out like this:
; open_basedir = same with safe mode ; safe_mode = that should then work fine. you may also need to restart IIS with start -> run -> cmd -> iisreset
__________________
i am cope. i drink coke. i am in hope.i am cope. i drink coke. i am in hope.i am cope. i drink coke. i am in hope. |
|
#6
|
|||
|
|||
|
My PHP version is 4.0.6
Iīm attaching the php.ini file |
|
#7
|
|||
|
|||
|
PHP Code:
the line is perfect now under your php folder whatever it is named be sure to create a folder called temp k. next whatever your php folder is called for example if it named php4.1.1 then go to your php.ini file and where it says upload_tmp_dir = put c:\php4.1.1\temp or whatever your main php folder is called. if that still doesn't work then maybe you need to upgrade to php4.2.0 hope this helps.... ![]() |
|
#8
|
|||
|
|||
|
problems with the original script
I had trouble getting it to work. I went to www.tek-tips.com and someone helped me iron out all the problems I was having. I really appreciate this forum and the original article. I learned so much from it! Here is the link to the tek-tips thread which helped me get it to work the way I needed it to:
http://www.tek-tips.com/viewthread.cfm?qid=1246898&page=1 MrsBean |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Blobbing data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|