| Anime Oasis Reborn | |||||||||||||||||||||||
![]() | |||||||||||||||||||||||
Sitely
Resources
Layout Templates
Tutorials
Graphics
Premade Layouts
Neopets Graphics
Manga Reviews
Network
Siblings
Affiliates
Link Exchange
Credits/Disclaimer
|
PHP Includes
Yeah, there is a million tutorials out there on PHP includes, what makes ours different? Well, we plan on breaking it down a little more, giving you more options, and how to fix possible errors rather then throwing the code at you and saying "insert url here". What does a PHP include do? The basic idea is to place another page/code on another page or more then one page. There is more then one code to do this with. The most common PHP include:
<?PHP Another way you can write this that you dont normally see is replacing the word Include for Require. It would look like this:
<?PHP Urls...you must place an url inside where it says URL HERE, otherwise it wont work. How this url is wrote however can be importnt with many hosts. (this is the most common way to fix the error when you type http://www. and it doesnt work) Most people are used to writting http://www.domain.com this doesnt always work. Sometimes you must use the direct link right off your server. But what do I mean by this? Lets say...we have 2 folders and 3 files in both so it would look like this...
<?PHP But...the dog is a folder up...I can't have it "dhome.php", it shows up as not avaiable or not existing. ../ Is a command that tells you to move up one folder. We need to go to the main folder and then to the Dog folder then to the page. (up to main - > Dog -> dhome.php)
<?PHP
<?PHP |
||||||||||||||||||||||