Re: [PHP3] 2 Quick Questions ( i hope ) From: Richard Lynch (rlynch <email protected>)
Date: 08/31/99

At 08:07 PM 8/31/99 -0400, you wrote:
> How do cause a PHP3 script to be run in a separate directory than
>the one I am currently in.

Move it to a different directory?
Seriously, if you think you have to do system("cd") you are probably doing
something else wrong.

> Perl allows you to do something like a system() function but i
>cannot seem to figure out how
> to get PHP3 to do it.

What part of
http://www.php.net/manual/function.system.php3
are you not understanding?

> The reason is because we have some graphics
>that are in a directory
> relitive ot a script. but everytime i include the script the
>graphics are broken. I would hard
> code them but this breaks the script on our stageing server

Are the two server structures not parallel?!
If so, the graphics should work the same on both. If not, fix your staging
server.

> Also is there a way using php3 to generate an SQL data data type
>using the date function?

How can I format PHP dates to be accepted by <insert your database package
here>.

A little experimentation and reading of docs about your database package
would answer it.

-- 
"TANSTAAFL"  Websites I have built:
CHaTMusic.com      EmphasisEntertainment.com     L-I-E.com
JadeMaze.com       CatCatalani.com               MGMH.com
AstraKelly.com     OlivierLedoux.com

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>