PDA

View Full Version : Repeating navagation script.


LohTek
11-09-2006, 05:12 PM
Im experementing with CSS and html, Im wondering if PHP would make it possable to create a sort of variable file where i can hold my navagation stuff in one single place so i dont have to alter every page every time i add stuff to sidebar navigation.

mark87
11-09-2006, 05:26 PM
Yup PHP can easily do that.

<? include("navigation.txt"); ?>

In navigation.txt you would have the HTML code for the menu. :)

LohTek
11-09-2006, 05:40 PM
Very cool.. Im going to start learning php :thumbsup:

LohTek
11-09-2006, 05:45 PM
Oh no, whats wrong with php.net?

mark87
11-09-2006, 06:00 PM
Oh no, whats wrong with php.net?

Nothing? :confused:

LohTek
11-09-2006, 06:12 PM
php.net is saying page cannot be displayed!

mark87
11-09-2006, 06:32 PM
It's working for me :/ You could have a look on http://www.w3schools.com/php/default.asp and http://www.phpfreaks.com/ for the time being; there's so much about PHP on Google - it's a very popular language. :)

LohTek
11-09-2006, 06:33 PM
im looking for the binaries i even tried UK php.net servers, there not working.

LohTek
11-09-2006, 06:53 PM
Whoohoo.
http://ftp.wayne.edu/php/

mark87
11-09-2006, 07:06 PM
Oh! I was going to say this a while ago but my computer died as I was typing it...

If you don't already have Apache etc, then just grab a copy of http://www.apachefriends.org/en/xampp-windows.html - it contains everything you need (PHP, Apache, MySQL etc) in one easy install. :)

LohTek
11-09-2006, 07:37 PM
Thanks, i got it. man php reminds me alot of C or C# im not sure which, but, its alot more natural than HTML/CSS, and its powerful.. Im doing stuff that just isnt possable with HTML/CSS from newbie tutorials.

mark87
11-09-2006, 07:48 PM
Yup it's very powerful. Well (X)HTML/CSS is for layout and design; PHP is server side so you can create much more dynamic sites etc.