Re: [EMAIL PROTECTED] Detecting Javascript via Apache 2

2005-12-27 Thread Octavian Rasnita
From: <[EMAIL PROTECTED]> > > Hi all. > > Is it possible for apache 2.0 to detect if a browser has > javascript enabled when a page is requested, and then > passing this value to PHP? > > This would allow me to serve different page content, > depending on whether the user's browser has javascript

RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Ken Robinson
At 05:35 PM 12/27/2005, Wagner, Aaron wrote: k, I didn't see you filehandle on the fwrite. I didn't know that you could write to the same file your reading? Interesting Actually, I use the file() function to read the whole file into an array, so the file isn't open when you do the fopen() of

Re: [EMAIL PROTECTED] Form Login Script

2005-12-27 Thread Boysenberry Payne
Try: Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Dec 27, 2005, at 6:55 PM, Christopher Deeley wrote: I am trying to use the following script to verify my users against a text file where each line is in the format username:password.   This is my script below. It work

[EMAIL PROTECTED] non-rpm, 2.2x autonomous server binary config for RH9?

2005-12-27 Thread Matt England
Summary: I want a non-rpm (ie, something like a .tar.gz collection), autonomously-running (ie: includes all the apr-utils and everything else I need to run a basic Apache server) binary httpd collection for httpd rev 2.2x that I can run in a "utility" manner (ie, a secondary httpd server mapp

[EMAIL PROTECTED] not showing .jpg as a list

2005-12-27 Thread Christoph Heino
Hallo, I have upgrades from SuSE old to SuSE 10.0 with Apache2. My Apache2-server does not show the list of images in the directory 'images'. The old version did show all files, if the 'index.html' was not installed. What do I have to change/install to have the 'images jpg' readable again? Thanks

Re: [EMAIL PROTECTED] Detecting Javascript via Apache 2

2005-12-27 Thread Boysenberry Payne
You probably want to assume it doesn't then if it does set a cookie or establish it via link or by using javascript to tell php it does and save it in the session. Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Dec 27, 2005, at 5:49 PM, [EMAIL PROTECTED] wrote: Hi all.

[EMAIL PROTECTED] Detecting Javascript via Apache 2

2005-12-27 Thread httpd2
Hi all. Is it possible for apache 2.0 to detect if a browser has javascript enabled when a page is requested, and then passing this value to PHP? This would allow me to serve different page content, depending on whether the user's browser has javascript enabled or not. Regard Keith Roberts

[EMAIL PROTECTED] Apache quits working for no apparent reason under WinXP

2005-12-27 Thread Andrey Kuznetsov
I run a server, every few days or sometimes hours it shutsdown by itself, now I mean not shutdown as a stop function. The service still runs, the server says it is running, nothing is frozen, but the server gives me a 404 error. Once I stop and start the server and access the same page it works fin

RE: [EMAIL PROTECTED] Unable to redirect ( using mod_rewrite)

2005-12-27 Thread Rajendra Kadam -X \(rakadam - eTouch Systems at Cisco\)
Hi Oliver, Great! Thanks for pointing the problem. I have added line as per your suggestion ( with slight change : addition of slash at start! ) as follows : RewriteCond %{REQUEST_URI} !^/downtime\.html$ And it's working Cheers, Rajendra -Original Message- From: [EM

Re: [EMAIL PROTECTED] problems with the setup of php on winXP

2005-12-27 Thread Andrey Kuznetsov
#1 Did you open the Apache error.log file? Are you sure there is nothing there? #2 Has the PHP been installed into C:\PHP\ ? This is what I have for v5 set on my Apache: LoadModule php5_module "c://php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:*/php" Options

AW: [EMAIL PROTECTED] Unable to redirect ( using mod_rewrite)

2005-12-27 Thread Oliver.Schaudt
Hi Rajendra, there is the line "RewriteCond %{REQUEST_URI} !^downtime\.html$" missing, because if you can to redirect all URL's to "downtime.html", but you have to exclude the "downtime.html" itself. If not, this will result in an infinte loop. So your new Block will be RewriteCond %{REQU

RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Wagner, Aaron
k, I didn't see you filehandle on the fwrite. I didn't know that you could write to the same file your reading? Interesting Thanx Aaron N Wagner Monitoring Systems and Network Tools CCO-Command Center Operations 804.515.6298 > -Original Message- > From: Ken Robinson [mailto:[EMAIL

Re: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Boysenberry Payne
Try: $string = file_get_contents( "test.text" ); $string = file_put_contents( "test.text", preg_replace( "/(\r\n|\r|\n)(\s)*(\r\n|\r|\n)/", "$1", $string ) ); Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Dec 27, 2005, at 3:16 PM, Christopher Deeley wrote: Does anyone

[EMAIL PROTECTED] Unable to redirect ( using mod_rewrite)

2005-12-27 Thread Rajendra Kadam -X \(rakadam - eTouch Systems at Cisco\)
Hi Folks,   I want to do time based rewrite in order to display a Downtime page during DATABASE maintenance.   Htpd.conf has following settings RewriteEngine onRewriteLog  logs/rewriteLog.logRewriteLogLevel 9   RewriteCond   %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} >21700RewriteCond   %{TI

RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Ken Robinson
Quoting "Wagner, Aaron" <[EMAIL PROTECTED]>: That's nice but it doesn't fix the blank lines it just skips them in the file parse. I think he wants to clean the file. If the file gets big, he could take a performance hit skipping multiple lines. If you ran the script you would see that the ou

[EMAIL PROTECTED] All DNS requests go only to the parent domain

2005-12-27 Thread Baiss Eric Magnusson
After the server hard disk crashed I have re-installed Apache 1.3, but can only get to the parent domain: but not the 2nd, nor other domains. dnsReports nothing wrong with ***

RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Wagner, Aaron
That's nice but it doesn't fix the blank lines it just skips them in the file parse. I think he wants to clean the file. If the file gets big, he could take a performance hit skipping multiple lines. Thanx Aaron N Wagner Monitoring Systems and Network Tools CCO-Command Center Operations 804.51

Re: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Ken Robinson
Quoting Christopher Deeley <[EMAIL PROTECTED]>: Does anyone know how to use PHP to delete blank lines in a text file. I use a text file to store usernames and passwords but with adding and deleting users, blank lines appear which returns an undefined offset error when the 'verify user script' tr

[EMAIL PROTECTED] perl bypass apache basic authentication

2005-12-27 Thread Faruk Okcu
Hi guys, My httpd version is: # rpm -qa| grep httpd httpd-manual-2.0.54-10.2 httpd-2.0.54-10.2 Basic auth works great if the web client is IE, Firefox, etc but when the pages, protected by basic auth, can be printed by a simple perl script. I am not sure if this is expected or not. Basic auth i

RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Wagner, Aaron
preg_replace($pattern, $replacement, $string);   preg_replace("/\n\r *\n\r/","\n\r", $string )   \n\r *\n\r - for a windowz maching and they may be in the wrong order.   Your basically replacing all double linefeeds with a single linefeed. Replace the \n\r with whatever your OS uses as a

[EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Christopher Deeley
Does anyone know how to use PHP to delete blank lines in a text file. I use a text file to store usernames and passwords but with adding and deleting users, blank lines appear which returns an undefined offset error when the 'verify user script' tries to read each line of the text file.   Thanks

Re: [EMAIL PROTECTED] apache modules development,hash tables,pools and threads

2005-12-27 Thread Nick Kew
On Tuesday 27 December 2005 17:22, toni pérez wrote: > Hi list, > > My question is about modules programming. > I have an apache with mpm worker, every process makes a number of threads. > Can I use apr_hash interface, inside a module in a process pool > lifetime with mpm worker model? > Can I ins

[EMAIL PROTECTED] apache modules development,hash tables,pools and threads

2005-12-27 Thread toni pérez
Hi list, My question is about modules programming. I have an apache with mpm worker, every process makes a number of threads. Can I use apr_hash interface, inside a module in a process pool lifetime with mpm worker model? Can I insert,read and delete data in hash tables from any request that trig

Re: [EMAIL PROTECTED] HTTP AUTH

2005-12-27 Thread Christopher Deeley
Hi   Theres no way of passing info from a form to set the variables 'HTTP_AUTH_USER' ad HTTP_AUTH_USER but I have found a way around it but never put it into practice yet. You can still use your existing form to login and create a session variable as their user name eg $_SESSION['username'] = 'use