![]() |
PHP...how does it work for websites?
I've tried finding guides for this on the internet and books in the library, but the way they teach it isn't beginner-friendly IMO.
I'm thinking of changing one of my website's layout to include this, since frames don't look good on the current layout. |
All depends on what you want to do..
basic includes abd be done a couple of ways.. including header / footer info onto your content pages i.e. links to: page1.php, page2.php, etc.. or you can include content into a index (layout) page i.e. links look like: index.php?page=page1, index.php?id=dir/page, etc... Then you can do active page generation using templates and other files (like how PC does it) It's all HOW you want to do it. Basic content include code: PHP Code:
|
Well, there are a couple ways... I'll show you two of 'em. And I'm assuming your friend is using a typical 3 column site with tables.
Code:
Code:
And that's all I have to say... hope that was some help! |
It's still very confusing for me, since I'm self-taught in a lot of things when it comes to computers and websites.
Sorry for the trouble btw. |
PHP, although the say it's a simple language to learn, does confuse a lot of people at first.
So don't feel bad. :P |
Quote:
Once I've learned it, I might try my hands on making a guide that will be simple to understand for beginners with at least some HTML knowledge. |
what we've shown you is very basic and basiclly replaces SSI and/or frames..
it's easy to convert existing pages (framed or ssi) using these codes.. (great if you have lots of existing pages) But php is far more usable in generating active pages, preforming funtions, etc... and you really should read a few books and maybe do a search for tutorials on the web, just to help you understand those overly complex books. |
i can host ya, and then help ya lol
|
pokemon706: I've already got a host for that website. Thanks for the offer anyway.
What's the difference between SSI and PHP? |
http://www.kyletech.us/pokemon-tns/php.php theres a guide i helped write for php includes
|
SSI is an older way of doing the functions that php does. At least that's what I think...
|
Quote:
If you want to extened you knowledge of PHP, I recomend http://www.w3schools.com. |
Oh, I see, I've been wanting to know how to do that for ages! I'll do my Physics project using that XD
|
SSI is server side includes, its got the extension .shtml like Serebii.net or mewshangout.net.
Using PHP is a much more useful and easier way to make a website. Because alot of newspros, cutenews, fusion news use PHP, they need a php page to run properly. Also, I cna probably host you if you ever need a server. But i don't do free hosting usally, i just see potencial in your site. (don't worry i have my own server ,its fast enough lol.) |
Quote:
|
WEll I guess some might work on an shtml page, but meh. Most won't.
|
Coranto does, but my news will be ruined on tables for no reason.
I don't know... |
| All times are GMT -8. The time now is 6:12 PM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.