PenguinX Posted December 27, 2006 Share Posted December 27, 2006 I may be really dumb but I can't find out how to do it. In the past i've used I-Frames but is there anyway I can just have the code there or have it link to my server without I-Frames? The I-Frames screw the stuff up in IE.Heres what i mean:[code]<html>!--Snipit here--!<p class="Small Black IndentedL015">The Server Is Currently: !--PHP Script Starts here--!<?phpif (date('w') == 5 && date('G') >= 20 && date('G') <= 22){ $imgurl = "Online URL.gif";}else{ $imgurl = "Offline URL.bmp";}echo "<img src=\"$imgurl\">";?>!--End PHP Script--! !--More HTML--!<BR><BR>Blah blah blah<BR></html>[/code]Like such? Quote Link to comment https://forums.phpfreaks.com/topic/31914-solved-implementing-php-on-a-website/ Share on other sites More sharing options...
AndyB Posted December 27, 2006 Share Posted December 27, 2006 Yes. Like that is fine. Quote Link to comment https://forums.phpfreaks.com/topic/31914-solved-implementing-php-on-a-website/#findComment-148102 Share on other sites More sharing options...
PenguinX Posted December 27, 2006 Author Share Posted December 27, 2006 Any other way of doing this as it just shows the code on the site. Quote Link to comment https://forums.phpfreaks.com/topic/31914-solved-implementing-php-on-a-website/#findComment-148120 Share on other sites More sharing options...
ToonMariner Posted December 27, 2006 Share Posted December 27, 2006 if that is the case then php is not parsing the file. The filename should end '.php' (unless you have configured your server to get php to process other file extensions!) If it is called xxx.php then php is not installed/running on your server. Quote Link to comment https://forums.phpfreaks.com/topic/31914-solved-implementing-php-on-a-website/#findComment-148127 Share on other sites More sharing options...
PenguinX Posted December 28, 2006 Author Share Posted December 28, 2006 It dawned on my last night, this server is a Microsoft one, ASP supported only. Quote Link to comment https://forums.phpfreaks.com/topic/31914-solved-implementing-php-on-a-website/#findComment-148838 Share on other sites More sharing options...
wildteen88 Posted December 28, 2006 Share Posted December 28, 2006 Microsoft (Windows) servers can still run PHP. If your host wont install PHP or has no hosting plans that support PHP. Then you will need to change hosts. Quote Link to comment https://forums.phpfreaks.com/topic/31914-solved-implementing-php-on-a-website/#findComment-148847 Share on other sites More sharing options...
PenguinX Posted December 28, 2006 Author Share Posted December 28, 2006 Well, i'll figure something out i guess. Quote Link to comment https://forums.phpfreaks.com/topic/31914-solved-implementing-php-on-a-website/#findComment-148854 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.