php-general Digest 16 Jul 2010 15:42:52 -0000 Issue 6849

2010-07-16 Thread php-general-digest-help
php-general Digest 16 Jul 2010 15:42:52 - Issue 6849 Topics (messages 306936 through 306947): PHP - MOODLE - WORK IN AUSTRALIA 306936 by: Gary Crouch Re: adduser php 306937 by: Gautam Bhatia 306938 by: Ashley Sheridan Re: Recent Influx of Unrelated Discussions

[PHP] PHP - MOODLE - WORK IN AUSTRALIA

2010-07-16 Thread Gary Crouch
Hi We are looking for some one who knows Moodle well and can write for us, web service's so that we can integrate our application with Moodle. Expressions of interest are sought from persons or companies who can work on a project in Australia, pref Brisbane. Please email me on:-

Re: [PHP] adduser php

2010-07-16 Thread Gautam Bhatia
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 Richardson wrote: On Sat, Jul 10, 2010 at 4:39 PM, Matt M.

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

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] 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 daniel.br...@parasane.net 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.

Re: [PHP] Weird behavior of exec()

2010-07-16 Thread Richard Quadling
On 15 July 2010 16:51, Leonardo leobasi...@oi.com.br 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) ';   ?

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 CLI, not in the

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 rquadl...@gmail.com 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=51540whichpage=2#425160 Dear

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 daniel.br...@parasane.net wrote: On Fri, Jul 16, 2010 at 07:09, Richard Quadling rquadl...@gmail.com wrote: Having just found a levenshtein() UDF for MS SQL [1] I'm very impressed. Thank you for the suggestion. Regards, Richard. [1]

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

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 'File B';

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. ?php // TestA.php echo ' File A (1) '; exec('C:\\php5\\php.exe -f Z:\\TestB.php

[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:

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 21');

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

Re: [PHP] ldap_search filter filter?

2010-07-16 Thread Andrew Ballard
On Fri, Jul 16, 2010 at 11:42 AM, Richard Lynch c...@l-i-e.com 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.

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

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