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? Quote Link to comment 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 Quote Link to comment 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] Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted December 11, 2006 Share Posted December 11, 2006 The server has to support PHP.Ken Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Zeroshade Posted December 11, 2006 Author Share Posted December 11, 2006 Thanks! I'm learning a lot. Quote Link to comment 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.