php-general Digest 25 Dec 2002 08:26:00 -0000 Issue 1783
Topics (messages 129295 through 129316):
What happened with zend engine version 2?
129295 by: Erik Franzén
129299 by: Rasmus Lerdorf
129308 by: Erik Franzén
129316 by: Erik Franzén
Re: Problem with Include
129296 by: Rick Widmer
129297 by: Tom Woody
129300 by: Philip Olson
Re: forum?
129298 by: Philip Olson
Re: Creating my own External Module for PHP
129301 by: Rasmus Lerdorf
129309 by: Leon Mergen
extracting text
129302 by: Clivus2k1.aol.com
129305 by: John W. Holmes
objects within arrays
129303 by: Beth Gore
129304 by: Andrew Brampton
129307 by: Beth Gore
exif functions
129306 by: Dade Register
129312 by: Jason Sheets
upload_max_filesize hack
129310 by: electroteque
129311 by: electroteque
Greetings
129313 by: Joseph Ross Lee
129314 by: Andy Turegano
Problem with comma in mail form
129315 by: Ben Edwards
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 ---
I believed that PHP V4.3 should include the Zend engine version 2 since
there was two alpha releases for PHP-4.3.0 with Zend engine version 2
-PHP-4.3.0-dev-zend2-win32-alpha1
-PHP-4.3.0-dev-zend2-win32-alpha2
I'm waiting for Zend engine version 2. Where could I read information about
future releases?
I think the Zend engine version 2 provides much better coding facilities so
I would preciate if anybody could answer my questions.
Thanks
/Erik
--- End Message ---
--- Begin Message ---
That was never the plan. It is scheduled for PHP 5 sometime in the next
6-12 months.
-Rasmus
On Tue, 24 Dec 2002, Erik Franzén wrote:
> I believed that PHP V4.3 should include the Zend engine version 2 since
> there was two alpha releases for PHP-4.3.0 with Zend engine version 2
>
> -PHP-4.3.0-dev-zend2-win32-alpha1
> -PHP-4.3.0-dev-zend2-win32-alpha2
>
> I'm waiting for Zend engine version 2. Where could I read information about
> future releases?
>
> I think the Zend engine version 2 provides much better coding facilities so
> I would preciate if anybody could answer my questions.
>
> Thanks
>
> /Erik
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
After I posted the first message, I read something about PHP 5 at
www.zend.com and suspected that is was about the new Zend Engine.
I must have missed it totally! I was planning to code on a new website
during my christmas holiday and now that chance is gone because the
functionality in the new Zend Enginge is exactly what I miss.
I also read on Zend.com that there are some decisions to make about some
major changes i.e private members variables or not.
I guess I have to switch to Linux and get a CVS-copy for PHP 5, if it
exists? Maybe a Win32-binary? Does it exist and if it exists, what status
does it have? Can you write code that will work when the final version is
finished with minor changes, or are major changes on the agenda?
And secondly, I have to face the fact that I cannot get the Zend Engine
version 2 in a runtime environment for at least 6 month.
You can be sure that I'm longing for it... :)
"Rasmus Lerdorf" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That was never the plan. It is scheduled for PHP 5 sometime in the next
> 6-12 months.
>
> -Rasmus
>
> On Tue, 24 Dec 2002, Erik Franzén wrote:
>
> > I believed that PHP V4.3 should include the Zend engine version 2 since
> > there was two alpha releases for PHP-4.3.0 with Zend engine version 2
> >
> > -PHP-4.3.0-dev-zend2-win32-alpha1
> > -PHP-4.3.0-dev-zend2-win32-alpha2
> >
> > I'm waiting for Zend engine version 2. Where could I read information
about
> > future releases?
> >
> > I think the Zend engine version 2 provides much better coding facilities
so
> > I would preciate if anybody could answer my questions.
> >
> > Thanks
> >
> > /Erik
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
--- End Message ---
--- Begin Message ---
You don't need to answer my questions. Found almost all answers myself (Yes,
I was "triggerhappy" to post my questions here before I looked for the
answers...)
I have one question though, in which status are Zend Engine 2 in? I mean,
have you already taken the major decisions about (for an example) private
members?
"Erik FranzéN" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After I posted the first message, I read something about PHP 5 at
> www.zend.com and suspected that is was about the new Zend Engine.
> I must have missed it totally! I was planning to code on a new website
> during my christmas holiday and now that chance is gone because the
> functionality in the new Zend Enginge is exactly what I miss.
>
> I also read on Zend.com that there are some decisions to make about some
> major changes i.e private members variables or not.
>
> I guess I have to switch to Linux and get a CVS-copy for PHP 5, if it
> exists? Maybe a Win32-binary? Does it exist and if it exists, what status
> does it have? Can you write code that will work when the final version is
> finished with minor changes, or are major changes on the agenda?
>
> And secondly, I have to face the fact that I cannot get the Zend Engine
> version 2 in a runtime environment for at least 6 month.
> You can be sure that I'm longing for it... :)
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> skrev i meddelandet
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > That was never the plan. It is scheduled for PHP 5 sometime in the next
> > 6-12 months.
> >
> > -Rasmus
> >
> > On Tue, 24 Dec 2002, Erik Franzén wrote:
> >
> > > I believed that PHP V4.3 should include the Zend engine version 2
since
> > > there was two alpha releases for PHP-4.3.0 with Zend engine version 2
> > >
> > > -PHP-4.3.0-dev-zend2-win32-alpha1
> > > -PHP-4.3.0-dev-zend2-win32-alpha2
> > >
> > > I'm waiting for Zend engine version 2. Where could I read information
> about
> > > future releases?
> > >
> > > I think the Zend engine version 2 provides much better coding
facilities
> so
> > > I would preciate if anybody could answer my questions.
> > >
> > > Thanks
> > >
> > > /Erik
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
--- End Message ---
--- Begin Message ---
At 08:04 AM 12/24/02 +0300, sport4ever wrote:
maybe there is something wrong with php.ini
notice that I faced with this problem just after I upgraded to (PHP 4.2.1),
(Apache2), everything was great before!
The last I heard PHP + Apache2 is pretty much experimental, and not
recommended for production servers. Unless you plan on working to debug
the combination of programs, you should be using Apache 1.3 if you want to
use PHP.
There are a few combinations of versions that work together, but unless you
are willing to put a lot of extra effort and study into using Apache 2,
stick with 1.3 until the PHP developers announce Apache 2 support.
Rick
--- End Message ---
--- Begin Message ---
I have found this to be very true with RedHat 8 (includes Apache2.0.40,
and php 4.2.2). While RedHat 8.0 isn't really ready for a production
server, apache2 and php definitly are not. You have to bend over
backwards to get some things working correctly if at all. Plus there
are still some stability issues with RH 8.
As far as my production servers go apache 1.3 and RH 7.3 for now.
On Tue, 24 Dec 2002 00:02:49 -0700
Rick Widmer <[EMAIL PROTECTED]> wrote:
> At 08:04 AM 12/24/02 +0300, sport4ever wrote:
>
> >maybe there is something wrong with php.ini
> >notice that I faced with this problem just after I upgraded to (PHP
> >4.2.1),(Apache2), everything was great before!
>
> The last I heard PHP + Apache2 is pretty much experimental, and not
> recommended for production servers. Unless you plan on working to
> debug the combination of programs, you should be using Apache 1.3 if
> you want to use PHP.
>
> There are a few combinations of versions that work together, but
> unless you are willing to put a lot of extra effort and study into
> using Apache 2, stick with 1.3 until the PHP developers announce
> Apache 2 support.
>
--
Tom Woody
Systems Administrator
Don't throw your computer out the window,
throw the Windows out of your computer!
--- End Message ---
--- Begin Message ---
I've heard that RH8 decided to disable short tags
in their default php.ini If this is true, the people
at RedHat deserve a good spanking. Talk about being
irresponsible!
Regards,
Philip
On Tue, 24 Dec 2002, Tom Woody wrote:
> I have found this to be very true with RedHat 8 (includes Apache2.0.40,
> and php 4.2.2). While RedHat 8.0 isn't really ready for a production
> server, apache2 and php definitly are not. You have to bend over
> backwards to get some things working correctly if at all. Plus there
> are still some stability issues with RH 8.
>
> As far as my production servers go apache 1.3 and RH 7.3 for now.
>
> On Tue, 24 Dec 2002 00:02:49 -0700
> Rick Widmer <[EMAIL PROTECTED]> wrote:
>
> > At 08:04 AM 12/24/02 +0300, sport4ever wrote:
> >
> > >maybe there is something wrong with php.ini
> > >notice that I faced with this problem just after I upgraded to (PHP
> > >4.2.1),(Apache2), everything was great before!
> >
> > The last I heard PHP + Apache2 is pretty much experimental, and not
> > recommended for production servers. Unless you plan on working to
> > debug the combination of programs, you should be using Apache 1.3 if
> > you want to use PHP.
> >
> > There are a few combinations of versions that work together, but
> > unless you are willing to put a lot of extra effort and study into
> > using Apache 2, stick with 1.3 until the PHP developers announce
> > Apache 2 support.
> >
>
>
> --
> Tom Woody
> Systems Administrator
>
> Don't throw your computer out the window,
> throw the Windows out of your computer!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Another good one:
fudforum:
http://fud.prohost.org/
Regards,
Philip
On Tue, 24 Dec 2002, [windows-1254] Fatih Üstündađ wrote:
> do you know freeware forum in php I can easly use?
>
> thanks.
> fatih ustundag
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Just run phpize in your directory and then do a ./configure && make
If your config.m4 was correct you should now have a modules/foo.so in your
dir.
-Rasmus
On Tue, 24 Dec 2002, Leon Mergen wrote:
> Hello,
>
> I have a little question to which I hope to find an anwser in here.
> Currently, I have a big script which receives approx 1.5 million hits every
> day. Since this script does some common calculations that underlying scripts
> use, I want to rewrite this into C and initially make it an external module
> for beta testing and then eventually compile it directly into PHP.
>
> Now, I got this really good book, Web Application Development with PHP by
> Ratschiller and Gerken. It has a complete chapter devoted to "hacking the
> core of PHP" which shows how to create extensions.
>
> Now, they describe 2 common ways of hacking the core... making a shared
> object (which is what I want at this point) , or compiling the extension
> right into the core. They decribe how to make your extension with
> ~/ext/ext_skel , but they don't describe which steps to take when you only
> want to make a shared object... the only thing they say is "at this point,
> you should have a new PHP binary or a .so file" ... but they never gave any
> indication how to chose... they just asume you want a new php binary or sth.
>
> Now, can anyone provide me with a few brief description (a few steps) how to
> make your own dynamically loadable module in PHP?
>
> Thanks in advance.
>
> Regards,
>
> Leon Mergen
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hey! That worked!
Thanks Rasmus!
Grtz,
Leon Mergen
"Rasmus Lerdorf" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Just run phpize in your directory and then do a ./configure && make
> If your config.m4 was correct you should now have a modules/foo.so in your
> dir.
>
> -Rasmus
>
> On Tue, 24 Dec 2002, Leon Mergen wrote:
>
> > Hello,
> >
> > I have a little question to which I hope to find an anwser in here.
> > Currently, I have a big script which receives approx 1.5 million hits
every
> > day. Since this script does some common calculations that underlying
scripts
> > use, I want to rewrite this into C and initially make it an external
module
> > for beta testing and then eventually compile it directly into PHP.
> >
> > Now, I got this really good book, Web Application Development with PHP
by
> > Ratschiller and Gerken. It has a complete chapter devoted to "hacking
the
> > core of PHP" which shows how to create extensions.
> >
> > Now, they describe 2 common ways of hacking the core... making a shared
> > object (which is what I want at this point) , or compiling the extension
> > right into the core. They decribe how to make your extension with
> > ~/ext/ext_skel , but they don't describe which steps to take when you
only
> > want to make a shared object... the only thing they say is "at this
point,
> > you should have a new PHP binary or a .so file" ... but they never gave
any
> > indication how to chose... they just asume you want a new php binary or
sth.
> >
> > Now, can anyone provide me with a few brief description (a few steps)
how to
> > make your own dynamically loadable module in PHP?
> >
> > Thanks in advance.
> >
> > Regards,
> >
> > Leon Mergen
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
--- End Message ---
--- Begin Message ---
Okay guys heres the question:
say i have a line of text like: [blah], [rah] PH33r Us! [moo]
how can I extract all the text in the brackets and set it as a var, im
totally stuck, my idea was to use strstr() but that wouldnt work as all the
tags were not at the end :(
- CS
--- End Message ---
--- Begin Message ---
> say i have a line of text like: [blah], [rah] PH33r Us! [moo]
>
> how can I extract all the text in the brackets and set it as a var, im
> totally stuck, my idea was to use strstr() but that wouldnt work as
all
> the
> tags were not at the end :(
Assuming you want to replace [foo] with the value in $foo, you can use
something like this:
$str = "this [foo] is a [test] okay?";
$foo = "crap_foo";
$test = "crap_test";
$nstr = preg_replace("/\[([a-z]+)\]/ie",'\$$1',$str);
echo $str . "<br>---<br>" . $nstr;
No error checking, so if $foo doesn't exist, you'll get a warning and
empty string inserted.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
Hi,
I'm really struggling with this - I'm writing a simple webmail client
for myself (because they've blocked the common ones at work hehe)
Anyway, as soon as I tried to access..
$header = imap_header($inbox,$msgID);
$header->from['mailbox'];
... I get nothing.
I did a print_r on that, and I got..
Array ([0] = StdClass Object([personal] = "blah" ); etc...
so how do I access the data within the Object bit? a simple
$header->from['personal'] refuses to output anything.
Sorry to be a pain again, I know this is simple language stuff but I
can't find it in the manual. :)
Beth Gore
--
http://www.habitformer.co.uk
--- End Message ---
--- Begin Message ---
Big guess but I think maybe:
$header[0]->from['mailbox'];
Also I suggest you turn your PHP Error Level up to E_ALL in your php.ini
file (or temporarly at the top of your scripts with error_reporting
(E_ALL);, this will help debug programs like this :))
Andrew
----- Original Message -----
From: "Beth Gore" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 6:42 PM
Subject: [PHP] objects within arrays
> Hi,
>
> I'm really struggling with this - I'm writing a simple webmail client
> for myself (because they've blocked the common ones at work hehe)
>
> Anyway, as soon as I tried to access..
>
> $header = imap_header($inbox,$msgID);
>
> $header->from['mailbox'];
>
> ... I get nothing.
>
> I did a print_r on that, and I got..
>
> Array ([0] = StdClass Object([personal] = "blah" ); etc...
>
> so how do I access the data within the Object bit? a simple
> $header->from['personal'] refuses to output anything.
>
> Sorry to be a pain again, I know this is simple language stuff but I
> can't find it in the manual. :)
>
> Beth Gore
> --
> http://www.habitformer.co.uk
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
This didn't work. Apparently from[] returns an array of objects, however
I have no idea how to access the object within the array.
print_r gives this:
Array ( [0] => stdClass Object ( [personal] => Beth Gore [mailbox] =>
bethanoia [host] => habitformer.co.uk ) )
I've tried this:
echo $header->from->mailbox."@".$header->from->host;
which doesn't report an error at all, even with full error reporting..
... breaking news.. just cracked it.
echo $header->from[0]->mailbox."@".$header->from[0]->host;
Bascially the array of objects is the whole [0] => stdClass thing.. AGGH!!
Always doing this.
Thanks anyway :)
Beth Gore
--
http://www.habitformer.co.uk
Andrew Brampton wrote:
Big guess but I think maybe:
$header[0]->from['mailbox'];
Also I suggest you turn your PHP Error Level up to E_ALL in your php.ini
file (or temporarly at the top of your scripts with error_reporting
(E_ALL);, this will help debug programs like this :))
Andrew
----- Original Message -----
From: "Beth Gore" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 6:42 PM
Subject: [PHP] objects within arrays
Hi,
I'm really struggling with this - I'm writing a simple webmail client
for myself (because they've blocked the common ones at work hehe)
Anyway, as soon as I tried to access..
$header = imap_header($inbox,$msgID);
$header->from['mailbox'];
... I get nothing.
I did a print_r on that, and I got..
Array ([0] = StdClass Object([personal] = "blah" ); etc...
so how do I access the data within the Object bit? a simple
$header->from['personal'] refuses to output anything.
Sorry to be a pain again, I know this is simple language stuff but I
can't find it in the manual. :)
Beth Gore
--
http://www.habitformer.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Happy Holidays!
I am having a problem using the exif_thumbnail()
function. All I want to do is to view the embedded
thumbnails in some jpg files taken by digital cameras.
I have tried the examples in the docs, but they don't
seem to work. Can someone give me some tips on using
this function? Thanx.
-Dade
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
You are getting the error because the function has not been defined..
The manual contains this information: Note: This function is only
available in PHP when compiled using --enable-exif. Its functionality
and behaviour has changed in PHP 4.2
Try recompling PHP with --enable-exif on the command line, this should
solve your problem.
Jason
On Tue, 2002-12-24 at 13:20, Dade Register wrote:
> Thanx for replying. Here's all the info:
> PHP 4.2.2
> Unix - FreeBSD 4.6-STABLE
> http://kidz.homeip.net/php.php
> That link is a phpinfo() with all the info if this is
> not enuf info.
>
> The images are taken with a Kidak DX3700 digital
> camera. Should be using EXIF 2.0 or so. I'm pretty
> sure they have thumbnails. That's what Kodak says.
>
> The error I get is as follows:
> Fatal error: Call to undefined function:
> exif_thumbnail() in /usr/home/dade/kidz/pics/image.php
> on line 3
>
> That is the exif_thumbnail() function line. I am
> pretty sure I am doing it right. Look @
> http://kidz.homeip.net/pics/image.phps
>
> I'm trying to call it like this:
> http://kidz.homeip.net/pics/image.php?file=test.jpg
>
> Do you think that will work?
> Thanx for the help.
>
> -Dade
> --- Jason Sheets <[EMAIL PROTECTED]> wrote:
> > Do you get any error messages? Are you sure the
> > pictures have
> > thumbnails on them? Please elaborate on your
> > explanation how it is
> > failing.
> >
> > What version of PHP are you running, is it on
> > windows or Unix/Linux?
> >
> > Jason
> > On Tue, 2002-12-24 at 12:20, Dade Register wrote:
> > > Happy Holidays!
> > >
> > > I am having a problem using the exif_thumbnail()
> > > function. All I want to do is to view the embedded
> > > thumbnails in some jpg files taken by digital
> > cameras.
> > > I have tried the examples in the docs, but they
> > don't
> > > seem to work. Can someone give me some tips on
> > using
> > > this function? Thanx.
> > >
> > > -Dade
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
hi guys i've managed to edit a htaccess file which will allow to override
the upload_max_filesize ini setting which cannot be edited in php itself
hope this helps, shure its a hack there could be anything with M in it, i'm
terrible at regex, so if anyone would like to add to it go ahead.
<?
$filename = ".htaccess";
$fd = fopen ($filename, "r+");
flock($fd, LOCK_EX);
while (!feof($fd)) {
$size="3M"; //whatever value u like in a defines
$fpos = ftell($fd);
$c = fgetc($fd);
if ($c == "M"){
ftruncate($fd, $fpos-2);
fseek($fd, -3, SEEK_CUR);
fwrite($fd,'"'.$size.'"');
}
}
flock($fd, LOCK_UN);
fclose ($fd);
?>
--- End Message ---
--- Begin Message ---
i just cleaned it up a bit
<?
function edit_max_filesize($size){
$filename = ".htaccess";
$size = $size."M";
$fd = fopen ($filename, "r+");
flock($fd, LOCK_EX);
while (!feof($fd)) {
$fpos = ftell($fd);
$c = fgetc($fd);
if ($c == "M"){
ftruncate($fd, $fpos-2);
fseek($fd, -3, SEEK_CUR);
fwrite($fd,'"'.$size.'"');
}
}
flock($fd, LOCK_UN);
fclose ($fd);
}
define('MAX_FILESIZE','5');
edit_max_filesize(MAX_FILESIZE);
?>
"Electroteque" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi guys i've managed to edit a htaccess file which will allow to override
> the upload_max_filesize ini setting which cannot be edited in php itself
> hope this helps, shure its a hack there could be anything with M in it,
i'm
> terrible at regex, so if anyone would like to add to it go ahead.
>
> <?
> $filename = ".htaccess";
> $fd = fopen ($filename, "r+");
> flock($fd, LOCK_EX);
> while (!feof($fd)) {
> $size="3M"; //whatever value u like in a defines
> $fpos = ftell($fd);
> $c = fgetc($fd);
> if ($c == "M"){
> ftruncate($fd, $fpos-2);
> fseek($fd, -3, SEEK_CUR);
> fwrite($fd,'"'.$size.'"');
> }
> }
> flock($fd, LOCK_UN);
> fclose ($fd);
> ?>
>
>
--- End Message ---
--- Begin Message ---
Merry Christmas!
Joseph Ross Lee
POPS Inc (People Organization Process and Solutions)
Phone: 8077232 Mobile:+639189363808
5L WestGate Tower, Madrigal Business Park, Investment Drive, Ayala
Alabang, Muntinlupa City, Metro Manila, Philippines
--- End Message ---
--- Begin Message ---
Indeed, Merry Christmas to all!
--- End Message ---
--- Begin Message ---
I have a fairly simple mail form which gets email, subject and message and
posts to itself.
<form method="post">
<input type=hidden name=doit value=1>
<b>Your Email Address:</b>
<br>
<input type="text" name="email" size=40 value="<?
if(isset($email)) { echo $email; }
?>">
<br><br>
<b>Subject:</b>
<br>
<input type=text name=subject size=40 value="<?
if(isset($subject)) { echo $subject; }
?>">
<br><br>
<b>Message:</b>
<br>
<textarea name="message" rows="10" cols="40"><?
if(isset($message)) { echo $message; }
?></textarea>
<br><br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</form>
It then use mail() function to send a email.
mail( $admin_email, $subject, $message, "From: $email" );
Problem is the message gets truncated if there is a comma in the message
after the comma.
Has anyone had this problem, got a solution to it.
Regards,
Ben
****************************************************************
* Ben Edwards +44 (0)117 9400 636 *
* Critical Site Builder http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online http://www.cultureshop.org *
* i-Contact Progressive Video http://www.videonetwork.org *
* Smashing the Corporate image http://www.subvertise.org *
* Bristol Indymedia http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B 49F3 3056 C6DB 8538 EEF8 *
****************************************************************
--- End Message ---