FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to write PHP





puuhikki
I started my homepage is frihost. Currently my source looks like
<html>
<head>
<title>
page.frih.org
</title>

</head>
<body>
HTML works
<?php
echo "PHP does not work.";
?>
</body>

</html>
Why doesn't it display "PHP does not work."? It displays "HTML works" correctly.
imagefree
what is the name of the file in which u use this code?

If you are using a filename like something.html or .htm, replace it with something.php and try, it should work.
Gushe
Or you might want to install an Apache webserver first. I recommend xampplite Wink
puuhikki
The file is index.php. There is a line "Apache 1.3.41 Running" in my user panel.
puuhikki
Problem solved. I tried to see the page in
http://address:2222/CMD_FILE_MANAGER/domains and it didn't show anything. But in
http://address/ it shows the page properly.
riccopt
puuhikki wrote:
Problem solved. I tried to see the page in
http://address:2222/CMD_FILE_MANAGER/domains and it didn't show anything. But in
http://address/ it shows the page properly.


because when it runs from the CP it doesn't get processed by PHP...
Agent ME
Gushe wrote:
Or you might want to install an Apache webserver first. I recommend xampplite Wink

He said he has a frihost account.
Related topics
PHP, where to write it?
Was playing around with PHP...
Looking for a php IDE and Debugger tool
RAD development for PHP
a game online
Simple login system
Frames
Simple PHP script not working
Dreamweaver
[Official] Best PHP Editor
Give me a special countdown script for 10frih$
Asp or PHP ??
a site where i can learn mysql syntax
Help with Dreamweaver sessions !!!!!!!!
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.