[PHP-DB] Magic Quotes

2002-06-14 Thread Bruce Vander Werf


Frankly, I've never quite gotten the whole quoting thing in PHP.

If magic_quotes_gpc is turned on in the environment:

1. I don't see slashes in any form variables outputted with echo() or
print() Does this mean that these functions effectively remove the slashes?

2. After posting the form variables, I don't see slashes when I view the
MySQL data in phpMyAdmin?

3. I do see slashes in e-mail messages sent with mail() using these
variables.

4. Why would you need to add slashes to anything put in a mysql database?

Can someone shed some light on what is going on?

--
Bruce Vander Werf
[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Executing Queries from a File Using PHP

2002-06-13 Thread Bruce Vander Werf


Thanks. Since it would take me forever to write, and I don't know thing well
enough to make sure I have all the possibilities covered, I was hoping there
was some source code somewhere I can use.

--Bruce

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Executing Queries from a File Using PHP


On Thursday 13 June 2002 10:48, Bruce Vander Werf wrote:
 Is there a PHP routine anywhere to execute a series of MySQL queries in a
 text file?

 I know how to do this via the command line or by using PHPMyAdmin, but I
 need to do it in my own PHP script, and some of the queries span more than
 one line.

There are no built-in functions to do so. You need to read in the file
yourself, parse it appropriately then send the queries to mysql.

--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
Thank you for observing all safety precautions.
*/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Executing Queries from a File Using PHP

2002-06-12 Thread Bruce Vander Werf


Is there a PHP routine anywhere to execute a series of MySQL queries in a
text file?

I know how to do this via the command line or by using PHPMyAdmin, but I
need to do it in my own PHP script, and some of the queries span more than
one line.

--
Bruce Vander Werf
[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php