tas Posted March 15, 2006 Share Posted March 15, 2006 hey, im having lots of problems with phpthe following php code<?phpprint ("hello world"); ?>for some reason outputs this:hello world"); ?>how can i get it to output just Hello World ?id greatly appreciate any help on this as soon as possible as i have a project due today andam having lots of trouble with the print statements.also if i have a web page that has a link to a php file (say hello.php)when i click on the link to it, it asks me to open/save the file and opens it in notepadis there anything i have to install that stops this from happening and runs the php?i have enclosed the php code in html this seems to be the only way of getting the page to load Quote Link to comment https://forums.phpfreaks.com/topic/5023-need-help-fast/ Share on other sites More sharing options...
shocker-z Posted March 15, 2006 Share Posted March 15, 2006 Basicaly it means that PHP hasnt been installed/configure properly with apache.. If you manualy installed it then go thru the documentation again and double check everything :) Quote Link to comment https://forums.phpfreaks.com/topic/5023-need-help-fast/#findComment-17766 Share on other sites More sharing options...
tas Posted March 15, 2006 Author Share Posted March 15, 2006 Thnx for that.Its a college computer so im not sure whats installed but i would have thought it wasIs there any way to check if php is installed? Quote Link to comment https://forums.phpfreaks.com/topic/5023-need-help-fast/#findComment-17778 Share on other sites More sharing options...
Raider2044 Posted March 15, 2006 Share Posted March 15, 2006 Create a new php document with the following code.[code]<?phpphpinfo()?>[/code]If php is configured it will show the php configuration selections and such.If you don't see all the information, then something has gone wrong.If so, I can only recommend what has already been said, go over the documentation of installation. Quote Link to comment https://forums.phpfreaks.com/topic/5023-need-help-fast/#findComment-17785 Share on other sites More sharing options...
tas Posted March 15, 2006 Author Share Posted March 15, 2006 thanks ill try that Quote Link to comment https://forums.phpfreaks.com/topic/5023-need-help-fast/#findComment-17787 Share on other sites More sharing options...
wildteen88 Posted March 15, 2006 Share Posted March 15, 2006 You will have to load your pages through the browser with the httpd protocol like so:[a href=\"http://localhost/pagename.php\" target=\"_blank\"]http://localhost/pagename.php[/a]Or it may be like this:[a href=\"http://localhost/~username/pagename.php\" target=\"_blank\"]http://localhost/~username/pagename.php[/a]it depend on how your college server has been setup. Quote Link to comment https://forums.phpfreaks.com/topic/5023-need-help-fast/#findComment-17809 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.