Woodstock Posted May 28, 2008 Share Posted May 28, 2008 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 More sharing options...
Barand Posted May 28, 2008 Share Posted May 28, 2008 You might have more luck in an ASP forum. But you will need to specify what language the ASP page is using (usually, but not necessarily, VB or C#). Link to comment https://forums.phpfreaks.com/topic/107695-php-to-asp/#findComment-552183 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.