Re: PHP and MySQL
| From: | Doug Thompson | Date: | Wed, 25 Dec 2002 12:41:59 +0000 |
| Subject: | Re: PHP and MySQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24367@lists.php.net to get a copy of this message | ||
The simplest solution is to edit php.ini on your Linux box and set the
parameter register_globals to ON. As of PHP4.2.0 the default setting
is OFF and new "super globals" are available.
A better solution is to update your windows box to the same version of
PHP so that you are programming to the improved security properties.
Here is a good article to explain what's going on and point you to even
more info:
Title: Coding PHP with Register Variables OFF
http://www.zend.com/zend/art/art-sweat4.php
hth,
Doug
On Wed, 25 Dec 2002 13:22:20 +0100, JabMaster wrote:
>Hello,
>
>I have created a website (www.mirax.cz) with a database mysql 3.23.33 and used PHP 4.0.4pl1.
>Everything functions perfect ONLY at my W98. As soon as I want to use the same database exported to
>linux(PHP 4.2.2) or w2000(PHP 4.2.3) both with mysql 3.23.54, it has problems like this:
>
>Notice: Undefined variable: kategorie in c:\inetpub\wwwroot\mirax\search\search.php on line 37
>even if "kategorie" IS defined and the same PHP script works in w98, PHP 4.0.4pl1
>
>
>In w2000 even my simple contact form (NOT USING THE DATABASE) is giving me the same error:
>Notice: Undefined variable: jmeno in c:\inetpub\wwwroot\jab\kontakt.php on line 3 - even if
>"jmeno" is defined and this form works in w98, PHP 4.0.4pl1
>
>
>
>
>WHAT SHOULD I DO ??????
>
>
>Thank you for any suggestions.
>
>
>
>jab
>
>
>
>