Re: [PHP] Using index.php instead of index.html
He who calles himself Sailom (from [EMAIL PROTECTED]) wrote on 7/16/02 12:13 PM: Hello, I am a novice on PHP and web programming. Can any one suggest me if I can use index.php in place of index.html? I really need to concern about security issue too. Are you using Apache? If so, just edit your httpd.conf file. The line that reads DirectoryIndex index.html and change it. Mine reads: DirectoryIndex index.html index.shtml index.html.var index.php index.phtml If you're using IIS, I'm sure it's available somewhere in the configs... -- Chris Garaffa #!/usr/local/lib/php $contact_info[Name] = Chris Garaffa; $contact_info[Email] = [EMAIL PROTECTED]; $contact_info[Work] = [EMAIL PROTECTED]; $contact_info[cell] = 203.803.9066; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using index.php instead of index.html
Thank you so much. :) Sailom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using index.php instead of index.html
Sailom wrote: I am a novice on PHP and web programming. Can any one suggest me if I can use index.php in place of index.html? I really need to concern about Sure you can! If you're using an Apache webserver, create a file named .htaccess containing the following: DirectoryIndex index.php index.html Redirect index.html http://www.bar.net/index.php The first line says the directory index file is index.php, not index.html. The second line says whenever you get a request for index.html, send them index.php instead. security issue too. Umm... *what*? -- Mark Gallagher http://cyberfuddle.com/infinitebabble/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Using index.php instead of index.html
Why not just add it to the httpd.conf, this would allow it to work within the whole server And not just one director / vhost ect --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: Mark Gallagher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 17 July 2002 4:05 AM To: Sailom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Using index.php instead of index.html Sailom wrote: I am a novice on PHP and web programming. Can any one suggest me if I can use index.php in place of index.html? I really need to concern about Sure you can! If you're using an Apache webserver, create a file named .htaccess containing the following: DirectoryIndex index.php index.html Redirect index.html http://www.bar.net/index.php The first line says the directory index file is index.php, not index.html. The second line says whenever you get a request for index.html, send them index.php instead. security issue too. Umm... *what*? -- Mark Gallagher http://cyberfuddle.com/infinitebabble/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using index.php instead of index.html
Why not just add it to the httpd.conf, this would allow it to work within the whole server And not just one director / vhost ect Maybe he doesn't have access to alter server configurations? -eg- -- me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using index.php instead of index.html
The only security consideration here is whether you want to advertise the fact that you're using PHP or not. If not: DirectoryIndex index.html AddType application/x-httpd-php .html This is OK if most/all your pages use PHP. Otherwise, normal html gets parsed as well with unnecessary performance costs. Security through obscurity is not a good standalone policy, but every little bit can help. Michael On Wed, 17 Jul 2002, Mark Gallagher wrote: Sailom wrote: I am a novice on PHP and web programming. Can any one suggest me if I can use index.php in place of index.html? I really need to concern about Sure you can! If you're using an Apache webserver, create a file named .htaccess containing the following: DirectoryIndex index.php index.html Redirect index.html http://www.bar.net/index.php The first line says the directory index file is index.php, not index.html. The second line says whenever you get a request for index.html, send them index.php instead. security issue too. Umm... *what*? -- n i n t i . c o m php-python-perl-mysql-postgresql Michael Hall [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using index.php instead of index.html
On Wednesday 17 July 2002 10:57, Michael Hall wrote: The only security consideration here is whether you want to advertise the fact that you're using PHP or not. If not: DirectoryIndex index.html AddType application/x-httpd-php .html If you don't want people to know you're using PHP then you need to at least disable expose_php in php.ini. Also depending on your error reporting settings, any error _may_ potentially advertise the fact that you're using PHP. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Software production is assumed to be a line function, but it is run like a staff function. -- Paul Licker */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php