General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old April 29th, 2002, 05:27 AM
wermelin wermelin is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 3 wermelin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Blobbing data

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

Reply With Quote
  #2  
Old April 29th, 2002, 07:57 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
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:
;;;;;;;;;;;;;;;;
File Uploads ;
;;;;;;;;;;;;;;;;

Whether to allow HTTP file uploads.
file_uploads On

Temporary directory for HTTP uploaded files (will use system default if not
specified).
upload_tmp_dir C:phptemp  temporary directory for HTTP uploaded files (will use system default if not specified)

Maximum allowed size for uploaded files.
upload_max_filesize 8M 


if not copy this and paste it in your php.ini file k. hope this helps...
__________________
Apache Expert

Reply With Quote
  #3  
Old April 29th, 2002, 09:07 AM
wermelin wermelin is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 3 wermelin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In the first text, you wrote c:/php/temp and in the php.ini file you wrote chptemp ??

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

Reply With Quote
  #4  
Old April 29th, 2002, 03:32 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
C:\PHP\TEMP is what i meant so change your settings accordingly. also what version of php are you running?

Reply With Quote
  #5  
Old April 29th, 2002, 05:40 PM
CopeLand CopeLand is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Toronto
Posts: 40 CopeLand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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.

Reply With Quote
  #6  
Old April 30th, 2002, 12:23 AM
wermelin wermelin is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 3 wermelin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
My PHP version is 4.0.6

Iīm attaching the php.ini file
Attached Files
File Type: zip php_ini.zip (8.5 KB, 480 views)

Reply With Quote
  #7  
Old April 30th, 2002, 11:08 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
PHP Code:
 upload_tmp_dir c:phptemp 


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....

Reply With Quote
  #8  
Old June 25th, 2006, 04:41 PM
mrsbean mrsbean is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 1 mrsbean User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 2 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Blobbing data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway