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

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 spe

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 --wit

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

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

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 edi

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

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

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 fi

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

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 va

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

[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 .""; foreach(x() as $key2){ echo "  " . $key2 . ""; } } everything works fine ... the output i

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 ar

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 a

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

[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 statement.

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

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 i

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 Loo

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 t

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 PRO

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

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

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/un

[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

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

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

Re: [PHP] preg_match help?

2002-08-17 Thread Bas Jobsen
preg_match("/.*]+>(.*).*/", $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 01:27, schreef Jason Soza: > I se

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: and Someone gave me this code: preg_match('!]+>(.*)!Uis',$str,$regs); with the ! in front, and !Uis at the end, what does that mean? And when

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, Aug

[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

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 Lewi

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

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 Message-

[PHP] array's

2002-08-17 Thread Pafo
anyone that can find the problem..? description below. debug '***' OUTPUT '**' i = 0; $this->i < count($this->RelicName); $this->i++) { print "$this->RelicName[$this->i] : $this->RelicType[$this->i] : $this->RelicRe

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, vis

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 "-

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

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 wo

[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

AW: [PHP] array's

2002-08-17 Thread robert mischke
> anyone that can find the problem..? > description below. > > > > debug > > > '***' OUTPUT > '**' > > class Relic { > > var $RelicName = Array(); > var $RelicType = Array(); > var $RelicRealm = 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 th

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 understand

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

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: > > and > > Someone gave me this code: > > preg_match('!]+>(.*)!Uis',$str,$regs); > > with the ! i

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 Passwo

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

2002-08-17 Thread N. Pari Purna Chand
Hi Jason, I have found out the mistake I did, the /usr/bin/sendmail that my MTA(XMAIL in this case) uses was not 'chmod +s' ed. Ans that is the reason when I ran the script in shell ( being logged in as root) it worked fine, and not thru apache. /chandu - Original Message - From: "Ja

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

2002-08-17 Thread N. Pari Purna Chand
Hi Jason, I have found out the mistake I did, the /usr/bin/sendmail that my MTA(XMAIL in this case) uses was not 'chmod +s' ed. Ans that is the reason when I ran the script in shell ( being logged in as root) it worked fine, and not thru apache. /chandu - Original Message - From: "Ja

[PHP] ICQ interface?

2002-08-17 Thread Justin French
Has anyone built, or partially built an interface to ICQ? I'm not necessarily looking for full IM thru a web/PHP interface, but maybe some small stuff, like finding out if a certain user is online? I did a google and found this on Zend.com, but can't get it working (it returns "unknown" everytim

[PHP] pop-up

2002-08-17 Thread Mantas Kriauciunas
Hey php-general, whats the easyest way to send variables to pop-up? i got button like this: its just standing hare.. do i add to post or how is the easy way to do it.. it just pops up window and i need to pass variables to that pop up whish takes variables from the form before that

Re: [PHP] pop-up

2002-08-17 Thread Justin French
You need to modify topWindow() so that you can pass a query string to it, which you can then use to add to the URL of the pop-up window.