If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: tommyrulez
Forum Index » Profile for tommyrulez » Messages posted by tommyrulez
Author Message
Carbonize wrote:That has nothing at all to do with using PHP in a HTML file. And on top of it having nothing to do with the topic at hand register_globals is disabled by default for a very good reason and only poorly written scripts would require it to be enabled.


What I posted here was a direct quote from my host."

"If you installed a new script and are getting the 500 error trying to load the page please see this document first as you might need to turn register globals on. The syntax generally follows this format: phpconfigValueToOverride = value. The most common PHP value you need to set for many of the scripts that we offer via fantastico is register_globals. To enable register_globals you simply place this in your php.ini file: register_globals = On. Conversely, you can turn off register globals: register_globals = Off.

I have had to use this feature myself when using html files which call PHP specific functions.
- Login to your cPanel account by going to www.yourdomain.com/cpanel.
- Click on the 'File Manager' feature under 'Site Management' menu
- Select the public_html folder icon and navigate to the folder that you installed the software to.
- Click 'New File' and then type php.ini, click 'Create new file'.
- The file should now show up in the list of files, click on the name of the file, then click 'edit' on the top right menu and copy and paste the following line into the text file: register_globals = On
- Click save and you should now be able to refresh your webpage.

A good .htaccess site is http://www.javascriptkit.com/howto/htaccess.shtml

Make sure you use the quotation marks if you use anything other than cpanel! ".htaccess" when you save the file.
 
Forum Index » Profile for tommyrulez » Messages posted by tommyrulez
Go to:   
Based on the open source JForum