Beginner With Php

liunx

Guest
Hello,<br /><br />I'm just starting to play with PHP and I've also been playing around with WordPress for a little while.<br /><br />My site has a WordPress blog in a subdomain (blog.matthewmeyer.net) and I wanted to know if it is possible to use PHP in my regular site (matthewmeyer.net) to reference files from the blog the same way wordpress does.<br /><br />For example, WordPress's index.html file references the header.php, footer.php, index.php, sidebar.php, etc. from whatever them you are using, so you just have to use PHP to place the header or footer or whatever in your page.<br /><br />I'd like to be able to reference the header, footer, sidebar, etc. as well from my main site... sort of to create a portal that leads to my blog as well as other pages... but is built from the same files as my blog.<br /><br />Is this possible?<!--content-->
You should be able to include the files,<br /><br />why not try it<br /><br />include ("blog/header.php");<br />in a test.php file <br /><br /> to see what happens.<br />Thats half the fun <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Welcome to the forum. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Welcome to the forums mattmey <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /><!--content-->
I have been using Wordpress forever and that is too complex for me... LoL Welcome to the boards. Glad to have you!<!--content-->
Welcome to the forums, mattmey! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /><!--content-->
 
Back
Top