Re: [PHP] session lost when back button hit?

2002-08-17 Thread Justin French
on 17/08/02 4:01 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: One (hackish) solution to this is to cause the entrance page to immediately redirect to itself using either PHP's header function, or a meta refresh. Your goal here is to make it so that hitting back from a secondary

Re: [PHP] Re: Bulk Email [solution found!]

2002-08-17 Thread Paul Roberts
i tried it using the 5th parameter with -odd and the mail got qued but i also need to set [EMAIL PROTECTED] (so i get those bounces) but i got [EMAIL PROTECTED] -odd for the return path in the email. i then tried it with the -odd first and it qued the mail but didn't set the return path, i

Re: [PHP] Continue processing after redirect?

2002-08-17 Thread lallous
Hello Rasmus, Now that the topic has been brought, How much long will the script keep running after the redirection request has been made? Doesn't that behaviour depend from browser to browser ? Thanks, Elias Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Continue processing after redirect?

2002-08-17 Thread Rasmus Lerdorf
It has absolutely nothing to do with the browser. PHP is a server-side language. See http://www.php.net/manual/en/features.connection-handling.php -Rasmus On Sat, 17 Aug 2002, lallous wrote: Hello Rasmus, Now that the topic has been brought, How much long will the script keep

[PHP] Problem about rpm package of php

2002-08-17 Thread EdwardSPL
Dear All, How can I enable --with-imap with rpm / SPRMS packages of php ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem about rpm package of php

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 16:38, [EMAIL PROTECTED] wrote: Dear All, How can I enable --with-imap with rpm / SPRMS packages of php ? If you're using Redhat then install the php-imap-*.rpm package. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] Protocol on handling empty checkbox values

2002-08-17 Thread David Yee
It's not PHP's fault -- it's the CGI/POST specs. The browser is not sending it through, because that's what it was told to do :) Ah- got it. That would make sense since it's the browser that's send the form data to the server, and if it doesn't chose to I wonder why the CGI/POST specs

Re: [PHP] Problem about rpm package of php

2002-08-17 Thread EdwardSPL
If I want to enable the options ( eg : --enable-ftp, --with-gd, --with-gettext, --with-memory-limit etc ), so how can I do with rpm / SPRMS package of php ? Thank a lots ! Jason Wong wrote: On Saturday 17 August 2002 16:38, [EMAIL PROTECTED] wrote: Dear All, How can I enable --with-imap

[PHP] hyperlink parser

2002-08-17 Thread Roman
Hello, I'd need to parse html page and get all hyperlinks there. Is there any easy way to do it ? I'm not so good at regexps :( $file=file(http://url.html;); could be good start :) Thanks for any help, Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

php-general Digest 17 Aug 2002 11:24:17 -0000 Issue 1530

2002-08-17 Thread php-general-digest-help
php-general Digest 17 Aug 2002 11:24:17 - Issue 1530 Topics (messages 113026 through 113069): odbc sql php 113026 by: Saci Upgraded to PHP 4.2.2 and completely lost all GET and POST variables 113027 by: james daily 113028 by: Rasmus Lerdorf 113029 by:

Re: [PHP] Problem about rpm package of php

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 17:42, [EMAIL PROTECTED] wrote: If I want to enable the options ( eg : --enable-ftp, --with-gd, --with-gettext, --with-memory-limit etc ), so how can I do with rpm / SPRMS package of php ? If they're not enabled in the standard RPMs then: 1) Get the SRPMs and edit

Re: [PHP] Protocol on handling empty checkbox values

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 17:40, David Yee wrote: It's not PHP's fault -- it's the CGI/POST specs. The browser is not sending it through, because that's what it was told to do :) Ah- got it. That would make sense since it's the browser that's send the form data to the server, and if

Re: [PHP] hyperlink parser

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 19:25, Roman wrote: Hello, I'd need to parse html page and get all hyperlinks there. Is there any easy way to do it ? I'm not so good at regexps :( $file=file(http://url.html;); could be good start :) Even better, search the archives. -- Jason Wong -

RE: [PHP] hyperlink parser

2002-08-17 Thread Roman
On Saturday 17 August 2002 19:25, Roman wrote: I'd need to parse html page and get all hyperlinks there. Is there any easy way to do it ? I'm not so good at regexps :( Even better, search the archives. pls how to reach archives and what to search ? I have last 7.000 messages in my mailer :( I

Re: [PHP] Re: Bulk Email [solution found!]

2002-08-17 Thread Manuel Lemos
Hello, On 08/17/2002 03:52 AM, Paul Roberts wrote: i tried it using the 5th parameter with -odd and the mail got qued but i also need to set [EMAIL PROTECTED] (so i get those bounces) but i got [EMAIL PROTECTED] -odd for the return path in the email. i then tried it with the -odd first

[PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
Hi guys, I am facing a strange problem, php's mail() function is not working when a php page is executed thru apache, but the same page which has mail() function is working fine and is sending mails when php is used as a scripting language in shell. I'm using xmail's sendmail and xmail as MTA

Re: [PHP] printer_draw_text

2002-08-17 Thread robert mischke
Hi All, I'm trying to print some date right out of an php file, to do this i use the printer_draw_text function. All works fine for one line, but how can i print more than one line? printer_draw_text($handle, +, 100, $y); $y=+$fontsize; printer_draw_text($handle, +, 100, $y);

[PHP] Re: Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-17 Thread Deepak Kumar Vasudevan
PHP 4.1.2 (+) has register_globals turned off by default. Do either of the below to turn it on: 1.. Turn register_globals on in PHP.INI 2.. Use ini_set in one or more of the most commonly used files of the application to have register_globals turned on for that application. (I think a

[PHP] CHM docs help wanted

2002-08-17 Thread Gabor Hojtsy
Hi! This is loosley related to PHP itself, though would be a nice opportunity to support the PHP community for those who know the ins and outs of JavaScript... We have two known bugs left in the latest PHP Documentation CHM Edition, mostly because changes in the IE5 - IE6 behaviours. We would

Re: [PHP] Re: Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-17 Thread robert mischke
PHP 4.1.2 (+) has register_globals turned off by default. Do either of the below to turn it on: 1.. Turn register_globals on in PHP.INI 2.. Use ini_set in one or more of the most commonly used files of the application to have register_globals turned on for that application. (I

[PHP] foreach with methods returning arrays ??? any ideas ?

2002-08-17 Thread Ipa
Have a strange problem with methods.. if i use function to return some array and doing 2-level nested foreach(), for example function x(){ return array(1, 2,3); } foreach(x() as $key){ echo $key .br; foreach(x() as $key2){ echo nbsp;nbsp; . $key2 . br; } } everything works fine ... the

Re: [PHP] foreach with methods returning arrays ??? any ideas ?

2002-08-17 Thread Rasmus Lerdorf
The code is very different. In your x() function you create a new array every time you call x(). In the class example, you create the array once when you instantiate the class and then return that same array each time you call the gety() method. When PHP iterates over arrays, it maintains an

Re: [PHP] foreach with methods returning arrays ??? any ideas ?

2002-08-17 Thread Ipa
yes there is difference in creation returning array.. but i talk about other thing IMHO 1. return returns COPY of array in both cases .. no difference is it method or function 2. here we don't return reference to the same array. 3. foreach - as i have read in most sources Makes a copy of given

[PHP] Proper permissions for PHP in shared environment?

2002-08-17 Thread Bill Leonard
Hey all... I am just wondering what everyone thinks about how to properly set permissions so that a shared hosting user can use PHP to do things, like create text files, in their own directory? I know the directory that is to be written in has to have write privledges, but turning that on for

[PHP] Strange PHP + MySQL add / update issue with NULL values

2002-08-17 Thread Dan Tappin
I have a table where I have specified several columns which I have specified that NULL values are not allowed. I have created a PHP based create / update / delete page where users can update the table. I have an INSERT script that takes the user input and generates the following query

[PHP] RE: Strange PHP + MySQL add / update issue with NULL values

2002-08-17 Thread Aron Pilhofer
Try this instead: INSERT INTO table SET required_field = -Original Message- From: Dan Tappin [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 12:56 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Strange PHP + MySQL add / update issue with NULL values I have a

Re: [PHP] RE: Strange PHP + MySQL add / update issue with NULLvalues

2002-08-17 Thread Dan Tappin
That is what PHP / MySQL seems to be doing to the query once it is sent. I want to pass NULL to the column not a blank field (i.e. for text and 0 for numbers). If I do INSERT INTO table SET required_field = I get the same results. NULL means no value at all and is a empty string which in

Re: [PHP] PHP - mail() function problem

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: Hi guys, I am facing a strange problem, php's mail() function is not working when a php page is executed thru apache, but the same page which has mail() function is working fine and is sending mails when php is used as a

Re: [PHP] hyperlink parser

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 20:07, Roman wrote: On Saturday 17 August 2002 19:25, Roman wrote: I'd need to parse html page and get all hyperlinks there. Is there any easy way to do it ? I'm not so good at regexps :( Even better, search the archives. pls how to reach archives Look on the

Re: [PHP] Problem about rpm package of php

2002-08-17 Thread EdwardSPL
Jason Wong wrote: On Saturday 17 August 2002 17:42, [EMAIL PROTECTED] wrote: If I want to enable the options ( eg : --enable-ftp, --with-gd, --with-gettext, --with-memory-limit etc ), so how can I do with rpm / SPRMS package of php ? If they're not enabled in the standard RPMs then:

Re: [PHP] Re: Bulk Email [solution found!]

2002-08-17 Thread Paul Roberts
Okay i found a bug report on this http://bugs.php.net/bug.php?id=15509 Apparently it was changed to only allow one parameter for security reasons. Paul Roberts http://www.paul-roberts.com [EMAIL PROTECTED] - Original Message - From: Manuel Lemos [EMAIL

[PHP] quick ereg() question

2002-08-17 Thread eriol
I checked the manual and it's comments as well as google, but didn't find the simple answer i'm wanting.. I have the following line in a show php source code page: if (ereg((\.php)$,$o0o) !ereg(\/\.\., $o0o)){ ... } It works fine on .php files but I was hoping I could include

Re: [PHP] quick ereg() question

2002-08-17 Thread Bas Jobsen
if (ereg(((\.)(php|inc))$,$o0o) !ereg(\/\.\., $o0o)){ Op zaterdag 17 augustus 2002 23:53, schreef eriol: I checked the manual and it's comments as well as google, but didn't find the simple answer i'm wanting.. I have the following line in a show php source code page: if

Re: [PHP] quick ereg() question

2002-08-17 Thread eriol
Thank you Bas.. I appreciate the reply.. It works great.. Take care.. peace.. eriol Bas Jobsen [EMAIL PROTECTED] disgorged: : if (ereg(((\.)(php|inc))$,$o0o) !ereg(\/\.\., $o0o)){ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cleanup script

2002-08-17 Thread Liam MacKenzie
I just had a massive open house party... Is it possible to write a PHP script to collect all the bottles and cans, mop the floor, fumigate the carpet and make me lunch? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cleanup script

2002-08-17 Thread Jose Arce
that's funny...the function oh_god_im_so_lazy does the job i think jeje... From: Liam MacKenzie [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Subject: [PHP] Cleanup script Date: Sun, 18 Aug 2002 09:18:50 +1000 I just had a massive open house party... Is it possible to write a PHP script to

[PHP] preg_match help?

2002-08-17 Thread Jason Soza
I seriously need some help trying to make a match here. Obligatory disclaimer: yes, I've searched google.com, I've read the PHP manual section on preg_match(), and I've sat here for 3 hours trying to resolve this on my own. :) Any help would be great: I need to match everything between:

php-general Digest 17 Aug 2002 23:26:06 -0000 Issue 1531

2002-08-17 Thread php-general-digest-help
php-general Digest 17 Aug 2002 23:26:06 - Issue 1531 Topics (messages 113070 through 113096): Re: Problem about rpm package of php 113070 by: Jason Wong 113089 by: EdwardSPL.ita.org.mo Re: Protocol on handling empty checkbox values 113071 by: Jason Wong Re:

Re: [PHP] preg_match help?

2002-08-17 Thread Bas Jobsen
preg_match(/.*b[^]+(.*)font face=\Verdana\ size=\3\.*/, $contents,$story); echo $story[1]; preg_match always return a array. The first element ($array[0])contains your complete regexp. The next ($array[1])one the first match between () etc. Don't use ! but / Op zondag 18 augustus 2002

RE: [PHP] preg_match help?

2002-08-17 Thread vic
Ok, since I've been trying to get this working forever, how wold you get something like this working I need, to get everything between these 2 tags: div class=Section1 and /div Someone gave me this code: preg_match('!div class=Section1[^]+(.*)/div!Uis',$str,$regs); with the ! in front, and

RE: [PHP] preg_match help?

2002-08-17 Thread vic
Actually I made a mistake, I get nothing, which might mean that I am looking for the wrong thing in ereg preg match, or I don't know ,much about reg exp and that space is throwing it off I dunno.. - Vic -Original Message- From: vic [mailto:[EMAIL PROTECTED]] Sent: Saturday,

[PHP] How Can I Generate an Email List from a MySQL Table

2002-08-17 Thread Roger Lewis
I have a MySQL table named users in which there is a column named email_address and another named is_subscribed. I would like to send an email to all of the addresses for which is_subscribed is true. I think I know how to send the email, i.e., mail($to, $subject, $message, $headers); I tested

Re: [PHP] How Can I Generate an Email List from a MySQL Table

2002-08-17 Thread Chris Knipe
$to = ''; while ($blah = mysql_fetch_row($ref)) { $to =+ $blah['address']; }; Be careful however. Most SMTP servers has a limit on the number of recipients you can send one email to. It's a very easy way to trigger spam alerts and stuff. -- me - Original Message - From: Roger

[PHP] yesterday's day of week

2002-08-17 Thread Kenton Letkeman
I have been able to get yesterdays date eg. $yesterday = date('d')-1; result is 17 but am having trouble getting yesterdays day of the week. eg. $yesterday = date('D')-1; result is -1 eg. $yesterday = date('l')-1; result is -1 Is there something I am missing? I cannot find the documentation

RE: [PHP] How Can I Generate an Email List from a MySQL Table

2002-08-17 Thread Roger Lewis
Thanks for the quick responses from Chris, Daren, and Kevin. I didn't know so many would be up Sat night. This looks like it might do the trick since I only have 20 to 30 recipients and I have a dedicated server. I'll check it out and let you know. Thanks again, Roger -Original

[PHP] array's

2002-08-17 Thread Pafo
anyone that can find the problem..? description below. html head titledebug/title /head body '***' OUTPUT '**'brbr ?php class Relic { var $RelicName = Array(); var $RelicType = Array(); var $RelicRealm = Array();

Re: [PHP] How Can I Generate an Email List from a MySQL Table

2002-08-17 Thread Justin French
on 18/08/02 2:20 PM, Roger Lewis ([EMAIL PROTECTED]) wrote: Thanks for the quick responses from Chris, Daren, and Kevin. I didn't know so many would be up Sat night. It's not Saturday night everywhere :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] yesterday's day of week

2002-08-17 Thread Jason Wong
On Sunday 18 August 2002 09:38, Kenton Letkeman wrote: I have been able to get yesterdays date eg. $yesterday = date('d')-1; result is 17 but am having trouble getting yesterdays day of the week. eg. $yesterday = date('D')-1; result is -1 eg. $yesterday = date('l')-1; result is -1 Is

[PHP] Re: yesterday's day of week

2002-08-17 Thread Justin Garrett
Get the current timestamp and subtract a day's worth of seconds. date('D', time() - 24 * 60 * 60); Justin Kenton Letkeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have been able to get yesterdays date eg. $yesterday = date('d')-1; result is 17 but

Re: [PHP] yesterday's day of week

2002-08-17 Thread Justin French
There is a magic little function called strtotime()... it takes just about any english phrase, and acts on it... there are examples in the manual: http://www.php.net/manual/en/function.strtotime.php In this case, I'm guessing you'd want $yesterday = strtotime('yesterday'); Another approach

[PHP] Random Passwords Generator

2002-08-17 Thread César Aracena
Hi all. I know there must be several ways of doing this but I wonder what the best solution is. I'm tired of making and looking at scripts that creates random passwords for users from a words.txt list. These kind of passwords are limited only to the number of strange words your fingers type into

Re: [PHP] array's

2002-08-17 Thread Jason Wong
On Sunday 18 August 2002 12:25, Pafo wrote: anyone that can find the problem..? description below. function PrintInfo() { for ($this-i = 0; $this-i count($this-RelicName); $this-i++) { print $this-RelicName[$this-i] : $this-RelicType[$this-i] : $this-RelicRealm[$this-i] :

AW: [PHP] array's

2002-08-17 Thread robert mischke
anyone that can find the problem..? description below. html head titledebug/title /head body '***' OUTPUT '**'brbr ?php class Relic { var $RelicName = Array(); var $RelicType = Array(); var

[PHP] Re: How Can I Generate an Email List from a MySQL Table

2002-08-17 Thread Manuel Lemos
Hello, On 08/18/2002 12:10 AM, Roger Lewis wrote: I have a MySQL table named users in which there is a column named email_address and another named is_subscribed. I would like to send an email to all of the addresses for which is_subscribed is true. I think I know how to send the email,

Re: [PHP] quick ereg() question

2002-08-17 Thread Jason Wong
On Sunday 18 August 2002 05:53, eriol wrote: It works fine on .php files but I was hoping I could include .inc files as well when someone wanted to view the source of them.. To include .inc files as viewable php source code, I'd rewrite it similar to below I assume, but I'm not understanding

[PHP] Re: Random Passwords Generator

2002-08-17 Thread Manuel Lemos
Hello, On 08/18/2002 01:51 AM, César aracena wrote: Hi all. I know there must be several ways of doing this but I wonder what the best solution is. I'm tired of making and looking at scripts that creates random passwords for users from a words.txt list. These kind of passwords are limited

Re: [PHP] preg_match help?

2002-08-17 Thread Jason Wong
On Sunday 18 August 2002 08:29, vic wrote: Ok, since I've been trying to get this working forever, how wold you get something like this working I need, to get everything between these 2 tags: div class=Section1 and /div Someone gave me this code: preg_match('!div

Re: [PHP] Random Passwords Generator

2002-08-17 Thread Liam MacKenzie
These may help http://scripts.operationenigma.net/ note: passgen.php passgen.phps Leave the rest alone ;-) - Original Message - From: César Aracena [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 2:51 PM Subject: [PHP] Random Passwords