Re: Re: Apache 2.0.44; PHP 4.3.0; CGI implemented WinXP Home
| From: | toby z | Date: | Mon, 03 Feb 2003 18:56:29 +0000 |
| Subject: | Re: Re: Apache 2.0.44; PHP 4.3.0; CGI implemented WinXP Home | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18333@lists.php.net to get a copy of this message | ||
hay shaggy
2 solutions
1. risk .... turn ur registerglobals on in ur php.ini since its off
by default
2. on the page where ur catching ur variable
vatdh it as
if ($_GET['site'])
$site="events";
shaggy if u dont change ur code now and keepgoin with register
globals off u ll end up in a mess ..... i know this cuz it actually
happened to me 7 months ba ok
for security puroses ull ve 2 turn register globals off eventually
.....
so do the right thig now pal
good luck
toby ...
--- Shaggy <shagg2k@gmx.net> wrote: > plzzz any help is appreciated
=(
> "Shaggy" <shagg2k@gmx.net> schrieb im Newsbeitrag
> news:20030201004758.22942.qmail@pb1.pair.com...
> > Hi there =D;
> >
> > i got the following problem:
> >
> > When i want to use variables in URLs
> > for example:
> > http://192.168.0.1/Treff/index2.php?site=events
> >
> > i got this error:
> > Warning: main(.php) [function.main]: failed to create stream: No
> such file
> > or directory in c:\stuff\homepage\treff\index2.php on line 34
> >
> > Warning: main() [function.main]: Failed opening '.php' for
> inclusion
> >
>
(include_path='.;c:/stuff/homepage/treff;c:/stuff/homepage/magus;c:/stuff/ho
> > mepage/bgallery') in c:\stuff\homepage\treff\index2.php on line
> >
> > i discovered that the $site variable is empty
> > next is my php.ini
> >
> > it seems, that there are workarounds
> > with some kind of magicvariables but i don´t want to change my
> code
> > so plzzzzzzz do u have any suggestions?
> >
> > thx so far
> > Shaggy
> >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com