[PHP] How to parse raw mail headers and messages?

2006-09-17 Thread Mathijs
Hello there, Is there a way to parse mail headers from a RAW mail received from sendmail? Like extracting the from, reply-to etc.. etc.. and also the message(s). Also mabye Multipart email's en attachments? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] how to get page count when uploading files

2006-09-17 Thread Chris
Jian Fu wrote: > Oh, btw, I use PHP ftp function to upload the file, but there is no > information in $_FILES to tell me the total page for Word or PDF file. As Stefan said, there is no way for php to know that number - no matter whether you upload it through a form or through ftp. If you want t

[PHP] Links Request From [EMAIL PROTECTED]

2006-09-17 Thread Avenger
Dear Webmaster: PhpMore is a chinese PHP community focus on professional php programers in China. phpmore.com , the club of phpmore , is a digg-like site where programers share their expericence. phpmore also hold a chinese PHP e-mag named PHP&MORE from year 2004 , it published totally 6 vols fro

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Rob
Leonidas Safran wrote: Hello Rob, Do you have your code somewhere? Yes, I paste it below. There are two files, one for HTML output (which I make invisible with style declaration "display:none;" and the second file is a javascript function which is supposed to output the content... Try thi

[PHP] DOMDocument->saveXML()

2006-09-17 Thread Chris Boget
I looked all through the documentation but was unable to find out if this was possible and, if so, how. When you call ->saveXML(), it prints out the XML declaration alont with the structure of the document. Is there any way to suppress that? I'm trying to print out extra text (in the form o

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Leonidas Safran
Hello Rob, > Do you have your code somewhere? Yes, I paste it below. There are two files, one for HTML output (which I make invisible with style declaration "display:none;" and the second file is a javascript function which is supposed to output the content... Another thing I realized that I f

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Rob
Leonidas Safran wrote: > I tried following: I downloaded the ominous html page, coded it as UTF-8 (with text-editor option) and added a metag-tag declaring utf-8 encoding: I checked that the special characters were written correctly then (actually I had to correct them). Then I used the f

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Leonidas Safran
Hello Rob, Thank you for your advices... :-) > Is there a meta tag that specifies the encoding? > When loading HTML that is also used to determine the encoding. > I think I need to clarify the encoding issue: > I'll bet when the document is loading, the encoding is being properly > detected. Wh