php-general Digest 13 Jun 2005 14:52:51 -0000 Issue 3510

2005-06-13 Thread php-general-digest-help
php-general Digest 13 Jun 2005 14:52:51 - Issue 3510 Topics (messages 216875 through 216887): Re: PHP ImageCreateFrom.. malfunctioning in last PHP releases... 216875 by: Richard Lynch Re: news php 5.0.5/5.1 216876 by: JamesBenson Delivery failed 216877 by: Mail

[PHP] Delivery failed

2005-06-13 Thread Mail Administrator
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

Re: [PHP] Compilation trouble on OS X

2005-06-13 Thread Marcus Bointon
On 12 Jun 2005, at 04:17, Richard Lynch wrote: I vaguely recall an issue with mb_* where people saw this nifty new feature and turned it on having no idea what it was, and, well, they didn't really want that feature turned on at all... This could be the same thing. Or not. Try ./configure

[PHP] php extension with pthreads

2005-06-13 Thread Nikunj Gupta
hi i am new to php and am building my first php extension. i have a code in cpp that uses pthreads for carrying out the job. i tried to convert this into a php extension but was unable to do so despite a number of tries. i am able to compile the extension that i build but am unable to load it.

Re: [PHP] Compilation trouble on OS X

2005-06-13 Thread Marcus Bointon
On 13 Jun 2005, at 10:52, Marcus Bointon wrote: I just tried compiling on a clean install of 10.4, with a clean install of fink (I'm using some fink packages like apache2, JPEG, PNG, etc) and I'm still getting the ld problem I mentioned. Think I may have to report it as a bug and see what

Re: [PHP] Oracle Interface

2005-06-13 Thread Shane Presley
On 6/10/05, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, June 10, 2005 8:48 am, Shane Presley said: Where can I find some info on integrating Oracle and PHP? http://php.net/oracle pretty much covers it. Thanks! You're right, that looks pretty straight forward. Although I do have two

RE: [PHP] Oracle Interface

2005-06-13 Thread Jay Blanchard
[snip] How do I find out how my PHP was compiled? The documentation states: You have to compile PHP with the option --with-oracle[=DIR], where DIR defaults to your environment variable ORACLE_HOME. But I'm using PHP from the Red Hat default install (I didn't compile it). Also, do you know if

[PHP] FW: [nyphp] IBM's PHP Strategy - New York PHP June Meeting - Designer Training June 27th

2005-06-13 Thread Hans Zaunere
FYI for those in the tri-state area. -Original Message- From: Hans Zaunere [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 2:50 PM To: [EMAIL PROTECTED] Subject: [nyphp-announce] IBM's PHP Strategy - New York PHP June Meeting New York PHP June Meeting

Re: [PHP] Oracle Interface

2005-06-13 Thread Shane Presley
On 6/13/05, Jay Blanchard [EMAIL PROTECTED] wrote: To find out how your PHP was compiled create a test page with this only... ?php phpinfo(); ? And then load the page from your web server. It will return a wealth of information to you. As far as Oracle compatability it would be hard

Re: [PHP] Re: reverse MD5 ???

2005-06-13 Thread Jason Barnett
Richard Lynch wrote: On Fri, June 10, 2005 3:01 pm, Jason Barnett said: That is incredibly interesting stuff, many thanks for that link! So the position seems to be that it may not be feasible to reverse MD5, but it is now feasible to create forged documents / binaries / whatever that result

[PHP] Optimizing Help

2005-06-13 Thread jack jackson
Hello, Recently with the help of several of you I got a script working. It's complex, I'm still new, some parts of it came from other authors and I adapted it, and generally despite the fact that it seems to work perfectly at this point, I am certain that there is bloat, repetition and simply

Re: [PHP] Optimizing Help

2005-06-13 Thread Chris Ramsay
Hey there Jackson, The first thing I would consider would be to see if you can classify the code into chunks that do a certain job, and then rewrite them as functions. I would also consider looping through arrays for repetitive jobs (lines 258 - 270 for example). Down the line you could consider

Re: [PHP] Optimizing Help

2005-06-13 Thread jack jackson
Thanks, Chris, I see what you're getting at. I'm not sure I understand what you mean about looping through the array in the area you specified- isn't that just the definitions of the vars? Or is that what you meant and I'm missing the point!!? On 6/13/05, Chris Ramsay [EMAIL PROTECTED] wrote:

[PHP] PEAR DB and MSSQL

2005-06-13 Thread php
I originally submitted this to the PHP DB mailing list. Hopefully someone on this list not on the other can give me some help. My company runs a Linux based PHP website with a MySQL database backend. We also have several MSSQL databases deployed throughout the organization. One of our MSSQL

RE: [PHP] Re: reverse MD5 ???

2005-06-13 Thread Murray @ PlanetThoughtful
In that framework there is no such thing as decrypting an MD5 digest, because an MD5 digest is not an encrypted version of the message to start with. No amount of CPU power will change this basic fact -- though CPU power can be used to do a brute force search for strings which will generate

Re: [PHP] Optimizing Help

2005-06-13 Thread Chris Ramsay
Jackson, Yeah, what you can do is place all your form values you just got into an array, and then act on each of them in turn by looping through the array when it comes to repetitive jobs, such as the mysql_real_escape_string(trim($_POST['variable'])) part of the code I referred to earlier. You

[PHP] Re: Documenting Code Question

2005-06-13 Thread Bogomil Shopov
Hi Cris, I think object is necessary for PHPDoc standart (or similar);) But a detailed description of what object contains will be very helpfull. Unfortunatly you should make it in a separate file. -- Bogomil B. Shopov http://purplerain.org Reply --- Chris Drozdowski wrote: I

[PHP] include()

2005-06-13 Thread I. Gray
Hi Just a quickie. Is there a big difference between me including a file by putting the url in the include() such as include(http://www.examplesite.com/examplefile.php) and putting the server path such as include(number/www.examplesite.com/public_html/examplefile.php) ? I want to get into

Re: [PHP] include()

2005-06-13 Thread Rasmus Lerdorf
() is meaningless in an include. But in PHP you can put () around just about anything you want. Just like you can do: $a = ($b); There is no point in the brackets there. The PHP parser simply uses brackets to create precedence groups. So yes, you can do include(foo.php) if you want, but you

Re: [PHP] Re: reverse MD5 ???

2005-06-13 Thread Chris Shiflett
Murray @ PlanetThoughtful wrote: The app in question was storing the md5 value of 4-digit PINs in the background database, and the owners of the app were quietly confident that this meant the PINs were 'encrypted' and 'secure'. Amazing. Thanks for sharing that. It's a great example. :-) Of

[PHP] Re: include()

2005-06-13 Thread Matthew Weier O'Phinney
* I. Gray [EMAIL PROTECTED]: Is there a big difference between me including a file by putting the url in the include() such as include(http://www.examplesite.com/examplefile.php) and putting the server path such as include(number/www.examplesite.com/public_html/examplefile.php) ? I want

[PHP] Re: Documenting Code Question

2005-06-13 Thread Matthew Weier O'Phinney
* Chris Drozdowski [EMAIL PROTECTED]: I need some help regarding documenting code. Say you have a function/method that takes an object as a parameter and/or returns an object. When documenting, do you specify the specific class of the object when listing the datatype in the docblock

Re: [PHP] include()

2005-06-13 Thread Richard Davey
Hello, Monday, June 13, 2005, 5:02:40 PM, you wrote: IG Is there a big difference between me including a file by putting IG the url in the include() such as IG include(http://www.examplesite.com/examplefile.php) and putting IG the server path such as IG

[PHP] Re: Tried to run PHP as shell script and got the error...

2005-06-13 Thread Scott Fletcher
Oh, forgot to add the ! to the #/usr/local/bin/php.. Since it's my first time in shell scripting with php so I wasn't thinking correctly... Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! I'm trying to run PHP as a shell script but I got the error message...

Re: [PHP] pcntl_fork and reading from childs stdout

2005-06-13 Thread Tom Fishwick
Hi Richard, Thanks for the response. I'll try out the fifo. Tom [EMAIL PROTECTED] wrote: On Sun, June 12, 2005 12:57 pm, Tom Fishwick said: I have a script that spawns off a bunch of children with pcntl_fork(), but I can't figure out how to connect up a pipe from the parent to each

RE: [PHP] Re: reverse MD5 ???

2005-06-13 Thread Murray @ PlanetThoughtful
Amazing. Thanks for sharing that. It's a great example. :-) You're very welcome! If it helps just one other developer avoid the same pitfall, then today is a very good day. :-) Exactly, and this is why it's a good practice to use a seed when you generate MD5s for passwords. Which is

[PHP] PHP 4.4.0RC1

2005-06-13 Thread Derick Rethans
Hello! The PHP Team just released it's first release candidate for PHP 4.4.0. This is solely a bug-fix only release, the increased middle digit is needed because this release changes PHP's Internal API that causes third-party binary extensions to be incompatible with PHP 4.3.x. This release

[PHP] PHP Bug/Error with XML Parsing Syntax??

2005-06-13 Thread Scott Fletcher
I'm not sure what's wrong with PHP.. I ran the XML file through the Mozilla and it validate just fine. I get XML parse error but it gave no reason for the errors. The source code here is [code] $data = MessageWere changing/Message; $xml_parser = xml_parser_create('ISO-8859-1');

[PHP] Re: PHP 4.4.0RC1

2005-06-13 Thread Nuno Lopes
I've tested it under solaris 9 and it failed 3 tests: = FAILED TEST SUMMARY - Bug #31213 (Sideeffects caused by bug #29493)

[PHP] formatting paragraphs in to strings

2005-06-13 Thread Paul Nowosielski
Hi, I'm having a perplexing problem. I'm gather data through a textarea html from field and dumping it to MySQL. I want to display the data as a long string with no carriage returns or line breaks in a dhtml div window. The problem I'm have is that the form data is remembering the carriage

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread John Browne
Use the PHP str_replace function before writing it to the DB. Replace all \n characters with an empty string . http://us2.php.net/manual/en/function.str-replace.php On 6/13/05, Paul Nowosielski [EMAIL PROTECTED] wrote: Hi, I'm having a perplexing problem. I'm gather data through a

RE: [PHP] formatting paragraphs in to strings

2005-06-13 Thread Murray @ PlanetThoughtful
Use the PHP str_replace function before writing it to the DB. Replace all \n characters with an empty string . http://us2.php.net/manual/en/function.str-replace.php I think it might be better to replace all \n characters with spaces , otherwise you will end up with sentences that have no

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread John Browne
Good point. Only problem is, if someone hit enter a-million times, you would end up with a-million spaces where the \n characters were. To take care of that repetition, maybe something like: while (strpos($textarea_text, \n\n)) { . } would be one way you could do it. On 6/13/05,

RE: [PHP] formatting paragraphs in to strings

2005-06-13 Thread Murray @ PlanetThoughtful
Good point. Only problem is, if someone hit enter a-million times, you would end up with a-million spaces where the \n characters were. To take care of that repetition, maybe something like: while (strpos($textarea_text, \n\n)) { . } would be one way you could do it.

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread John Browne
Right.. But the browser also should be ignoring the carriage returns as well, which makes me think the div is set to white-space: pre; or something. He said the text is being formatted in a div exactly how it is entered into the system. By default, a div does not render any carriage returns.

[PHP] OT ??: Form posting without leaving form

2005-06-13 Thread Kall, Bruce A.
This is perhaps a javascript question Is there a way to post a form to a url without having a user submit from the form? I have a php web page that is a detailed form with a lot of fields. If the user does some work on this form and let's it sit, their session can time out (I had this

Re: [PHP] OT ??: Form posting without leaving form

2005-06-13 Thread John Browne
Check out the xmlhttp object in Javascript: http://jibbering.com/2002/4/httprequest.html On 6/13/05, Kall, Bruce A. [EMAIL PROTECTED] wrote: This is perhaps a javascript question Is there a way to post a form to a url without having a user submit from the form? I have a php web page

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread Richard Lynch
On Mon, June 13, 2005 12:06 pm, Paul Nowosielski said: I'm having a perplexing problem. I'm gather data through a textarea html from field and dumping it to MySQL. I want to display the data as a long string with no carriage returns or line breaks in a dhtml div window. What styles have

Re: [PHP] PHP Bug/Error with XML Parsing Syntax??

2005-06-13 Thread Richard Lynch
On Mon, June 13, 2005 10:21 am, Scott Fletcher said: I'm not sure what's wrong with PHP.. I ran the XML file through the Mozilla and it validate just fine. I get XML parse error but it gave no reason for the errors. The source code here is [code] $data = MessageWere changing/Message;

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread Philip Hallstrom
Good point. Only problem is, if someone hit enter a-million times, you would end up with a-million spaces where the \n characters were. To take care of that repetition, maybe something like: while (strpos($textarea_text, \n\n)) { . } would be one way you could do it. $new_str =

[PHP] =?iso-8859-1?Q?Re:_[PHP]_OT_??:_Form_posting_without_leaving_form?=

2005-06-13 Thread php
I did this using PHP and Javascript not too long ago. My solution may not be elegant but it works. I set up an inline frame on a page that had my large form. I set the soruce of the frame to my processing page and set the display style of the frame to none using CSS. Then for all the form

Re: [PHP] OT ??: Form posting without leaving form

2005-06-13 Thread Chris Shiflett
Kall, Bruce A. wrote: I have a php web page that is a detailed form with a lot of fields. If the user does some work on this form and let's it sit, their session can time out (I had this happen to the user after it sat for 2 hours). Is there some way to have a timer in the page and have partial

Re: [PHP] PHP Bug/Error with XML Parsing Syntax??

2005-06-13 Thread Scott Fletcher
Finally, the newsgroup start working once again... The problem was if (xml_error_string($xml_parser)) { which I was told should be if (xml_get_error_code($xml_parser) != XML_ERROR_NONE) { It solve my problem now. Now how do I parse the DTD's entity, element, etc along with the PHP's

Re: [PHP] Optimizing Help

2005-06-13 Thread Jochem Maas
jack jackson wrote: Hello, Recently with the help of several of you I got a script working. It's complex, I'm still new, some parts of it came from other authors and I adapted it, and generally despite the fact that it seems to work perfectly at this point, I am certain that there is bloat,

Re: [PHP] What Works Works Validator

2005-06-13 Thread Jason Barnett
Although this isn't a validator, I recently found this site which seems to hold a lot of good information for supporting a wide range of browsers (especially some of the dinosaurs). http://www.quirksmode.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Delivery reports about your e-mail

2005-06-13 Thread Post Office
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

Re: [PHP] OT ??: Form posting without leaving form

2005-06-13 Thread Robert Cummings
On Mon, 2005-06-13 at 17:26, Chris Shiflett wrote: Kall, Bruce A. wrote: I have a php web page that is a detailed form with a lot of fields. If the user does some work on this form and let's it sit, their session can time out (I had this happen to the user after it sat for 2 hours). Is

RE: [PHP] Displaying an Outlook Calendar on a webpage using PHP

2005-06-13 Thread Justin.Baiocchi
Hi, perhaps someone might be able to look at this code - it works when I run it from the command line, but not when viewed through a web page. I am running IIS 6 on Windows 2003 server. Thanks Justin ?php $comobjOutlook = new COM(outlook.application) or die(Unable to instantiate outlook);

[PHP] Re: OT ??: Form posting without leaving form

2005-06-13 Thread Manuel Lemos
Hello, on 06/13/2005 02:28 PM Kall, Bruce A. said the following: Is there a way to post a form to a url without having a user submit from the form? I have a php web page that is a detailed form with a lot of fields. If the user does some work on this form and let's it sit, their session can