[PHP-DB] different behaviour with CLI and Apache PHP with database connection

2007-08-26 Thread Jason Cartledge
Hello, I have a problem connecting to an Oracle XE database. Here is my code and the output. [EMAIL PROTECTED]:/var/www/test cat testoci.php getMessage(); } ?> [EMAIL PROTECTED]:/var/www/test [EMAIL PROTECTED]:/var/www/test php testoci.php Logon OK When I navigate

[PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread Richard Lynch
On Fri, August 24, 2007 3:20 am, Goltsios Theodore wrote: >> Please do not encourage the use of $_REQUEST. >> >> You might as well just tell people to enable register_globals again. This is *SO* not correct at all! $_REQUEST[] is merely array_merge($_GET, $_POST, $_COOKIE); It is *NOT* in any w

[PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread mike
On 8/26/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > This is *SO* not correct at all! > > $_REQUEST[] is merely array_merge($_GET, $_POST, $_COOKIE); Yes and it mimics being lazy - allowing overriding values from $_POST vs. $_GET vs. $_COOKIE depending on what the programmer wants to "trust" I

[PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread Richard Lynch
On Sun, August 26, 2007 6:37 pm, mike wrote: > On 8/26/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> It is *NOT* in any way, shape, or form, polluting the global >> namespace >> of all your variables, which is what register_globals is. > > That is why I said it was *one* reason register_globals w

Re: [PHP-DB] $db=new mysqli fails while $db=mysqli_connect succeeds in PHP/MySQL 5

2007-08-26 Thread Chris
Linux NG/Lists wrote: From a php-general thread earlier: generates: Fatal error: Call to undefined function new mysqli() in index.php on line 24 while '; ?> generates success: conn good: Object id #1 :very good indeed The book I'm working with (PHP & MySQL Web Dev, Welling/T

Re: [PHP-DB] different behaviour with CLI and Apache PHP with database connection

2007-08-26 Thread Chris
Jason Cartledge wrote: Hello, I have a problem connecting to an Oracle XE database. Here is my code and the output. [EMAIL PROTECTED]:/var/www/test cat testoci.php getMessage(); } ?> [EMAIL PROTECTED]:/var/www/test [EMAIL PROTECTED]:/var/www/test php testoci.php Lo

[PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread mike
> I'll say it again: > > regsiter_globals has *NOTHING* to do with $_REQUEST. > > Zero. > Zilch. > Nada. > Zip. To me it allows for the same [lazy] behavior. Period. I've had other people agree. Say what you want about it. > No, it only relies on one "Designer" who wants their request to look > l