[PHP-DB] curl image into mysql.

2008-03-22 Thread richard lee
hi, i got a problem insert a image that downloaded into mysql database, because when i echo $sqlCmd, it output $data in binary file, please help thanks http://www.google.com/intl/en_ALL/images/logo.gif'; $curl_handler = curl_init(); curl_setopt($curl_handler, CURLOPT_URL, $url); curl_setopt($curl

RE: [PHP-DB] webserver script to localhost MySQL?

2008-03-22 Thread Gary Wardell
Hi, Ok, the warning is a warning and can safely be ignored since this debugging code. It looks like your constant doesn't have a port number so questiuons you need to find out about: Is it trying to connect on the proper port by default? (My guess is no) Or does the define need to be changed

Re: [PHP-DB] webserver script to localhost MySQL?

2008-03-22 Thread gary balkam
thanks. I removed the additional ' at the end and get this error (adding the echo as suggested) http://testgbalkam.ipower.com/baddblog/ 99.252.22.106 Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb/web250/b2508/ipw.testgbalkam/public_html/

[PHP-DB] Prevent global usage of last MySQL-Connection?!

2008-03-22 Thread Fabian Golle
Hey, First of all: My name is Fabian Golle and I'm new to this newsgroup. I'm 16 years old and from Hanau (Germany). I'm currently a student and in my free-time I'm developing Web-Applications. Here's my problem: I've got a class for the Account-System of my Community. The Tables for the Acco