Jump to content


need help fast

  • Please log in to reply
5 replies to this topic

#1 tas

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 March 2006 - 11:05 AM

hey, im having lots of problems with php
the following php code

print ("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 and
am 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 notepad
is 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

#2 shocker-z

  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 15 March 2006 - 11:09 AM

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 :)
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 tas

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 March 2006 - 11:52 AM

Thnx for that.
Its a college computer so im not sure whats installed but i would have thought it was
Is there any way to check if php is installed?

#4 Raider2044

  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 15 March 2006 - 12:14 PM

Create a new php document with the following 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.

#5 tas

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 March 2006 - 12:27 PM

thanks ill try that

#6 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 15 March 2006 - 01:52 PM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users