Zeroshade Posted December 11, 2006 Share Posted December 11, 2006 I use an editor for my php and it works and i can view it through my editor but when its uploaded... it doesn't work.... http://webdesign2.georgianc.on.ca/~100075255/designs.html... and reasons why? Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/ Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 Little code would be nice. Also is this a hosting company or your own box?? Linux or Windows??Ray Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139035 Share on other sites More sharing options...
Zeroshade Posted December 11, 2006 Author Share Posted December 11, 2006 I'm using windows. The code can be viewed in the site given but heres just the php: [code]<?php $picture = array (1 => 'images/blue-carry.jpg', 'images/blue-ebook.jpg', 'images/blue-front.jpg', 'images/blue-pivot.jpg', 'images/blue-side.jpg', 'images/laptop-crank.jpg', 'images/laptop-ebook.jpg', 'images/laptop-front.jpg', 'images/laptop-hands.jpg', 'images/laptop-handside.jpg', 'images/laptop-side.jpg', 'images/laptop-theater.jpg', 'images/nigeria-e-book.jpg', 'images/orange-rotate.jpg', 'images/tn-blue-pivot.jpg', 'images/yellow-carry.jpg', 'images/yellow-pivot.jpg', 'images/yellow-ebook.jpg', 'images/yellow-front.jpg'); $curPic = $_GET['id'] + 1; if ($curPic < 20) echo '<a href="?id='.$curPic.'"><img src="'.$picture[$curPic].'" /></a>'; else echo '<p />End of Show'; ?>[/code] Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139037 Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 What version of IIS are you using?Ray Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139044 Share on other sites More sharing options...
Zeroshade Posted December 11, 2006 Author Share Posted December 11, 2006 I"m very new to php... how can I find out what i'm using? Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139045 Share on other sites More sharing options...
kenrbnsn Posted December 11, 2006 Share Posted December 11, 2006 Your PHP Script needs to be in a file with the extension of ".php", not ".html". Your host need to support PHP.Ken Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139046 Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 You can go to Internet information services and seeGo to control panel --> Administrative Tools --> Internet information services(IIS)Click help and see what version if IIS you are using. Also let me know what version of PHP you downloaded.Yes and also it can be as easy as making your page with a php extension. Went right by that one ken. Ray Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139047 Share on other sites More sharing options...
Zeroshade Posted December 11, 2006 Author Share Posted December 11, 2006 If the user viewing the page doesn't support php he or she can't view it? Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139050 Share on other sites More sharing options...
kenrbnsn Posted December 11, 2006 Share Posted December 11, 2006 The server has to support PHP.Ken Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139052 Share on other sites More sharing options...
Zeroshade Posted December 11, 2006 Author Share Posted December 11, 2006 There is no IIS in admin tools. And I have just downloaded the most recent version of php. Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139053 Share on other sites More sharing options...
Zeroshade Posted December 11, 2006 Author Share Posted December 11, 2006 Ahh... so if the schools server i'm using supports php everybody can view it? Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139054 Share on other sites More sharing options...
kenrbnsn Posted December 11, 2006 Share Posted December 11, 2006 Yes, if the server supports PHP and your scripts are named with the extension of ".php", everyone will see the generated pages.Ken Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139057 Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 php is all about the server. Nothing to do with the client computer(your computer).Ray Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139059 Share on other sites More sharing options...
Zeroshade Posted December 11, 2006 Author Share Posted December 11, 2006 Thanks! I'm learning a lot. Link to comment https://forums.phpfreaks.com/topic/30237-php-not-working/#findComment-139061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.