View Full Version : pHp website help
03-16-2010, 09:20 AM
i wanted to make a php website but im still new on all of this, i want to ask how do i make my php website like this?
i dont get how they do it... i can make a index.php but "?site=news" is what? any tutorial for me? so i know how to make this kind of website
03-16-2010, 09:56 AM
Take a look at http://www.digital-web.com/articles/easypeasy_php_2/
03-16-2010, 01:31 PM
Basically there isnīt much difference between
While the second solution simply accesses the file somefile.php, the first solution has in its index.php an if() or switch, checking something like
if($_GET['site'] == "news")
The advantage of this is, that the index.php can include other stuff, like checking login or cookies, loading a menu, etc., before including the page.
03-17-2010, 04:22 PM
i see.. i hope i can sort it all with both of your answer, i will come back here if i cant figure it out :)
thanks alot guys :D
05-08-2010, 04:12 PM
sorry to bump old topic but i saw some website got this kind of extention.
what is the different between above link and
sorry for asking this dumb question but i hope someone can make me clear what is that diffrent :)
05-08-2010, 04:48 PM
index is always processed if present .co.uk/ is the same as .co.uk/index.php also .co.uk/index.php?foo=bar is the same as .co.uk/?foo=bar
And for a guess ( not realy know ) #!/ can be applied to any url and is related to the name of an anchor.
05-08-2010, 05:01 PM
then how to hide the index.php from the broswer? i mean like how to do from
05-08-2010, 06:28 PM
05-08-2010, 08:11 PM
fastest solution! thank phil :)
u really is my master ^^
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.