Welcome to WebmasterWorld Guest from 184.73.3.107

Forum Moderators: brotherhood of lan & mack

Modifying the php.ini file?

   
2:20 am on Jul 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How can I make .html files parse .php/.ini file includes and also make .php files parse .ini files securely?

I can't seem to find a clue within the documentation about the .html files parsing .php. I did find that I can change the include_path in php.ini -- it just doesn't seem to be working though.

Any suggestions would be great, thanks.
M

3:02 am on Jul 20, 2002 (gmt 0)

10+ Year Member



Apache has to be told to parse html files as php, in the config file, or using htaccess.
2:19 pm on Jul 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm running on Windows, isn't .htaccess only for unix - I thought?

Thanks,
M

5:37 am on Jul 23, 2002 (gmt 0)

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



.htaccess if for Apache regardless of where it runs (and some other servers too).

If you are running your own server and have access to the httpd.conf file, then you can set the .htaccess file to any filename you want. In Windows, since it doesn't like filenames with nothing before the period (like .htaccess), you may wish to change this to ht.access, since it will give you fewer troubles. Then you change your httpd.conf file to have it parse files of whatever extension as php files. The PHP installation instructions have exact details.

Tom

1:28 am on Jul 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One more on the php.ini front...

I'm having trouble getting GD to work. When I take a test PHP script to create an image, I load it up in a browser and get one of those image boxes- you know with a border and it just says "image". That makes me think that I'm close to getting it though.

I have uncommented the php.ini file for the php_gd.dll, moved the php_gd.dll to the Apache folder restarted the server and oh yeah, changed the:
extension_dir = C:/FoxServ/php/extensions
in php.ini.

I can't seem to find my way here. Any help?

Most appreciated.
Matt

5:44 am on Jul 26, 2002 (gmt 0)

10+ Year Member



Have you installed the gd library?

www.boutell.com/gd/

I can't help you with installation, etc. as I've never taken the step, but there are good resources around.

5:46 pm on Jul 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think that it installed with the program. I'll have to check it.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month