I wrote the code.

Here's what's wrong:

You probably have a misconfigured PHP.ini file (it's really common).  You
need to set the variable in your php.ini file to false like this:
register_syntax_checking = "false";

That way PHP won't need to perform any syntax checking on the php code.
I've found that the PHP scripts are roughly 15 times faster.

Mind you, you really have to know what you're doing before you start editing
the php.ini file.

In fact I recommend that you don't change your php.ini file without backing
it up first.





















and if you've gotten this far, then please don't change your php.ini file.



-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 5:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: PHP should know my data!


One possibility could be that your register_globals is off...maybe.

David



-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of J. Cox
Sent: Thursday, July 24, 2003 8:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP should know my data!



"Chris Hubbard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hmm.  You're right.  Maybe something like the following would help:
>
> <?php
> if ($_SESSION["irony"])
> {
> $rs = enjoyJoke($_POST["msg"])
> }else{
> $rs = fixProblem($_POST["msg"])
> }
> echo "<h3>". $rs ."</h3>";
>
> ?>

This isn't working in Windows.  Anyone know why?




--
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


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

Reply via email to