php-general Digest 18 Sep 2006 16:14:53 -0000 Issue 4354

Topics (messages 241876 through 241883):

Re: how to get page count when uploading files
        241876 by: Chris
        241881 by: Kae Verens

How to parse raw mail headers and messages?
        241877 by: Mathijs
        241878 by: Chris

how to build env to develop php extension
        241879 by: junhui bai
        241883 by: Michael B Allen

Re: DOMDocument->saveXML()
        241880 by: Tom Atkinson

[ANN] Code Golf Challenge : 1,000 Digits Of Pi
        241882 by: Carl Drinkwater

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 ---
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 to find out how to use the ftp functions, look at the manual
first - http://www.php.net/ftp

If you have any questions after that send them through.

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

--- End Message ---
--- Begin Message ---
Jian Fu wrote:
I really need help and after going through the help page, I don't know where
I can post my question.

When I upload a file (word or pdf), how can I know the page counts of that
file immediately?

Thank you, Jian



http://ie.php.net/manual/en/function.pdf-get-pdi-value.php appears to have the answer for PDFs

I don't know the answer for Word documents

Kae

--- End Message ---
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Mathijs wrote:
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?

IMAP can pick up some of this.

http://www.php.net/manual/en/function.imap-fetchstructure.php

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

--- End Message ---
--- Begin Message ---
There are a lot of documentation to tell you how to create php extension on
unix platform . For example, using tool phpize to create skeleton and son.
But I can't find information on how to create php extension on window
platform. 

I installed php on window xp flatform from both source code and binary
package, but I can't find the tool phpize on window hosts. 

So could you please tell me how to create php extension on window platform?
Thank you very much.

 
 
Best regards,
-Junhui Bai

--- End Message ---
--- Begin Message ---
On Mon, 18 Sep 2006 15:53:21 +0800
"junhui bai" <[EMAIL PROTECTED]> wrote:

> 
> There are a lot of documentation to tell you how to create php extension on
> unix platform . For example, using tool phpize to create skeleton and son.
> But I can't find information on how to create php extension on window
> platform. 
> 
> I installed php on window xp flatform from both source code and binary
> package, but I can't find the tool phpize on window hosts. 
> 
> So could you please tell me how to create php extension on window platform?
> Thank you very much.

I don't have a definitive answer for you but there's not much to the
bare skeleton of an extension. Just copy one of the existing ones and
start from that. That's what I did (although I didn't use Windows).

Mike

-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/

--- End Message ---
--- Begin Message ---
Pass the root node of your tree as a parameter to saveXML()

Chris Boget wrote:
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 <?xml version="1.0"?> 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 of a stylesheet call) and the declaration that ->saveXML() prints out is messing everything up.

Would it be possible to point to the relevant page in the documentation that discusses how to do this?

thnx,
Chris

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

Code Golf's 12th challenge has just been added to the site. It asks you to calculate the first 1,000 digits of Pi - Something I'm sure most of you have thought about, but never done. You can see the challenge at :

  http://codegolf.com/1000-digits-of-pi

For those who haven't heard of codegolf.com, it can be described as "allowing you to show off your code-fu by trying to solve coding problems using the least number of keystrokes."

The site currently supports Perl, PHP, Python and Ruby with Scheme to (hopefully) follow soon. Your entries are automatically executed and scored - No need to wait for someone to validate your code.

Other challenges include implementing the Vigenere Cipher, Prime factors, SHA-256 Hashing as well as the obvious 99 Bottles Of Beer. All of the challenges are competitive but there is still scope to well in them, even if you're new to the site, and perhaps surprisingly, PHP is doing well in a couple of the challenges.

I hope some of you will find this interesting, and sorry for disturbing you if not!

Have fun,
Carl.

--- End Message ---

Reply via email to