php-general Digest 17 Sep 2007 11:46:14 -0000 Issue 5023

2007-09-17 Thread php-general-digest-help
php-general Digest 17 Sep 2007 11:46:14 - Issue 5023 Topics (messages 262150 through 262160): Re: Finding next recored in a array 262150 by: brian 262151 by: Richard Kurth 262152 by: Rick Pasotto 262153 by: Richard Kurth 262154 by: Richard Kurth

Re: [PHP] Finding next recored in a array

2007-09-17 Thread M. Sokolewicz
Rick Pasotto wrote: On Sun, Sep 16, 2007 at 06:04:45PM -0700, Richard Kurth wrote: Richard Kurth wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the

Re: [PHP] Configure mail to use Gmail smtp

2007-09-17 Thread dcastillo
the only possible problem is that with Gmail you cant send too many mails at once, more than 30 or so and it gives you an error . so if you are going to be doing mass mailing you may not be able to use it. - Original Message - From: Thomas Bachmann [EMAIL PROTECTED] To:

Re: [PHP] Configure mail to use Gmail smtp

2007-09-17 Thread dcastillo
what do you mean using the zend framework. What did you do exactly? - Original Message - From: debussy007 [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, September 16, 2007 12:24 PM Subject: Re: [PHP] Configure mail to use Gmail smtp I succeeded using the Zend

Re: [PHP] Parsing Poor XML into to PHP

2007-09-17 Thread Gavin M. Roy
I'm not sure, but perhaps tidy can fix the broken elements of the xml file... I don't remember if it will close your quotes or just drop the element from the tag. On 9/17/07, John Taylor-Johnston [EMAIL PROTECTED] wrote: Pour examples of xml, but this is what I want to do. I have a quiz.

[PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Hi all... I'm facing a serious problem with my application. I have a script write in PHP that starts in Internet Explorer, this script keep on running until a varible value change on my MySQL database. The problem is that when i restart Apache, the process child initalized isn't kill... then the

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Edward Kay
I'm facing a serious problem with my application. I have a script write in PHP that starts in Internet Explorer, this script keep on running until a varible value change on my MySQL database. The problem is that when i restart Apache, the process child initalized isn't kill... then the apache

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Edward , my best guess is that not IE is holding the connection but the apache user... because the process is related to the apache user... and there's more i can close IE, bacause i use the directive 2 log.log on the call of system. Example: system(php myscript.php 2 log.log ); This why IE

Re: [PHP] Finding next recored in a array

2007-09-17 Thread tedd
Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that that is the current number so I can select the next

Re: [PHP] Finding next recored in a array

2007-09-17 Thread brian
tedd wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that that is the current number so I can select

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Jim, i've already look for pcntl... but the support server guys, tell me that they can't install php modules that are not pre-compiled... so, pcntl is not an alternative... I think you are right... i have to make this script a daemon... but how can i do that with php??... the problem is that

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Jim Lucas
Rodolfo De Nadai wrote: Edward , my best guess is that not IE is holding the connection but the apache user... because the process is related to the apache user... and there's more i can close IE, bacause i use the directive 2 log.log on the call of system. Example: system(php myscript.php 2

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
No... it not should only run when i'm connected to it throught a web server... it means that when i go to specific IE page and press a button named 'Enable' the daemon should be called and start to run indefinitly, and i'm able to close IE session and the daemon keep working as well... That's

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Jim Lucas
Rodolfo De Nadai wrote: No... it not should only run when i'm connected to it throught a web server... it means that when i go to specific IE page and press a button named 'Enable' the daemon should be called and start to run indefinitly, and i'm able to close IE session and the daemon keep

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Right on the moment this process is not a option... because the project should end in 4 weeks... perhaps after a while i could try use this ideia of yours... But right now i have to find a diferent solution... But thanks Jim... that open new horizons... Jim Lucas escreveu: Rodolfo De Nadai

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Jim Lucas
Rodolfo De Nadai wrote: Jim, i've already look for pcntl... but the support server guys, tell me that they can't install php modules that are not pre-compiled... so, pcntl is not an alternative... Bummer, get new support server guys... no, but really I think you are right... i have

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Jim Lucas
Richard Kurth wrote: $query = SELECT day FROMemailcampaign where campaign_id = '$emailcampaign' AND member_id = '$members_id' ; $DB_Change_Campaign_Results = safe_query($query); while ( $row =

Re: [PHP] PHP preg_replace help

2007-09-17 Thread Jim Lucas
Chaim Chaikin wrote: Hello, I am a beginner in PHP. I need help with the function preg_replace. I am trying to remove the backslashes ( \ ) from a string that is submitted by the user. It is submitted in a form but it adds \ before the quotation marks ( ). Will this change if I use the

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
M. Sokolewicz wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 06:04:45PM -0700, Richard Kurth wrote: Richard Kurth wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Daevid Vincent
-Original Message- From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 5:25 AM To: php-general@lists.php.net Subject: [PHP] Try to find a solution, when restart Apache with PHP Script Hi all... I'm facing a serious problem with my application.

Re: [PHP] Finding next recored in a array

2007-09-17 Thread brian
Richard Kurth wrote: What I am trying to is get all the days from a table where email campaign = number. and then look at the last day that was sent and find it in the list and get the next day that follows that day. At this point the script below is not working. So if you have any Ideas

[PHP] PHP preg_replace help

2007-09-17 Thread Chaim Chaikin
Hello, I am a beginner in PHP. I need help with the function preg_replace. I am trying to remove the backslashes ( \ ) from a string that is submitted by the user. It is submitted in a form but it adds \ before the quotation marks ( ). Will this change if I use the GET method instead of

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Rodolfo De Nadai
Hi Daevid, This app keep alive forever as well? When you restart apache what happend to your app? Daevid Vincent escreveu: -Original Message- From: Rodolfo De Nadai [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 5:25 AM To: php-general@lists.php.net Subject: [PHP]

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
brian wrote: Richard Kurth wrote: What I am trying to is get all the days from a table where email campaign = number. and then look at the last day that was sent and find it in the list and get the next day that follows that day. At this point the script below is not working. So if you

[PHP] PHPSESSID in links

2007-09-17 Thread Kevin Murphy
I've got a site (password protected, sorry) where I have this in the top of my template: session_start(); $iSessionId = session_id(); $iSessionName = session_name(); Then I have a bunch of links like this in the site: echo a href=\/departments/\Departments/a; The

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Jim Lucas
REVISED Try this ?php $query = SELECT day FROMemailcampaign WHERE campaign_id = '$emailcampaign' AND member_id = '$members_id' ; $DB_Change_Campaign_Results = safe_query($query); ## ## NOTICE: changed from array to assoc ##

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Jim Lucas
Richard Kurth wrote: include (includes/location.php); $query = SELECTday FROMemailcampaign wherecampaign_id = '1' ANDmember_id = '8' ; $DB_Change_Campaign_Results = safe_query($query); $Campaign_array = array(); while ( $row =

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Daevid Vincent
We put a timeout at the top and show an error if the server never comes back. You could do whatever you want. As long as the user doesn't try to refresh the page or go somewhere else on your server, the ajax will just keep trying in the background. That's all client-side JS / AJAX.

[PHP] back-button question

2007-09-17 Thread Πρεκατές Αλέξανδρος
I'a writing first time so sorry if i reapeat but i wanted to say this in my own words and angle. My question is : Lets assume that we'r going throught php/html files a- b -- c || 1)From a to b through a link 2)from b to c through a submit button (post method)

Re: [PHP] PHP preg_replace help

2007-09-17 Thread Arpad Ray
Jim Lucas wrote: Here is a nice little hack that I use. Little hack it is, nice it isn't. Ideally just turn off magic_quotes_gpc - you can do so in php.ini, or perhaps your web server configuration files (httpd.conf, .htaccess etc.). If you don't have access to any of the above then

Re: [PHP] PHPSESSID in links

2007-09-17 Thread Stut
Kevin Murphy wrote: I've got a site (password protected, sorry) where I have this in the top of my template: session_start(); $iSessionId = session_id(); $iSessionName = session_name(); Then I have a bunch of links like this in the site: echo a href=\/departments/\Departments/a;

Re: [PHP] Finding next recored in a array

2007-09-17 Thread M. Sokolewicz
Richard Kurth wrote: What I am trying to is get all the days from a table where email campaign = number. and then look at the last day that was sent and find it in the list and get the next day that follows that day. At this point the script below is not working. So if you have any Ideas that

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
Jim Lucas wrote: Richard Kurth wrote: $query = SELECTday FROMemailcampaign wherecampaign_id = '$emailcampaign' ANDmember_id = '$members_id' ; $DB_Change_Campaign_Results = safe_query($query); while ( $row =

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
Jim Lucas wrote: REVISED Try this ?php $query = SELECTday FROMemailcampaign WHEREcampaign_id = '$emailcampaign' ANDmember_id = '$members_id' ; $DB_Change_Campaign_Results = safe_query($query); ## ## NOTICE: changed from array to assoc ##

Re: [PHP] back-button question

2007-09-17 Thread Eric Butera
On 9/17/07, Πρεκατές Αλέξανδρος [EMAIL PROTECTED] wrote: I'a writing first time so sorry if i reapeat but i wanted to say this in my own words and angle. My question is : Lets assume that we'r going throught php/html files a- b -- c || 1)From a to b through a

Re: [PHP] dir_object-read() on different platform

2007-09-17 Thread Jim Lucas
news.php.net wrote: Hi! I have some text and JPEG files inside a directory like: 1992-7-11.txt 1992-7-11_pic1.jpg 2000-4-10.txt 2000-4-10_pic1.jpg 2004-5-2.txt 2004-5-2_pic1.jpg On a Windows box (XP + Apache), if I do a dir_object-read() for the directory, read() reads the files above in order

[PHP] dir_object-read() on different platform

2007-09-17 Thread news.php.net
Hi! I have some text and JPEG files inside a directory like: 1992-7-11.txt 1992-7-11_pic1.jpg 2000-4-10.txt 2000-4-10_pic1.jpg 2004-5-2.txt 2004-5-2_pic1.jpg On a Windows box (XP + Apache), if I do a dir_object-read() for the directory, read() reads the files above in order (eg.

Re: [PHP] dir_object-read() on different platform

2007-09-17 Thread Jim Lucas
Jim Lucas wrote: news.php.net wrote: Hi! I have some text and JPEG files inside a directory like: 1992-7-11.txt 1992-7-11_pic1.jpg 2000-4-10.txt 2000-4-10_pic1.jpg 2004-5-2.txt 2004-5-2_pic1.jpg On a Windows box (XP + Apache), if I do a dir_object-read() for the directory, read() reads the

Re: [PHP] dir_object-read() on different platform

2007-09-17 Thread Jim Lucas
news.php.net wrote: Hi! I have some text and JPEG files inside a directory like: 1992-7-11.txt 1992-7-11_pic1.jpg 2000-4-10.txt 2000-4-10_pic1.jpg 2004-5-2.txt 2004-5-2_pic1.jpg On a Windows box (XP + Apache), if I do a dir_object-read() for the directory, read() reads the files above in order