Changing HTML Files to PHP Files

It's not difficult to install myLounge Redirection, but sometimes it's quite tricky. Post your questions in here.

Moderator: Scooby

Changing HTML Files to PHP Files

Postby ÐiŠtÙrßëл » Sat Mar 08, 2003 9:15 am

How can i amke it so i can use <?include ("home.php") ?> because i amde my site in php and i wana put in the nav bars banner etc.. how would i go about doing so? :) Thank you my site btw is

www.soloplaydf2.com/index.php
Last edited by ÐiŠtÙrßëл on Sat Mar 08, 2003 9:25 am, edited 1 time in total.
ÐiŠtÙrßëл
Newbie
Newbie
 
Posts: 7
Joined: Mon Mar 03, 2003 1:44 am

Postby ÐiŠtÙrßëл » Sat Mar 08, 2003 9:22 am

also the
If you already have a file called "index.php" or "index.html" in your web root,
rename it (for example "index2.php" or better "home.php" or "home.html") and use this one.
You can still use the now called "index2.php"/"home.php"/"home.html" as your default startpage

can i make the index.php page u gave me 2 index2.php and leave my regular index.php alone? :( or does the index.php u gave have to stay index.php? :( :) btw nice setup man :) i fixed it lol i forgot to add a domain why it didnt let me add a sote b4 :)
ÐiŠtÙrßëл
Newbie
Newbie
 
Posts: 7
Joined: Mon Mar 03, 2003 1:44 am

Postby andelal » Sat Mar 08, 2003 7:18 pm

You can rename my index.php to something else, for example "start.php".
But this "start.php" must be the first file called in your webroot.
To do so, you can add the filename to the .htaccess file like this:
Code: Select all
DirectoryIndex start.php index.php index.html index.htm


Alex
User avatar
andelal
Site Admin
Site Admin
 
Posts: 479
Joined: Tue Jan 07, 2003 8:53 pm
Location: Vienna/Austria/Europe

Postby ÐiŠtÙrßëл » Sat Mar 08, 2003 11:48 pm

i goti t kool :)D hey but can i change the standerd template files to php files?
ÐiŠtÙrßëл
Newbie
Newbie
 
Posts: 7
Joined: Mon Mar 03, 2003 1:44 am

Postby andelal » Sun Mar 09, 2003 8:32 am

Yes, but you would have to change every single script...

Alex
User avatar
andelal
Site Admin
Site Admin
 
Posts: 479
Joined: Tue Jan 07, 2003 8:53 pm
Location: Vienna/Austria/Europe

Postby ÐiŠtÙrßëл » Sun Mar 09, 2003 10:38 am

what do u mean every single script? got icq or msn
ICQ: 59695966
MSNM: icepika@hotmail.net :)

i want to run them in php mod :D
i can do all the script of the changing :)
ÐiŠtÙrßëл
Newbie
Newbie
 
Posts: 7
Joined: Mon Mar 03, 2003 1:44 am

Postby andelal » Sun Mar 09, 2003 10:47 am

Why do you want to do so anyway? There is no reason for renaming them.
And I don't have any messenger program.

Alex
User avatar
andelal
Site Admin
Site Admin
 
Posts: 479
Joined: Tue Jan 07, 2003 8:53 pm
Location: Vienna/Austria/Europe

Postby ÐiŠtÙrßëл » Tue Mar 11, 2003 8:13 am

Blarge Never mind... :| do u know how to include a page in php with the basic setup like <?include ("navbar.php") ?> but for html?
ÐiŠtÙrßëл
Newbie
Newbie
 
Posts: 7
Joined: Mon Mar 03, 2003 1:44 am


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron