RE: [PHP] to connect an access database,

2002-10-15 Thread Negretti, John (CCI-San Diego)

Andy,

As, Jon stated, you would need to use the built-in ODBC functions of PHP.  
Keep in mind that "SQL Statements" are NOT the same as for MySQL.  There are plenty of 
resources on the internet that show you how to format your SQL Statements just for 
Microsoft Access.

John Negretti
Web Applications Developer
Cox Communications www.cox.com
(619) 266-5565

 

> -Original Message-
> From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 8:34 AM
> To: 'Ns_Andy'; [EMAIL PROTECTED]
> Subject: RE: [PHP] to connect an access database,
> 
> 
> Hi Andy,
> 
> > which method and object should I use?
> 
> AFAIK you have to connect over ODBC (unless PHP has grown 
> native Access
> functions since I last looked).
> 
> Here's a function that might be of interest:
> http://www.php.net/manual/en/function.odbc-connect.php
> 
> > and may I have some related examples?
> 
> There should be some on that page.
> 
> Cheers
> Jon
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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




RE: [PHP] "global" AND Register Globals with PHP 4.0.6 ??

2002-10-14 Thread Negretti, John (CCI-San Diego)


What is the difference?
I can't seem to find documentation.
Thanks.

John Negretti
Web Applications Developer
Cox Communications www.cox.com
(619) 266-5565

 

> -Original Message-
> From: Sascha Cunz [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 14, 2002 8:06 AM
> To: Negretti, John (CCI-San Diego); [EMAIL PROTECTED]
> Subject: Re: [PHP] "global" AND Register Globals with PHP 4.0.6 ??
> 
> 
> Am Montag, 14. Oktober 2002 16:51 schrieb Negretti, John 
> (CCI-San Diego):
> > Hello,
> >
> > I need to access the "$HTTP_GET_VARS" and 
> "$HTTP_COOKIE_VARS" arrays
> > within a function.  In order to do this I have to pass 
> $HTTP_GET_VARS as a
> > parameter of the function.  How can I access these built-in 
> arrays without
> > passing it as a function parameter.  Should I define them 
> as a "global"
> > variable.  I read that "register globals" has some security 
> issues.  Are
> > these the same, or is setting a variable as "global" and 
> "register globals"
> > different?  NOTE: I am using PHP 4.0.6.  Thanks for any 
> assistance. :-)
> >
> > John Negretti
> > Web Applications Developer
> > Cox Communications www.cox.com
> 
> Just declare them as a global in your function. The "register 
> globals" 
> settings is some different thing.
> 
> Sascha
> 

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




[PHP] "global" AND Register Globals with PHP 4.0.6 ??

2002-10-14 Thread Negretti, John (CCI-San Diego)

Hello,

I need to access the "$HTTP_GET_VARS" and "$HTTP_COOKIE_VARS" arrays within a 
function.  In order to do this I have to pass $HTTP_GET_VARS as a parameter of the 
function.  How can I access these built-in arrays without passing it as a function 
parameter.  Should I define them as a "global" variable.  I read that "register 
globals" has some security issues.  Are these the same, or is setting a variable as 
"global" and "register globals" different?  NOTE: I am using PHP 4.0.6.  Thanks for 
any assistance. :-)

John Negretti
Web Applications Developer
Cox Communications www.cox.com


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




[PHP] MAIL taking 60 seconds to send... (too long)

2002-10-07 Thread Negretti, John (CCI-San Diego)

Hello All,

I have a script which is using mail() to send an e-mail message.  It seems to 
be working, yet taking as long as 60-65 seconds just to send the e-mail.  The e-mail 
has no attachments and only has one line in it.  Does anyone have experience with this 
issue.  I am using "PHP/4.0.6" on "Linux Redhat" with "Apache/1.3.22".  Also, not to 
mention when I test it with IIS, I get a "Failed to Receive" error.  Thanks for any 
help.

John Negretti


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