Re: [PHP] htaccess file

2005-04-24 Thread Jochem Maas
Greg Donald wrote:
On 4/21/05, Pieter du Toit [EMAIL PROTECTED] wrote:
Is there any way that i can see if using htaccess file is enabled on server
without contacting my isp.
I created a htaccess file and ftp'd it to the server with the
register_globals flag set to 0:
php_admin_flag register_globals 0

php_flag register_globals Off
is what I've always used.
On/Off and 0/1 are interchangeable in this context.

but what really got me was the line:
php_flag engine off
that pretty much take away any doubt that this might have been a php related 
question :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] htaccess file

2005-04-21 Thread Pieter du Toit
Is there any way that i can see if using htaccess file is enabled on server 
without contacting my isp.

I created a htaccess file and ftp'd it to the server with the 
register_globals flag set to 0:

this is the htaccess code

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

Limit GET POST

order deny,allow

deny from all

allow from all

/Limit

Limit PUT DELETE

order deny,allow

deny from all

/Limit

AuthUserFile /home/predicta/public_html/_vti_pvt/service.pwd

AuthGroupFile /home/predicta/public_html/_vti_pvt/service.grp

php_flag engine off

AllowOverrid ALL

php_admin_flag register_globals 0

and this is what happens

Internal Server Error
The server encountered an internal error or misconfiguration and was unable 
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and 
inform them of the time the error occurred, and anything you might have done 
that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying 
to use an ErrorDocument to handle the request.




Apache/1.3.33 Server at www.predictabid.com Port 80

I suppose this means that htaccess use is not enabled?

If this is the case, what else can i use to set register_globals to on?

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



Re: [PHP] htaccess file

2005-04-21 Thread Chris
Well, if the htaccess file caused an internal server error (500) then 
yes, it's reading it.

This isn't an apache list, you probably want to ask this question 
somewhere else...

That being said...
Are you missing an 'e' in the AllowOverride line near the bottom?

Pieter du Toit wrote:
Is there any way that i can see if using htaccess file is enabled on server 
without contacting my isp.

I created a htaccess file and ftp'd it to the server with the 
register_globals flag set to 0:

this is the htaccess code
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
Limit GET POST
order deny,allow
deny from all
allow from all
/Limit
Limit PUT DELETE
order deny,allow
deny from all
/Limit
AuthUserFile /home/predicta/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/predicta/public_html/_vti_pvt/service.grp
php_flag engine off
AllowOverrid ALL
php_admin_flag register_globals 0
and this is what happens
Internal Server Error
The server encountered an internal error or misconfiguration and was unable 
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and 
inform them of the time the error occurred, and anything you might have done 
that may have caused the error.

More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying 
to use an ErrorDocument to handle the request.


Apache/1.3.33 Server at www.predictabid.com Port 80
I suppose this means that htaccess use is not enabled?
If this is the case, what else can i use to set register_globals to on?
 

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


Re: [PHP] htaccess file

2005-04-21 Thread Greg Donald
On 4/21/05, Pieter du Toit [EMAIL PROTECTED] wrote:
 Is there any way that i can see if using htaccess file is enabled on server
 without contacting my isp.
 
 I created a htaccess file and ftp'd it to the server with the
 register_globals flag set to 0:
 
 php_admin_flag register_globals 0

php_flag register_globals Off

is what I've always used.


-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/

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



[PHP] .htaccess file

2004-07-05 Thread Vclav Slovek
Hi all,
I have a problem, but maybe it's more about Apache than about PHP. I need  
to access a Apache .htaccess file from PHP and modify it, but I always get  
access denied error. Could you help me, with solving this problem?
Thank you.

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


Re: [PHP] .htaccess file

2004-07-05 Thread Jason Wong
On Monday 05 July 2004 16:58, Vclav Slovek wrote:

 I have a problem, but maybe it's more about Apache than about PHP. I need
 to access a Apache .htaccess file from PHP and modify it, but I always get
 access denied error. Could you help me, with solving this problem?

access denied most likely means you don't have permission to read/write it. 
If you're running your own server, change the permissions accordingly, 
otherwise explain to your server admin why you want to change the .htaccess 
file(s).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Ummm, well, OK.  The network's the network, the computer's the computer.
Sorry for the confusion.
-- Sun Microsystems
*/

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



Re: [PHP] .htaccess file

2004-07-05 Thread zareef ahmed
--- Václav Slováèek [EMAIL PROTECTED] wrote:
 Hi all,
 
 I have a problem, but maybe it's more about Apache
 than about PHP. I need  
 to access a Apache .htaccess file from PHP and
 modify it, but I always get  
 access denied error. Could you help me, with
 solving this problem?

Please check if you ( the user which runs apache,
usually named 'nobody') has permissions to write.

You may(should)  change the permissions of the file to
modify it.

zareef ahmed
 

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


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: [PHP] .htaccess file

2004-07-05 Thread John
what are the files permissons?
of these are set wrong it could cause your problem

On Mon, 05 Jul 2004 10:58:54 +0200, Vclav Slovek [EMAIL PROTECTED] wrote:
 Hi all,
 
 I have a problem, but maybe it's more about Apache than about PHP. I need
 to access a Apache .htaccess file from PHP and modify it, but I always get
 access denied error. Could you help me, with solving this problem?
 Thank you.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
John 
[EMAIL PROTECTED]
http://www.whp.co.uk

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



Re: [PHP] .htaccess file

2004-07-05 Thread Gerben
You will have to chmod these .htaccess files


John [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
what are the files permissons?
of these are set wrong it could cause your problem

On Mon, 05 Jul 2004 10:58:54 +0200, Václav Slovácek [EMAIL PROTECTED] wrote:
 Hi all,

 I have a problem, but maybe it's more about Apache than about PHP. I need
 to access a Apache .htaccess file from PHP and modify it, but I always get
 access denied error. Could you help me, with solving this problem?
 Thank you.

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




--
John
[EMAIL PROTECTED]
http://www.whp.co.uk

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



Re: [PHP] .htaccess file

2004-07-05 Thread Vclav Slovek
When my web is hosted, there is no other way how to solve it? I realized  
that I can't see the file in my ftp client, so I cant't change the  
permissions. Of course, I can't use chmod() to change the permissions when  
I'm not allowed to write into the file. So the only solution is to contact  
admin?

Dne Mon, 5 Jul 2004 17:40:55 +0800 napsal/-a Jason Wong  
[EMAIL PROTECTED] pspvek nsledujcho znn::

On Monday 05 July 2004 16:58, Vclav Slovek wrote:
I have a problem, but maybe it's more about Apache than about PHP. I  
need
to access a Apache .htaccess file from PHP and modify it, but I always  
get
access denied error. Could you help me, with solving this problem?
access denied most likely means you don't have permission to  
read/write it.
If you're running your own server, change the permissions accordingly,
otherwise explain to your server admin why you want to change the  
.htaccess
file(s).

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


Re: [PHP] .htaccess file

2004-07-05 Thread Jason Wong
On Monday 05 July 2004 18:13, Vclav Slovek wrote:

 So the only solution is to contact admin?

Yes.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
86. What do you mean that wasn't a copy?

--Top 100 things you don't want the sysadmin to say
*/

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



Re: [PHP] .htaccess file

2004-07-05 Thread raditha dissanayake
Vclav Slovek wrote:
When my web is hosted, there is no other way how to solve it? I 
realized  that I can't see the file in my ftp client, so I cant't 
change the  permissions. Of course, I can't use chmod() to change the 
permissions when  I'm not allowed to write into the file. So the only 
solution is to contact  admin?
ftp clients usually have a special configuration setting that will allow 
you to view such 'hidden' files.

Dne Mon, 5 Jul 2004 17:40:55 +0800 napsal/-a Jason Wong  
[EMAIL PROTECTED] pspvek nsledujcho znn::

On Monday 05 July 2004 16:58, Vclav Slovek wrote:
I have a problem, but maybe it's more about Apache than about PHP. 
I  need
to access a Apache .htaccess file from PHP and modify it, but I 
always  get
access denied error. Could you help me, with solving this problem?

access denied most likely means you don't have permission to  
read/write it.
If you're running your own server, change the permissions accordingly,
otherwise explain to your server admin why you want to change the  
.htaccess
file(s).



--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] .htaccess file

2002-08-01 Thread B i g D o g

Is it possible to set register_globals to off in the .htaccess file.  If so
how do I do that?


.: B i g D o g :.




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




Re: [PHP] .htaccess file

2002-08-01 Thread Nicole Lallande

I think it is something like - can't remember if it's an underscore or 
dash between the 'php' and 'flag'

php-flag register_globals off

HTH,

Nicole

B i g D o g wrote:

Is it possible to set register_globals to off in the .htaccess file.  If so
how do I do that?


.: B i g D o g :.





-- 

Nicole Lallande
[EMAIL PROTECTED]
760.753.6766





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




Re: [PHP] .htaccess file

2002-08-01 Thread Nicole Lallande

it's php_flag register_globals off -- you can either place this within 
your Directory tags in your httpd .conf file or in an htaccess file -- 
for more info see http://www.php.net/manual/en/configuration.php#AEN2390

best,

Nicole

Nicole Lallande wrote:

 I think it is something like - can't remember if it's an underscore or 
 dash between the 'php' and 'flag'

 php-flag register_globals off

 HTH,

 Nicole

 B i g D o g wrote:

 Is it possible to set register_globals to off in the .htaccess file.  
 If so
 how do I do that?


 .: B i g D o g :.






-- 

Nicole Lallande
[EMAIL PROTECTED]
760.753.6766





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




Re: [PHP] .htaccess file

2002-08-01 Thread Neil Freeman

php_value register_globals 0

B i g D o g wrote:
 **
 This Message Was Virus Checked With : SAVI 3.59 May 2002 
 Last Updated 8th July 2002
 **
 
 Is it possible to set register_globals to off in the .htaccess file.  If so
 how do I do that?
 
 
 .: B i g D o g :.
 
 
 
 


-- 
--
  www.curvedvision.com
--


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