[PHP] PHP adding slash to MySql results

2002-12-06 Thread Kevin Lowe
Hi, I have just noticed a problem reading MySql data with PHP running as an apache module. Basically, any data retrieved from MySql that contains a single quote (and no doubt other characters too) is displayed with a slash in it when printed by PHP. For example: $surname = O'Brien; print

[PHP] Re: PHP adding slash to MySql results

2002-12-06 Thread Kevin Lowe
Forgot to say this is running in FreeBSD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP adding slash to MySql results

2002-12-06 Thread Kevin Lowe
Hi Marek, That is switched off. However, I was just having another look at the problem, and, it actually appears to be fixed! I didnt shange anything, so the ISP must have done something? Thanks, Kevin Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: How to give parameters to a console php-script?

2002-12-02 Thread Kevin Lowe
Hi, I want to do the same under unix:- php myscript.php4 myparameter but the PHP CGI supplied by my ISP has register_argc_argv switched off. Is there any other way to access command line parameters when register_argc_argv is off? Thanks, Kevin -- PHP General Mailing List

[PHP] Re: How do I include specific files?

2002-12-02 Thread Kevin Lowe
Hi Roddie, The require or include functions will do this for you, see http://www.php.net/manual/en/function.include.php Paths are absolute to the file system, not where the web server path starts, eg suppose your file is at /usr/home/www/riddie/phpscripts/somedir/script.php you would include a

[PHP] php cgi problem on RH linux

2002-06-10 Thread Kevin Lowe
Hi, I have a RH 7.2 server with php 4.1.2 installed as a CGI. I'm trying to run this script #!/usr/local/phpcgi/bin/php -q ? print hello; ? I get this as output: [root@dev bin]# ./test.php Error in argument 1, char 3: option not found Error in argument 1, char 3: option not found Usage: php

[PHP] php on *nix Worldpay

2002-05-29 Thread Kevin Lowe
Hi, Has anyone interfaced to Worldpay using php running on Unix/Linux? Worlp pay have a COM interface but thsi is only avaliable if PHP is running under windows, so I was wondering if there is another way? Thanks, Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Parse Error(newbie)

2002-05-29 Thread Kevin Lowe
Hi JJ, Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a previous line, in this case PHP often reports the parse error as being the line where the next ; is? EG $var1 = x $var2 = y; This will show an error on the second line. KEvin