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


Php and Other Wonderful Newbie Stories for Help.





Antwon
Let's say Antwon wants to write his own Php and website scripts - using file manager in cPanel.

Antwon opens up new HTML file, and types:

Code:

<html>
<head>
<title>
PHP Test
</title>
</head>

<body>
<?php echo '<p>Hello World</p>'; ?>
</body>

</html>


Antwon saves as phptest.php

Now, Antwon views the file in file manager and nothing is there. Antwon also cannot get to it via website.

Antwon is puzzled.

Antwon also wants to connect to the MySQL server... which is obviously the problem with the Php. Antwon cannot.

Antwon GRRRRR's at PhPNuke and all others, Antwon wants to make his own scripts.

So, um, yeah, I wanna make Php work and I wanna be able to go to the sites that I make. So, um, yeah, how do I do this?

Through a pain of all the other tutorial sites listed before, I quite cannot find answers to such newbie questions. But seriously, I gotta start somewhere.

So, um, yeah, any help would be really cool. Awesome. INSANE! So, um, thankx Smile

~Antwon
mOrpheuS
mOrpheuS doesn't know anything at all about php
but looking at the other php codes he can advice Antwon to try this

Code:
<?php echo '<html><head><title>PHP Test</title></head><body><p>Hello World</p></body></html>'; ?>


file should be saved as ".php"
and wait till php experts can reply here.
Daniel15
Daniel15 suggests trying the following:
Go into cPanel File Manager, and create a new TEXT file.

Enter the following code:
Code:

<?php
phpinfo();
?>


and save it as phpinfo.php (make sure it's in the public_html folder)

then, goto http://yoursubdomain.frihost.net/phpinfo.php and you should get a long list of all the PHP settings... This confirms that PHP works

I can't see what's wrong with your code... Try creating a new TEXT file (NOT a new HTML file) and see if it still happens

--daniel15
Antwon
Hurray! You guys made it work! HURRAY!

Thank you very much for all your help Smile

~Antwon
Related topics
PHP: Feedback form issues.. help =P
Top Ten in PHP
Help with PhpBB
PHP Question
Some php probs..need some help plzz!
PHP Nuke 7.8 help!!
Php parsing error! Need help
PHP with Frihost [need help]
I am a PHP newbie, so please help me
Newbie needs help... Is PHP the answer???
PHP and Mysql Project. Help
Need Help in PHP Coding
PHP and MySQL login...Help
i am having problems with this php code.... can someone help
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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