php-general Digest 9 Apr 2009 16:16:07 -0000 Issue 6058

Topics (messages 291261 through 291302):

Re: How about a saveXHTML for the DOM?
        291261 by: Michael Shadle
        291275 by: Michael A. Peters
        291276 by: Michael Shadle
        291277 by: Michael Shadle
        291278 by: Benjamin Hawkes-Lewis

convert video files to FLV
        291262 by: Gevorg Harutyunyan
        291263 by: Adrian
        291264 by: Michael Shadle
        291267 by: Michael Shadle
        291268 by: Gevorg Harutyunyan
        291269 by: Michael Shadle
        291272 by: Tom Sparks

codeigniter 'secure, non-secure content' pop up message in IE7
        291265 by: 9el
        291270 by: Chris
        291284 by: Yannick Mortier
        291285 by: Jan G.B.

Re: PHP and Send Mail
        291266 by: 9el
        291271 by: Michael A. Peters
        291281 by: Jay Blanchard
        291286 by: Bob McConnell

Re: opening utf-8 files - chinese mb characters
        291273 by: Per Jessen
        291274 by: Per Jessen

Increase your monthly income!
        291279 by: Dinah Smith
        291280 by: Richard Heyes
        291282 by: abdulazeez alugo
        291287 by: Richard Heyes
        291288 by: VamVan
        291289 by: abdulazeez alugo
        291290 by: abdulazeez alugo
        291296 by: Govinda
        291298 by: Daniel Brown
        291299 by: Richard Heyes
        291301 by: Daniel Brown

Re: How can I echo a javascript var in an email subject line?   Possible?
        291283 by: tedd

preg_match and multibyte
        291291 by: Merlin Morgenstern
        291293 by: tedd
        291294 by: Merlin Morgenstern

Escape Data In/Out of db
        291292 by: tedd
        291297 by: Jan G.B.

Connecting to dBase using ODBC on Mac OS X
        291295 by: Rahul S. Johari

Caching
        291300 by: דניאל דנון

Newbie: handling instance values on a attribute of the same class.
        291302 by: MEM

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, Apr 8, 2009 at 8:58 PM, Michael A. Peters <[email protected]> wrote:

> Yes it should - I believe php 6 is suppose to be much better at native UTF8.
> At least according to some blog I read somewhere (IE don't believe me
> without reservation, it's third hand knowledge at best)

afaik you're right, it's supposed to be fully unicode. or at least -was-

however, how long until it is production stable... when i am sure
someone can hack together a patch to make saveHTML unicode capable :p

--- End Message ---
--- Begin Message ---
Michael Shadle wrote:
On Wed, Apr 8, 2009 at 8:58 PM, Michael A. Peters <[email protected]> wrote:

Yes it should - I believe php 6 is suppose to be much better at native UTF8.
At least according to some blog I read somewhere (IE don't believe me
without reservation, it's third hand knowledge at best)

afaik you're right, it's supposed to be fully unicode. or at least -was-

however, how long until it is production stable... when i am sure
someone can hack together a patch to make saveHTML unicode capable :p


I did a little reading on the issue and I don't think php 6 will fix it.
The issue is with libxml2 - it mutilates utf8 when exporting to html and php function wraps the libxml2 function.

The solution?
I don't know - but perhaps using saveXML() and then using a translation tool (maybe xslt?) to convert to HTML.

I actually had a function I wrote using preg_replace (started out as a wordpress plugin someone else wrote) but it could not properly handle cdata blocks - I'll see if I can find it.

I don't use it anymore as I use saveHTML() now for html output.

Maybe running iconv on the output would fix it?

--- End Message ---
--- Begin Message ---
On Thu, Apr 9, 2009 at 12:25 AM, Michael A. Peters <[email protected]> wrote:

> I did a little reading on the issue and I don't think php 6 will fix it.
> The issue is with libxml2 - it mutilates utf8 when exporting to html and php
> function wraps the libxml2 function.
>
> The solution?
> I don't know - but perhaps using saveXML() and then using a translation tool
> (maybe xslt?) to convert to HTML.
>
> I actually had a function I wrote using preg_replace (started out as a
> wordpress plugin someone else wrote) but it could not properly handle cdata
> blocks - I'll see if I can find it.
>
> I don't use it anymore as I use saveHTML() now for html output.
>
> Maybe running iconv on the output would fix it?
>

I tried to the best of my abilities. it looks like it was reported as
a bug years ago, but classified as not a bug or something.

I tried iconv, I am not the best hacker when it comes to encoding manipulation.

At the moment this was the best workaround someone had posted, and I
have not sanity checked that this gets into MySQL then back out on the
webpage properly as UTF-8, but it -appears- to work

html_entity_decode($dom->saveHTML(),ENT_QUOTES,"UTF-8");

--- End Message ---
--- Begin Message ---
On Thu, Apr 9, 2009 at 12:25 AM, Michael A. Peters <[email protected]> wrote:

> I did a little reading on the issue and I don't think php 6 will fix it.
> The issue is with libxml2 - it mutilates utf8 when exporting to html and php
> function wraps the libxml2 function.

not to mention i swore i tried saveXML and it didn't work either. but
maybe it was because the output was unusable...

--- End Message ---
--- Begin Message ---
On 9/4/09 04:55, Michael A. Peters wrote:
IE (still) does not properly support XHTML.
It will render an XHTML page sent with the text/html mime type - but
that's actually a standards violation.

Is it? What standard is it violating?

"XHTML Documents which follow the guidelines set forth in Appendix C, "HTML Compatibility Guidelines" may be labeled with the Internet Media Type "text/html" [RFC2854], as they are compatible with most HTML browsers."

http://www.w3.org/TR/xhtml1/#media

"Due to the long and distributed development of HTML, current practice on the Internet includes a wide variety of HTML variants. Implementors of text/html interpreters must be prepared to be "bug-compatible" with popular browsers in order to work with many HTML documents available the Internet. … [XHTML1] defines a profile of use of XHTML which is compatible with HTML 4.01 and which may also be labeled as text/html."

http://www.ietf.org/rfc/rfc2854.txt

(I'm not saying it's a good idea, mark you! http://hixie.ch/advocacy/xhtml )

--
Benjamin Hawkes-Lewis

--- End Message ---
--- Begin Message ---
Hi,

I need to convert video files to FLV using php.

The only solution that I found is to use ffmpeg, but because I am using
shared hosting I am not allowed to install it on server.
Do you know any other ways to convert any video file types to flv using PHP.

Thanks for help!

Best Regards,
Gevorg Harutyunyan

--- End Message ---
--- Begin Message ---
Don't waste CPU power of shared servers for video recoding.
If you need that, get a dedicated server without other customers who
would probably be affected by you using lots of cpu power.

Besides that, if you cannot install own (compiled) software on it,
you'd have to use a pure php solution which would be HORRIBLY slow.


--- End Message ---
--- Begin Message ---
On Wed, Apr 8, 2009 at 10:30 PM, Gevorg Harutyunyan <[email protected]> wrote:
> Hi,
>
> I need to convert video files to FLV using php.
>
> The only solution that I found is to use ffmpeg, but because I am using
> shared hosting I am not allowed to install it on server.
> Do you know any other ways to convert any video file types to flv using PHP.

use ffmpeg.

there is an ffmpeg-php extension but it's kinda buggy and i am not
sure it supports enough for what you want. but using ffmpeg for it is
pretty simple. just system() the calls to it. google for it

--- End Message ---
--- Begin Message ---
On Wed, Apr 8, 2009 at 10:33 PM, Adrian <[email protected]> wrote:
> Don't waste CPU power of shared servers for video recoding.
> If you need that, get a dedicated server without other customers who
> would probably be affected by you using lots of cpu power.
>
> Besides that, if you cannot install own (compiled) software on it,
> you'd have to use a pure php solution which would be HORRIBLY slow.

i use php-fpm + nginx + have one allowed job per server for each of my
webservers. dual core with 2 gigs of ram and normal sata disk. no real
problems to complain about sharing the two.

--- End Message ---
--- Begin Message ---
Thanks guys, but as I understood that extension also requires ffmpeg on
server, correct me if I am wrong.
So anyway I need ffmpeg on server. Some day, when I will have dedicated
server I will use ffmpeg for sure, but now
I need other solution.

On Thu, Apr 9, 2009 at 10:33 AM, Adrian <[email protected]> wrote:

> Don't waste CPU power of shared servers for video recoding.
> If you need that, get a dedicated server without other customers who
> would probably be affected by you using lots of cpu power.
>
> Besides that, if you cannot install own (compiled) software on it,
> you'd have to use a pure php solution which would be HORRIBLY slow.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Best Regards,
Gevorg Harutyunyan

--- End Message ---
--- Begin Message ---
there's some third party encoding services out there, and if you host
with softlayer, they have media transcoding services they offer for
their hosting customers (not sure the cost, but it's pay for what you
use)

On Wed, Apr 8, 2009 at 10:45 PM, Gevorg Harutyunyan <[email protected]> wrote:
> Thanks guys, but as I understood that extension also requires ffmpeg on
> server, correct me if I am wrong.
> So anyway I need ffmpeg on server. Some day, when I will have dedicated
> server I will use ffmpeg for sure, but now
> I need other solution.
>
> On Thu, Apr 9, 2009 at 10:33 AM, Adrian <[email protected]> wrote:
>
>> Don't waste CPU power of shared servers for video recoding.
>> If you need that, get a dedicated server without other customers who
>> would probably be affected by you using lots of cpu power.
>>
>> Besides that, if you cannot install own (compiled) software on it,
>> you'd have to use a pure php solution which would be HORRIBLY slow.
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
> --
> Best Regards,
> Gevorg Harutyunyan
>

--- End Message ---
--- Begin Message ---
there are shared-host that have ffmpeg 
like http://www.cirtexhosting.com/shared.shtml

tom_a_sparks

Please avoid sending me Word or PowerPoint attachments.
but instead use OpenDocument File Formats or 
use OpenOffice
http://en.wikipedia.org/wiki/OpenDocument
http://en.wikipedia.org/wiki/OpenOffice.org
http://www.gnu.org/philosophy/no-word-attachments.html

--- On Thu, 9/4/09, Gevorg Harutyunyan <[email protected]> wrote:

From: Gevorg Harutyunyan <[email protected]>
Subject: Re: [PHP] convert video files to FLV
To: "Adrian" <[email protected]>
Cc: [email protected]
Received: Thursday, 9 April, 2009, 3:45 PM

Thanks guys, but as I understood that extension also requires ffmpeg on
server, correct me if I am wrong.
So anyway I need ffmpeg on server. Some day, when I will have dedicated
server I will use ffmpeg for sure, but now
I need other solution.

On Thu, Apr 9, 2009 at 10:33 AM, Adrian <[email protected]> wrote:

> Don't waste CPU power of shared servers for video recoding.
> If you need that, get a dedicated server without other customers who
> would probably be affected by you using lots of cpu power.
>
> Besides that, if you cannot install own (compiled) software on it,
> you'd have to use a pure php solution which would be HORRIBLY slow.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Best Regards,
Gevorg Harutyunyan



      The new Internet Explorer 8 optimised for Yahoo!7: Faster, Safer, Easier.

--- End Message ---
--- Begin Message ---
---------- Forwarded message ----------
From: Sabrina Akter <[email protected]>
Date: Thu, Apr 9, 2009 at 1:12 AM
Subject: codeigniter 'secure, non-secure content' pop up message in IE7
To: [email protected]


Hello Experts,

I badly need your help. My developed site's some pages are HTTPS, and
other parts are HTTP. When I try to access the HTTPS page in IE it
comes up with "secure & non-secure content " warning. I search on
google to find out the solution. but almost every site suggest to
change the IE setting. But, its not wish way to tell every visitor's
to change  the IE setting. So, I want to stop this message with some
coding. while searching, I found some advice to make all image to
HTTPS, for https pages, I followed that, but still i am getting this
same pop up warning. Is there any other way to solve my problem? Any
one can help me on it? Please do reply.

With Regards
--------------------
Sabrina Akter
Web App. Developer
'IBACS' - www.ibacs.co.uk

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

Hello Experts,

I badly need your help. My developed site's some pages are HTTPS, and
other parts are HTTP. When I try to access the HTTPS page in IE it
comes up with "secure & non-secure content " warning. I search on
google to find out the solution. but almost every site suggest to
change the IE setting. But, its not wish way to tell every visitor's
to change  the IE setting. So, I want to stop this message with some
coding. while searching, I found some advice to make all image to
HTTPS, for https pages, I followed that, but still i am getting this
same pop up warning. Is there any other way to solve my problem? Any
one can help me on it? Please do reply.

Make all images, javascript etc work with https.

That's the only IE will not complain about it.

--
Postgresql & php tutorials
http://www.designmagick.com/


--- End Message ---
--- Begin Message ---
2009/4/9 9el <[email protected]>:
> ---------- Forwarded message ----------
> From: Sabrina Akter <[email protected]>
> Date: Thu, Apr 9, 2009 at 1:12 AM
> Subject: codeigniter 'secure, non-secure content' pop up message in IE7
> To: [email protected]
>
>
> Hello Experts,
>
> I badly need your help. My developed site's some pages are HTTPS, and
> other parts are HTTP. When I try to access the HTTPS page in IE it
> comes up with "secure & non-secure content " warning. I search on
> google to find out the solution. but almost every site suggest to
> change the IE setting. But, its not wish way to tell every visitor's
> to change  the IE setting. So, I want to stop this message with some
> coding. while searching, I found some advice to make all image to
> HTTPS, for https pages, I followed that, but still i am getting this
> same pop up warning. Is there any other way to solve my problem? Any
> one can help me on it? Please do reply.
>
> With Regards
> --------------------
> Sabrina Akter
> Web App. Developer
> 'IBACS' - www.ibacs.co.uk
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Look at the generated source code and try to find any files that are
included by absolute URL (search for http://) those have to be
eliminated. Make sure everything uses relative paths or comes over
SSL.


-- 
Currently developing a browsergame...
http://www.p-game.de
Trade - Expand - Fight

Follow me on twitter!
http://twitter.com/moortier

--- End Message ---
--- Begin Message ---
2009/4/9 Yannick Mortier <[email protected]>:
> 2009/4/9 9el <[email protected]>:
>> ---------- Forwarded message ----------
>> From: Sabrina Akter <[email protected]>
>> Date: Thu, Apr 9, 2009 at 1:12 AM
>> Subject: codeigniter 'secure, non-secure content' pop up message in IE7
>> To: [email protected]
>>
>>
>> Hello Experts,
>>
>> I badly need your help. My developed site's some pages are HTTPS, and
>> other parts are HTTP. When I try to access the HTTPS page in IE it
>> comes up with "secure & non-secure content " warning. I search on
>> google to find out the solution. but almost every site suggest to
>> change the IE setting. But, its not wish way to tell every visitor's
>> to change  the IE setting. So, I want to stop this message with some
>> coding. while searching, I found some advice to make all image to
>> HTTPS, for https pages, I followed that, but still i am getting this
>> same pop up warning. Is there any other way to solve my problem? Any
>> one can help me on it? Please do reply.
>>
>> With Regards
>> --------------------
>> Sabrina Akter
>> Web App. Developer
>> 'IBACS' - www.ibacs.co.uk
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> Look at the generated source code and try to find any files that are
> included by absolute URL (search for http://) those have to be
> eliminated. Make sure everything uses relative paths or comes over
> SSL.
>

Yes. or absolute paths without protocoll and host. ;)
works:
src="/foo.bar"
src="./foo.bar"
src="https://otherserver/foo.bar";


And also be on the lookout for blank src= attributes like in a iframe
<iframe src="" id="foo">
A bug in IE will show the mentioned popup when you have such code.
Solution: src="javascript:void(0)"

Bye

--- End Message ---
--- Begin Message ---
On Thu, Apr 9, 2009 at 7:19 AM, Shawn McKenzie <[email protected]> wrote:
> Alejandro Esteban Galvez wrote:
>> Hi!, I am making a web system and i need known how send a mail using PHP
Hi,
Use PHPmailer or PEAR:mail()

And I'm Lenin

Bye :)

www.twitter.com/nine_L

--- End Message ---
--- Begin Message ---
9el wrote:
On Thu, Apr 9, 2009 at 7:19 AM, Shawn McKenzie <[email protected]> wrote:
Alejandro Esteban Galvez wrote:
Hi!, I am making a web system and i need known how send a mail using PHP
Hi,
Use PHPmailer or PEAR:mail()

I second PHPmailer.
It rocks!

--- End Message ---
--- Begin Message ---
[snip]
And not one RTFM?
[/snip]

It is because I wasn't online at the time of the crime. 

--- End Message ---
--- Begin Message ---
From: Michael A. Peters
> 9el wrote:
>> On Thu, Apr 9, 2009 at 7:19 AM, Shawn McKenzie <[email protected]>
wrote:
>>> Alejandro Esteban Galvez wrote:
>>>> Hi!, I am making a web system and i need known how send a mail
using PHP
>> Hi,
>> Use PHPmailer or PEAR:mail()
> 
> I second PHPmailer.
> It rocks!

Just be aware that it does have a few bugs you may need to work around
or patch. The SourceForge tracker is at
<http://sourceforge.net/tracker/?group_id=26031&atid=385707>. I
submitted two reports last year against 1.73 which the tracker says were
summarily closed with no comment and apparently no action. The first one
is listed as fixed in the change logs for 2.0.3 and 2.3, but that was
not recorded in the tracker.

1. Incorrect line ending character. RFC 2821 and 2822 require CR/LF line
endings. PHPMailer only puts in the LF. Just because most current
clients can handle the single character is no excuse for doing it wrong.

2. Invalid use of Return-path for Sender. When you request a Sender
header, the email is written with Return-path instead. According to
those RFCs, the latter is reserved for use by transport agents and may
be rewritten or replaced anywhere in the chain. It should insert a
Sender line instead.

Bob McConnell

--- End Message ---
--- Begin Message ---
Andrew Ballard wrote:

> A bit off topic, but Ctrl+I no longer brings up the Page Info in
> Firefox like it used to -- at least on my Windows computers. (It opens
> the bookmark list in the sidebar.) Does it do differently under Linux?

On FF 2.0.0.6 Ctrl-I brings up the info page - perhaps 3.0 changed that?


/Per

-- 
Per Jessen, Zürich (9.9°C)


--- End Message ---
--- Begin Message ---
Merlin Morgenstern wrote:

> I use windows right click for this.
> 
> Actually I isolated the problem, but still I can't figure out how to
> solve it. The page is not utf-8, but ugb2312.
> 
> I am already sending the header through php:
> header("Content-Type: text/html; charset=ugb2312");
> 
> And with apache http.conf:
> AddDefaultCharset ugb2312

Shouldn't that be just gb2312 ?

> However firefox still claims that it is utf-8 which is causing the
> strange characters.

The encoding informnation is in the headers sent - try using e.g.
wget -S to see what your server is sending.  Or sent me a link
off-line, and I'll check for you.

/Per

-- 
Per Jessen, Zürich (10.0°C)


--- End Message ---
--- Begin Message ---
This is a serious working proposal!

We are a HR company that is hiring people from all over the World to become a 
part of a program for on-line marketing research. We help companies that want 
to hear your opinion find you, listen to you, and compensate you for the time 
you spend helping them to improve. 

Our members are earning an average of $600 to $900 per week by filling out 
on-line surveys, participating in virtual focus group discussions, and testing 
new products, websites and services!
 
Get paid for your opinion! Join our program "Consumer Opinion" and make your 
opinion worthwhile!

If you are interested to participate, simply send us a reply to 
[email protected] and we will get back to you shortly.

Yours sincerely,
Consumer Opinion Administration











------------------------------------------------------------------
This email has been written and proved to be in compliance with the recently 
established can-spam act law in US. We are not provoking or forcing any person 
in any way to participate in our programs. To participate is your own decision 
and you carry the responsibility of taking further part in this promotion. 
Anyway, if you don't want to receive more good offers from us, you can simply 
Unsubscribe by sending us a notification email to [email protected] 
with a mail-subject and text "Unsubscribe me", and we will get your email out 
of our list within 10 days.

This message is STRICTLY CONFIDENTIAL and is solely for the individual or 
organisation to whom it is addressed. It may contain PRIVILEGED and 
CONFIDENTIAL information. If you are not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
and its contents is strictly prohibited. If you are not the intended recipient 
you should not read, copy, distribute, disclose or otherwise use the 
information in this email. Email may be susceptible to data corruption, 
interception and unauthorised amendment, and we do not accept liability for any 
such corruption, interception or amendment or the consequences thereof or your 
reliance on any information contained therein if you are not the intended 
recipient. If you are not interested in the offered promotions, please just 
don't answer. If you think you have received this message and its contents in 
error, please delete it from your computer, or follow the unsubscribing 
procedure shown above.
------------------------------------------------------------------
                

--- End Message ---
--- Begin Message ---
> Get paid for your opinion!

Y'know, I really think I should...

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated March 28th)

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

 

> Date: Thu, 9 Apr 2009 12:02:29 +0100
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [PHP] Increase your monthly income!
> 
> > Get paid for your opinion!
> 
> Y'know, I really think I should...
> 
> -- 
> Richard Heyes
>

<emphasis>Richard</empahsis>

I actually thought you were going to point out to our guest that this is a 
mailing list for PHP-related issues only. And we're not here to get paid for 
our opinions are we??? I won't blame anybody going for the offer though but the 
point remains, this is a PHP-Mailing list.

Cheers.

 

Alugo Abdulazeez

www.frangeovic.com

 

_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

--- End Message ---
--- Begin Message ---
> I actually thought you were going to point out to our guest that this is a
> mailing list for PHP-related issues only. And we're not here to get paid for
> our opinions are we??? I won't blame anybody going for the offer though but
> the point remains, this is a PHP-Mailing list.

Wow, someone is playing Mr. Misery Guts in the school play aren't they?

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated March 28th)

--- End Message ---
--- Begin Message ---
I believe there is some kind of filter for SPAM emails and emails not
related to PHP. Question is: How come some emails still make it to this
list? Anyone to shed some light on this topic?

Thanks,
V

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

 

> Date: Thu, 9 Apr 2009 14:29:25 +0100
> Subject: Re: [PHP] Increase your monthly income!
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> 
> > I actually thought you were going to point out to our guest that this is a
> > mailing list for PHP-related issues only. And we're not here to get paid for
> > our opinions are we??? I won't blame anybody going for the offer though but
> > the point remains, this is a PHP-Mailing list.
> 
> Wow, someone is playing Mr. Misery Guts in the school play aren't they?
> 
> -- 
> Richard Heyes
> 
Hi Richard,

You don't wanna be rude to me now do you? I'd pretend I didn't see that.

Cheers

Alugo Abdulazeez.

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx

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

 

> Date: Thu, 9 Apr 2009 19:04:13 +0530
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]; 
> [email protected]
> Subject: Re: [PHP] Increase your monthly income!
> 
> I believe there is some kind of filter for SPAM emails and emails not
> related to PHP. Question is: How come some emails still make it to this
> list? Anyone to shed some light on this topic?
> 
> Thanks,
> V


Quite frankly, I asked myself that same question earlier but I thought Dan was 
in charge of such stuffs. He's been very quiet on a lot of things lately. Hey 
guys, does anyone know where Dan's been? i'm guessing he's gone on a short 
course or maybe AWOL.

Cheers.

Alugo Abdulazeez.

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

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


Quite frankly, I asked myself that same question earlier but I thought Dan was in charge of such stuffs. He's been very quiet on a lot of things lately. Hey guys, does anyone know where Dan's been? i'm guessing he's gone on a short course or maybe AWOL.

pretty sure he has answered this question a few times before.
The gist was, (IIRC) - some can get through..  nothing to do about it.
-G

--- End Message ---
--- Begin Message ---
On Thu, Apr 9, 2009 at 11:01, Govinda <[email protected]> wrote:
>>
>>
>> Quite frankly, I asked myself that same question earlier but I thought Dan
>> was in charge of such stuffs. He's been very quiet on a lot of things
>> lately. Hey guys, does anyone know where Dan's been? i'm guessing he's gone
>> on a short course or maybe AWOL.
>
> pretty sure he has answered this question a few times before.
> The gist was, (IIRC) - some can get through..  nothing to do about it.

    I'm still here.  This had been marked as SPAM over here, so I
never even saw it until now.

    And yes, whether we like it or not, SPAM will get through.
Because of the nature of the list, it would be difficult to develop a
pattern with today's AI technology to "learn" enough about the message
content to block SPAM on this (technical) list without blocking a good
portion of legitimate mail as well.  Even the obvious stuff is mostly
unfiltered --- we rely on each subscriber using a decent SPAM filter
on their side.

    I'd personally recommend setting up a dedicated Gmail account for
the lists, and then if you want it all in the same place, use their
IMAP/POP3/forwarding/etc. features.  In the history of email, the only
better SPAM blocking stuff has been a pair of scissors applied to the
power cord.

    (Zap.)

-- 
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

--- End Message ---
--- Begin Message ---
> In the history of email, the only
> better SPAM blocking stuff has been a pair of scissors applied to the
> power cord.

Wearing insulating gloves I would add...

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated March 28th)

--- End Message ---
--- Begin Message ---
On Thu, Apr 9, 2009 at 11:33, Richard Heyes <[email protected]> wrote:
>> In the history of email, the only
>> better SPAM blocking stuff has been a pair of scissors applied to the
>> power cord.
>
> Wearing insulating gloves I would add...

    You always were the one to see the Big Picture[tm].  ;-P

-- 
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

--- End Message ---
--- Begin Message ---
At 1:00 PM -0500 4/8/09, Terion Miller wrote:
Thought I would go ahead and post a bit more on this, so here is my
wordcount little function on the textarea of the form:

-snip-

or do I need to define the variable? think I'm starting to confuse myself
lol

The reason why you are starting to confuse yourself is that you are still considering doing some part of this by including javascript in the solution -- there is NO need.

Just receive what the user submits and process it server-side before mailing -- pure and simple.

That way not only can you clean the submission, but you can count the words and put that count in the subject line like you wanted. This really a simple problem. You are complicating it by including javascript.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Hello,

I am trying to extract a number out of a string that is in utf-8 and contains chines characters.

This unfortunatelly does not work:

                preg_match('{(\d+)}', $details, $m);
                $number = $m[1];

I also tried to utf8decode it, but still, no luck.

Does anybody know how to overcome this problem?

Regards, Merlin

--- End Message ---
--- Begin Message ---
At 4:18 PM +0200 4/9/09, Merlin Morgenstern wrote:
Hello,

I am trying to extract a number out of a string that is in utf-8 and contains chines characters.

This unfortunatelly does not work:

                preg_match('{(\d+)}', $details, $m);
                $number = $m[1];

I also tried to utf8decode it, but still, no luck.

Does anybody know how to overcome this problem?

Regards, Merlin

That's simple, there's no "chines" characters in Unicode.

Cheers,  :-)

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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


tedd wrote:
At 4:18 PM +0200 4/9/09, Merlin Morgenstern wrote:
Hello,

I am trying to extract a number out of a string that is in utf-8 and contains chines characters.

This unfortunatelly does not work:

        preg_match('{(\d+)}', $details, $m);
        $number = $m[1];

I also tried to utf8decode it, but still, no luck.

Does anybody know how to overcome this problem?

Regards, Merlin

That's simple, there's no "chines" characters in Unicode.

Cheers,  :-)

tedd


:-) sorry about my spelling. Chinese.
e.g.:
月租: 350元其

--- End Message ---
--- Begin Message ---
Hi gang:

I'm gathering information from a user, storing that data in a db, and then showing it back to the user. It's a simple process and can bee seen here in this address book demo (not real people):

http://php1.net/a/edit-db-demo

I gather information from the user via a $_POST[]; like this:

   $last_name = trim($_POST['last_name']);

Then I pass it through mysql_real_escape_string() like so --

   $last_name = mysql_real_escape_string($last_name);

-- and then I put that data into my table via an UPDATE.

Then when I pull data from the table, I do this --

   $last_name = htmlentities($row['last_name']);

-- and show that data to the user. That's what I'm supposed to do right?

So, why is it that when I enter the name "O'Brian", the entry comes back "O/'Brian"?

So what's wrong and how do I fix it?

Cheers,

tedd

PS: I know that I'm supposed to know this, but that part of my brain is on vacation -- I can't afford for all of me to go on vacation at one time.

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
2009/4/9 tedd <[email protected]>:
> Hi gang:

-.-

>
> I'm gathering information from a user, storing that data in a db, and then
> showing it back to the user. It's a simple process and can bee seen here in
> this address book demo (not real people):
>
> http://php1.net/a/edit-db-demo
>
> I gather information from the user via a $_POST[]; like this:
>
>   $last_name = trim($_POST['last_name']);
>
> Then I pass it through mysql_real_escape_string() like so --
>
>   $last_name = mysql_real_escape_string($last_name);
>
Good.

> -- and then I put that data into my table via an UPDATE.
>
> Then when I pull data from the table, I do this --
>
>   $last_name = htmlentities($row['last_name']);
>
> -- and show that data to the user. That's what I'm supposed to do right?

Yes, but add ENT_QUOTES as second parameter to htmlentities, so that
php will convert single 'quotings', too.
You might want to use htmlspecialchars($str, ENT_QUOTES) to preserve
special characters liek äöü and alike.
If you're using UTF-8, you want to add 'UTF-8' as the third parameter
for the given html*() function.

bye




>
> So, why is it that when I enter the name "O'Brian", the entry comes back
> "O/'Brian"?

this happens, because you have php configured to automatically apply
addslashes() to every predefined user-input scope like _GET, _POST,
... just turn it of or call stripslashes *before* issuing
mysql_real_escape_string()..

like that :

"UPDATE `foo` SET `bar` = ".
mysql_real_escape_string(stripslashes($_POST['yourself']));

Beware of typing stripcslashes('see the C?"), as it will not strip
anything without further options. ;)



byebye


>
> So what's wrong and how do I fix it?
>
> Cheers,
>
> tedd
>
> PS: I know that I'm supposed to know this, but that part of my brain is on
> vacation -- I can't afford for all of me to go on vacation at one time.
>
> --
> -------
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Ave,

Does anyone have any knowledge on connecting a FoxPro table (.dbf, dbase) using ODBC on a Mac OS X? I've been googling but not much is turning up. Some information is available on ODBC Connections using PHP ... very little on Mac OS X ... and absolutely none to do with a FoxPro dBase table.

Thanks.

---
Rahul Sitaram Johari
Founder, Internet Architects Group, Inc.

[Email] [email protected]
[Web]   http://www.rahulsjohari.com





--- End Message ---
--- Begin Message ---
I started caching some of the static files on my application,
I was wondering - Lets say I have an article on my website and I *want* to
cache it. How will I cache it AND will be able to make my visitors
"re-cache" it if it has been changed?

I read how to do that on static pages, but couldn't find any reference that
does not use mod_expires (since I don't have it)...


And, if I am already sending a message,

How do I use *Header set Expires* (on htaccess) and specifying "in a week"?
Couldn't find any answer to this question as well..

--- End Message ---
--- Begin Message ---
Hi all,

Ok. Here is a code that I'm studying:

class Connection extends PDO {
        private $dsn = 'mysql:dbname=testes;host=127.0.0.1';
        private $user = 'root';
        private $password = '';
        public $handle = null;

   function __construct( ) {
        try {
          if ( $this->handle == null ) {
                $dbh = parent::__construct( $this->dsn , $this->user ,
$this->password );
                $this->handle = $dbh;
                return $this->handle;
           }
        }
…

Can I replace this part:
$dbh = parent::__construct( $this->dsn , $this->user , $this->password );
        $this->handle = $dbh;
          return $this->handle;

By this: (?)
$this->handle = parent::__construct( $this->dsn , $this->user ,
$this->password );

And put a return on my getHandler method? 

If so, is there any special reason that we should know about using a
structure like this?
$dbh = parent::__construct( $this->dsn , $this->user , $this->password );
        $this->handle = $dbh;
        return $this->handle;




Thanks a lot,
Márcio


--- End Message ---

Reply via email to