Two questions

From: Date: Thu, 18 Jan 2001 10:30:46 +0000
Subject: Two questions
Groups: php.windows 
Request: Send a blank email to php-windows+get-5090@lists.php.net to get a copy of this message
I'm a newcomer to PHP, and I'm trying to use it to simplify the process of creating an HTML help file. I have two questions: the first is, is there any way to change the newline string that the "\n" escape produces? At the moment it is outputting 0x0A, while I would prefer it if it would produce 0x0D 0x0A. My second question is related to the following .php source: <?php include( myinc.php ) myfunc(); /* myfunc defined in myinc.php */ ?> <b>Normal HTML stuff goes here</b> <?php include( myinc.php ) myfunc(); ?> The problem is that this produces an error message from the second include(): Fatal error: Cannot redeclare myfunc() in myinc.php on line 2 However, if I remove this second include statement, then the second php script doesn't appear to call myfunc(). Can anyone help? Thanks in advance, Andrew --------------------------------------- This message was sent mekong webmail. https://mekong.southcom.com.au/mailman/

« previous php.windows (#5090) next »