Re: [PHP] include help please

2003-07-31 Thread Matt Matijevich
INDEX.PHP the problem must be when i am trying to include the $page variable get rid of the ' around the variable. $page = "something.php"; include $page; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include help please

2003-07-31 Thread Chris Shiflett
--- LoonySalmon <[EMAIL PROTECTED]> wrote: > $page = '$home'; ... > Warning: main($page) [function.main]: failed to create stream: > No such file or directory in C:\swamp\www\site\index.php on line > 109 You're trying to include a file named $home, and it doesn't exist. I think you mean this inste

RE: [PHP] include help please

2003-07-31 Thread Dan Joseph
Hi, Take the quotes off around the $page variable. -Dan Joseph > -Original Message- > From: LoonySalmon [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 4:07 PM > To: [EMAIL PROTECTED] > Subject: [PHP] include help please > > > i am looking to

[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

RE: [PHP] PHP Include Help

2002-10-01 Thread Jay Blanchard
[snip] On line "6", I have the list of musicians in the song. Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass vocal" Is there a way to make it so that, when I include line 6 in my PHP template, the ";" will be replaced with a line break so I get one musician per line i

[PHP] Re: PHP Include Help

2002-09-30 Thread Erwin
> On line "6", I have the list of musicians in the song. > Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry - > - bass vocal" > Is there a way to make it so that, when I include line 6 in my PHP > template, the ";" will be replaced with a line break so I get one > musician per

[PHP] PHP Include Help

2002-09-30 Thread Rick Beckman
I have a series of text files that are set up with each line being a different field. Line "0" is song title, "1" is artist, "2" is album, and so forth. I know how to use PHP to include those files in an HTML template so that I don't have to make a separate page for each song, however, I do have t

[PHP] include help

2001-12-15 Thread jtjohnston
I have a mess of variables I HTML from a couple of different scripts, so I combined them into an include.inc. But now, when I do this: $news = mysql_query('select * from ccl where ... order by AU asc'); while ($personne = mysql_fetch_object($news)) { incl