Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/drb/public_html/tutorials/php.php on line 1

Warning: include(http://www.daricanboi.com/1a.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/drb/public_html/tutorials/php.php on line 1

Warning: include() [function.include]: Failed opening 'http://www.daricanboi.com/1a.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/drb/public_html/tutorials/php.php on line 1

PHP
                 Hypertext Preprocessor

       PHP

This PHP tutorial, is here to help you have an easier way of coding your sites. It brakes down the amount of time you use to code your site. All you do is keep the info for each web file and INCLUDE a code that will trigger the PHP file that contains all of your main codes, such as images, navigation, css, image maps and more. So when you update your site, all you would have to change is two php files and dats it.

What you should do 1st, is check your hosting provider and make sure they allow php on your server. If they do not allow it, then you can't use it.

Change your content files to php extension. [.html, .htm to .php]
These files should only contain the content info in a DIV. Content such as Bio, Images, Links.....

EX: Your BIO file might look like this:
<?php include ("top.php"); ?>
<div style="position:absolute;top:0px;left:0px;align:left;font-family:arial;font-size:11px;color:#FFFFFF"?>
Bio Content:
Name: Billy Bob
Age: 21
Location: CT 203
</div>
<?php include ("bottom.php"); ?>



Now you have to create the MAIN PHP Files. There will be two. Use Note Pad, or any text editor, and add your codes for "top.php" which will contain all your CSS, Java, Image, Image Maps, Navigation and whatever else that you want to show on all your web files when someone views them.
Now make "bottom.php" here add the codes for whatever you want to show at the bottom of your web files.

Now add this code to top of your content files:
<?php include ("top.php"); ?>
"top.php" example: click

Now add this code to bottom of your content files:
<?php include ("bottom.php"); ?>
"bottom.php" example: click

The "top.php" file will contain all your codes for your Image Layout, CSS, Java, everything that you want to show ABOVE the Div with the content. The code <?php include ("top.php"); ?> will link to that file and when you go to http://yoursite.com/bio.php you will see the entire layout with the Bio Content.

The "bottom.php" file will contain all your codes for whatever you want to show UNDER the Div with the content. The code <?php include ("bottom.php"); ?> will link to that file and when you go to http://yoursite.com/bio.php you will see the the bottom part of the layout.



Questions & Answers
                 ???......."OOOOHHHH"

Question: Why an error is showing?" ex: [ Warning: main(www.daricanboi.com/14.php): failed to open stream: No such file or directory in /home/drb/public_html/frames/davisitor/phptopexample.php on line 1]
Answer: You have to add the "top.php & bottom.php" to the public_html folder, as well as any other folder you are using. For example, if you are using a Portfolio folder, you must add the "top.php & bottom.php" files there aswell.

Question: Do I need the "bottom.php" file?
Answer: No you do not. You can use just the "top.php" file. Only use the "bottom.php" file if you have content that will apper after the Div with the Content.


<- Back
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/drb/public_html/tutorials/php.php on line 59

Warning: include(http://www.daricanboi.com/2a.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/drb/public_html/tutorials/php.php on line 59

Warning: include() [function.include]: Failed opening 'http://www.daricanboi.com/2a.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/drb/public_html/tutorials/php.php on line 59