Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread Andy Shellam (Mailing Lists)
Hi, > > IIRC if you unset $_SERVER['PHP_AUTH_USER'] and > $_SERVER['PHP_AUTH_PW'] it will log you out. I've done some research on this in the past - and not all browsers/web servers honour that as it's the browser that keeps the username/password cached and sends it after a 401 response, so th

Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread James McLean
On Fri, Nov 27, 2009 at 12:12 AM, Ashley Sheridan wrote: > Hi all, > > I've got a site set up that is using an htaccess file to provide secure > access to a directory. That is working fine. What I wondered was, is > there a way to log out via PHP. As I understand it, the login mechanism > is part

Re: [PHP] string concatenation with fgets

2009-11-26 Thread aurfalien
So here is my final test code, notice the check for ' ' in the if. Since I'm on Linux, this has to do with whats between the last LF and EOF which is nothing but this nothing will get printed out. $file = fopen("somefile.txt", "r"); while (! feof($file)) { $names = trim(fgets(

Re: [PHP] register_globals and sessions

2009-11-26 Thread Brady Mitchell
On Wed, Nov 25, 2009 at 3:01 PM, Allen McCabe wrote: > *Warning*: Unknown: Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session extension > does not consider global variables as a source of data, unless > register_globals is enabl

[PHP] My new address

2009-11-26 Thread Austin Ladd
Acce dot ssRx pro ap vides Men’s He gbh alth prod ak ucts to tr vr eat ere zee ctile dysf ltm unction (ED). Cho ge ose from all three FD xpq A-appr cz oved ED pres uq crip ac tion medi gd cations: Via ff gra, Cia iad lis and Lev ja itra. Only a small per id cent og age of men seek help for ED, a

Re: [PHP] PHP Equivalent to Java Jar or Python Eggs

2009-11-26 Thread Greg Maruszeczka
On Thu, 26 Nov 2009 13:09:48 +1030 James McLean wrote: > On Thu, Nov 26, 2009 at 11:50 AM, wrote: > > > > Has anyone done any work towards packaging of PHP in a manner > > similar to jar or eggs? I was working on a project the other day > > with a lot of class files and thought this would be a

Re: [PHP] Re: Detecting The Encoding Of A Text File

2009-11-26 Thread דניאל דנון
I was thinking that if notepad can open it correctly it has headers - but the link you gave clarify that, my bad. 2009/11/26 Nisse Engström > On Thu, 26 Nov 2009 15:39:04 +0200, דניאל דנון wrote: > > > If windows notepad can detect encoding there must be a way to do it > > yourself. > > > > Mayb

Re: [PHP] Re: Detecting The Encoding Of A Text File

2009-11-26 Thread Nisse Engström
On Thu, 26 Nov 2009 15:39:04 +0200, דניאל דנון wrote: > If windows notepad can detect encoding there must be a way to do it > yourself. > > Maybe try to get the file's headers, I think it should also contain the > encoding of the file... Plain text files don't have any headers. Perhaps they use

[PHP] php htaccess logins and logouts

2009-11-26 Thread Ashley Sheridan
Hi all, I've got a site set up that is using an htaccess file to provide secure access to a directory. That is working fine. What I wondered was, is there a way to log out via PHP. As I understand it, the login mechanism is part of Apache, so I guess what I'm really asking is, is there a way that

Re: [PHP] Re: Detecting The Encoding Of A Text File

2009-11-26 Thread Ashley Sheridan
On Thu, 2009-11-26 at 15:39 +0200, דניאל דנון wrote: > If windows notepad can detect encoding there must be a way to do it > yourself. > > Maybe try to get the file's headers, I think it should also contain the > encoding of the file... > > 2009/11/26 Nitsan Bin-Nun > > > Someone have already

Re: [PHP] Re: Detecting The Encoding Of A Text File

2009-11-26 Thread דניאל דנון
If windows notepad can detect encoding there must be a way to do it yourself. Maybe try to get the file's headers, I think it should also contain the encoding of the file... 2009/11/26 Nitsan Bin-Nun > Someone have already suggested it but I haven't tried it yet. > > The thing is that right now

[PHP] SOAP: Return object to client

2009-11-26 Thread Manoj Singh
Hi All, I am implementing the web service through PHP SOAP library. Actually I want to return the object to the client through web service so that client can call all the methods of that object. Please help me out. Regards, Manoj

Re: [PHP] Re: Detecting The Encoding Of A Text File

2009-11-26 Thread Nitsan Bin-Nun
Someone have already suggested it but I haven't tried it yet. The thing is that right now it contains Hebrew, but tommorrow this file will be in German or any other accented language. I'm trying to create a function which would detect the encoding and convert it into UTF8. (I don't have much expe

Re: [PHP] Wiki recommendation?

2009-11-26 Thread Olav
Jonathan Tapicer wrote: > I also recommend dokuwiki (with a k, not c :) ): > http://www.dokuwiki.org/ I will add just my 2 cts to that. I have used several wikis but I always come back to DokuWiki. Among other things that I like about it, like plugins, is the fact that it is file based. It can

[PHP] Re: Detecting The Encoding Of A Text File

2009-11-26 Thread Nisse Engström
On Thu, 26 Nov 2009 06:55:31 +0200, Nitsan Bin-Nun wrote: > Hi, > > I have been trying for the last couple of hours to determine the > encoding of a text file (.txt in windowz). > > I have this code: > > $contents = file_get_contents($config[' > txt_dir'] . $file); > $encoding =

Re: [PHP] Wiki recommendation?

2009-11-26 Thread Lester Caine
Skip Evans wrote: Hey all, Thanks much for the recommendations. I'll check them out. We don't need fine grained control over access; basically admins that can modify content and the public who cannot. But right now DocuWiki is sounding good, and I'd rather, for some strange reason, not use