Re: [PHP] symlink

2006-09-18 Thread Chris
Ross wrote: Can someone explain how and why you would use a symlink in php? For the same reason you use them in a normal unix based environment. For example a symlink from /usr/bin/php to /usr/local/bin/php - they "appear" to be the same so you can use either. -- Postgresql & php tutorials

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

2006-09-18 Thread Manuel Lemos
Hello, on 09/18/2006 03:48 AM Mathijs said the following: > 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? You may want to take a look at thi

Re: [PHP] Scripts taking too much time

2006-09-18 Thread Chris
Chris wrote: Chris wrote: Hi, I'm hoping somebody can give me advice on how I can go about debugging a problem I've been having. The bottom of this email has some of the details of my system. There is an intermittent slowness throughout my site. At seemingly random points in random scripts

Re: [PHP] Reverse of date("w")

2006-09-18 Thread Travis Doherty
Chris Ditty wrote: > Another way to do it would be to store the unix epoch and then just > get the > weekday name from that? More overhead than Travis's idea, but just as > good > and you could possibly use the date/time later on. I use the DATETIME fieldtypes in MySQL, same idea... 100% agre

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

2006-09-18 Thread Jian Fu
Thank you all for your quick answers!! Really appreciated! I will work on a solution. Have a nice day! Jian -Original Message- From: Børge Holen [mailto:[EMAIL PROTECTED] Sent: 2006年9月19日 4:19 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net; [EMAIL PROTECTED] Subject: Re: [PHP] how

[PHP] SSL Connection causes data errors.

2006-09-18 Thread Stefan
Hi, I was wondering if anyone has experienced this before. I am connecting to an IIS server over HTTPS using pfsockopen and am getting xml data returned. Now when I open the URL in a browser the XML is returned fine without a problem. However when using PHP part of the XML is all messed up, data i

Re: [PHP] Reverse of date("w")

2006-09-18 Thread Chris Ditty
Another way to do it would be to store the unix epoch and then just get the weekday name from that? More overhead than Travis's idea, but just as good and you could possibly use the date/time later on. On 9/18/06, Travis Doherty <[EMAIL PROTECTED]> wrote: Kevin Murphy wrote: > Not really. If

Re: [PHP] Scripts taking too much time

2006-09-18 Thread Chris
Chris wrote: Hi, I'm hoping somebody can give me advice on how I can go about debugging a problem I've been having. The bottom of this email has some of the details of my system. There is an intermittent slowness throughout my site. At seemingly random points in random scripts at random tim

Re: [PHP] Scripts taking too much time

2006-09-18 Thread Chris
Eric Butera wrote: On 9/18/06, *Chris* <[EMAIL PROTECTED] > wrote: Hi, I'm hoping somebody can give me advice on how I can go about debugging a problem I've been having. The bottom of this email has some of the details of my system. There is a

Re: [PHP] Scripts taking too much time

2006-09-18 Thread Chris
Richard Lynch wrote: On Mon, September 18, 2006 11:54 am, Chris wrote: I'm hoping somebody can give me advice on how I can go about debugging a problem I've been having. The bottom of this email has some of the details of my system. There is an intermittent slowness throughout my site. At se

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Click on one of th edom methods... when you get to the details page for that method, see the left navigation menu, at the very top is a link to the class details which contains information about the properties: http://us3.php.net/manual/en/ref.dom.php Excellent. Thank you very much! :) thnx, C

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Robert Cummings
On Mon, 2006-09-18 at 20:33 -0400, Chris Boget wrote: > > Why? documentElement property works just fine and is much more flexible. > > Where can you find a list of properties for the object? I don't see > anything like > this in the documentation. Doing a search: > > http://us3.php.net/manual-

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Why? documentElement property works just fine and is much more flexible. Where can you find a list of properties for the object? I don't see anything like this in the documentation. Doing a search: http://us3.php.net/manual-lookup.php?pattern=DOMDocument&lang=en only returns the methods.

Re: [PHP] Reverse of date("w")

2006-09-18 Thread Travis Doherty
Kevin Murphy wrote: > Not really. If it were always "today" that would work, but in this > case, I was thinking of storing a day of the week in a database > ("3"), and then display the info based on that digit. So assuming > that the number was in fact 3, then: > > echo date("D","3"); > > Would

[PHP] SSL Connection causes data errors.

2006-09-18 Thread Stefan
Hi, I was wondering if anyone has experienced this before. I am connecting to an IIS server over HTTPS using pfsockopen and am getting xml data returned. Now when I open the URL in a browser the XML is returned fine without a problem. However when using PHP part of the XML is all messed up, data i

Re: [PHP] Reverse of date("w")

2006-09-18 Thread Kevin Murphy
Not really. If it were always "today" that would work, but in this case, I was thinking of storing a day of the week in a database ("3"), and then display the info based on that digit. So assuming that the number was in fact 3, then: echo date("D","3"); Would return "Wed". Is there any fu

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Rob
Chris Boget wrote: Perhaps you missed my reply. If you pass the root node then you get the entire document without the XML declaration. That's both elegant and built-in. In the future there will be an save option to perform this. This was only made possible in recent libxml releases so has n

RE: [PHP] Reverse of date("w")

2006-09-18 Thread Jay Blanchard
[snip] I'm looking for something that will convert a the opposite of the date ("w") function. In other words, if I have the number "3", I would like it to return "Wednesday". Is there such a beast out there besides writing a switch or array or something? [/snip] Perhaps http://www.php.net/ida

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Perhaps you missed my reply. If you pass the root node then you get the entire document without the XML declaration. That's both elegant and built-in. I didn't miss it. But you have to pass in the root DomNode object. The only way to get it is by doing the following: $nodeList = $doc->getE

[PHP] Reverse of date("w")

2006-09-18 Thread Kevin Murphy
I'm looking for something that will convert a the opposite of the date ("w") function. In other words, if I have the number "3", I would like it to return "Wednesday". Is there such a beast out there besides writing a switch or array or something? -- Kevin Murphy Webmaster: Information and M

[PHP] symlink

2006-09-18 Thread Ross
Can someone explain how and why you would use a symlink in php? R, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Tom Atkinson
Perhaps you missed my reply. http://www.php.net/manual/en/function.dom-domdocument-savexml.php The first parameter to DOMDocument->saveXML() is described: "Use this parameter to output only a specific node without XML declaration rather than the entire document." If you pass the root node th

[PHP] Re: loadHTML/loadHTMLFile - DOM functions [solved]

2006-09-18 Thread Leonidas Safran
Hello Rob, > Try this line: > $this->ticker .= utf8_decode($child_elements->item($j)->textContent); > Your original HTML document is ISO-8859-1, so when you want the text > I think you want to convert the UTF-8 (Internally DOM document > works with UTF-8) to ISO-8859-1. Just using the utf8_dec

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

2006-09-18 Thread Børge Holen
On Monday 18 September 2006 21:47, Richard Lynch wrote: > On Sat, September 16, 2006 9:44 am, 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

Re: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread Richard Lynch
On Mon, September 18, 2006 1:43 pm, Jon Anderson wrote: > As an aside, I think that the online and offline (downloadable) PHP > documentation is probably the clearest, best organized and complete > set > of documentation for any programming language I've run into online. Certainly online. I think

Re: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread Richard Lynch
On Mon, September 18, 2006 12:08 pm, Howard, Tim wrote: > I am a programmer who is fairly new to PHP, and I had a problem trying > to make changes to existing code. I tried to look up any existing > documentation on your site, and after an extensive search, I finally > found someone who has the sa

Re: [PHP] php and session issues continued...

2006-09-18 Thread Richard Lynch
On Sat, September 16, 2006 5:24 am, Dave Goodchild wrote: > When each form is successfully processed the user is redirected to the > next > stage using header('Location...'). I call session_write_close before > that to > ensure the session data is written out before the redirect, but the > problem

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

2006-09-18 Thread Richard Lynch
On Sat, September 16, 2006 9:44 am, 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? If you actually mean "page count" PHP i

Re: [PHP] Odd PHP memory issue

2006-09-18 Thread Richard Lynch
On Sat, September 16, 2006 10:35 am, Matthew H. North wrote: >> So you are just visiting the nodes, and not doing anything with >> them? > > We're appending certain fields to put together a total result. Be very very very careful here... If you throw enough strings around, and append things enoug

Re: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread John Nichel
Howard, Tim wrote: Your site is incredibly frustrating and difficult to navigate. My site? Hmmm, I always thought it was pretty easy to navigate. I mean, if you're looking for draft beer equipment, all you have to do is click on the draft beer equipment link. I don't know how I can make

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Would it be possible to point to the relevant page in the documentation that discusses how to do this? If there is nothing builtin to do it, how tricky could it be to strip off the first line after you saved it?... Not tricky at all. "Crude, but effective, Captain" -- Spock Exactly. I was

Re: [PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-18 Thread Richard Lynch
On Sun, September 17, 2006 9:48 am, Leonidas Safran wrote: I'm far from an international expert, but I believe that if you want ALL browsers to behave (and not just IE) then you want to use HEADERS for your content type and charset, as well as the embedded META tag. IE trusts Web Designers and the

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Richard Lynch
On Sun, September 17, 2006 3:48 pm, Chris Boget wrote: > Would it be possible to point to the relevant page in the > documentation that > discusses how to do this? If there is nothing builtin to do it, how tricky could it be to strip off the first line after you saved it?... "Crude, but effective

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

2006-09-18 Thread Richard Lynch
On Mon, September 18, 2006 1:48 am, Mathijs wrote: > Is there a way to parse mail headers from a RAW mail received from > sendmail? There MUST be a way, or none of us could get email... :-) > Like extracting the from, reply-to etc.. etc.. and also the > message(s). You know the headers are "done

Re: [PHP] Scripts taking too much time

2006-09-18 Thread Richard Lynch
On Mon, September 18, 2006 11:54 am, Chris wrote: > I'm hoping somebody can give me advice on how I can go about debugging > a > problem I've been having. The bottom of this email has some of the > details of my system. > > There is an intermittent slowness throughout my site. At seemingly > random

Re: [PHP] My apologies

2006-09-18 Thread Robert Cummings
On Mon, 2006-09-18 at 14:51 -0400, Howard, Tim wrote: > I have been duly chastised. I offer my sincere apologies to all of you > who were insulted and/or offended by my "Frustrated trying to get help > from your site" email. I have been working with PHP for a few months > now, doing only necessar

[PHP] My apologies

2006-09-18 Thread Howard, Tim
I have been duly chastised. I offer my sincere apologies to all of you who were insulted and/or offended by my "Frustrated trying to get help from your site" email. I have been working with PHP for a few months now, doing only necessary maintenance on existing sites written by someone who is no l

Re: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread Jon Anderson
Jay Blanchard wrote: So let me send a rant to other users, in fact a general list of users, because I cannot read. If I could I would know that I subscribed to a list where questions are asked to other users rather than me trying to send an e-mail to the president of PHP (a hat worn proudly). The

Re: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread David Giragosian
On 9/18/06, Howard, Tim <[EMAIL PROTECTED]> wrote: I am a programmer who is fairly new to PHP, and I had a problem trying to make changes to existing code. I tried to look up any existing documentation on your site, and after an extensive search, I finally found someone who has the same problem

RE: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread Jay Blanchard
[snip] I am a programmer who is fairly new to PHP, and I had a problem trying to make changes to existing code. I tried to look up any existing documentation on your site, and after an extensive search, I finally found someone who has the same problem. The only problem is that he said something a

[PHP] Frustrated trying to get help from your site

2006-09-18 Thread Howard, Tim
I am a programmer who is fairly new to PHP, and I had a problem trying to make changes to existing code. I tried to look up any existing documentation on your site, and after an extensive search, I finally found someone who has the same problem. The only problem is that he said something about ap

Re: [PHP] Scripts taking too much time

2006-09-18 Thread Eric Butera
On 9/18/06, Chris <[EMAIL PROTECTED]> wrote: Hi, I'm hoping somebody can give me advice on how I can go about debugging a problem I've been having. The bottom of this email has some of the details of my system. There is an intermittent slowness throughout my site. At seemingly random points in

[PHP] Scripts taking too much time

2006-09-18 Thread Chris
Hi, I'm hoping somebody can give me advice on how I can go about debugging a problem I've been having. The bottom of this email has some of the details of my system. There is an intermittent slowness throughout my site. At seemingly random points in random scripts at random times it just see

Re: [PHP] how to build env to develop php extension

2006-09-18 Thread Eric Butera
On 9/18/06, 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 p

Re: [PHP] how to build env to develop php extension

2006-09-18 Thread Michael B Allen
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

[PHP] [ANN] Code Golf Challenge : 1,000 Digits Of Pi

2006-09-18 Thread Carl Drinkwater
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

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

2006-09-18 Thread Kae Verens
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

[PHP] Re: DOMDocument->saveXML()

2006-09-18 Thread Tom Atkinson
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 alont with the structure of the document. Is th

[PHP] how to build env to develop php extension

2006-09-18 Thread junhui bai
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 b

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

2006-09-18 Thread Chris
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