Page 1 of 1

php get page

Posted: Sat Sep 03, 2005 7:30 pm
by mkyb14
is there a php get page function like they use in Wordpress?

right now i'm declaring things as variables??

Code: Select all

<?php
$header = (" blah blah");
echo $header;
and then in my index page calling the header.php

Code: Select all

<?php
		include 'winamp/header.php';
	?>
the problem is that i can't use standard html without having to erase all the quotation marks.

i noticed that wordpress has a diff funct and that it's not entirely php, just fancy html ... so is there a way in php to simply call a .php page that has no php within it?

ex:

index.php calls my winamp.php file to insert the current track playing into the index.php file. but the winamp.php is just straigh html.


HELPA

Posted: Sat Sep 03, 2005 7:33 pm
by bokehman
If the only content in the included page is html it will be sent directly to the browser.

Posted: Sat Sep 03, 2005 7:33 pm
by s.dot

Code: Select all

include 'page.html';
I've never tried it with an html page. It may or may not work. Even if it doesn't work, just rename the page to .php and it will :)

Posted: Sat Sep 03, 2005 7:59 pm
by John Cartwright
scrotaye wrote:

Code: Select all

include 'page.html';
I've never tried it with an html page. It may or may not work. Even if it doesn't work, just rename the page to .php and it will :)
.html, .js whatever all the same