php-general Digest 3 Feb 2002 07:22:59 -0000 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:
<FORM name="your_file" value="2000000"><input name="attachment" type="file">
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 = "";
?>
<html>
<body bgcolor="#FFFFFF">
<font face="Arial"><center>
The following information has been delivered:
</center>
<?
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 "<b>$key</b> = $val<br>";
$Message .= "$key = $val\n";
}
if ($Header) {
$Message = $Header."\n\n".$Message;
}
if ($Footer) {
$Message .= "\n\n".$Footer;
}
mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress");
?>
<br><br>
<b>Thank You!</b>
<br><br>
<a href="<? echo "$HTTP_REFERER"; ?>">Return To The Mail Form</a><br><br>
<a href="/">Home Page</a><br><br>
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:
> <FORM name="your_file" value="2000000"><input name="attachment" type="file">
> 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 = "";
> ?>
> <html>
> <body bgcolor="#FFFFFF">
> <font face="Arial"><center>
> The following information has been delivered:
> </center>
>
> <?
> 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 "<b>$key</b> = $val<br>";
> $Message .= "$key = $val\n";
> }
>
> if ($Header) {
> $Message = $Header."\n\n".$Message;
> }
>
> if ($Footer) {
> $Message .= "\n\n".$Footer;
> }
>
> mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress");
> ?>
> <br><br>
> <b>Thank You!</b>
> <br><br>
> <a href="<? echo "$HTTP_REFERER"; ?>">Return To The Mail Form</a><br><br>
> <a href="/">Home Page</a><br><br>
>
> 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 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
--- End Message ---
--- Begin Message ---
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
<?
$sin = fopen("php://stdin", "r");
while (1)
{
// I need to limit the time fgets will wait for a line to be read.
$cmd = fgets($sin, 4096);
echo "Cmd: $cmd\n";
}
?>
-----------------------------------------
--- End Message ---
--- Begin Message ---
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 <img src=image.gif ismap> 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
--- End Message ---
--- Begin Message ---
In article <000e01c1ac31$2cdf6f20$0100007f@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 <img src=image.gif ismap> 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() <http://php.net/phpinfo> will show you all the server variables
at your disposal, including $QUERY_STRING.
parse_url() <http://php.net/parse-url> is also a useful one to know about.
And explode() <http://php.net/explode> will parse that comma-delimited list
of coordinates into an array so you can access the values individually.
Cheers!
--
CC
--- End Message ---
--- Begin Message ---
instead of using an image map, put the image in
<input type='image' src='<location_of_image>' name="someplace">
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 <img src=image.gif ismap> 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
--- End Message ---
--- Begin Message ---
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$0100007f@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 <img src=image.gif ismap> 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() <http://php.net/phpinfo> will show you all the server variables
> at your disposal, including $QUERY_STRING.
>
> parse_url() <http://php.net/parse-url> is also a useful one to know about.
>
> And explode() <http://php.net/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]
>
--- End Message ---
--- Begin Message ---
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
>
> <input type='image' src='<location_of_image>' name="someplace">
>
> 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 <img src=image.gif ismap> 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]
>
--- End Message ---
--- Begin Message ---
In article <001001c1ac45$406eab00$0100007f@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
--- End Message ---
--- Begin Message ---
<[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.
--- End Message ---
--- Begin Message ---
"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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin 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.
> > >
> > > 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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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]
--- End Message ---
--- Begin Message ---
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/kartic20000807.php3.
-Ed
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
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/kartic20000807.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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
"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
--- End Message ---
--- Begin Message ---
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/
>
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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]
--- End Message ---
--- Begin Message ---
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 ...?
--- End Message ---
--- Begin Message ---
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]
--- End Message ---
--- Begin Message ---
"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 (<a href="yadayada.mp3">), 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.
<?php
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=downloaded.pdf");
/* ... output pdf file ... */
Note: There is a bug in Microsoft Internet Explorer 4.01 that prevents this
from working. There is no workaround. There is also a bug in Microsoft
Internet Explorer 5.5 that interferes with this, which can be resolved by
upgrading to Service Pack 2 or later.
>>
You'll need to choose the correct content-type and filename of course.
--- End Message ---
--- Begin Message ---
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 <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 ---
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?<?=SID?>)?
Justin French
http://indent.com.au
http://soundpimps.com
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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
>
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---