Re: [PHP] Re: include help please

2003-08-01 Thread LoonySalmon
nope, it doesn't work. it'll only call up the variables that were specified in my files.inc.php...well so far at least "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote LoonySalmon ([EMAIL PROTECTED]): > > > &g

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
thanks jeff harris, that is exactly what my problem was, now it works good night all thank a million "Jeff Harris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 1, 2003, "LoonySalmon" claimed that: > > |and btw, this is my code n

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
and btw, this is my code now: "Loonysalmon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > well crap, it turns out that i'm back to step 1, but with more code > it won't load up the other files now when defined through the url. i guess >

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
well crap, it turns out that i'm back to step 1, but with more code it won't load up the other files now when defined through the url. i guess that there is something wrong, but what could it be? "Loonysalmon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
for some odd reason, $home wasn't working, so i changed home to main and now it works thanks for all the good support guys/gals? L00NY54LM0N - 16 year old coder in the makin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
if (isset($page)) { include $$_GET['page']; } else { $page = $home; include $page; } would that be right? or should i use if (isset($page)) { include $$_GET['page']; } else { include $home; } hopefully that's right. if so, pretty good for a n00b -- PHP General Mailing List (http://www.php.n

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
ok i have that done, but now i can't just have index.php because i get an error is there anyway where i can check if page is defined in the url? if so, could somebody make me a simple script? this is my first time with php i'm guessing that it would be something like this, but summed up if pa

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
that isn't really what i want i want to have a seperate file where i declare the variables. what i'm getting at here is this, well, take a look at this page: http://l33trus.servebeer.com/site/index.php i just want to include a page into the table where it says that it's included what i'm going fo

[PHP] Re: include help please

2003-07-31 Thread LoonySalmon
lol, yet again i need some more help as you guys can see from the scripts before, i am including a file into a page. now my only problem is trying to include a different file. what i have INDEX.PHP FILES.INC.PHP i want to call up my contact page, but how do i do it? http://localhost/in

[PHP] Re: include help please

2003-07-31 Thread LoonySalmon
thanks everybody now it works "Loonysalmon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i am looking to use includes on my page, > this is the code that i want to use to call my files with: > > INDEX.PHP > > require 'files.inc.ph

[PHP] include help please

2003-07-31 Thread LoonySalmon
i am looking to use includes on my page, this is the code that i want to use to call my files with: INDEX.PHP FILES.INC.PHP I try to load up index.php and this is what i get Warning: main($page) [function.main]: failed to create stream: No such file or directory in C:\swamp\www\site\index.p