PDA

View Full Version : how can i do this in SSI



is0lized
January 18th, 2002, 02:39
how can i turn this code



<?require("/home/httpd/html/is0lized.net/htdocs/ads/phpadmentor_config.php")?>
<?echo(PhpAdMentor_GetAd("7", 2, 0) );?>


into ssi? so i can use on an SSI only host or page, thanks in advanced

megapuzik
January 18th, 2002, 02:45
Im really really not sure, but I think that you cant virtual include php files with ssi...

*im not sure! *

bigperm
January 18th, 2002, 03:38
That code is calling a function in php, and therefore it would be useless to try and pass PHP variables into a page that cannot do anything with them.

is0lized
January 18th, 2002, 04:18
its just pulling up an ad, and i want toput my ads on my forum but i cant change the .htm ext to the forum and mime types wont work

bigperm
January 18th, 2002, 04:46
Originally posted by is0lized
its just pulling up an ad, and i want toput my ads on my forum but i cant change the .htm ext to the forum and mime types wont work Yeah it's just pulling up an ad, but it is including php code, and the variables to make that code work to do it. Best way is to find a php board or a ad program that lets you call it with just an <img> tag.

is0lized
January 18th, 2002, 04:56
i use a php board, problem is the header is a .htm file


like mega said would this work

i use SSI to call up ad.php and ad.php has the code in it...

would that work?