Re: [PHP] Here is a silly question

2006-04-04 Thread Tom Chubb
Great - thanks Chris - that's the answer I've been looking for! On 04/04/06, Chris <[EMAIL PROTECTED]> wrote: > > Mace Eliason wrote: > > Hi, > > > > This is come thing that I have struggled with now and again. I usaually > > us php code to make it work, but was wondering how others deal with t

Re: [PHP] Here is a silly question

2006-04-03 Thread Chris
Mace Eliason wrote: Hi, This is come thing that I have struggled with now and again. I usaually us php code to make it work, but was wondering how others deal with this I use includes in most of the web applications that I work on to include the header, footer, menu etc. The problem that

Re: [PHP] Here is a silly question

2006-04-03 Thread Wolf
Well, it did, looks like someone's having server issues or forgot to pay the bill. Anyways, here's Google's cache of it: http://72.14.203.104/search?q=cache:cFUJ1uuABpkJ:smarty.php.net/+php+SMARTY&hl=en&gl=us&ct=clnk&cd=1&client=firefox-a tedd wrote: > At 5:56 AM +1000 4/4/06, Peter Hoskin wrote

Re: [PHP] Here is a silly question

2006-04-03 Thread Peter Hoskin
Site must be down... search google for site:smarty.php.net Believe me, it does exist. tedd wrote: At 5:56 AM +1000 4/4/06, Peter Hoskin wrote: Nobody else has mentioned it, so I thought I would. http://smarty.php.net - PHP Templating Engine And that goes somewhere? tedd -- PHP General

Re: [PHP] Here is a silly question

2006-04-03 Thread tedd
At 5:56 AM +1000 4/4/06, Peter Hoskin wrote: Nobody else has mentioned it, so I thought I would. http://smarty.php.net - PHP Templating Engine And that goes somewhere? tedd -- http://sperling.com -- PHP Genera

Re: [PHP] Here is a silly question

2006-04-03 Thread Peter Hoskin
Nobody else has mentioned it, so I thought I would. http://smarty.php.net - PHP Templating Engine Mace Eliason wrote: Hi, This is come thing that I have struggled with now and again. I usaually us php code to make it work, but was wondering how others deal with this I use includes in most

Re: [PHP] Here is a silly question

2006-04-03 Thread tedd
At 9:54 AM -0600 4/3/06, Mace Eliason wrote: Hi, This is come thing that I have struggled with now and again. I usaually us php code to make it work, but was wondering how others deal with this I use includes in most of the web applications that I work on to include the header, footer, men

Re: [PHP] Here is a silly question

2006-04-03 Thread David Tulloh
I put all the generic include files such as the header and menu in their own directory. Then I put that directory in the include_path ini variable. I would normally set it in the virtualhost file but .htaccess should work as well, you can even set it in the script. This means I can simply includ

Re: [PHP] Here is a silly question

2006-04-03 Thread Tom Chubb
I'm very interested to see the best option for this. Currently I set 2 variables in the include file (header.inc) $siteurl = "http://www.yourdomain.com/ "; $pathto = "/home/location_on_server/public_html/"; Then for includes I do something like: include($pathto."fu

Re: [PHP] Here is a silly question

2006-04-03 Thread Wolf
works like a charm for me, but your mileage may vary depending on who has set up your website and what server it is being run on. FYI: I build my menu's with HTML and javascript, hence the .html call, but it should be fine as php as well. Robert Philip Thompson wrote: > I'm not exactly sure...

Re: [PHP] Here is a silly question

2006-04-03 Thread Philip Thompson
I'm not exactly sure... but I think that include() may not work this way: I don't think it knows to go to the root and then look for menu.php. That's why you have to tell it exactly where the menu.php is found - 1 level back: Maybe it should be labeled as a bug? Hehehe! ;) ~Philip

Re: [PHP] Here is a silly question

2006-04-03 Thread Philip Thompson
On Apr 3, 2006, at 10:54 AM, Mace Eliason wrote: Hi, This is come thing that I have struggled with now and again. I usaually us php code to make it work, but was wondering how others deal with this I use includes in most of the web applications that I work on to include the header, foo

Re: [PHP] Here is a silly question

2006-04-03 Thread Wolf
I tend to stick "/nav/header.php" in for my includes, since I control the server. As long as the site translates root to the main directory of your website and not somewhere else, you can always have your links be "/menu.php" as server-speak "/" means rootme. I also use "/" in my href links in my

Re: [PHP] Here is a silly question

2006-04-03 Thread Sudheer S
Hello, I refer to the target file like this: Solves the problem. Sudheer. S On Mon, 2006-04-03 at 09:54 -0600, Mace Eliason wrote: > Hi, > > This is come thing that I have struggled with now and again. I usaually > us php code to make it work, but was wondering how others deal with this >

[PHP] Here is a silly question

2006-04-03 Thread Mace Eliason
Hi, This is come thing that I have struggled with now and again. I usaually us php code to make it work, but was wondering how others deal with this I use includes in most of the web applications that I work on to include the header, footer, menu etc. The problem that I always run into as