need help fast
Posted 15 March 2006 - 11:05 AM
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
Posted 15 March 2006 - 11:09 AM
Posted 15 March 2006 - 11:52 AM
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?
Posted 15 March 2006 - 12:14 PM
<?php phpinfo() ?>
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.
Posted 15 March 2006 - 01:52 PM
[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