Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Jason Murray
Use include(). Like ? switch ($page) { case "audio" : include("audio.txt"); break; case "visual" : include("visual.txt"); break; } Greetings, Jason -- Jason Murray Developer http://www.jwebmedia.com/ 1 877 525 jWEB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Philip Olson
Hi Martin, It's important to know that "Stuff" in the Url like this are just variables. For example : foo.php?fruit=applesdog=snoopyothers=huhmore=yep Now with foo.php we can do this (a few exceptions) : echo "$dog would like to each some $fruit"; And in your case, you have $page so

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Phil Driscoll
There are loads of different ways to spit out a text file. The easiest is readfile($Filename) which does exactly what you want, providing that the file already contains sanitised html (eg br instead of newlines etc. If not, you could use fread to get the file contents into a variable and then

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Rick St Jean
This will allow you to have more control over what pages get edited... but you can use something a little easier like... ? $filename= $page . ".php" include ("$filename"); ? At 09:02 PM 3/6/01 +, you wrote: Hi Martin, It's important to know that "Stuff" in the Url like this are just

RE: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Nick Norton
Just put the following instead of a long switch and keep your file naming conventions consistent include("side_$page.txt"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Jon Snell
to insert/select/update to the database the website works with). Jon Snell -Original Message- From: Nick Norton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 3:57 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Please Help!!!! - Really BASIC stuff! Just put the following instead of a l