Warning: include(/home/digitals/public_html/gina/themes/cookiecheck.php) [function.include]: failed to open stream: No such file or directory in /home/digitals/public_html/gina/blog/stuff/webhelp/php.php on line 1
Warning: include() [function.include]: Failed opening '/home/digitals/public_html/gina/themes/cookiecheck.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/digitals/public_html/gina/blog/stuff/webhelp/php.php on line 1
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/digitals/public_html/gina/blog/stuff/webhelp/php.php on line 2
PHP inludes tutorial
PHP includes is very useful when you have alot of pages and you want to upload a new layout. It basically works as this: you have a set design that you save in a PHP file. Then you put a link to each of your subpages linking to the PHP file. The stuff in the PHP file is included in whereever you put a link to it. It makes it soo much easier to update your layout. (this is why I use php) PHP is also better than Iframes because you don't need to deal with scrollbars, and it is faster loading, because frame loading takes time.
Want to try out PHP? this is what you do. :)
go to notepad a make a file of whatever you want.. say you want each of your webpage to have a certain picture... then you would do the
code in your notpad.
save the file with a .php extension.
make another page in notepage with your desired content and put in [?php include ("whatever.php") ?]
*NOTE* REPLACE THE "[" and"]" with "(" and ")" in the place where you want that PHP file (example is your image) to be!!!!
That's it! so simple so easy!!!! Just make sure your host allows PHP.. usually that's the main reason why php wouldn't work on a server.
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/digitals/public_html/gina/blog/stuff/webhelp/php.php on line 14