Re: [PHP] Changing values in .htaccess

2006-09-29 Thread Google Kreme

On 28 Sep 2006, at 22:23 , Curt Zirzow wrote:

As i mentioned using .htaccess should be your last resort; there is a
big performance hit


big?  You're joking.  It's a miniscule hit in all but the most  
contrived of circumstances.  Even the most complex websites are  
rarely more than 4 or 5 levels below DOcumentRoot.


with using .htaccess and if you have the ability dont use it and  
turn it off if you arn't using it.


I have to disagree.  I thin the convenience of it is well worth the  
effort.  I can edit my htaccess via a webdav mount, for example.   
That's rather harder to do to /etc/httpd/vhosts/domain.tld.conf


I also prefer to put custom php directives into htaccess, but that's  
probably just my personal preference.  It's nice to know that if I  
backup a site though, I have ALL of the site and don't have to go  
check what the virtualhost configuration says.


--
Hi, I'm Gary Cooper, but not the Gary Cooper that's dead.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing values in .htaccess

2006-09-29 Thread Martin Marques

On Thu, 28 Sep 2006, Curt Zirzow wrote:


On 9/28/06, Google Kreme [EMAIL PROTECTED] wrote:

On 28 Sep 2006, at 14:30 , Curt Zirzow wrote:
 If you can, set this on a per directory setting in your virtualhost
 setting within a Directory or Location, instead of turning on
 .htaccess.

Er... why?  So you have to get root privs to edit your virtual conf?


You dont need to have root, just the proper privs to modify the
paticular virtual conf file.


And how do you reload the apache configuration?

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing values in .htaccess

2006-09-29 Thread tedd

At 2:53 AM -0600 9/29/06, Google Kreme wrote:
I also prefer to put custom php directives into htaccess, but that's 
probably just my personal preference.


I agree, I just found several uses for .htaccess that I can not live 
without -- it's great.


What references would you recommend?

Thanks.

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing values in .htaccess

2006-09-29 Thread Richard Lynch
On Thu, September 28, 2006 3:15 pm, Martin Marques wrote:
 I'm trying helplessly to get session.use_trans_sid to true in one
 directory that needs it. So I put this in an .htaccess file:

 php_value session.use_trans_sid 1

If both Cookies and trans_sid are on and if your browser accepts
cookies, you won't see the SID in the URL, I don't think...

So are you SURE it's not on, or you just think it's not?

What does ?php phpinfo();? say in that directory for Master/Local
values of trans_sid (Local == in that dir)

If that's not it, then you need to be sure .htaccess is enabled in
httpd.conf (performance penalty -- be sure you understand this on
high-volume server)

There are probably more esoteric things that can go wrong, but that's
all I can think of right now.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing values in .htaccess

2006-09-29 Thread Google Kreme

On 29 Sep 2006, at 08:24 , tedd wrote:

At 2:53 AM -0600 9/29/06, Google Kreme wrote:
I also prefer to put custom php directives into htaccess, but  
that's probably just my personal preference.


I agree, I just found several uses for .htaccess that I can not  
live without -- it's great.


What references would you recommend?


Well, I've really just used the apache docs, myself.

I've had quite a lot of fun getting pages looking a certain way with  
no html code (using htaccess to customize the index page).


For example, on my intranet web server I have some episode summaries  
for a few TV shows, and the .htacess for the root folder of those  
summaries is:


Options All MultiViews
IndexOptions +IconsAreLinks +IconHeight=12 +IconWidth=12 +NameWidth=*  
+ScanHTMLTitles +SuppressLastModified +SuppressSize

IndexOrderDefault  Descending Name
HeaderName header.html
IndexIgnore header.html

The combination of the custom header and having just a name and  
description means most people don't even realize it's an index page.   
+ScanHTMLTitles means that each episode's title shows up in the index  
page automatically without my having to AddDescription manually for  
each one.


And that's all before even thinking about adding php code to the  
htaccess file.


But, this is OT to the list.

--
A: You can never go too far. B: If I'm gonna get busted, it is *not*  
gonna be by a guy like *that*.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Changing values in .htaccess

2006-09-28 Thread Martin Marques
I'm trying helplessly to get session.use_trans_sid to true in one 
directory that needs it. So I put this in an .htaccess file:


php_value session.use_trans_sid 1

The thing is, it didn't work. I also tried changing 1 to On with no luck 
at all.


Ideas are welcome.

--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Curt Zirzow

On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote:

I'm trying helplessly to get session.use_trans_sid to true in one
directory that needs it. So I put this in an .htaccess file:

php_value session.use_trans_sid 1

The thing is, it didn't work. I also tried changing 1 to On with no luck
at all.


Is .htaccess enabled at all?  by default apache doesn't have it
enabled in most installations.

If you can, set this on a per directory setting in your virtualhost
setting within a Directory or Location, instead of turning on
.htaccess.

Curt

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Martin Marques

yOn Thu, 28 Sep 2006, Curt Zirzow wrote:


On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote:

I'm trying helplessly to get session.use_trans_sid to true in one
directory that needs it. So I put this in an .htaccess file:

php_value session.use_trans_sid 1

The thing is, it didn't work. I also tried changing 1 to On with no luck
at all.


Is .htaccess enabled at all?  by default apache doesn't have it
enabled in most installations.


OK, just found this in my VirtualHost file:

AllowOverride None


If you can, set this on a per directory setting in your virtualhost
setting within a Directory or Location, instead of turning on
.htaccess.


As I have to modify it anyway, maybe I'll just put it in the virtualhost 
configuration file.


--
 21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués |   SELECT 'mmarques' ||
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador,
del Litoral |   Administrador
-
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Curt Zirzow

On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote:

yOn Thu, 28 Sep 2006, Curt Zirzow wrote:

 On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote:
 I'm trying helplessly to get session.use_trans_sid to true in one
 directory that needs it. So I put this in an .htaccess file:

 php_value session.use_trans_sid 1

 The thing is, it didn't work. I also tried changing 1 to On with no luck
 at all.

 Is .htaccess enabled at all?  by default apache doesn't have it
 enabled in most installations.

OK, just found this in my VirtualHost file:

AllowOverride None

 If you can, set this on a per directory setting in your virtualhost
 setting within a Directory or Location, instead of turning on
 .htaccess.

As I have to modify it anyway, maybe I'll just put it in the virtualhost
configuration file.


Yeah, it is wise to do that, enabling .htaccess is not the best of ideas.

Just for a brief reason why.. condsider a page request of:
 http://yourserver/some/dir/path/file.php

apache has to check recursivly down the path to / for .htaccess before
the request can be handled; that is a lot of overhead in my opinion
and is a key point as why it is disabled by default.

Curt.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Google Kreme

On 28 Sep 2006, at 14:30 , Curt Zirzow wrote:

If you can, set this on a per directory setting in your virtualhost
setting within a Directory or Location, instead of turning on
.htaccess.


Er... why?  So you have to get root privs to edit your virtual conf?

there's nothing wrong with .htaccess, just a lot of people get  
confused and screw things up.


.htacess is very useful.

--
Look, that's why there's rules, understand? So that you *think*  
before you break 'em.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Curt Zirzow

On 9/28/06, Google Kreme [EMAIL PROTECTED] wrote:

On 28 Sep 2006, at 14:30 , Curt Zirzow wrote:
 If you can, set this on a per directory setting in your virtualhost
 setting within a Directory or Location, instead of turning on
 .htaccess.

Er... why?  So you have to get root privs to edit your virtual conf?


You dont need to have root, just the proper privs to modify the
paticular virtual conf file.




there's nothing wrong with .htaccess, just a lot of people get
confused and screw things up.


There are a lot of things wrong with .htacces, but this would be more
of a topic on an apache list than here.



.htacess is very useful.


As i mentioned using .htaccess should be your last resort; there is a
big performance hit with using .htaccess and if you have the ability
dont use it and turn it off if you arn't using it.

Curt.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php