[PHP] Troubleshooting mail() and sendmail

2003-06-17 Thread Daniel R. Hansen
Does anyone have any tips for general troubleshooting of mail()? The standard *nix mail command works fine from the command line, but php scripts that use php's mail() run very slowly -- then the mail ends up not getting send. I assume I have something misconfigured for sendmail but am not

[PHP] Call to undefined function: mysql_connect()

2003-06-15 Thread Daniel R. Hansen
This is driving me buggy... I just upgraded to RH 8 which included an Apache 2.0 update. PHP and MySQL work OK independently; I can call mysql_connect() from the command line, but an attempt to do so from a script within Apache returns a Fatal error: Call to undefined function: mysql_connect()

[PHP] Constants and Here Document Interpolation

2003-03-01 Thread Daniel R. Hansen
Can anyone tell me if it is possible (and how) to use defined constants within here document content? I've not been successful finding anything on this in the online docs. Thanks! Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FW: [PHP] Constants and Here Document Interpolation

2003-03-01 Thread Daniel R. Hansen
Actually I did try it and couldn't think of a way to work around the matter. Thanks for the suggestion. -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 12:56 PM To: Daniel R. Hansen Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Constants

FW: [PHP] Constant Arrays Possible?

2003-02-23 Thread Daniel R. Hansen
that uses its data. -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 6:56 AM To: Daniel R. Hansen Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Constant Arrays Possible? At 20:28 22.02.2003, Daniel R. Hansen said

[PHP] Constant Arrays Possible?

2003-02-22 Thread Daniel R. Hansen
Is it possible to define a constant that is an array of other predefined constants? If so, what would the syntax be? I'm trying something like the following (all items prefixed with an uppercase G are constants) without success: define(GaNavButtons, array( GnavSectionHome = array (

RE: [PHP] Sitewide Header Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread Daniel R. Hansen
I do the following and it seems to work OK: I put the following two lines at the top of each script: $defsPath = [my include path]defs/; include_once($defsPath.globals.php3); ...and later a call to a function I wrote ( printNavLinks() ) that outputs whatever I want in the

FW: [PHP] Sitewide Header Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread Daniel R. Hansen
As long as your headers/footers are static, you could define them as constants, include just the script that defines the constants, and do a print(SOME_FOOTER_NAME); where you want them to appear. -Original Message- From: CF High [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003