[PHP] Parsing commands to a program

2002-02-02 Thread Liam MacKenzie

Hello,

I was wondering, how would I pass commands to a program and print the
results on my screen?
For instance, to add an FTP user the command would be:
"pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
How would I make a php script do that and display it's output when it's
done?

Thanks,
Liam





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] script running under certain user

2002-02-02 Thread val petruchek

Hello, php-world!

I know my question a little offtopic;), but:

we have apache running under user "nobody".

now we want to change this user to another one on certain folder.
We want php to run under this new user.

We cannot change set httpd.conf to do it.

can anyone give an example of such solution?

Thanks

Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parsing commands to a program

2002-02-02 Thread val petruchek

> Hello,
>
> I was wondering, how would I pass commands to a program and print the
> results on my screen?
> For instance, to add an FTP user the command would be:
> "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
> How would I make a php script do that and display it's output when it's
> done?
>


Try


but not sure about security allows u to do it

Valentin Petruchek (aki Zliy Pes)
Cut the beginning
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Can this be done in PHP?

2002-02-02 Thread S.Murali Krishna


Based on the GET_VARS you can identify the image and do some 
mapping stuffs to get the sitename. Then you can construct your header
accordingly with 'Location:' parameter to view that site.


On Fri, 1 Feb 2002, Lazor, Ed wrote:

> I'm trying to understand how this banner exchange works and whether it can
> be done in PHP.  Here's the HTML you put on your web page:
> 
>  href="http://rpgx.rpgconsortium.com/xchange/engage.cgi?advert=NonSSI&page=XX
> "> src="http://rpgx.rpgconsortium.com/xchange/engage.cgi?id=atfantasy&page=01";
> border="0" width="468" height="60">
> 
> 
> It...
> - displays a random banner image
> - takes you to the site relating to the displayed image
> 
> How does it do that?  Any ideas on how to do this in PHP?
> 
> -Ed
> 
>  
> 
> This message is intended for the sole use of the individual and entity to
> whom it is addressed, and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law.  If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose or
> distribute to anyone the message or any information contained in the
> message.  If you have received this message in error, please immediately
> advise the sender by reply email and delete the message.  Thank you very
> much.   
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

S.Murali Krishna
[EMAIL PROTECTED]  
= 
We grow slow trying to be great

   - E. Stanley Jones
-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parsing commands to a program

2002-02-02 Thread Liam MacKenzie

Nope, can't get that to work.
Any more suggestions?

- Original Message -
From: "val petruchek" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 8:58 PM
Subject: Re: [PHP] Parsing commands to a program


> > Hello,
> >
> > I was wondering, how would I pass commands to a program and print the
> > results on my screen?
> > For instance, to add an FTP user the command would be:
> > "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
> > How would I make a php script do that and display it's output when it's
> > done?
> >
>
>
> Try
>  echo `pure-pw useradd joeblow -u ftpuser -d /home/joeblow`; //not quotes
by
> ticks!
> ?>
>
> but not sure about security allows u to do it
>
> Valentin Petruchek (aki Zliy Pes)
> Cut the beginning
> http://zliypes.com.ua
> mailto:[EMAIL PROTECTED]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Check Boxes and updating records. (HELP ME....)

2002-02-02 Thread Yogesh

Hi! I've developed something like this recently, i'll explain to you how
i proceeded, maybe that'll help you to solve your problem :-)

Here goes:
I have the following tables:
1. users (primary key: user_id)
2. categories (primary key: category_id)

Now, the users may be in different categories, i.e. there is a many-to-many
relationship between users and categories, thus i create the table
user_category which contains the following fields:
1.user_id
2.category_id

Now, for the part where i display the users for modification, i first query
my table users, to display all my users

$all = "select * from users";
$result = mysql_query($all) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
// i have a link on each user, e.g.
echo '";
}

}


This should do the trick!
You can try it and modify it to suit your needs. :-)
Now you can check new values and post your form to process the modification.

If that still doesn't work, please let me know, and i'll give you the
solution on Monday cos my stuffs are on my pc at work :-)

Regards,

Yogesh Mahadnac,
Web Developer,
Sohonet Information Technology Ltd,
49, Maurel Lane,
Charles Lees Street,
Curepipe,
Mauritius.
Tel : +230 6704066
Fax: +230 6700511


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: create xml document with PHP

2002-02-02 Thread hassan

hi

another great way of doing what you want to do is to use templates

regards,
__
Hassan El Forkani
http://WarmAfrica.com EveryOne's Africa
__


At 21:20 29/01/02, you wrote:
>Hello,
>
>Rodrigo Peres wrote:
> >
> > Hi list,
> >
> > I'm new to the xml world, and I need to create a page with data retrieved
> > from my database using PHP. The process is the same of create an html 
> page??
> > I mean I can use echo to output the xml tags and values?? Since this page
> > will be dinamically generated what kind of headers I need to use to this
> > page become an xml???
>
>I don't think serving XML directly to the browser is a good idea because
>many browsers would not render it.
>
>
> > I saw many docs in web but all about parse an xml, but not in how to build
> > one.
>
>This PHP class does exactly what you need. See the documentation for a
>typical example.
>
>Regards,
>Manuel Lemos
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

__

hassan el forkani
http://WarmAfrica.com EveryOne's Africa
__


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] [URGENT] PHP as an apache module on windows under cygwin

2002-02-02 Thread Stephano Mariani

Hi!
I am very new to both windows and PHP (coming from a solaris
environment), so please excuse me if the answer is glaringly obvious.

I have built and installed apache (1.3.23) on a windows 2000
Professional (SP2, build 2195) box with cygwin (1.3.9, I believe). The
build supports many of the modules included with apache and supports
shared objects. Some of the modules are built as shared objects.

Is there a way to use the win32 binaries with apache? I keep getting a
win32 error when apache tries to dlopen the php module.

If not, how can I build php 4.1.1 as a shared object for apache? Please
assume no knowledge on my part.

TIA

Stephano Mariani




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parsing commands to a program

2002-02-02 Thread Jason Cox

How I've done it in the past is to dynamically build the command string and
then pass it through the exec function like so:

$cmdStr = "pure-pw useradd joeblow -u ftpuser -d /home/joeblow";
exec($cmdStr);

The exec call won't display output but I believe if you use system($cmdStr)
it will.  I don't think this method will work if the useradd program prompts
for a password.  The exec and system calls just execute the command and
exit.

Jason

- Original Message -
From: "Liam MacKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 5:54 AM
Subject: Re: [PHP] Parsing commands to a program


> Nope, can't get that to work.
> Any more suggestions?
>
> - Original Message -
> From: "val petruchek" <[EMAIL PROTECTED]>
> To: "PHP" <[EMAIL PROTECTED]>
> Sent: Saturday, February 02, 2002 8:58 PM
> Subject: Re: [PHP] Parsing commands to a program
>
>
> > > Hello,
> > >
> > > I was wondering, how would I pass commands to a program and print the
> > > results on my screen?
> > > For instance, to add an FTP user the command would be:
> > > "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
> > > How would I make a php script do that and display it's output when
it's
> > > done?
> > >
> >
> >
> > Try
> >  > echo `pure-pw useradd joeblow -u ftpuser -d /home/joeblow`; //not quotes
> by
> > ticks!
> > ?>
> >
> > but not sure about security allows u to do it
> >
> > Valentin Petruchek (aki Zliy Pes)
> > Cut the beginning
> > http://zliypes.com.ua
> > mailto:[EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Attaching a file via MAIL()

2002-02-02 Thread DL Neil

Dave and Mauricio,
(basically the same question!)

> How can I add an attachment to an email using MAIL().  So far I have been
> able to successfully send email by using:
> 
>  mail($to, $subject, $message, $headers);
> 
> Is there something I can add in the $headers to add an attachment??

=check out the scripts at PHPguru.org
 
> I am running PHP 4 and apache under a windows 98 environment... if that
> helps any.

=you're a braver man than I !
=dn




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: [URGENT] PHP as an apache module on windows under cygwin

2002-02-02 Thread David

 why would you need cygwin am i missing something? there's Win32 binaries availiable 
for apache
check out: http://www.apache.org/dist/httpd/binaries/win32/

as for running it as a module for Apache(Win32), check this out: 
http://sg.php.net/manual/en/install.apache.php

many people prefer using the CGI option under Apache(Win32) thou...
- Original Message - 
Hi!
I am very new to both windows and PHP (coming from a solaris
environment), so please excuse me if the answer is glaringly obvious.

I have built and installed apache (1.3.23) on a windows 2000
Professional (SP2, build 2195) box with cygwin (1.3.9, I believe). The
build supports many of the modules included with apache and supports
shared objects. Some of the modules are built as shared objects.

Is there a way to use the win32 binaries with apache? I keep getting a
win32 error when apache tries to dlopen the php module.

If not, how can I build php 4.1.1 as a shared object for apache? Please
assume no knowledge on my part.

TIA

Stephano Mariani





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] HOT! - PHP4.1.x - Step by Step Installation manual

2002-02-02 Thread Andre Amaral

Hi all. Here is my first attempt to make easy Step by Step installation
manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or
ISAPI. Here is the link that will ake a lot of people happy. :)
http://www.experttek.com/php/installation.php

Fell free to contact me. Contact info are in the manual.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Adding 6 digits to a str?

2002-02-02 Thread Andy

Hi guys,

I am trying to force a int to be 8 digits. If it is only 3 dig filling the
first ones with 0.

Anyhow I tryed it with type casting, but it does not matter what I try, I
always get an addition.

E.g:
  $member_id is: 136
   should be: 0136

Here is the code, which is still returning 136:

   for($i=0;$ihttp://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to get the URL into a var?

2002-02-02 Thread Andy

thanx works !


"Francois Jordaan" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am trying to find out which dir the user is browsing. How
> > can I get the
> > URL into a var? I tryed path_info, but it only returns the filename.
>
> I'm quite new to PHP, but I've had to do the same thing recently.
> Someone mentioned
> http://www.php.net/manual/en/language.variables.predefined.php
> ...but as far as I could tell none of them would give only "subapp" in
> your example.
>
> This may work for you:
>
> $page_url = $REQUEST_URI;
> $url_array = parse_url ($page_url);
> $directory = dirname ($url_array["path"]);
> print("Dir the user is browsing: $directory");
>
> Hope that helps,
>
> francois
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Adding 6 digits to a str?

2002-02-02 Thread Jeff Sheltren

Why is it that you want to represent an int with leading 0's?  Is it just 
to print it out that way?  If that is the case, then you can use the printf 
function for formatted printing.


Jeff

At 10:53 AM 2/2/2002 +0100, Andy wrote:
>Hi guys,
>
>I am trying to force a int to be 8 digits. If it is only 3 dig filling the
>first ones with 0.
>
>Anyhow I tryed it with type casting, but it does not matter what I try, I
>always get an addition.
>
>E.g:
>   $member_id is: 136
>should be: 0136
>
>Here is the code, which is still returning 136:
>
>for($i=0;$i$length = strlen($member_id[$i]);
>
> settype ($member_id[$i], "string");
> $zero = '0';
> settype ($zero, "string");
>
> $member_id[$i] = $zero + $member_id[$i];
> echo $member_id[$i];
>}
>
>Does anybody know how to solve this thing??
>
>Thanx Andy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Adding 6 digits to a str?

2002-02-02 Thread Edward van Bilderbeek - Bean IT

like this:

$digit = 122;
 $digits = sprintf ("%08d", $digit);
 print $digits;

Greets,

Edward


- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Andy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 6:41 PM
Subject: Re: [PHP] Adding 6 digits to a str?


> Why is it that you want to represent an int with leading 0's?  Is it just
> to print it out that way?  If that is the case, then you can use the
printf
> function for formatted printing.
>
>
> Jeff
>
> At 10:53 AM 2/2/2002 +0100, Andy wrote:
> >Hi guys,
> >
> >I am trying to force a int to be 8 digits. If it is only 3 dig filling
the
> >first ones with 0.
> >
> >Anyhow I tryed it with type casting, but it does not matter what I try, I
> >always get an addition.
> >
> >E.g:
> >   $member_id is: 136
> >should be: 0136
> >
> >Here is the code, which is still returning 136:
> >
> >for($i=0;$i >$length = strlen($member_id[$i]);
> >
> > settype ($member_id[$i], "string");
> > $zero = '0';
> > settype ($zero, "string");
> >
> > $member_id[$i] = $zero + $member_id[$i];
> > echo $member_id[$i];
> >}
> >
> >Does anybody know how to solve this thing??
> >
> >Thanx Andy
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Default mysql path

2002-02-02 Thread Uma Shankari T.



Hello,

  I have installed php and mysql in my machine.By default in which path
php check for mysql

Anyone can know this tell to me as soon as possible


-Uma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




php-general Digest 2 Feb 2002 19:00:01 -0000 Issue 1148

2002-02-02 Thread php-general-digest-help


php-general Digest 2 Feb 2002 19:00:01 - Issue 1148

Topics (messages 83232 through 83249):

IP based redirection
83232 by: PHPbin.dinsol.com

Parsing commands to a program
83233 by: Liam MacKenzie
83235 by: val petruchek
83237 by: Liam MacKenzie
83241 by: Jason Cox

script running under certain user
83234 by: val petruchek

Re: Can this be done in PHP?
83236 by: S.Murali Krishna

Re: Check Boxes and updating records. (HELP ME)
83238 by: Yogesh

Re: create xml document with PHP
83239 by: hassan

[URGENT] PHP as an apache module on windows under cygwin
83240 by: Stephano Mariani
83243 by: David

Re: Attaching a file via MAIL()
83242 by: DL Neil

HOT! - PHP4.1.x - Step by Step Installation manual
83244 by: Andre Amaral

Adding 6 digits to a str?
83245 by: Andy
83247 by: Jeff Sheltren
83248 by: Edward van Bilderbeek - Bean IT

Re: How to get the URL into a var?
83246 by: Andy

Default mysql path
83249 by: Uma Shankari T.

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Could you please help us, to redirect some of our pages to based on IP 
address.
We have used SmartRedirect program but it is not working on with some of 
our ISP's IP address. We are located at India, and like to have some 
language specific pages to be displayed to our Indian user while english 
language to other world.
Thanks,

Hemant Kumar
DInsol.com
http://www.dinsol.com/

--- End Message ---
--- Begin Message ---

Hello,

I was wondering, how would I pass commands to a program and print the
results on my screen?
For instance, to add an FTP user the command would be:
"pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
How would I make a php script do that and display it's output when it's
done?

Thanks,
Liam





--- End Message ---
--- Begin Message ---

> Hello,
>
> I was wondering, how would I pass commands to a program and print the
> results on my screen?
> For instance, to add an FTP user the command would be:
> "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
> How would I make a php script do that and display it's output when it's
> done?
>


Try


but not sure about security allows u to do it

Valentin Petruchek (aki Zliy Pes)
Cut the beginning
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]




--- End Message ---
--- Begin Message ---

Nope, can't get that to work.
Any more suggestions?

- Original Message -
From: "val petruchek" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 8:58 PM
Subject: Re: [PHP] Parsing commands to a program


> > Hello,
> >
> > I was wondering, how would I pass commands to a program and print the
> > results on my screen?
> > For instance, to add an FTP user the command would be:
> > "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
> > How would I make a php script do that and display it's output when it's
> > done?
> >
>
>
> Try
>  echo `pure-pw useradd joeblow -u ftpuser -d /home/joeblow`; //not quotes
by
> ticks!
> ?>
>
> but not sure about security allows u to do it
>
> Valentin Petruchek (aki Zliy Pes)
> Cut the beginning
> http://zliypes.com.ua
> mailto:[EMAIL PROTECTED]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



--- End Message ---
--- Begin Message ---

How I've done it in the past is to dynamically build the command string and
then pass it through the exec function like so:

$cmdStr = "pure-pw useradd joeblow -u ftpuser -d /home/joeblow";
exec($cmdStr);

The exec call won't display output but I believe if you use system($cmdStr)
it will.  I don't think this method will work if the useradd program prompts
for a password.  The exec and system calls just execute the command and
exit.

Jason

- Original Message -
From: "Liam MacKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 5:54 AM
Subject: Re: [PHP] Parsing commands to a program


> Nope, can't get that to work.
> Any more suggestions?
>
> - Original Message -
> From: "val petruchek" <[EMAIL PROTECTED]>
> To: "PHP" <[EMAIL PROTECTED]>
> Sent: Saturday, February 02, 2002 8:58 PM
> Subject: Re: [PHP] Parsing commands to a program
>
>
> > > Hello,
> > >
> > > I was wondering, how would I pass commands to a program and print the
> > > results on my screen?
> > > For instance, to add an FTP user the command would be:
> > > "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
> > > How would I make a php script do that and display it's output when
it's
> > > done?

[PHP] attachment via mail PHP

2002-02-02 Thread Olev Rumm

Hello

I was looking a way to fill a forms on line and send them over via the server.

 Found a good(in my mind) and simple php mail skript

 from http://open.appideas.com/phpMailForm/source.php

 

 I managed to get it working. In my form there is a upload the the file section.

 like this:

 

 with max value of 2megs.

 It's not working. Pecause Im absolutely new in this I dont have a any idea how to

 implement attachment part into this script.Original script is here:

 

 

 

 

 

 The following information has been delivered:

 

 

 $key = $val";

 $Message .= "$key = $val\n";

 }

 

 if ($Header) {

 $Message = $Header."\n\n".$Message;

 }

 

 if ($Footer) {

 $Message .= "\n\n".$Footer;

 }

 

 mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress");

 ?>

 

 Thank You!

 

 ">Return To The Mail Form

 Home Page

 

 I dont know if I'm explained correctly so please excuse me.

Can anybody help please.

 Olev.




[PHP] how to add attachment

2002-02-02 Thread Olev Rumm

Hello

> I was looking a way to fill a forms on line and send them over via the server.

> 

> Found a good(in my mind) and simple php mail skript

> from http://open.appideas.com/phpMailForm/source.php

> 

> I managed to get it working. In my form there is a upload the the file section.

> like this:

> 

> with max value of 2megs.

> It's not working. Pecause Im absolutely new in this I dont have a any idea how to

> implement attachment part into this script.Original script is here:

> 

>  $MailToAddress = "[EMAIL PROTECTED]";

> $MailSubject = "Equipment Posting";

> if (!$MailFromAddress) {

> $MailFromAddress = "[EMAIL PROTECTED]";

> }

> $Header = "";

> $Footer = "";

> ?>

> 

> 

> 

> The following information has been delivered:

> 

> 

>  if (!is_array($HTTP_POST_VARS))

> return;

> reset($HTTP_POST_VARS);

> while(list($key, $val) = each($HTTP_POST_VARS)) {

> $GLOBALS[$key] = $val;

> $val=stripslashes($val);

> echo "$key = $val";

> $Message .= "$key = $val\n";

> }

> 

> if ($Header) {

> $Message = $Header."\n\n".$Message;

> }

> 

> if ($Footer) {

> $Message .= "\n\n".$Footer;

> }

> 

> mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress");

> ?>

> 

> Thank You!

> 

> ">Return To The Mail Form

> Home Page

> 

> Can anybody help please.I dont know if I'm explained correctly so please excuse me.

> Olev.




[PHP] Re: [PHP-INST] Default mysql path

2002-02-02 Thread Uma Shankari T.




Actually i have stored mysql in my machine in /usr/lib/mysql

 when i am tried to connect it is giving this error.

nomysql support.From the prompt itself i can connect to mysql .using php
script i can't connect.

While in the installtion also i have mentioned the path for mysql

I couldn't guess where is the error


Can u guess where is the error?.


If u came to know this tell me as soon as possible

-Uma


On Sat, 2 Feb 2002, David Jackson wrote:

> should be /usr/local/mysql.
> 
> "Uma Shankari T." wrote:
> > 
> > Hello,
> > 
> >   I have installed php and mysql in my machine.By default in which path
> > php check for mysql
> > 
> > Anyone can know this tell to me as soon as possible
> > 
> > -Uma
> > 
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 

Love and you shall be loved by others



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Limiting time of PHP script.

2002-02-02 Thread Andre


  I've a little PHP script that waits for commands and reply to them, it's 
setup to run from inetd, and so acts as a server.
  My problem is that I want to limit the time this script will wait for a 
command (in this case, a line, read by fgets), but set_time_limit seems to 
only count the time PHP spends executing the script, and not the time it 
waits for a line to be read, like the manual describes it.
  Is there a way to limit the time fgets will wait for a line, or another way 
to solve this problem? Any help is appreciated!
  Below I've attached part of my script.

Thanks!

-
#!/usr/bin/php

-


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Address unknown

2002-02-02 Thread hugh danaher

Help,

Some one please tell me to RTFN!, but first tell me where to look. :-)

I have a page with an image of a map which delivers the following info to the address 
bar of someplace.php.  the  html code delivers the 
coordinates of the cursor when clicked.  What I want to do, is get the following so 
that I can parse it.

file:///C:/php/museum/DB_MUSE/someplace.php?98,165

Any help is greatly appreciated.

Hugh



[PHP] Re: Content Management

2002-02-02 Thread Lars Wilhelmsen

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know of an organization who has built and maintains a web
> content management application for a large site?

Hi,

 The answer for your question is: eZ Publish : http://developer.ez.no/

 by the norwegian company eZ Systems.

 eZ Publish is GPL licensed.

 regards,

 Lars Wilhelmsen.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Lars Wilhelmsen

"Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to send an e-mail (the same e-mail) to 1,000 different
people.
> I want each persons name to be in the "To:" field.  Is there a way to
> customize it to where it can say Dear (having a different persons name
> corresponding to an e-mail address) so that it looks customized.
>
> Thanks,
>
> Ben
>

What you are describing is called SPAMMING, something
we really, really dislike.

Answer to your question: yes, it's pretty simple, but PHP
is generally a language for web applications, I think Perl
is more suited for your needs.

And no, I do not want to teach anyone how to send 1,000
email to 1,000 different persons.

Regards,

Lars WIlhelmsen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: is create_function slow?

2002-02-02 Thread Lars Wilhelmsen


"Emile Bosch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, is create function slow? Or has it a very significant slowdown
compared
> to an include?
>
> i might want to create functions on the fly if it isn't tooo slow..
>
> warm regards,
> Emile Bosch
>
>

Hi Emile,

Have you tried to benchmark it?

Generate, say, something like 10e5 functions with random names and body.
and time it.

 Regards,

Lars Wilhelmsen





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Address unknown

2002-02-02 Thread CC Zona

In article <000e01c1ac31$2cdf6f20$017f@localhost>,
 [EMAIL PROTECTED] (Hugh Danaher) wrote:

> Some one please tell me to RTFN!, but first tell me where to look. :-)
> 
> I have a page with an image of a map which delivers the following info to the 
> address bar of someplace.php.  the  html code 
> delivers the coordinates of the cursor when clicked.  What I want to do, is 
> get the following so that I can parse it.
> 
> file:///C:/php/museum/DB MUSE/someplace.php?98,165

phpinfo()  will show you all the server variables 
at your disposal, including $QUERY_STRING.

parse_url()  is also a useful one to know about.

And explode()  will parse that comma-delimited list 
of coordinates into an array so you can access the values individually.

Cheers!

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread rpruitt

Hmmm.

I've also heard it described as a newsletter.
Or a mailing list.

A good program that does this is http://www.kingmailer.com/

Thirty bucks, with a built-in SMPT server.


Lars Wilhelmsen wrote:

> "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I would like to send an e-mail (the same e-mail) to 1,000 different
> people.
> > I want each persons name to be in the "To:" field.  Is there a way to
> > customize it to where it can say Dear (having a different persons name
> > corresponding to an e-mail address) so that it looks customized.
> >
> > Thanks,
> >
> > Ben
> >
>
> What you are describing is called SPAMMING, something
> we really, really dislike.
>
> Answer to your question: yes, it's pretty simple, but PHP
> is generally a language for web applications, I think Perl
> is more suited for your needs.
>
> And no, I do not want to teach anyone how to send 1,000
> email to 1,000 different persons.
>
> Regards,
>
> Lars WIlhelmsen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Address unknown

2002-02-02 Thread Jim Lucas [php]

instead of using an image map, put the image in



and when you click on the image.  it will submit the form, which you can
have pointing at someplace.php,
and then when you parse the GET/POST vars you can look for the variables
someplace_x & someplace_y.
this will give you the x / y axis you are looking to find.

Jim Lucas
- Original Message -
From: "hugh danaher" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 1:32 PM
Subject: [PHP] Address unknown


Help,

Some one please tell me to RTFN!, but first tell me where to look. :-)

I have a page with an image of a map which delivers the following info to
the address bar of someplace.php.  the  html code
delivers the coordinates of the cursor when clicked.  What I want to do, is
get the following so that I can parse it.

file:///C:/php/museum/DB_MUSE/someplace.php?98,165

Any help is greatly appreciated.

Hugh



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Lars Torben Wilson

On Sat, 2002-02-02 at 13:46, Lars Wilhelmsen wrote:
> "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I would like to send an e-mail (the same e-mail) to 1,000 different
> people.
> > I want each persons name to be in the "To:" field.  Is there a way to
> > customize it to where it can say Dear (having a different persons name
> > corresponding to an e-mail address) so that it looks customized.
> >
> > Thanks,
> >
> > Ben
> >
> 
> What you are describing is called SPAMMING, something
> we really, really dislike.

There are several very good reasons to need to do this.

> Answer to your question: yes, it's pretty simple, but PHP
> is generally a language for web applications, I think Perl
> is more suited for your needs.

PHP would suffice here just fine--and we are trying to dispel the
myth that PHP is a web-only language. However, in a case like
this, I'd suggest checking out a proper mailing list manager
such as majordomo or ezmlm.


Torben
 
> And no, I do not want to teach anyone how to send 1,000
> email to 1,000 different persons.
> 
> Regards,
> 
> Lars WIlhelmsen
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Manuel Lemos

Hello,

Lars Wilhelmsen wrote:
> 
> "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I would like to send an e-mail (the same e-mail) to 1,000 different
> people.
> > I want each persons name to be in the "To:" field.  Is there a way to
> > customize it to where it can say Dear (having a different persons name
> > corresponding to an e-mail address) so that it looks customized.
> >
> > Thanks,
> >
> > Ben
> >
> 
> What you are describing is called SPAMMING, something
> we really, really dislike.

You are confused. Spamming is sending the same message to the same
person more than once.

What I think you mean is unsolicited e-mail. The original poster did not
mention whether the people he wants to mail want to receive his
messages, so you can't assume that is necessarily unsolicited.

 
> Answer to your question: yes, it's pretty simple, but PHP
> is generally a language for web applications, I think Perl
> is more suited for your needs.

There is absolutely nothing in sending messages to thousands of users in
Perl that can't be done in PHP.

I am the developer of the PHP classes site. The site sends out regularly
notifications about new classes made available to about 30.000 users.
Each notification on takes 4 seconds to queue. The local mail server
takes care of delivery.

 
> And no, I do not want to teach anyone how to send 1,000
> email to 1,000 different persons.

So why bother posting?!?

Regards,
Manuel Lemos

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: IP based redirection

2002-02-02 Thread LaserJetter

Don't worry, I'll post back to yourmessage with something relevant!

I would recommend redirecting according to what language the user has
selected in their browser as an IP address can be unreliable e.g. someone in
India could be using an IP address which is registered to an English
speaking company.
If you only wanted to allow certain users access to certain pages (those
using IP addresses which you know are from an Indian ISP) then this method
would be ok. You can read the $REMOTE_ADDR or $X_FORWARDED_FOR variables
from any PHP page usually and this will give you the IP of the user.

If your site is running on Apache web server, it has a built in language
selection 'service' which loads a page with a different file extension
depending on the language chosen by the user. If the user had [en-gb]
selected (english - uk) as their first language and a request is sent for
index.htm, Apache will produce index.htm.en instead but it will appear to
the user as index.htm (this might only work though if you request index.htm
by typing http://www.youraddress.com/). Similarly, if the user had [in]
selected for Indian Apache would produce index.htm.in
You have to enable this in httpd.conf and there's more infor in the Apache
docs I think.

LJ


"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Could you please help us, to redirect some of our pages to based on IP
> address.
> We have used SmartRedirect program but it is not working on with some of
> our ISP's IP address. We are located at India, and like to have some
> language specific pages to be displayed to our Indian user while english
> language to other world.
> Thanks,
>
> Hemant Kumar
> DInsol.com
> http://www.dinsol.com/
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Ed Lazor


> > > I would like to send an e-mail (the same e-mail) to 1,000 different
> > people.
> > > I want each persons name to be in the "To:" field.  Is there a way to
> > > customize it to where it can say Dear (having a different persons 
> name
> > > corresponding to an e-mail address) so that it looks customized.
> > >
> > > Thanks,
> > >
> > > Ben
> > >
> >
> > What you are describing is called SPAMMING, something
> > we really, really dislike.
>
>There are several very good reasons to need to do this.

One example is sending an update to all of the members who have created 
accounts on your site.  This wouldn't be considered spamming, because they 
have requested that you help keep them informed.

> > Answer to your question: yes, it's pretty simple, but PHP
> > is generally a language for web applications, I think Perl
> > is more suited for your needs.
>
>PHP would suffice here just fine--and we are trying to dispel the
>myth that PHP is a web-only language. However, in a case like
>this, I'd suggest checking out a proper mailing list manager
>such as majordomo or ezmlm.

Another good one is mailman.

-Ed



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Using IP as an identfier

2002-02-02 Thread Razorfish


Last week a thread went by that was a discussion on the merits of using the
REMOTE_ADDR as an element of several parts to "secure" (other unique items
were to be the USER_AGENT, etc.).  I'd like to incorporate the lists
collective wisdom.

What was the list's conclusion on this matter?  It seems that the IP can be
problematic due to proxy servers, and some AOL'ers can morph during their
session.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Sterling Hughes

On Sat, 2002-02-02 at 17:42, Manuel Lemos wrote:
> Hello,
> 
> Lars Wilhelmsen wrote:
> > 
> > "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I would like to send an e-mail (the same e-mail) to 1,000 different
> > people.
> > > I want each persons name to be in the "To:" field.  Is there a way to
> > > customize it to where it can say Dear (having a different persons name
> > > corresponding to an e-mail address) so that it looks customized.
> > >
> > > Thanks,
> > >
> > > Ben
> > >
> > 
> > What you are describing is called SPAMMING, something
> > we really, really dislike.
> 
> You are confused. Spamming is sending the same message to the same
> person more than once.
> 
> What I think you mean is unsolicited e-mail. The original poster did not
> mention whether the people he wants to mail want to receive his
> messages, so you can't assume that is necessarily unsolicited.
> 

I think you are confused...  Unsolicited e-mail is in fact the
definition of spam!

Secondly, reasonable assumptions can often be made, for example, when I
see a message from you, its almost guaranteed that you'll be plugging
PHPClasses, or Metabase, or both.  Assumptions are why killfiles were
invented.

>From the users original post, the likely assumption is that he is using
it to send out some sort of spam/product announcement.

-Sterling

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Chris Cocuzzo

Godamnit. Shut-up about this already for godsakes and answer the
original question!!



-Original Message-
From: Sterling Hughes [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 02, 2002 6:05 PM
To: Manuel Lemos
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Sending an e-mail to 1,000 people

On Sat, 2002-02-02 at 17:42, Manuel Lemos wrote:
> Hello,
> 
> Lars Wilhelmsen wrote:
> > 
> > "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I would like to send an e-mail (the same e-mail) to 1,000
different
> > people.
> > > I want each persons name to be in the "To:" field.  Is there a way
to
> > > customize it to where it can say Dear (having a different
persons name
> > > corresponding to an e-mail address) so that it looks customized.
> > >
> > > Thanks,
> > >
> > > Ben
> > >
> > 
> > What you are describing is called SPAMMING, something
> > we really, really dislike.
> 
> You are confused. Spamming is sending the same message to the same
> person more than once.
> 
> What I think you mean is unsolicited e-mail. The original poster did
not
> mention whether the people he wants to mail want to receive his
> messages, so you can't assume that is necessarily unsolicited.
> 

I think you are confused...  Unsolicited e-mail is in fact the
definition of spam!

Secondly, reasonable assumptions can often be made, for example, when I
see a message from you, its almost guaranteed that you'll be plugging
PHPClasses, or Metabase, or both.  Assumptions are why killfiles were
invented.

>From the users original post, the likely assumption is that he is using
it to send out some sort of spam/product announcement.

-Sterling

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Ed Lazor

At 06:25 PM 2/2/2002 -0500, Chris Cocuzzo wrote:
>Godamnit. Shut-up about this already for godsakes and answer the
>original question!!

LOL  hehe good point Chris.

>"Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> > I would like to send an e-mail (the same e-mail) to 1,000 different
> > people.  I want each persons name to be in the "To:" field.  Is there a 
> way to
> > customize it to where it can say Dear (having a different persons name
> > corresponding to an e-mail address) so that it looks customized.

Ben, how you approach this will depend on how you have the data 
stored.  Let's assume two things:  you have the e-mail addresses and names 
in a database and know how to retrieve and store them into the variables 
$email and $name.  That said, create the body of your text:

$body = "
Dear $name,

Here are recent developments on our web site... etc.
";

Then use the mail function (http://www.php.net/manual/en/function.mail.php) 
to send the letter to the person like this:

mail($email, "Site update", $body, "From:  [EMAIL PROTECTED]");

The next thing you'll probably start wondering is how to send fancy e-mail 
instead of those generic text based ones...  PHPBuilder has an article 
you'll want to check out located here: 
http://www.phpbuilder.com/columns/kartic2807.php3.

-Ed


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Address unknown

2002-02-02 Thread hugh danaher

Thank you for your help regarding parsing the url (Hey, go figure, they
named the function almost exactly the same as my question.).

I am still at sea about getting all the information from the url header.  If
I leave the brackets empty [e.g. parse_url() ] I get an error saying I have
a parameter mismatch.  When I fill the brackets with $query_string, I get an
answer but it's in the form of an array.  Finally when I echo the array, the
"query" string echos in the "path" slot.  Any ideas?
Hugh

$p=parse_url($QUERY_STRING);
echo $p[host]." 1 ".$p[path]." 2 ".$p[query]." 3 ";
- Original Message -
From: "CC Zona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 1:58 PM
Subject: [PHP] Re: Address unknown


> In article <000e01c1ac31$2cdf6f20$017f@localhost>,
>  [EMAIL PROTECTED] (Hugh Danaher) wrote:
>
> > Some one please tell me to RTFN!, but first tell me where to look. :-)
> >
> > I have a page with an image of a map which delivers the following info
to the
> > address bar of someplace.php.  the  html code
> > delivers the coordinates of the cursor when clicked.  What I want to do,
is
> > get the following so that I can parse it.
> >
> > file:///C:/php/museum/DB MUSE/someplace.php?98,165
>
> phpinfo()  will show you all the server variables
> at your disposal, including $QUERY_STRING.
>
> parse_url()  is also a useful one to know about.
>
> And explode()  will parse that comma-delimited
list
> of coordinates into an array so you can access the values individually.
>
> Cheers!
>
> --
> CC
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Securite problem

2002-02-02 Thread Roebie

Dear all,
I have a index.php3 file in a password protected directory (on Windows)
which calls two other files with
require_once("../code/anolislib2.php3");
require_once("../code/pageslib1.php3");
These two files are in another (not protected) directory. When I try to open
index.php3 with IE5.5 nothing happens. The files are not included, I get no
error message and no code at all is executed.
Why is this and what can I do about it ?
Thanks for any help.
Roebie



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Securite problem

2002-02-02 Thread Jeff Sheltren

I believe that require() and require_once() have a problem with relative paths.

See here for more info:
http://www.php.net/manual/en/function.require-once.php

Jeff

At 01:24 AM 2/3/2002 +0100, Roebie wrote:
>Dear all,
>I have a index.php3 file in a password protected directory (on Windows)
>which calls two other files with
> require_once("../code/anolislib2.php3");
> require_once("../code/pageslib1.php3");
>These two files are in another (not protected) directory. When I try to open
>index.php3 with IE5.5 nothing happens. The files are not included, I get no
>error message and no code at all is executed.
>Why is this and what can I do about it ?
>Thanks for any help.
>Roebie



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Securite problem

2002-02-02 Thread rpruitt

There are a few issues that could be involved, but the glaring big one is that
require_once() only works with PHP 4

The php3 extensions make me think you should simply use require()

Roebie wrote:

> Dear all,
> I have a index.php3 file in a password protected directory (on Windows)
> which calls two other files with
> require_once("../code/anolislib2.php3");
> require_once("../code/pageslib1.php3");
> These two files are in another (not protected) directory. When I try to open
> index.php3 with IE5.5 nothing happens. The files are not included, I get no
> error message and no code at all is executed.
> Why is this and what can I do about it ?
> Thanks for any help.
> Roebie
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Securite problem

2002-02-02 Thread Roebie

I have tried absolute paths but that does not solve the problem.
Unlike the filename extension suggests I am using php4.

The problem seems to be the password protection. When the three files are in
the same directory (be it protected or unprotected) everything works fine.
When index.php3 is in one directory and the other two files are in another
directory everything works fine but only if both directories are protected
or both are unprotected.

That including a script that is in a password protected directory is not
allowed seems reasonable to me, but the other way round ...?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Newbie: function for downloading

2002-02-02 Thread Daniel Grace

"Manuel Ritsch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey There
>
> I have a little question
>
> I'm making a page where you can download mp3's (hip hop and funk beats
made
> by myself) and i want, if you press on the
> link (), that it doesn't start an internal audio
> player (like some configurations/browsers do), rather i want that the
> download dialog (like when you download .exe or .zip files) appears to
save
> the mp3 on your harddisk, can anyone give me a tip?
>
> Greets
> -- manu
>
Take a look at http://www.php.net/header, particularly the
Content-Disposition portion of it:

<<
If you want the user to be prompted to save the data you are sending, such
as a generated PDF file, you can use the Content-Disposition header to
supply a recommended filename and force the browser to display the save
dialog.
>

You'll need to choose the correct content-type and filename of course.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Manuel Lemos

Hello,

Sterling Hughes wrote:
> 
> On Sat, 2002-02-02 at 17:42, Manuel Lemos wrote:
> > Hello,
> >
> > Lars Wilhelmsen wrote:
> > >
> > > "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > I would like to send an e-mail (the same e-mail) to 1,000 different
> > > people.
> > > > I want each persons name to be in the "To:" field.  Is there a way to
> > > > customize it to where it can say Dear (having a different persons name
> > > > corresponding to an e-mail address) so that it looks customized.
> > > >
> > > > Thanks,
> > > >
> > > > Ben
> > > >
> > >
> > > What you are describing is called SPAMMING, something
> > > we really, really dislike.
> >
> > You are confused. Spamming is sending the same message to the same
> > person more than once.
> >
> > What I think you mean is unsolicited e-mail. The original poster did not
> > mention whether the people he wants to mail want to receive his
> > messages, so you can't assume that is necessarily unsolicited.
> >
> 
> I think you are confused...  Unsolicited e-mail is in fact the
> definition of spam!

No, with time, people started confusing definitions. You may not be
aware of it because you were too young and by that time you probably
even did not knew about what was the Internet. AFAIK, spam was, in the
early days when there was not even the Web, what was called to
cross-posting the same message to multiple newsgroups. Remeber Monty
Python sketch, they were complaining of more of the same spam.

Since often spam is also unsolicited, people started confusing concepts.
In mailing lists and newsgroups like this, messages are only unsolicited
when they become completely off-topic, which is not the case. You ought
to study a little history first before you decide to make any of my
message yet another pointless personal attack.


> Secondly, reasonable assumptions can often be made, for example, when I
> see a message from you, its almost guaranteed that you'll be plugging
> PHPClasses, or Metabase, or both.  Assumptions are why killfiles were
> invented.

Sterling, you seem to be sick if you are watching every message I post
to jumping in to attack me or my work.

I was not even promoting the PHP Classes site. If I were I would post
its URL, which I didn't. I was sharing my knowledge on sending messages
to a large number of recipients. It happens that my knowledge on bulk
mailing is based on my experience sending notifications to the site
subscribers.

Since you are so obcessed to attack me probably because of possible
stupid envy, you could only see my message as another plug to promote
the site.

Sterling, get a grip, you would do much better in get rid of those
unjustifiable sick feelings that you hold against somebody like myself
that is still bothering to contribute to the PHP community providing a
PHP component sharing site that is accessed by many tens of thousands of
PHP users.

Another thing, is that you are so ungrateful because whatever I do to
let people know about the PHP Classes site is to bring people to the
site not only to share and benefit for each other PHP components, but
also to provide a substantial audience not only to the components that
the users share, but also to the reviews of PHP books like your own: PHP
Developers Cookbook.

http://phpclasses.upperdesign.com/products.html/id/0672319241

I even tried to make a nice review, as usually I do with all books I
review because I know that it takes a lot of time to write a good book
and in the time you spent writing it you would probably earn more money
working on some paid PHP project than whatever you may ever earn from
selling the book.

I know that it isn't much, but 710 users went to Amazon eventually to
buy the your book because of this review. It is an humble contribution
to compensate for your effort and of other PHP book writers.

Anyway, I am considering discontinuing this section of the PHP Classes
site because it is not providing enough income to cover for the site
expenses. Now, after I read your personal attacks I wonder why am I
waiting to discontinue it when all I get for attempting to promote the
site to bring in more audience also for the book reviews, is just
personal attacks from authors like yourself?

Of course this hurts me bad, but I am kind of used to the hostility that
I get of envious unsensible PHP developers like yourself.

Right, now, if you do not have anything nicer to say to me, please don't
even bother to mail me.


Regards,
Manuel Lemos

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Securite problem

2002-02-02 Thread rpruitt

I used this in index.php3, in a password protected directory, using Xitami on
Windows.

 require_once("../test/require.php3");

Everything did fine.

Roebie wrote:

> I have tried absolute paths but that does not solve the problem.
> Unlike the filename extension suggests I am using php4.
>
> The problem seems to be the password protection. When the three files are in
> the same directory (be it protected or unprotected) everything works fine.
> When index.php3 is in one directory and the other two files are in another
> directory everything works fine but only if both directories are protected
> or both are unprotected.
>
> That including a script that is in a password protected directory is not
> allowed seems reasonable to me, but the other way round ...?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread rpruitt

I don't know the nature of your feud, but Manuel is right on here, as far as I'm
concerned. Sterling's comments were unwarranted, unjust, and stupid.

Rise above it man.

Manuel Lemos wrote:

> Hello,
>
> Sterling Hughes wrote:
> >
> > On Sat, 2002-02-02 at 17:42, Manuel Lemos wrote:
> > > Hello,
> > >
> > > Lars Wilhelmsen wrote:
> > > >
> > > > "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > > I would like to send an e-mail (the same e-mail) to 1,000 different
> > > > people.
> > > > > I want each persons name to be in the "To:" field.  Is there a way to
> > > > > customize it to where it can say Dear (having a different persons name
> > > > > corresponding to an e-mail address) so that it looks customized.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Ben
> > > > >
> > > >
> > > > What you are describing is called SPAMMING, something
> > > > we really, really dislike.
> > >
> > > You are confused. Spamming is sending the same message to the same
> > > person more than once.
> > >
> > > What I think you mean is unsolicited e-mail. The original poster did not
> > > mention whether the people he wants to mail want to receive his
> > > messages, so you can't assume that is necessarily unsolicited.
> > >
> >
> > I think you are confused...  Unsolicited e-mail is in fact the
> > definition of spam!
>
> No, with time, people started confusing definitions. You may not be
> aware of it because you were too young and by that time you probably
> even did not knew about what was the Internet. AFAIK, spam was, in the
> early days when there was not even the Web, what was called to
> cross-posting the same message to multiple newsgroups. Remeber Monty
> Python sketch, they were complaining of more of the same spam.
>
> Since often spam is also unsolicited, people started confusing concepts.
> In mailing lists and newsgroups like this, messages are only unsolicited
> when they become completely off-topic, which is not the case. You ought
> to study a little history first before you decide to make any of my
> message yet another pointless personal attack.
>
> > Secondly, reasonable assumptions can often be made, for example, when I
> > see a message from you, its almost guaranteed that you'll be plugging
> > PHPClasses, or Metabase, or both.  Assumptions are why killfiles were
> > invented.
>
> Sterling, you seem to be sick if you are watching every message I post
> to jumping in to attack me or my work.
>
> I was not even promoting the PHP Classes site. If I were I would post
> its URL, which I didn't. I was sharing my knowledge on sending messages
> to a large number of recipients. It happens that my knowledge on bulk
> mailing is based on my experience sending notifications to the site
> subscribers.
>
> Since you are so obcessed to attack me probably because of possible
> stupid envy, you could only see my message as another plug to promote
> the site.
>
> Sterling, get a grip, you would do much better in get rid of those
> unjustifiable sick feelings that you hold against somebody like myself
> that is still bothering to contribute to the PHP community providing a
> PHP component sharing site that is accessed by many tens of thousands of
> PHP users.
>
> Another thing, is that you are so ungrateful because whatever I do to
> let people know about the PHP Classes site is to bring people to the
> site not only to share and benefit for each other PHP components, but
> also to provide a substantial audience not only to the components that
> the users share, but also to the reviews of PHP books like your own: PHP
> Developers Cookbook.
>
> http://phpclasses.upperdesign.com/products.html/id/0672319241
>
> I even tried to make a nice review, as usually I do with all books I
> review because I know that it takes a lot of time to write a good book
> and in the time you spent writing it you would probably earn more money
> working on some paid PHP project than whatever you may ever earn from
> selling the book.
>
> I know that it isn't much, but 710 users went to Amazon eventually to
> buy the your book because of this review. It is an humble contribution
> to compensate for your effort and of other PHP book writers.
>
> Anyway, I am considering discontinuing this section of the PHP Classes
> site because it is not providing enough income to cover for the site
> expenses. Now, after I read your personal attacks I wonder why am I
> waiting to discontinue it when all I get for attempting to promote the
> site to bring in more audience also for the book reviews, is just
> personal attacks from authors like yourself?
>
> Of course this hurts me bad, but I am kind of used to the hostility that
> I get of envious unsensible PHP developers like yourself.
>
> Right, now, if you do not have anything nicer to say to me, please don't
> even bother to mail me.
>
> Regards,
> Manuel Lemos
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mai

[PHP] RE: [PHP-DEV] Re: Securite problem

2002-02-02 Thread James Cox

Hi,

this isn't a problem for [EMAIL PROTECTED], as that's the developers
list. You will find most help on [EMAIL PROTECTED] or php-windows.

Thanks,

james cox

> -Original Message-
> From: Roebie [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 03, 2002 1:20 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: [PHP-DEV] Re: Securite problem
>
>
> I have tried absolute paths but that does not solve the problem.
> Unlike the filename extension suggests I am using php4.
>
> The problem seems to be the password protection. When the three
> files are in
> the same directory (be it protected or unprotected) everything works fine.
> When index.php3 is in one directory and the other two files are in another
> directory everything works fine but only if both directories are protected
> or both are unprotected.
>
> That including a script that is in a password protected directory is not
> allowed seems reasonable to me, but the other way round ...?
>
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Manuel Lemos

Hello,

Ed Lazor wrote:
> 
> At 06:25 PM 2/2/2002 -0500, Chris Cocuzzo wrote:
> >Godamnit. Shut-up about this already for godsakes and answer the
> >original question!!
> 
> LOL  hehe good point Chris.

Aleluia, somebody sensible! :-)

 
> >"Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> > > I would like to send an e-mail (the same e-mail) to 1,000 different
> > > people.  I want each persons name to be in the "To:" field.  Is there a
> > way to
> > > customize it to where it can say Dear (having a different persons name
> > > corresponding to an e-mail address) so that it looks customized.
> 
> Ben, how you approach this will depend on how you have the data
> stored.  Let's assume two things:  you have the e-mail addresses and names
> in a database and know how to retrieve and store them into the variables
> $email and $name.  That said, create the body of your text:
> 
> $body = "
> Dear $name,
> 
> Here are recent developments on our web site... etc.
> ";
> 
> Then use the mail function (http://www.php.net/manual/en/function.mail.php)
> to send the letter to the person like this:
> 
> mail($email, "Site update", $body, "From:  [EMAIL PROTECTED]");
> 
> The next thing you'll probably start wondering is how to send fancy e-mail
> instead of those generic text based ones...  PHPBuilder has an article
> you'll want to check out located here:
> http://www.phpbuilder.com/columns/kartic2807.php3.

I do not advice anybody to send personalized bulk mail, even less in
PHP. It will take a lot of time to just queue the message in the local
relay mail server and since each message has to be stored separately in
the mail server queue disk consuming a lot of space.

What I recommend is to just queue a single message with all recepients
in Bcc:. This is better done with qmail using qmail-inject because you
do not have to actually add Bcc: headers to the message, just the
recipients addresses, one per line,  and then headers and the body of
the message. You may want to try this class for composing and sending
MIME messages. It has subclasses for queing with PHP mail function, SMTP
server, sendmail and qmail.

http://phpclasses.upperdesign.com/browse.html/package/9

If you can use it, I recommend to use qmail because it is much faster
than the other alternatives to queue message to be sent to many
recipients and also provides very good means to figure exactly which
addresses are bouncing your messages so you can process them eventually
unsubscribing the users in question, thanks to its VERP capability
(Variable Envelope Return Path). http://www.qmail.org/

If you want to send messages regularly to the same group of users, I
recommend that you use ezmlm-idx because it provides very efficient and
secure way to handle subscriptions and messages bouncings.
http://www.ezmlm.org/

I don't recommend the patches of ezmlm that let it be interfaced with
user lists maintained in MySQL or PostgreSQL. I doubt that those
databases are faster to query than DJB's cdb user list databases. Also,
I don't think that most people want the user to be deleted from a
database if it's address is bouncing for too long (11 days).

Anyway, you may want to look into this PHP web interface to create and
setup options of ezmlm mailing lists. It also comes with a SOAP server
interface that you can use to provide Web services to subscribe,
unsubscriber, verify and count users in ezmlm mailing lists.

http://phpclasses.upperdesign.com/browse.html/package/177

Regards,
Manuel Lemos

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Michael Sims

At 11:42 PM 2/2/2002 -0200, Manuel Lemos wrote:
> > I think you are confused...  Unsolicited e-mail is in fact the
> > definition of spam!
>
>No, with time, people started confusing definitions. You may not be
>aware of it because you were too young and by that time you probably
>even did not knew about what was the Internet. AFAIK, spam was, in the
>early days when there was not even the Web, what was called to
>cross-posting the same message to multiple newsgroups. Remeber Monty
>Python sketch, they were complaining of more of the same spam.

Yep.  Here's an excerpt from the Email Abuse FAQ:

'First, a short lesson on the term "SPAM". Spam describes a particular kind 
of Usenet posting (and canned spiced ham), but is now often used to 
describe many kinds of inappropriate activities, including some 
email-related events. It is technically incorrect to use "spam" to describe 
email abuse, although attempting to correct the practice would amount to 
tilting at windmills.'

http://members.aol.com/emailfaq/emailfaq.html


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] use_trans_sid

2002-02-02 Thread Justin French

Hi,

When I run phpinfo(), use_trans_sid is set to 1 (assume 1 = enabled) on
both my test server, and on my live server.  Great!

Only trouble is, when I disable cookies in my browser, the sessions are
lost (in this case, each page asks me to login, rather than only once).

Is there anything special I have to do to ensure I have a system which
uses cookies by default, and use_trans_sid as a second option, without
have to carry the SID around in the URL? (page.php?)?


Justin French
http://indent.com.au
http://soundpimps.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-02 Thread Rodolfo Gonzalez

On Fri, 1 Feb 2002, Matthew Walker wrote:
> Does anyone have the answer for this question? I need it too...

As I learnt before, it's not possible without closing the user's browser.

> My site is in directory which is protected with .htaccess file.
> I want to develope a logout function, which can reset Apache
> authorization.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] imagecopy or why men don't use maps.

2002-02-02 Thread hugh danaher

Help!

I have an image file which is a map of the local area.  I want to put symbols on the 
map at various points, but I first need to get the php image function to work.
My site has imaging enabled and I can create graphs from scratch, but this has stumped 
me so far.

Any help will be greatly appreciated.

Hugh

code? below:

$image=imagecreate(400,400);  // created image

// source image info
$source="map1.jpg";
$imageinfo = getimagesize($source); 
$source_00=0;   //  origin (0,0)
$source_width=$imageinfo[0];
$source_height-$imageinfo[1];
$image_00=0;   //  origin (0,0)


imagecopy($image,$source, $image_00, $image_00, $source_00, $source_00, $source_width, 
$source_height);  / / this is line 36.



Warning: Supplied argument is not a valid Image resource in /www/site.com/somepage.php 
on line 36




Re: [PHP] Address unknown

2002-02-02 Thread hugh danaher

Jim,
I did as you suggested and changed over to an input tag.  Works great, but
without your suggestion regarding the underling (someplace_y), I'd have
never made it.
Thanks,
Hugh
- Original Message -
From: "Jim Lucas [php]" <[EMAIL PROTECTED]>
To: "hugh danaher" <[EMAIL PROTECTED]>; "Php-General"
<[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 2:09 PM
Subject: Re: [PHP] Address unknown


> instead of using an image map, put the image in
>
> 
>
> and when you click on the image.  it will submit the form, which you can
> have pointing at someplace.php,
> and then when you parse the GET/POST vars you can look for the variables
> someplace_x & someplace_y.
> this will give you the x / y axis you are looking to find.
>
> Jim Lucas
> - Original Message -
> From: "hugh danaher" <[EMAIL PROTECTED]>
> To: "Php-General" <[EMAIL PROTECTED]>
> Sent: Saturday, February 02, 2002 1:32 PM
> Subject: [PHP] Address unknown
>
>
> Help,
>
> Some one please tell me to RTFN!, but first tell me where to look. :-)
>
> I have a page with an image of a map which delivers the following info to
> the address bar of someplace.php.  the  html code
> delivers the coordinates of the cursor when clicked.  What I want to do,
is
> get the following so that I can parse it.
>
> file:///C:/php/museum/DB_MUSE/someplace.php?98,165
>
> Any help is greatly appreciated.
>
> Hugh
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-02 Thread Frederick L. Steinkopf

While I've never done this before,
 couldn't you use a session and have session variables tied to the user name
and password and then have the logout function kill the session?

- Original Message -
From: "Rodolfo Gonzalez" <[EMAIL PROTECTED]>
To: "Matthew Walker" <[EMAIL PROTECTED]>
Cc: "Aras Kucinskas" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 8:26 PM
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!


> On Fri, 1 Feb 2002, Matthew Walker wrote:
> > Does anyone have the answer for this question? I need it too...
>
> As I learnt before, it's not possible without closing the user's browser.
>
> > My site is in directory which is protected with .htaccess file.
> > I want to develope a logout function, which can reset Apache
> > authorization.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Address unknown

2002-02-02 Thread CC Zona

In article <001001c1ac45$406eab00$017f@localhost>,
 [EMAIL PROTECTED] (Hugh Danaher) wrote:

> Thank you for your help regarding parsing the url (Hey, go figure, they
> named the function almost exactly the same as my question.).
> 
> I am still at sea about getting all the information from the url header.  If
> I leave the brackets empty [e.g. parse_url() ] I get an error saying I have
> a parameter mismatch.  When I fill the brackets with $query_string, I get an
> answer but it's in the form of an array.  Finally when I echo the array, the
> "query" string echos in the "path" slot.  Any ideas?
> Hugh
> 
> $p=parse_url($QUERY_STRING);
> echo $p[host]." 1 ".$p[path]." 2 ".$p[query]." 3 ";

If you feed parse_url() something other than a URL (a query string being a 
URL *fragment* rather than a URL itself), it's not surprising that it will 
return weird results.

When you echo $QUERY_STRING, what value are you getting?  For...

> > file:///C:/php/museum/DB MUSE/someplace.php?98,165

I'd expect it to be "98,165".  IOW, pre-parsed, no need to parse_url().

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] testing for cookies capable client (browser)

2002-02-02 Thread Justin French

Hi,

Is there a simple method for checking if cookies are enabled (able to be
set) on a browser?  The only method I can think of is setting the
cookie, then refreshing the page (or going to another URL) in order to
tet if the cookie exists... which sounds messy.

I'd prefer not to use anything client-side (javascript etc).


Has anyone got some code (simular to above, or a better solution) or
examples they can post?


Justin French

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: testing for cookies capable client (browser)

2002-02-02 Thread Manuel Lemos

Hello,

Justin French wrote:
> 
> Hi,
> 
> Is there a simple method for checking if cookies are enabled (able to be
> set) on a browser?  The only method I can think of is setting the
> cookie, then refreshing the page (or going to another URL) in order to
> tet if the cookie exists... which sounds messy.

It is the only reliable method, but make sure if you try persistent
cookies first to fallback to session cookies if persistent fail.


 
> I'd prefer not to use anything client-side (javascript etc).

The user may have a cookie enabled browser with Javascript disabled.

Regards,
Manuel Lemos

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] FastTemplate Not Working after PHP Migration

2002-02-02 Thread Chris Williams

My service provider has migrated from V4.0.1?? (not sure of exact version
because it’s history) to V4.0.6.

Under V4.01?? I was using FastTemplate and it worked fine now under 4.06 I
am getting the following error. Warning: Invalid content of \{\} in
FastTemplate/class.FastTemplate.php3 on line 213. I am aware of and have
implemented the FastTemplate patch for version 4 (I had to before this
upgrade took place). Also I tested my parsing script on two other servers I
work on, one with Ver 4.0.4pl1 and another with V 4.06. Both of the other
environments execute FastTemplate with no complications.

Since I’m no expert on the installation of PHP I’m not sure what to tell my
service provider other that “My Scripts Don’t Work Any More”. Any advice on
phrasing this complaint would be helpful.

Regards,
Chris Williams




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] RANT: Why doesn't PHP have built-in support for dynamic image generation?

2002-02-02 Thread Erica Douglass

Forgive my grumpiness, but I've spent the last several hours trying to
install GD, etc.

Let's be honest. PHP needs built-in support for creating dynamic images. JSP
already has this. Heck, you could even make it a configure option. As it
stands now, you have to do the following:

-- Install GD
-- Install all of GD's numerous dependencies
-- Install zlib
-- Install freetype
-- Install libttf

THEN you have to compile PHP with all of the requisite options to enable GD
here and Freetype there, and PHP often won't compile without specifying
/path/to/various/options, so you have to dig around your system to find out
where everything was installed. This results in a long and unwieldy
configure statement which often does not work.

PHP needs to have a simple configure option called --enable-dynamic-images
or something similar. This should use built-in libraries that are downloaded
with the PHP source to create PNG images. Images can then be created with
standard PHP functions. This would be much more useful than relying on
several third-party solutions which do not easily work with each other. This
would also have the benefit of being more portable -- as I plan to release
my code to several different people running different types of servers, I
would like to minimize compatibility issues.

If anyone has a better solution, feel free to email me. As it stands, I am
very frustrated with this, and I haven't yet seen the light at the end of
the tunnel.

Thanks,
Erica



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-general Digest 3 Feb 2002 07:22:59 -0000 Issue 1149

2002-02-02 Thread php-general-digest-help


php-general Digest 3 Feb 2002 07:22:59 - Issue 1149

Topics (messages 83250 through 83290):

attachment via mail PHP
83250 by: Olev Rumm

how to add attachment
83251 by: Olev Rumm

Re: [PHP-INST] Default mysql path
83252 by: Uma Shankari T.

Limiting time of PHP script.
83253 by: Andre

Address unknown
83254 by: hugh danaher
83258 by: CC Zona
83260 by: Jim Lucas [php]
83269 by: hugh danaher
83284 by: hugh danaher
83286 by: CC Zona

Re: Content Management
83255 by: Lars Wilhelmsen

Re: Sending an e-mail to 1,000 people
83256 by: Lars Wilhelmsen
83259 by: rpruitt.Mid-tn.com
83261 by: Lars Torben Wilson
83262 by: Manuel Lemos
83264 by: Ed Lazor
83266 by: Sterling Hughes
83267 by: Chris Cocuzzo
83268 by: Ed Lazor
83276 by: Manuel Lemos
83278 by: rpruitt.Mid-tn.com
83279 by: Manuel Lemos
83280 by: Michael Sims

Re: is create_function slow?
83257 by: Lars Wilhelmsen

Re: IP based redirection
83263 by: LaserJetter

Using IP as an identfier
83265 by: Razorfish

Securite problem
83270 by: Roebie
83271 by: Jeff Sheltren
83272 by: rpruitt.Mid-tn.com
83273 by: Roebie
83277 by: rpruitt.Mid-tn.com

Re: Newbie: function for downloading
83274 by: Daniel Grace

Re: [PHP-DEV] Re: Securite problem
83275 by: James Cox

use_trans_sid
83281 by: Justin French

Re: PHP and Apache authorization: how to logout. Help!
83282 by: Rodolfo Gonzalez
83285 by: Frederick L. Steinkopf

imagecopy  or why men don't use maps.
83283 by: hugh danaher

testing for cookies capable client (browser)
83287 by: Justin French
83288 by: Manuel Lemos

FastTemplate Not Working after PHP Migration
83289 by: Chris Williams

Re: Why doesn't PHP have built-in support for dynamic image generation?
83290 by: Erica Douglass

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hello

I was looking a way to fill a forms on line and send them over via the server.

 Found a good(in my mind) and simple php mail skript

 from http://open.appideas.com/phpMailForm/source.php

 

 I managed to get it working. In my form there is a upload the the file section.

 like this:

 

 with max value of 2megs.

 It's not working. Pecause Im absolutely new in this I dont have a any idea how to

 implement attachment part into this script.Original script is here:

 

 

 

 

 

 The following information has been delivered:

 

 

 $key = $val";

 $Message .= "$key = $val\n";

 }

 

 if ($Header) {

 $Message = $Header."\n\n".$Message;

 }

 

 if ($Footer) {

 $Message .= "\n\n".$Footer;

 }

 

 mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress");

 ?>

 

 Thank You!

 

 ">Return To The Mail Form

 Home Page

 

 I dont know if I'm explained correctly so please excuse me.

Can anybody help please.

 Olev.


--- End Message ---
--- Begin Message ---

Hello

> I was looking a way to fill a forms on line and send them over via the server.

> 

> Found a good(in my mind) and simple php mail skript

> from http://open.appideas.com/phpMailForm/source.php

> 

> I managed to get it working. In my form there is a upload the the file section.

> like this:

> 

> with max value of 2megs.

> It's not working. Pecause Im absolutely new in this I dont have a any idea how to

> implement attachment part into this script.Original script is here:

> 

>  $MailToAddress = "[EMAIL PROTECTED]";

> $MailSubject = "Equipment Posting";

> if (!$MailFromAddress) {

> $MailFromAddress = "[EMAIL PROTECTED]";

> }

> $Header = "";

> $Footer = "";

> ?>

> 

> 

> 

> The following information has been delivered:

> 

> 

>  if (!is_array($HTTP_POST_VARS))

> return;

> reset($HTTP_POST_VARS);

> while(list($key, $val) = each($HTTP_POST_VARS)) {

> $GLOBALS[$key] = $val;

> $val=stripslashes($val);

> echo "$key = $val";

> $Message .= "$key = $val\n";

> }

> 

> if ($Header) {

> $Message = $Header."\n\n".$Message;

> }

> 

> if ($Footer) {

> $Message .= "\n\n".$Footer;

> }

> 

> mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress");

> ?>

> 

> Thank You!

> 

> ">Return To The Mail Form

> Home Page

> 

> Can anybody help please.I dont know if I'm explained correctly so please excuse me.

> Olev.


--- End Message ---
--- Begin Message ---




Actually i have stored mysql in my machine in /usr/lib/mysql

 when i am tried to connect it is giving this error.

nomysql support.From the prompt itself i can connect to mysql .using php
script i can't connect.

While in the instal

[PHP] Re: Mysql & php

2002-02-02 Thread Mike Frazer

Give us the exact error message, that probably will hold the answer.

Mike Frazer



"Uma Shankari T." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>  Hello,
>
>   I am trying to connect php and mysql with the following syntax
>
>  mysql_connect("localhost","username","password");
>
>  But it is giving error NoMysql support.
>
> Also i have stored the files in another webserver and trying to connect
> the  mysql and php in the localhost it is working properly.but it is not
> working if i have tried to connect in the localhost itself
>
>
> Then where is the problem...
>
>
> -Uma
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] file validation

2002-02-02 Thread Mike Frazer

A slightly less cumbersome method than the while() loop below would be a
foreach() loop:

function check_file($filename) {
if (!$lines = file($filename)) {
return false;
}
  foreach ($lines as $line) {
$num_pipes = substr_count($line, '|');
if ($num_pipes < 2 || $num_pipes > 4) {
return false;
}
}
return true;
}

Same result, probably absolutely no measurable (and we're talking fractions
of microseconds here) difference in speed, but much easier to read.

Mike Frazer



"Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
1012602758.3230.127.camel@ali">news:1012602758.3230.127.camel@ali...
> On Fri, 2002-02-01 at 14:02, toni baker wrote:
> > I would like to prevent users from uploading a file
> > that contains more than 4 pipes or less than 2 pipes.
> > The code below prevents users from uploading a file
> > containing more than 4 pipes, but not less than 2
> > pipes.  Should I use awk, ereg, or sed?  Thanks
>
> Unless you *have* to spawn processes to do this for you
> for some reason, you can keep things a lot simpler by
> doing it in PHP, something like this:
>
>  error_reporting(E_ALL);
>
> function check_file($filename) {
> if (!$upload_file = file($filename)) {
> return false;
> }
> while (list(, $line) = each($upload_file)) {
> $num_pipes = substr_count($line, '|');
> if ($num_pipes < 2 || $num_pipes > 4) {
> return false;
> }
> }
> return true;
> }
>
> $userfile = 'testpipes.txt';
> if (check_file($userfile)) {
> echo "File passed.\n";
> } else {
> echo "File failed.\n";
> }
>
> ?>
>
>
> Hope this helps,
>
> Torben
>
> > system ("/bin/cat $userfile|/bin/sed -n
> > 's/.*|.*|.*|.*|.*|/&/p'> pipes.txt;
> > $fd =fopen("pipes.txt", 'r');
> > $pipes5=fgets($fd,50);
> > echo ($pipes5);
> > fclose($fd);
> >
> > if ($pipes5) {
> >   print "wrong number of pipes";
> > }
> >
> > The uploaded file below should not pass but it does:
> >
> > a|b|c|d|e
> > a|b|c|
> > a|b|c|d
> > a|b
> > a|b|c|d|e
>
> --
>  Torben Wilson <[EMAIL PROTECTED]>
>  http://www.thebuttlesschaps.com
>  http://www.hybrid17.com
>  http://www.inflatableeye.com
>  +1.604.709.0506
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] RANT: Why doesn't PHP have built-in support for dynamic image generation?

2002-02-02 Thread Ed Lazor

Hi Erica,

I feel your pain - I've been dealing with the same thing this week.  I 
finally got the compile to complete and the system up and running, but it 
was painful.  It seemed like everything was finished, but I've noticed high 
server loads (.8), trouble accessing web pages (I tested using wget and it 
had to try 6 times to get the page and kept reporting EOF in headers), and 
my MySQL server keeps reporting errors communicating with the web server, 
and dropped connections to the MySQL server.  Safe to say, something didn't 
work and I need to start over and pray for the best.

Have you gotten it to work properly?  If so, what files did you use and 
what steps did you take in the install?

-Ed


At 11:24 PM 2/2/2002 -0800, Erica Douglass wrote:
>Forgive my grumpiness, but I've spent the last several hours trying to
>install GD, etc.
>
>Let's be honest. PHP needs built-in support for creating dynamic images. JSP
>already has this. Heck, you could even make it a configure option. As it
>stands now, you have to do the following:
>
>-- Install GD
>-- Install all of GD's numerous dependencies
>-- Install zlib
>-- Install freetype
>-- Install libttf
>
>THEN you have to compile PHP with all of the requisite options to enable GD
>here and Freetype there, and PHP often won't compile without specifying
>/path/to/various/options, so you have to dig around your system to find out
>where everything was installed. This results in a long and unwieldy
>configure statement which often does not work.
>
>PHP needs to have a simple configure option called --enable-dynamic-images
>or something similar. This should use built-in libraries that are downloaded
>with the PHP source to create PNG images. Images can then be created with
>standard PHP functions. This would be much more useful than relying on
>several third-party solutions which do not easily work with each other. This
>would also have the benefit of being more portable -- as I plan to release
>my code to several different people running different types of servers, I
>would like to minimize compatibility issues.
>
>If anyone has a better solution, feel free to email me. As it stands, I am
>very frustrated with this, and I haven't yet seen the light at the end of
>the tunnel.
>
>Thanks,
>Erica
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] RANT: Why doesn't PHP have built-in support for dynamicimage generation?

2002-02-02 Thread Weston Houghton


Anybody interested in working on a PEAR module to interface PHP with
something like ImageMagick directly? I would love to see it. Maybe if I am
unemployed long enough soon I can work on it myself. Not that I really want
that to happen...

I think that might be the best solution for PHP's lack of image
functionality though...

Wes



> Hi Erica,
> 
> I feel your pain - I've been dealing with the same thing this week.  I
> finally got the compile to complete and the system up and running, but it
> was painful.  It seemed like everything was finished, but I've noticed high
> server loads (.8), trouble accessing web pages (I tested using wget and it
> had to try 6 times to get the page and kept reporting EOF in headers), and
> my MySQL server keeps reporting errors communicating with the web server,
> and dropped connections to the MySQL server.  Safe to say, something didn't
> work and I need to start over and pray for the best.
> 
> Have you gotten it to work properly?  If so, what files did you use and
> what steps did you take in the install?
> 
> -Ed
> 
> 
> At 11:24 PM 2/2/2002 -0800, Erica Douglass wrote:
>> Forgive my grumpiness, but I've spent the last several hours trying to
>> install GD, etc.
>> 
>> Let's be honest. PHP needs built-in support for creating dynamic images. JSP
>> already has this. Heck, you could even make it a configure option. As it
>> stands now, you have to do the following:
>> 
>> -- Install GD
>> -- Install all of GD's numerous dependencies
>> -- Install zlib
>> -- Install freetype
>> -- Install libttf
>> 
>> THEN you have to compile PHP with all of the requisite options to enable GD
>> here and Freetype there, and PHP often won't compile without specifying
>> /path/to/various/options, so you have to dig around your system to find out
>> where everything was installed. This results in a long and unwieldy
>> configure statement which often does not work.
>> 
>> PHP needs to have a simple configure option called --enable-dynamic-images
>> or something similar. This should use built-in libraries that are downloaded
>> with the PHP source to create PNG images. Images can then be created with
>> standard PHP functions. This would be much more useful than relying on
>> several third-party solutions which do not easily work with each other. This
>> would also have the benefit of being more portable -- as I plan to release
>> my code to several different people running different types of servers, I
>> would like to minimize compatibility issues.
>> 
>> If anyone has a better solution, feel free to email me. As it stands, I am
>> very frustrated with this, and I haven't yet seen the light at the end of
>> the tunnel.
>> 
>> Thanks,
>> Erica
>> 
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread B Richards

How many emails per hour can people generate on a typical dedicated server?
on qmail? on smtp?


- Original Message -
From: "Manuel Lemos" <[EMAIL PROTECTED]>
To: "Ed Lazor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 9:09 PM
Subject: Re: [PHP] Re: Sending an e-mail to 1,000 people


> Hello,
>
> Ed Lazor wrote:
> >
> > At 06:25 PM 2/2/2002 -0500, Chris Cocuzzo wrote:
> > >Godamnit. Shut-up about this already for godsakes and answer the
> > >original question!!
> >
> > LOL  hehe good point Chris.
>
> Aleluia, somebody sensible! :-)
>
>
> > >"Ben Clumeck" <[EMAIL PROTECTED]> wrote in message
> > > > I would like to send an e-mail (the same e-mail) to 1,000 different
> > > > people.  I want each persons name to be in the "To:" field.  Is
there a
> > > way to
> > > > customize it to where it can say Dear (having a different
persons name
> > > > corresponding to an e-mail address) so that it looks customized.
> >
> > Ben, how you approach this will depend on how you have the data
> > stored.  Let's assume two things:  you have the e-mail addresses and
names
> > in a database and know how to retrieve and store them into the variables
> > $email and $name.  That said, create the body of your text:
> >
> > $body = "
> > Dear $name,
> >
> > Here are recent developments on our web site... etc.
> > ";
> >
> > Then use the mail function
(http://www.php.net/manual/en/function.mail.php)
> > to send the letter to the person like this:
> >
> > mail($email, "Site update", $body, "From:  [EMAIL PROTECTED]");
> >
> > The next thing you'll probably start wondering is how to send fancy
e-mail
> > instead of those generic text based ones...  PHPBuilder has an article
> > you'll want to check out located here:
> > http://www.phpbuilder.com/columns/kartic2807.php3.
>
> I do not advice anybody to send personalized bulk mail, even less in
> PHP. It will take a lot of time to just queue the message in the local
> relay mail server and since each message has to be stored separately in
> the mail server queue disk consuming a lot of space.
>
> What I recommend is to just queue a single message with all recepients
> in Bcc:. This is better done with qmail using qmail-inject because you
> do not have to actually add Bcc: headers to the message, just the
> recipients addresses, one per line,  and then headers and the body of
> the message. You may want to try this class for composing and sending
> MIME messages. It has subclasses for queing with PHP mail function, SMTP
> server, sendmail and qmail.
>
> http://phpclasses.upperdesign.com/browse.html/package/9
>
> If you can use it, I recommend to use qmail because it is much faster
> than the other alternatives to queue message to be sent to many
> recipients and also provides very good means to figure exactly which
> addresses are bouncing your messages so you can process them eventually
> unsubscribing the users in question, thanks to its VERP capability
> (Variable Envelope Return Path). http://www.qmail.org/
>
> If you want to send messages regularly to the same group of users, I
> recommend that you use ezmlm-idx because it provides very efficient and
> secure way to handle subscriptions and messages bouncings.
> http://www.ezmlm.org/
>
> I don't recommend the patches of ezmlm that let it be interfaced with
> user lists maintained in MySQL or PostgreSQL. I doubt that those
> databases are faster to query than DJB's cdb user list databases. Also,
> I don't think that most people want the user to be deleted from a
> database if it's address is bouncing for too long (11 days).
>
> Anyway, you may want to look into this PHP web interface to create and
> setup options of ezmlm mailing lists. It also comes with a SOAP server
> interface that you can use to provide Web services to subscribe,
> unsubscriber, verify and count users in ezmlm mailing lists.
>
> http://phpclasses.upperdesign.com/browse.html/package/177
>
> Regards,
> Manuel Lemos
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php