Jump to content

PHP to ASP


Woodstock

Recommended Posts

I need to convert this PHP to ASP because the server won't accept PHP coded web pages. Looked everywhere for a converter, no luck.

 

Here's the code... it's the index.php page which calls to replace the ##content## section with new tables on <hrefs>.

 

 

<?

$contentfile = $_GET['p'].'.htm';

if (@file_exists("templates/$contentfile")) {

$sheet = str_replace("##content##",file_get_contents("templates/".$contentfile),file_get_contents('main_template.htm'));

} else {

$sheet = str_replace("##content##",file_get_contents("templates/home.htm"),file_get_contents('main_template.htm'));

}

 

//do page based processing!

 

echo $sheet;

?>

 

Thanks for any assistance.

Link to comment
https://forums.phpfreaks.com/topic/107695-php-to-asp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.