yunfong Posted April 3, 2009 Share Posted April 3, 2009 hi all, can anyone pls advise me any possibility php code cant run in a computer? my code can run in my own laptop but when i try with another laptop, i couldnt run it everything shown on screen.. for example, <?php echo "php"; ?> jus a simple one also cant run from another laptop.. i dunoe is there something wrong wif it? as i had tis problem when i setup my laptop last time, but now i cant remember how did i do that.. can anyone help me? Quote Link to comment https://forums.phpfreaks.com/topic/152424-unable-to-display-php-code/ Share on other sites More sharing options...
Yesideez Posted April 3, 2009 Share Posted April 3, 2009 You need to have PHP installed on your machine. Check out (Google): XAMP WAMP LAMP Quote Link to comment https://forums.phpfreaks.com/topic/152424-unable-to-display-php-code/#findComment-800487 Share on other sites More sharing options...
yunfong Posted April 3, 2009 Author Share Posted April 3, 2009 i alr install php 5.2.x inside tis laptop.. stil dunoe y it cant runm.. Quote Link to comment https://forums.phpfreaks.com/topic/152424-unable-to-display-php-code/#findComment-800504 Share on other sites More sharing options...
premiso Posted April 3, 2009 Share Posted April 3, 2009 You have to have apache running, and you have to access it through http://localhost unless setup differently instead of just opening the file. The file has to also be set in the Webserver WWW folder for it to be access via Localhost. Quote Link to comment https://forums.phpfreaks.com/topic/152424-unable-to-display-php-code/#findComment-800505 Share on other sites More sharing options...
yunfong Posted April 3, 2009 Author Share Posted April 3, 2009 ya, my apache is running at e moment... i alr change e configuration httpd to point to my folder which contains my code.. what else can i do? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/152424-unable-to-display-php-code/#findComment-800509 Share on other sites More sharing options...
yunfong Posted April 3, 2009 Author Share Posted April 3, 2009 sorry, is my 2nd pg tat cant run.. after e main page,index.php, e rest of e php codes cant run.. Quote Link to comment https://forums.phpfreaks.com/topic/152424-unable-to-display-php-code/#findComment-800517 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.