Index.html include php
Posted: Fri Mar 26, 2010 7:42 am
Hi, have a simple index.htm and I want a link to execute a php script.
I think i need my html page something like this:
<html>
<body>
<h1>Welcome to my home page!</h1>
<p>Some text.</p>
<a href="/install.php">Install CMS</a>
</body>
</html>
and then my install.php page something like this:
<html>
<body>
<?php $foo = system('wget http://www.myserver.com/myfile.tar ~',$output);?>
<? system("tar -zxvf myfile.tar") ?>
</body>
</html>
Am I going about this the right way?
I think i need my html page something like this:
<html>
<body>
<h1>Welcome to my home page!</h1>
<p>Some text.</p>
<a href="/install.php">Install CMS</a>
</body>
</html>
and then my install.php page something like this:
<html>
<body>
<?php $foo = system('wget http://www.myserver.com/myfile.tar ~',$output);?>
<? system("tar -zxvf myfile.tar") ?>
</body>
</html>
Am I going about this the right way?