php-general Digest 9 Jun 2005 10:48:48 -0000 Issue 3502
Topics (messages 216673 through 216697):
Re: problem with IE and php
216673 by: Richard Lynch
Re: problem between IE and PHP
216674 by: Richard Lynch
Re: Add Excel/Word documents to a dynamic pdf.
216675 by: Richard Lynch
Re: Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!
216676 by: Richard Lynch
216688 by: Chris Martin
Re: The "goto" discussion on the Internals List
216677 by: Richard Lynch
Returned mail: Data format error
216678 by: The Post Office
Re: Telling users and machines apart
216679 by: Richard Lynch
Re: about the absolutely path
216680 by: Richard Lynch
Re: Japanese with UTF-8 and mysql
216681 by: Richard Lynch
216686 by: Mark Sargent
PEAR installation
216682 by: Danielle
216683 by: Greg Beaver
Re: Objects and Performance
216684 by: Greg Beaver
Re: Of .txt to .zip
216685 by: SadWind Yan
Converting a query for use in a form
216687 by: kevin.newage-hosting.com
Error
216689 by: The Post Office
setting up a wiki - looking for suggestions!
216690 by: bruce
216691 by: bruce
output buffering / output compression
216692 by: Paul Birnstihl
[SPAM] YOUR EMAIL ACCOUNT IS SUSPENDED FOR SECURITY REASONS
216693 by: register.lists.php.net
weird thing; downloading from a php script stops at exactly 2.000.000 bytes
216694 by: Catalin Trifu
216695 by: Catalin Trifu
sgvpprhibxta
216696 by: Automatic Email Delivery Software
Re: Really simple regex
216697 by: Jochem Maas
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 ---
On Wed, June 8, 2005 11:01 am, Philippe Reynolds said:
> Acutally, I have just resolved my problem.
>
> I was using method="get" in my form (which contains at least a hundred
> values to be passed back). This overloaded the address length and
> therefore
> could not and would not action the second page.
>
> I switch to method="post" in my form (which does not pass everything to
> the
> address line, and therefore allowing the second page to be actionned..
>
> That to all you, who had input in this problem.
The minimum POST limit, which servers *CAN* impose, if they want, is
larger than the minimum GET limit, which servers *CAN* impose.
So maybe you fixed it, or maybe you'll just have trouble as soon as you
add one more INPUT...
You may want to break your form up into smaller forms.
Or maybe not, if you can find out the limit imposed by YOUR server, and
measure your FORM POST data length, and reassure yourself you'll never
cross that line.
PS Plan on Evil Person who intentionally tries to overload your POST input.
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
On Wed, June 8, 2005 7:53 am, Philippe Reynolds said:
> I'm having a little problem with the interaction between php and IE.
>
> I have two ".php" pages.
Show us the page.
> The first contains a form with the standard submit button. However when I
> come to push the button, I get a "ding" sound (standard error sound) and
> it
> seems like the button is deactivated. However when I try with my firefox
> browser, everything works fine.
>
> I then created a duplicate of the page, with no php and saved it as a
> ".html" file.
> With internet explorer and firefox, everything worked fine.
>
> I do not understand how this can be. Is Internet Explorer treated the php
> differently?
IE is really broken, and will do a lot of dumb things based on the URL.
But even IE isn't *THAT* broken, last time I checked...
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
On Wed, June 8, 2005 5:23 am, Bosky, Dave said:
> Basically I have a master list of available files in the following
> formats: text, JPEG images, Excel, Powerpoint, and Word. The user
> selects all the documents they need from the list and then I need to
> build a dynamic PDF containing all the selected files.
>
> Is this possible?
Yes, but...
There are commercial $$$ tools to convert Word and Excel (I think) and
Powerpoint (well, maybe not) into PDF.
You could then pay for the license of libpdf to have PDI which lets you
smush a bunch of PDFs into one big monster PDF.
This is not gonna be cheap...
And I don't promise Excel and Powerpoint.
There are some less expensive tools on Windows (and maybe other platforms)
that let you "Print to PDF" and you could maybe get a Windows box to use
do those... Well, you could get it to do as well as you can get a Windows
box to do anything at all...
But the combining part will almost for sure cost you some money.
I don't have hard prices to quote you, but you can dig them out.
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
On Tue, June 7, 2005 3:30 pm, Matt Babineau said:
> Is there a way to make a JPG? I've looked at a few sites from google..most
> are activeX...somewhat undersirable. Looking for something I can run on
> the
> server to do the convert work.
webthumb from the GD guys might do what you want for the JPG thing.
It's only been on my list of cool things to check out for, ummm, a year?
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
On 6/7/05, Matt Babineau <[EMAIL PROTECTED]> wrote:
> Yeah I was considering that...I'm trying the html2pdf site right now. It
> seems alright...its choking on my invoice as we speak (lots of html).
>
> Is there a way to make a JPG? I've looked at a few sites from google..most
> are activeX...somewhat undersirable. Looking for something I can run on the
> server to do the convert work.
>
> Thanks,
>
>
> Matt Babineau
> Criticalcode
> w: http://www.criticalcode.com
> p: 858.733.0160
> e: [EMAIL PROTECTED]
>
> -----Original Message-----
> From: Jack Jackson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 07, 2005 3:21 PM
> To: [email protected]
> Subject: Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need
> somesuggestions!
>
> Matt Babineau wrote:
>
> >Hi all -
> >
> >I've got a great html invoice that prints like crap because of my user
> >of background images and foreground images. Does anyone have any good
> >suggestions other than turn on images in IE to get this thing to print
> >the graphics? Is there a good way I could convert the HTML view to a
> >JPG? I'm on a linux box and have php 4.3.10.
> >
> >Thanks for the help!
> >
> >Matt Babineau
> >Criticalcode
> >w: http://www.criticalcode.com
> >p: 858.733.0160
> >e: [EMAIL PROTECTED]
> >
> >
> >
> >
> Make it a pdf?
>
Is a simple CSS print stylesheet out of the question?
If the site is marked up properly, this should be trivial, and would
be much easier/more efficient.
IMO the only image that should be on a printed invoice, is the logo (if any).
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
--- End Message ---
--- Begin Message ---
On Tue, June 7, 2005 10:59 am, Robert Cummings said:
> PHP has never purported to be an OOP only language. It advocates both
> procedural and OOP programming methodologies. Just ask Richard Lynch :)
Don't bother asking me - Ask Rasmus :-)
And, for the record, *I* sure as hell don't want to see a GoTo in PHP.
If you're down to the clock cycles where GoTo versus if/else matters, you
should be coding that part in C anyway.
[He says blithely, not having coded in C in over a decade.]
PS I never knew PHP and I shared our birthday! Two reasons to celebrate!!!
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
ALERT!
This e-mail, in its original form, contained one or more attached files that
were infected with a virus, worm, or other type of security threat. This e-mail
was sent from a Road Runner IP address. As part of our continuing initiative to
stop the spread of malicious viruses, Road Runner scans all outbound e-mail
attachments. If a virus, worm, or other security threat is found, Road Runner
cleans or deletes the infected attachments as necessary, but continues to send
the original message content to the recipient. Further information on this
initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the
e-mail as part of the scanning process. Road Runner recommends that if the
sender is known to you, you contact them directly and advise them of their
issue. If you do not know the sender, we advise you to forward this message in
its entirety (including full headers) to the Road Runner Abuse Department, at
[EMAIL PROTECTED]
The message was undeliverable due to the following reason(s):
Your message was not delivered because the destination computer was
not reachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.
Your message could not be delivered within 2 days:
Host 123.97.208.227 is not responding.
The following recipients could not receive this message:
<[email protected]>
Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.
file attachment: mail.zip
This e-mail in its original form contained one or more attached files that were
infected with the [EMAIL PROTECTED] virus or worm. They have been removed.
For more information on Road Runner's virus filtering initiative, visit our
Help & Member Services pages at http://help.rr.com, or the virus filtering
information page directly at http://help.rr.com/faqs/e_mgsp.html.
--- End Message ---
--- Begin Message ---
On Tue, June 7, 2005 5:39 am, Merlin said:
> I am getting more and more emails through my webforms submited by bots.
> It looks like some sites liky yahoo are placing an image into their forms
> and
> the human has to enter a code visible on the image to submit the form.
> After some googling I found captcha, but I do not like the images.
>
> Do you know if there is a class available for PHP which does create the
> image
> and does parts of the handling? That seems like a common task to me. Maybe
> someone else already implemented such thing and can recommend.
One of my clients was getting a zillion guestbook entries by weblink farm
jerks.
I could have installed CAPTCHA, I guess, but, honestly, I have a REALLY
hard time as a user guessing what all the letters are with all the
background noise they use -- I end up having to submit a form 3 times to
get a usable image. Ugh. Not a pleasant user experience.
Course, I never read the docs, so maybe that's a feature I could turn off...
Plus, I couldn't think of the name of CAPTCHA (again) so it would have
taken me longer to find that name than to just roll my own...
Anyway, I figured I could whip up my own crude not-CAPTCHA, and be able to
more easily support it, and so I did.
And now I've turned it into an example for you:
http://voodookings.net/eyesonly_example.htm
NOTE:
This wasn't intended to be "released" code.
It's very crude, one-off, for a starving musician client that pays me
$35/month, of which $20 goes to hosting fees...
Buy his CD if you like old-school bluesy/roots rock, so he can afford to
pay me more, and maybe I'll clean up the code :-)
http://cdbaby.com/voodookings2
PS
Yes, a spammer *COULD* use OCR to read that text in the image to be able
to continue spamming our guestbook... Doesn't seem likely, eh?
If they do, I'll add "noise" to the image with GD, or just switch to
CAPTCHA. [shrug]
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
On Mon, June 6, 2005 11:30 pm, Burhan Khalid said:
>> maybe you could use the apache ProxyPass directive?
>>
>> ProxyPass testb.xxx.com/a/ testa.xxx.com
>>
>> or something like that. (I'm just half-remembering
>> a cool post by Rasmus L. so the syntax is probably off)
>>
>
> I've been trying to search for that message for a while. It talked
> about running php4 and php5 in one Apache instance.
http://marc.theaimsgroup.com/?l=php-general&m=111101114830176&w=2
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
On Mon, June 6, 2005 11:02 pm, Mark Sargent said:
>>> The correct way - if one wants utf-8 as charset - is:
>>> header("Content-Type: index/html; charset=utf-8");
> actually, if I add this,
>
> header("Content-Type: index/html; charset=utf-8");
>
> as suggested, firefox prompts to download the page, instead of just
> displaying the page.
>
> You have chosen to open
> productdetails.php
> which is a : PHP file
> from: http://localhost/
> What should firefox do with this file?
> Open with Browse..
> Save to disk
>
> Weird, what's with that. Cheers.
Sigh.
I think they implemented the IE bug that looks at URLs instead of Headers
in some cases.
Rename your PHP script to be .htm, and then use .htaccess with ForceType
to make it really be a PHP script.
<Files productdetails.htm>
ForceType application/x-httpd-php
</Files>
Then the browser CAN NOT KNOW you used PHP to generate the file, so cannot
possibly screw up...
Well, at least it can't screw up in the way it is doing now. :-)
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
Richard Lynch wrote:
On Mon, June 6, 2005 11:02 pm, Mark Sargent said:
The correct way - if one wants utf-8 as charset - is:
header("Content-Type: index/html; charset=utf-8");
actually, if I add this,
header("Content-Type: index/html; charset=utf-8");
as suggested, firefox prompts to download the page, instead of just
displaying the page.
You have chosen to open
productdetails.php
which is a : PHP file
from: http://localhost/
What should firefox do with this file?
Open with Browse..
Save to disk
Weird, what's with that. Cheers.
Sigh.
me too
I think they implemented the IE bug that looks at URLs instead of Headers
in some cases.
actually, get this in both Firefox and Mozilla
Rename your PHP script to be .htm,
done
and then use .htaccess with ForceType
to make it really be a PHP script.
<Files productdetails.htm>
ForceType application/x-httpd-php
</Files>
just checking; that goes into the .htaccess file, which is placed in the
same dir as the files for this site..?
Then the browser CAN NOT KNOW you used PHP to generate the file, so cannot
possibly screw up...
if above is correct, it did, with the renamed productdetails.htm
page...this is after restarting the server too..did I misunderstand
something.?
Well, at least it can't screw up in the way it is doing now. :-)
perhaps it's just me..?
Cheers.
Mark Sargent.
--- End Message ---
--- Begin Message ---
I'm having problems installing PEAR.
When running the go-pear.php installer (version 0.2.2), I get the following
message after submitting the form on the 'Configuration' page...
Error
Downloading package: Pager............
download of http://pear.php.net/get/Pager failed: A connection attempt
failed because the connected party did not properly respond after a period
of time, or established connection failed because connected host has failed
to respond.
(10060)
I'm running PHP 5.0.3, on Windows 2000, with IIS
Thanks
Danielle
--- End Message ---
--- Begin Message ---
Danielle wrote:
> I'm having problems installing PEAR.
> When running the go-pear.php installer (version 0.2.2), I get the following
> message after submitting the form on the 'Configuration' page...
>
> Error
>
> Downloading package: Pager............
>
> download of http://pear.php.net/get/Pager failed: A connection attempt
> failed because the connected party did not properly respond after a period
> of time, or established connection failed because connected host has failed
> to respond.
> (10060)
You had an internet timeout. Make sure that any proxy configuration is
entered, or if you don't use one, try again later and it should work.
Greg
--- End Message ---
--- Begin Message ---
Greg Donald wrote:
> On 6/8/05, NSK <[EMAIL PROTECTED]> wrote:
>
>>Hi, I am creating a small API in PHP, i.e. a collection of reusable functions
>>for other programmers. As it is now, it is just many functions together in
>>the same file. Do you think I should make it object-oriented? What are the
>>pros and cons of this approach in PHP?
>>
>>I am particularly very concerned about performance. Are object methods slower
>>than functions in php?
>
>
> Definitely not scientific but have a look:
> http://destiney.com/Benchmarks
If you want to compare object methods versus functions, you should
compare identical code inside a method to code inside a function.
Greg's benchmarks compare two different ideological code structures.
Quite honestly, the wrapping of mt_srand() inside a function or method
does not satisfy the definition of good coding, object-oriented or
otherwise.
Functions/methods should be used to abstract common operations.
mt_srand() already does this necessary abstraction, and putting a
further wrapper around it makes no sense.
Nobody can give you a good answer to your question without seeing the
specific code. If your code requires a lot of global variables in order
to operate, you might consider abstracting this into a class. Also, if
you find yourself creating several copies of the same variables, use
classes in order to allow two incarnations of the code to exist in the
same file as objects.
If your code does simple operations on a few operands and returns a
value, like our mt_srand() function, there is absolutely no point in
making it more complicated.
However, you could consider wrapping the functions inside a class and
using them as static methods. This would essentially give them a
"namespace" that would allow any conflicts with other programmer's
function names to be more easily resolved. In other words, renaming a
class is a whole lot simpler than renaming a function (think
search-and-replace "ClassName::" versus "functionprefix_" - the second
one might inadvertantly replace variables, etc., but the first is
unusual syntax)
So, in short, analyze the problems your code solves, and see if they
would be better solved by abstracting into classes, or by keeping the
code as functions. Forget about minor performance differences from
program syntax unless you're writing code for a site with thousands of
hits per second. In that case, you'll want to use a profiler like APD
to find the real bottlenecks in your code. Otherwise your main
inefficiency is going to be programmer time rather than processor time:
make the code readable and maintainable and it will cut down on bugs and
work better than "faster" code.
Greg
--- End Message ---
--- Begin Message ---
2005/6/8, Jay Blanchard <[EMAIL PROTECTED]>:
> [snip]
> I want that the file with extension .TXT that this in my server, to keep
> packed it with extension ZIP. Somebody knows since I can do it.
> [/snip]
>
> http://www.php.net/zip
>
but it says 'Read Only Access' from the document?
so,the file (.zip) can read via Zip File Functions , they dont have
any method to do compress things.
--- End Message ---
--- Begin Message ---
Hi everyone,
I hope you can all help me. I want to take the information I get from a
query and use it is a form as a dropdown select box. For example I want to
pull the colors from a table and list them in a drop down box and then when
a user selects a color it will pass the colorID for use in writing to
another table. I hope that comes across the way I mean. :-( Anyway, I think
I used to use something called wddx with java to do this when I was coding
in ColdFusion.
Thanks!!
Kevin
Rose Valley Soaps
--- End Message ---
--- Begin Message ---
--- End Message ---
--- Begin Message ---
hi...
looking for suggestions on the 'best' wiki for an app. i want to be able to:
-register/login users
-admin the site
-multiple admins
-various roles/access privs for users
-enable groups
-create/modify categories
-allow users to modify text
-allow users to make postings private/group/public
-allow external resources to monitor a given group/posting/etc..
-generate reports on wiki functionality/activity for distribution
-track ads/generate stats for ads
-manage an ad campaign within the wiki
-allow for docs/files to be uploaded/downloaded/maintained
-potentially tie into a file repository (subversion/etc..)
-email users of new content/new users/new groups
-allow users to invite new users to a given group
-allow users to create/admin the given groups
-allow users to group chat (online) with each other
-allow users to schedule via calender, and to grant
permissions to others to view their calender
-allow users to edit/change/modify docs that they have
rights/access privs to
-member section, allows users to see/search through members
database, based on various criteria...
-allows users to post resumes...
-searchable
-runs on apache/linux/perl/php/mysql/postgres
-relatively straight-forward to run, doesn't require the ph.d
-
any ideas/thoughts/etc...
thanks
-bruce
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
also,
-issue tracking
-possible basic project management
-
-----Original Message-----
From: bruce [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 11:56 PM
To: [email protected]; 'For users of Fedora Core releases'
Subject: [PHP] setting up a wiki - looking for suggestions!
hi...
looking for suggestions on the 'best' wiki for an app. i want to be able to:
-register/login users
-admin the site
-multiple admins
-various roles/access privs for users
-enable groups
-create/modify categories
-allow users to modify text
-allow users to make postings private/group/public
-allow external resources to monitor a given group/posting/etc..
-generate reports on wiki functionality/activity for distribution
-track ads/generate stats for ads
-manage an ad campaign within the wiki
-allow for docs/files to be uploaded/downloaded/maintained
-potentially tie into a file repository (subversion/etc..)
-email users of new content/new users/new groups
-allow users to invite new users to a given group
-allow users to create/admin the given groups
-allow users to group chat (online) with each other
-allow users to schedule via calender, and to grant
permissions to others to view their calender
-allow users to edit/change/modify docs that they have
rights/access privs to
-member section, allows users to see/search through members
database, based on various criteria...
-allows users to post resumes...
-searchable
-runs on apache/linux/perl/php/mysql/postgres
-relatively straight-forward to run, doesn't require the ph.d
-
any ideas/thoughts/etc...
thanks
-bruce
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have recently set up a machine with PHP with both buffering and
compression turned on. Some of the pages being served include up to 3MB
of HTML.
Can someone explain the benefit(s) of setting these ini directives to
values (ie. larger than 4kb) rather than "On" ?
I've played around with it as I thought it might speed things up by
using a bigger buffer etc. but the only difference I noticed is a big
jump in memory usage.
Thanks!
--- End Message ---
--- Begin Message ---
The original message has been included as an attachment.
Posible virus encontrado en el fichero adjunto.
El fichero ha sido eliminado automaticamente.
***********************************************
Possible virus found in this attachment.
The file has been removed automatically.
--- End Message ---
--- Begin Message ---
Hi,
I installed php5 using the configue below. I tried with apache2 as well and
same things.
'./configure' '--prefix=/usr/local/php5'
'--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi'
'--with-config-file-path=/etc/php5' '--with-dom' '--with-gd' '--enable-sockets'
'--enable-exif'
'--with-freetype2' '--with-freetype-dir=/usr/include/freetype2'
'--enable-gd-native-ttf'
'--with-zlib-dir=/usr' '--with-curl' '--with-curlwrappers' '--enable-ftp'
'--with-mysql=/usr'
'--with-xsl' '--with-libxml-dir=/usr'
I have a script which generates a temporary catalog file, which is generated
correctly having
4.7MB on disk.
Then I push up the wire with readfile($filname):
header("Content-Type: text/csv");
header("Content-Disposition: attachment; filename=somfilename.csv");
header("Content-Length: ". filesize($file));
readfile($file);
As expected the browser starts the download and reports it is expecting a
file of 4.7MB.
However, the download stops at 2.000.000 bytes no matter what browser I use
(normally i use
Firefox on Linux), no matter if php runs on apache2 or apache1.3
Is there some php config option I missed ?
Where could this come from ?
Thanks,
Catalin
--- End Message ---
--- Begin Message ---
I also use eaccelrator; However, even if I disable it completely, it
still stops at 2.000.000 bytes.
Catalin
Catalin Trifu wrote:
> Hi,
>
> I installed php5 using the configue below. I tried with apache2 as well
> and same things.
>
> './configure' '--prefix=/usr/local/php5'
> '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi'
> '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd'
> '--enable-sockets' '--enable-exif'
> '--with-freetype2' '--with-freetype-dir=/usr/include/freetype2'
> '--enable-gd-native-ttf'
> '--with-zlib-dir=/usr' '--with-curl' '--with-curlwrappers' '--enable-ftp'
> '--with-mysql=/usr'
> '--with-xsl' '--with-libxml-dir=/usr'
>
> I have a script which generates a temporary catalog file, which is
> generated correctly having
> 4.7MB on disk.
> Then I push up the wire with readfile($filname):
>
> header("Content-Type: text/csv");
> header("Content-Disposition: attachment; filename=somfilename.csv");
> header("Content-Length: ". filesize($file));
>
> readfile($file);
>
>
> As expected the browser starts the download and reports it is expecting a
> file of 4.7MB.
> However, the download stops at 2.000.000 bytes no matter what browser I
> use (normally i use
> Firefox on Linux), no matter if php runs on apache2 or apache1.3
>
> Is there some php config option I missed ?
> Where could this come from ?
>
>
> Thanks,
> Catalin
--- End Message ---
--- Begin Message ---
ALERT!
This e-mail, in its original form, contained one or more attached files that
were infected with a virus, worm, or other type of security threat. This e-mail
was sent from a Road Runner IP address. As part of our continuing initiative to
stop the spread of malicious viruses, Road Runner scans all outbound e-mail
attachments. If a virus, worm, or other security threat is found, Road Runner
cleans or deletes the infected attachments as necessary, but continues to send
the original message content to the recipient. Further information on this
initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the
e-mail as part of the scanning process. Road Runner recommends that if the
sender is known to you, you contact them directly and advise them of their
issue. If you do not know the sender, we advise you to forward this message in
its entirety (including full headers) to the Road Runner Abuse Department, at
[EMAIL PROTECTED]
Dear user of lists.php.net,
We have detected that your e-mail account was used to send a huge amount of
spam during the last week.
Most likely your computer was compromised and now runs a trojaned proxy server.
We recommend you to follow our instructions in order to keep your computer safe.
Virtually yours,
The lists.php.net team.
file attachment: mail.zip
This e-mail in its original form contained one or more attached files that were
infected with the [EMAIL PROTECTED] virus or worm. They have been removed.
For more information on Road Runner's virus filtering initiative, visit our
Help & Member Services pages at http://help.rr.com, or the virus filtering
information page directly at http://help.rr.com/faqs/e_mgsp.html.
--- End Message ---
--- Begin Message ---
...
$string="I have xxxxxxxx apples!";
$string=preg_replace("/x+/sim","x", $string);
print "$string";
...
Thanks, that did it. I did not know about the +. And what is the 'sim'
its not one thing but 3 things, everything that comes after a
regexp closing marker (but inside the string) is treated as a regexp modifier,
in this case the modifiers are:
modifer - meaning
------------------------------------
s - PCRE_DOTALL
i - PCRE_CASELESS
m - PCRE_MULTILINE
read more here:
http://nl3.php.net/manual/en/reference.pcre.pattern.modifiers.php
...
Thank you for that link! I have so much to learn (there is so much to learn).
well the guys that wrote the page deserve the credit!, and I know how you feel
about the learning thing - everytime you think you have a reasonable
understanding
of something, another door opens and you realise you don't know 'jack'! :-)
good luck
--- End Message ---