Re: [PHP] RE: [PEAR] PHP5 and XML-RPC -=|=- DON'T USE "system." at start of RPC methodName!

2004-08-06 Thread Jough P
nt->setDebug(1); // helps! $msg = new XML_RPC_Message('system.Load', array(new XML_RPC_Value("test string"))); $result = $client->send($msg); if($result->faultCode()) { // we have an error echo "Error Code: " . $result->faultCode() . ""; e

[PHP] Re: [PEAR] PHP5 and XML-RPC

2004-08-06 Thread Jough P
o error, you should get some decoded value out print XML_RPC_decode($result->value()); } // always use {} with control structures, if you don't it will bite you in the ass eventually... // and remember to turn on debugging to see what's going on... hope this helps, Justin -O

Re: [PHP] Update mysql.so problems

2004-07-21 Thread Jough P
using the mysql 3.23 client API. I've upgraded the dev server and my laptop to have PHP5 and MySQL 4 successfully but can't manage to get PHP5 to use the MySQL 4 client API. On Jul 20, 2004, at 6:47 PM, Jough P wrote: Greetings all, I upgraded to MySQL 4 on a Redhat Enterprise box. I

[PHP] Update mysql.so problems

2004-07-20 Thread Jough P
Greetings all, I upgraded to MySQL 4 on a Redhat Enterprise box. I recompiled PHP 4.3.6 and a look at phpinfo() reveals that the old mysql client API is still being used. So, I moved the mysql.so to my home directory hoping that when did ./configure and make again it would create a new one.

Re: [PHP] SOLVED: ImageCopyResized works on JPG but not PNG?

2004-07-09 Thread Jough P
yup, you were right. I was naming the image "image.png.png". DOH! been a long week Thanks!! On Jul 9, 2004, at 6:42 PM, Jason Wong wrote: On Saturday 10 July 2004 06:38, Jough P wrote: Greetings all, I have a real simple function. I works well on JPG images but ImageCopyRes

[PHP] ImageCopyResized works on JPG but not PNG?

2004-07-09 Thread Jough P
Greetings all, I have a real simple function. I works well on JPG images but ImageCopyResized(), or ImagePNG() doesn't seem to be working. When I view the uploaded file it is still it's original size. Here is the function. I hope someone can help me, I'm pretty stumped. function transfor

Re: [PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Jough P
. After looking at the output of phpinfo() I saw that pcre was still enabled. Don't know why it was causing errors though. But at least it's solved!! On Jul 2, 2004, at 1:19 PM, Jough P wrote: Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box. I get thro

[PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Jough P
Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box. I get through ./configure fine but during the make I get errors like this: ext/pcre/php_pcre.lo(.text+0x2e38):/home/jough/php-5.0.0RC3/ext/pcre/ php_pcre.c:1482: undefined reference to `php_pcre_exec' collect2: ld returned 1

[PHP] No MySQL in Fedora?

2004-06-25 Thread Jough P
Greetings all, just installed Fedora with the bundled PHP Version 4.3.4. Upon calliing mysql_* functions I get errors like: Fatal error: Call to undefined function: mysql_pconnect() blah blah blah A call to phpinfo() reveals it was configured with: --with-mysql=shared,/usr' And doing a "locate m

[PHP] addslashes

2004-06-11 Thread Jough P
Greetings all, I'm doing all my PHP development on my iBook running OS X. I'm currently working on a messaging tool for a website. When the messages are posted on my iBook the single quotes are escaped properly. When I upload the same *.php files to the server the single quotes are preceded

Re: [PHP] PEAR/MySQL woes: Function registration failed - duplicate name

2004-06-01 Thread Jough P
Hrm, I restarted apaches and got the following: [warn] module php4_module is already loaded, skipping Is there a way to restart the PHP DSO? On Jun 1, 2004, at 8:56 AM, Jough P wrote: Installed a new PHP last night because I wanted to start using PEAR. When I use 'pear' from the comm

[PHP] PEAR/MySQL woes: Function registration failed - duplicate name

2004-06-01 Thread Jough P
Installed a new PHP last night because I wanted to start using PEAR. When I use 'pear' from the command line a few funny things happen. Among them are a bunch of errors like the following: PHP Warning: Function registration failed - duplicate name - mysql_connect in Unknown on line 0 PHP Wa

[PHP] Cannot find MySQL header files under

2004-05-31 Thread Jough P
Greetings, when compiling PHP with the 'with-mysql' option I get an warning against using the built-in mysql support. So, I tried '--with-mysql=/path/to/mysql.so and got the following error: Cannot find MySQL header files under... What are the names of the mysql header files this message is tal

Re: [PHP] Back Button produces Parse Error

2004-03-11 Thread Jough P
Just in case anyone is interested, this problem with the BACK button happens with the Safari browser on a Mac OS X machine. I've discovered that the problem can be solved by emptying the browsers cache. On Mar 8, 2004, at 7:43 PM, Jough P wrote: Anyone else had this problem where one of

[PHP] Back Button produces Parse Error

2004-03-08 Thread Jough P
Anyone else had this problem where one of your PHP pages produces some output for a user to click on. The user clicks on one of these links which causes some behavior, then clicks their browsers BACK button. Now the original PHP page is producing a parse error. My particular parse error says:

[PHP] Re: SOLVED: [PHP] Undefined offset

2004-03-01 Thread Jough P
10:15 AM, Raditha Dissanayake wrote: could be your $i > length of array Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "user") I assume the 'offset' that is

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
I've used both the 'sizeof' functions and 'count' On Mar 1, 2004, at 10:03 AM, Stuart wrote: Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == &q

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
Oops, in my previous email I meant to say "Here's the WHOLE function". sorry about the typo, hope I didn't confuse... On Mar 1, 2004, at 9:58 AM, Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while ins

[PHP] Undefined offset

2004-03-01 Thread Jough P
Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "user") I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. Here's the while function: function draw() { e

Re: [PHP] Image Quality Depreciation with GD

2004-02-17 Thread Jough P
imagecreatetruecolor() helps a lot! thanks very much!! On Feb 17, 2004, at 4:48 PM, craig wrote: Greetings, all. I'm trying to upload and crop an image. I'm not able to do it without the quality of the image suffering. I've fiddled with the quality parameter in the imagejpeg function but i

[PHP] Image Quality Depreciation with GD

2004-02-17 Thread Jough P
Greetings, all. I'm trying to upload and crop an image. I'm not able to do it without the quality of the image suffering. I've fiddled with the quality parameter in the imagejpeg function but it seems to have no effect. I've tried varying values and leaving the parameter out altogether. An

Re: [PHP] SOLVED - LOAD_FILE and PHP

2004-01-16 Thread Jough P
Thank you everyone for you fabulous help!!! btw, the FILE privilege is a global privilege, and as such needs to be in the *.* context. It does not work on a db-level. On Jan 16, 2004, at 4:08 PM, Jough P wrote: OMG I'm sure that's why I'm having problems. Do you know the synta

Re: [PHP] LOAD_FILE and PHP

2004-01-16 Thread Jough P
: On Saturday 17 January 2004 03:44, Jough P wrote: On Jan 16, 2004, at 9:12 AM, Jough P wrote: Greetings all, I can't get LOAD_FILE to work in an INSERT statement from PHP. The generated sql works when you're in mysql but won't work from PHP. Are you using the same user in both

Re: [PHP] LOAD_FILE and PHP

2004-01-16 Thread Jough P
Greetings all, I'm still having problems with LOAD_FILE. If anyone is using it and could post some examples that would be fabulous. Thanks tons!!! On Jan 16, 2004, at 9:12 AM, Jough P wrote: Greetings all, I can't get LOAD_FILE to work in an INSERT statement from PHP. The gen

Re: [PHP] LOAD_FILE and PHP

2004-01-16 Thread Jough P
lt_smiley.png")); does what I want it to do. On Jan 16, 2004, at 9:38 AM, John W. Holmes wrote: Jough P wrote: Greetings all, I can't get LOAD_FILE to work in an INSERT statement from PHP. The generated sql works when you're in mysql but won't work from PHP. BSDB is my dat

[PHP] LOAD_FILE and PHP

2004-01-16 Thread Jough P
Greetings all, I can't get LOAD_FILE to work in an INSERT statement from PHP. The generated sql works when you're in mysql but won't work from PHP. BSDB is my database object. sql_query basically just does a mysql_query and some error outputting stuff. There error is: Column 'photo' cannot be