Re: [PHP] Recent Influx of Unrelated Discussions

2010-07-16 Thread Jason Pruim
On Jul 16, 2010, at 10:47 AM, Paul M Foster wrote: On Fri, Jul 16, 2010 at 11:59:49AM +0200, Arno Kuhl wrote: And Daniel, your own gentle prods to keep things on track I think sets some of the professional tone of the list. This is very true. I've administered various lists for almost te

Re: [PHP] user login and access + headers already sent

2010-07-16 Thread tedd
At 4:56 PM +0100 7/15/10, Ashley Sheridan wrote: On Thu, 2010-07-15 at 15:38 +, Carlos Sura wrote: > So, I'm wondering, is there any other way to avoid put code in every page? or... another way to avoid that kind of error. Common logic for a login is to use an include file that does thi

Re: [PHP] ldap_search filter filter?

2010-07-16 Thread Andrew Ballard
On Fri, Jul 16, 2010 at 11:42 AM, Richard Lynch wrote: > Any Best Practice suggestions for potentially hostile user input being > sent to ldap_search($ldap, "(username=$_POST[username])"); > > Something like an ldap_escape? > > Please cc me on replies. Thanks. > Long time no see, Richard. There a

Re: [PHP] Re: Weird behavior of exec()

2010-07-16 Thread Leonardo
Em 16/07/2010 09:23, Bob McConnell escreveu: You are running b.php as an external command, so it is running as a CLI, not in the httpd server. You need to check to see how your PHP command line is configured, it may need the full tag no matter how the server is set up. Bob McConnell While read

Re: [PHP] Weird behavior of exec()

2010-07-16 Thread Leonardo
Em 16/07/2010 12:18, Jim Lucas escreveu: I tried running the same script, and found that the php binary is not in my path. run this echo passthru('which php'); Also, modify your existing exec() command to the following and it will capture errors too. exec('php b.php> output.txt 2>&1&'); A

[PHP] ldap_search filter filter?

2010-07-16 Thread Richard Lynch
Any Best Practice suggestions for potentially hostile user input being sent to ldap_search($ldap, "(username=$_POST[username])"); Something like an ldap_escape? Please cc me on replies. Thanks. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com

Re: [PHP] Weird behavior of exec()

2010-07-16 Thread Leonardo
Em 16/07/2010 09:09, Richard Quadling escreveu: I'm on Windows XP SP3 and using PHP 5.3.3RC3 (cli) (built: Jul 15 2010 02:00:11) Copyright (c) 1997-2010 The PHP Group All seems to work as expected. Z:\\output.txt'); echo ' File A (2) '; ?> And because of my setup matching the docs at [1]

Re: [PHP] Weird behavior of exec()

2010-07-16 Thread Jim Lucas
Leonardo wrote: > Hi everybody. I need to use exec() to run a background php script, but > it's not working properly. Take a look at this sample: > > a.php > >echo ' File A (1) '; > >exec('php b.php > output.txt &'); > >echo ' File A (2) '; > >?> > > b.php > >echo

Re: [PHP] Recent Influx of Unrelated Discussions

2010-07-16 Thread Paul M Foster
On Fri, Jul 16, 2010 at 11:59:49AM +0200, Arno Kuhl wrote: > And Daniel, your own > gentle prods to keep things on track I think sets some of the professional > tone of the list. This is very true. I've administered various lists for almost ten years, and I know for a fact that the list administ

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-16 Thread Richard Quadling
On 16 July 2010 13:47, Daniel P. Brown wrote: > On Fri, Jul 16, 2010 at 07:09, Richard Quadling wrote: >> >> Having just found a levenshtein() UDF for MS SQL [1] >> >> I'm very impressed. >> >> Thank you for the suggestion. >> >> Regards, >> >> Richard. >> >> [1] http://www.sqlteam.com/forums/top

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-16 Thread Daniel P. Brown
On Fri, Jul 16, 2010 at 07:09, Richard Quadling wrote: > > Having just found a levenshtein() UDF for MS SQL [1] > > I'm very impressed. > > Thank you for the suggestion. > > Regards, > > Richard. > > [1] http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=51540&whichpage=2#425160 Dear dearest si

RE: [PHP] Re: Weird behavior of exec()

2010-07-16 Thread Bob McConnell
From: Leonardo > Em 15/07/2010 18:54, Shawn McKenzie escreveu: >> On 07/15/2010 04:40 PM, Leonardo wrote: >>> >>> Bad habit. I know. >> >> Did it fix it? >> > > Not really. The server allows short open tags. So, nothing changed. You are running b.php as an external command, so it is running as a

Re: [PHP] Weird behavior of exec()

2010-07-16 Thread Richard Quadling
On 15 July 2010 16:51, Leonardo wrote: > Hi everybody. I need to use exec() to run a background php script, but it's > not working properly. Take a look at this sample: > > a.php >   >   echo ' File A (1) '; > >   exec('php b.php > output.txt &'); > >   echo ' File A (2) '; > >   ?> > > b.php >  

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-16 Thread Richard Quadling
On 15 July 2010 17:09, Daniel P. Brown wrote: >    Look into the following functions and families: > >        levenshtein() >        similar_text() > Having just found a levenshtein() UDF for MS SQL [1] I'm very impressed. Thank you for the suggestion. Regards, Richard. [1] http://www.sqltea

RE: [PHP] Recent Influx of Unrelated Discussions

2010-07-16 Thread Arno Kuhl
-Original Message- From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown Sent: 15 July 2010 05:11 PM To: PHP General Subject: [PHP] Recent Influx of Unrelated Discussions Also known as off-topic posts. We're all guilty of them, but has anyone recently noticed

Re: [PHP] adduser & php

2010-07-16 Thread Ashley Sheridan
On Fri, 2010-07-16 at 11:59 +0530, Gautam Bhatia wrote: > hi , > Since the adduser command demans input from the shell from the > user, i would be tempted to use the useradd command to do what you are > planning to do , give that shot . Thank you > > On Sat, 2010-07-10 at 23:02 -0400, Adam R