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
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
> 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
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
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 - 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
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
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
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
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 :(
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
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
> 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 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
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
> 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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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 - 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
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
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
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
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
$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
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
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-
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
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
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 "-
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"
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
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
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
> anyone that can find the problem..?
> description below.
>
>
>
> debug
>
>
> '***' OUTPUT
> '**'
>
> class Relic {
>
> var $RelicName = Array();
> var $RelicType = Array();
> var $RelicRealm = Array();
> var
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
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
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
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
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
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
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
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
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
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.