Jump to content

Archived

This topic is now archived and is closed to further replies.

developer123

Using PHP at hosted domains

Recommended Posts

I have a hosting account with a large company.  I have used Content Management Systems and other pre-installed scripts on the account, but have no idea how to start developing my own php programs.  The control panel (CPanel) for the account has a link, PHP Info, which displays pages of information regarding php on the server - for example, configuration command, the location of a configuration file, and so on.

I see that I cannot simply create a php file, upload it and have it run.  How do I start? 

Thank you

Share this post


Link to post
Share on other sites
Well the way to find out if your php is working on your site... all you have to do is upload a php script and try it out


Try this simple script:

[code]<?php echo "Hello world!"; ?>[/code]

That should give you a page with "Hello world!" on it.

Share this post


Link to post
Share on other sites
OK - it is that simple. 

The first example I tried was to display the php variables, and that option must be off for security reasons or something.  Aha!

Thank you. :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.