| View previous topic :: View next topic |
| Author |
Message |
fsw
Joined: 17 Dec 2006 Posts: 3
|
Posted: Sun Dec 17, 2006 8:11 pm Post subject: |
|
|
| So how do you get this to work in .shtml pages? I heard it works but I cant figure out how to do it. |
|
| Back to top |
|
 |
crazimon
Joined: 14 Apr 2009 Posts: 3 Location: Texas
|
Posted: Tue Apr 14, 2009 7:20 pm Post subject: |
|
|
| fsw wrote: |
| So how do you get this to work in .shtml pages? I heard it works but I cant figure out how to do it. |
Did you ever get an answer from anyone regarding this?
----------------
Listening to: Radiohead - 15 Step (WOXY Live [128k])
via FoxyTunes |
|
| Back to top |
|
 |
Carbonize

Joined: 12 Jun 2003 Posts: 3962 Location: Bristol, UK
|
|
| Back to top |
|
 |
crazimon
Joined: 14 Apr 2009 Posts: 3 Location: Texas
|
|
| Back to top |
|
 |
Carbonize

Joined: 12 Jun 2003 Posts: 3962 Location: Bristol, UK
|
Posted: Wed Apr 15, 2009 9:44 am Post subject: |
|
|
Part 1 of the first post should make PHP work in htm and html pages. If that's not working you will need to speak to your hosts. _________________ Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
| Back to top |
|
 |
noeal11 Guest
|
Posted: Thu Nov 12, 2009 12:04 pm Post subject: hey hi..., |
|
|
| thank u for d script guys,,,,,helped me alot.., a hug to u guys..... |
|
| Back to top |
|
 |
tommyrulez
Joined: 13 Feb 2010 Posts: 2 Location: Dallas
|
Posted: Sat Feb 13, 2010 6:59 pm Post subject: 500 error and .htaccess |
|
|
- 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. |
|
| Back to top |
|
 |
Carbonize

Joined: 12 Jun 2003 Posts: 3962 Location: Bristol, UK
|
Posted: Sat Feb 13, 2010 11:00 pm Post subject: |
|
|
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. _________________ Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
| Back to top |
|
 |
tommyrulez
Joined: 13 Feb 2010 Posts: 2 Location: Dallas
|
Posted: Sun Feb 14, 2010 12:37 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Carbonize

Joined: 12 Jun 2003 Posts: 3962 Location: Bristol, UK
|
Posted: Sun Feb 14, 2010 10:50 am Post subject: |
|
|
By default only files ending in .php, .php4 and sometimes .php5 are sent to the PHP processor. You can also have other file types sent there by adding a line or two to the htaccess file.
Been a while since I checked but I strongly suspect that none of the scripts on this site would require globals to be enabled. Even if globals were disabled but required it should return a PHP error message saying a variable does not exist. _________________ Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
| Back to top |
|
 |
|