Welcome to WebmasterWorld Guest from 54.196.243.192

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Modifying the php.ini file?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


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 July 20, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 20, 2001
posts:478
votes: 0


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


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

Thanks,
M

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

Moderator

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

joined:Apr 25, 2002
posts:8137
votes: 99


.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 July 26, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


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 July 26, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:May 9, 2001
posts:416
votes: 0


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 July 26, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


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