Reply to run php on a script, from a script

Your name:

Reply:


Posted by Fred Paris on 10/23/78 11:39

Hi

I would like to know if the following is possible and how to do it:

1)
I have a "template" .php file on my server, say template.php.
It contains some PHP instructions and some HTML

2)
I also have a script, script.php

3)
When script.php runs, I want it to run php on template.php, and write
the resulting html output to a file.

I need to say something like:

<?php

runphp ( 'template.php', 'htmloutput.html' );

?>

and obtain a file, htmloutput.html, with the result of php having run
template.php (hope I'm being clear).

The problem is, of course, that the runphp function doesn't exist so
what is the way to do it?

Thanks
Fred

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация