abcdabcd Posted March 13, 2008 Share Posted March 13, 2008 I have an html page and want to put PHP at the bottom of the page below all the content, images, etc.. Thanks! Quote Link to comment Share on other sites More sharing options...
frijole Posted March 13, 2008 Share Posted March 13, 2008 <html> //all of your HTML stuff goes here //anywhere you want a php statement use these <?php you would put whatever PHP you want inside of these, it can go anywhere in your html ?> you will have to change the extension of your page to .php though, or they will not be noticed as PHP by the browser. Quote Link to comment Share on other sites More sharing options...
unsider Posted March 13, 2008 Share Posted March 13, 2008 like a footer? // html code <div id='footer'> // define properties, place at bottom, etc.. <?php // code here, displayed at bottom ?> </div> I think you may need to do some more reading you don't know how to place php at the bottom of a page. Sorry if that came off as rude. Quote Link to comment Share on other sites More sharing options...
Northern Flame Posted March 13, 2008 Share Posted March 13, 2008 you will have to change the extension of your page to .php though, or they will not be noticed as PHP by the browser. not really, you can just make setup your server to read php in html by way of mime types. Quote Link to comment Share on other sites More sharing options...
Caesar Posted March 13, 2008 Share Posted March 13, 2008 If changing to pages with PHP extensions is not an option, you can tell Apache (Assuming you're a winner and you're not using something horrible like IIS) to parse PHP in html pages. You'll need to make that change server side so you'll need root access. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 13, 2008 Share Posted March 13, 2008 (Assuming you're a winner and you're not using something horrible like IIS) LOL Quote Link to comment Share on other sites More sharing options...
abcdabcd Posted March 13, 2008 Author Share Posted March 13, 2008 Thanks for all the replies, what if the php is above the html content? Do I use the same method: <html> //all of your HTML stuff goes here //anywhere you want a php statement use these <?php you would put whatever PHP you want inside of these, it can go anywhere in your html ?> Quote Link to comment Share on other sites More sharing options...
defeated Posted March 13, 2008 Share Posted March 13, 2008 Yup. Your <?php blah blah blah ?> can go anywhere on the page. It sounds like you are about at the same stage as I am with php so keep things simple and call all your pages with php in them '.php' rather than anything else. The other comments are just showing off!!! Quote Link to comment Share on other sites More sharing options...
Northern Flame Posted March 13, 2008 Share Posted March 13, 2008 you can do this: <?php /* run your PHP script.... */ ?> <html> <!-- display HTML content --> </html> or it can be like this too <html> <!-- some html --> <?php /* some PHP */ ?> <!-- more HTML --> </html> Quote Link to comment Share on other sites More sharing options...
abcdabcd Posted March 13, 2008 Author Share Posted March 13, 2008 Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.