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 <[EMAIL PROTECTED]> wrote: > plzzz any help is appreciated =( > "Shaggy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php