[PHP] Parsing images

2006-05-11 Thread Dotan Cohen
Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just something that I was discussing with a friend. My stand was that ImageMagik could crack them. She says no way. What are your opinions? Thanks. Dotan Cohen http://what-is-what.com

RE: [PHP] Parsing images

2006-05-11 Thread Dan Harrington
Using ImageMagick, ray tracing algorithms, an OCR library, and fourier transforms, I bet that you could parse Capchas. Dan -Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:29 AM To: PHP General (E-mail) Subject: [PHP] Parsing images Hey

Re: [PHP] Parsing images

2006-05-11 Thread Peter Hoskin
There are often easier solutions due to poor design. Seen many sites setting the value in cookies, or hidden form elements, etc. Sites made by people who can't do their jobs in other words :) Regards, Peter Hoskin Dan Harrington wrote: Using ImageMagick, ray tracing algorithms, an OCR library,

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-11 Thread Rolf Wouters
Others have mentioned that the browser timeout could be a problem. So I'm wondering if your script really was completing all the way, but the browser just gave up on waiting. Could you try a little test to take the spaces back out, and write the output of connection_status()

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-11 Thread Rolf Wouters
Edward Vermillion wrote: On May 10, 2006, at 10:54 AM, Rolf Wouters wrote: Yet another update. Strange thing happened. I fixed the problem... It's not a clean solution, it's not the right solution, but for now, it'll (have to) do :-) I changed my little test-script to include

Re: [PHP] Parsing images

2006-05-11 Thread Dotan Cohen
On 5/11/06, Peter Hoskin [EMAIL PROTECTED] wrote: There are often easier solutions due to poor design. Seen many sites setting the value in cookies, or hidden form elements, etc. Sites made by people who can't do their jobs in other words :) Regards, Peter Hoskin I know what you mean. But

[PHP] extract text from pdf

2006-05-11 Thread cajbecu
Hello, Is there any posibility to extract all text from a PDF file? (I have read all the documentation about PHP PDF-Lib but no answer...) Thanks in advance, cajbecu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] extract text from pdf

2006-05-11 Thread George Pitcher
Have a look at the iText java class. I use it in conjuction with php for file splitting and concatenation, but it has a whole host of other features. It's accessible via sourceforge or from the author at www.lowagie.com/iText/. Hope it helps George -Original Message- From: cajbecu

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-11 Thread Robin Vickery
On 11/05/06, Jochem Maas [EMAIL PROTECTED] wrote: Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2

Re: [PHP] extract text from pdf

2006-05-11 Thread Rory Browne
I use twiki. Twiki search sucks. Someone wrote a Plucene based search engine. They wanted to be able to search attachments. Including Pdf files. They used ... something out of xpdf - pdf2text or pdftotext On 5/11/06, George Pitcher [EMAIL PROTECTED] wrote: Have a look at the iText

Re: [PHP] php parsing and db content [RESOLVED]

2006-05-11 Thread Schalk Neethling
Chris wrote: Schalk wrote: Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('?php echo _root ?', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb = $row_pathway['pathway'];

RE: [PHP] Good Answers

2006-05-11 Thread Jay Blanchard
[snip] Might I make a suggestion for an addition to the newbie email - in the where to find more information section - add a link either to the manual security section or phpsec.org [/snip] Cool idea, let's get that info together and I'll add it and throw it up on my server... -- PHP General

[PHP] Failing FastCGI PHP

2006-05-11 Thread Frank de Bot
Hi, I have made a apache setup with PHP running as FastCGI (apache 2.0.58, mod_fastcgi 2.4.2, php 5.1.4) PHP is called directly as FastCGI without a wrapper script. On a given moment the PHP FastCGI application reaches dynamicMaxClassProcs. After that happens the PHP FastCGI application

Re: [PHP] Failing FastCGI PHP

2006-05-11 Thread chris smith
On 5/11/06, Frank de Bot [EMAIL PROTECTED] wrote: Hi, I have made a apache setup with PHP running as FastCGI (apache 2.0.58, mod_fastcgi 2.4.2, php 5.1.4) PHP is called directly as FastCGI without a wrapper script. On a given moment the PHP FastCGI application reaches dynamicMaxClassProcs.

[PHP] Re: extract text from pdf

2006-05-11 Thread Jo�o C�ndido de Souza Neto
Look at is that i found. http://community.livejournal.com/php/295413.html Hope help. cajbecu [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hello, Is there any posibility to extract all text from a PDF file? (I have read all the documentation about PHP PDF-Lib but no

Re: [PHP] Parsing images

2006-05-11 Thread Jochem Maas
Dotan Cohen wrote: On 5/11/06, Peter Hoskin [EMAIL PROTECTED] wrote: There are often easier solutions due to poor design. Seen many sites setting the value in cookies, or hidden form elements, etc. Sites made by people who can't do their jobs in other words :) Regards, Peter Hoskin I

Re: [PHP] getting $_GET params from iFrame window to parent

2006-05-11 Thread John Hicks
blackwater dev wrote: would like to put the search form somewhere else on their site (it is currenly all on my page within the iframe) and then call their search page to do the search, (This is an html/DOM thing, not PHP.) That's what the 'target' property of the form tag does: the response

Re: [PHP] php parsing and db content [RESOLVED]

2006-05-11 Thread John Hicks
Schalk Neethling wrote: Chris wrote: Schalk wrote: Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('?php echo _root ?', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb =

[PHP] Another Shell Caught

2006-05-11 Thread Wolf
If any of you guys want to know when I get another shell caught on my site, email me off-list and I'll set you up as a mailing list personally. This new one is the r57shell and is picked up by Symantec Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] BDC to ASCII Conversion

2006-05-11 Thread Jay Blanchard
I have been searching, but does anyone know of a BDC to ASCII conversion tool for PHP right off the top of their head? If not, I'll have to write one Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-11 Thread tedd
At 8:35 PM -0500 5/4/06, Richard Lynch wrote: Synopsis: You could just Javascript and browser info to dynamically layout text to fit available space and word-wrap nicely. Find me anybody on the planet who has actually successfully done this. Even easier: Point to ONE existing website

Re: [PHP] BDC to ASCII Conversion

2006-05-11 Thread tedd
At 10:03 AM -0500 5/11/06, Jay Blanchard wrote: I have been searching, but does anyone know of a BDC to ASCII conversion tool for PHP right off the top of their head? If not, I'll have to write one If you're on a Mac, just use the calculator. If not, you might try version tracker:

RE: [PHP] extract text from pdf

2006-05-11 Thread ray . hauge
If this is on a *nix box, I would suggest using the pdf2text command within shell_exec. It should work as long as the PDF isn't a scanned image. Obviously it won't get text off the images, and you'd want to make sure that any input to filenames (if they're dynamic) are verified and scrubbed

Re: [PHP] getting $_GET params from iFrame window to parent

2006-05-11 Thread John Hicks
blackwater dev wrote: On 5/11/06, *John Hicks* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: blackwater dev wrote: would like to put the search form somewhere else on their site (it is currenly all on my page within the iframe) and then call their search page to

Re: [PHP] Parsing images

2006-05-11 Thread tedd
At 9:28 AM +0300 5/11/06, Dotan Cohen wrote: Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just something that I was discussing with a friend. My stand was that ImageMagik could crack them. She says no way. What are your opinions?

[PHP] remove html tags in text?

2006-05-11 Thread Bing Du
Hello everyone, Say, if I have a paragraph like this: == h1John Smith/h1 Dr. Smith is the directory of a href=http://some.center.com;Some Center/a . His research interests include bWireless Security/b == Any functions that can help remove all the HTML tags in it? What about just removing

RE: [PHP] remove html tags in text?

2006-05-11 Thread Jim Moseby
Hello everyone, Say, if I have a paragraph like this: == h1John Smith/h1 Dr. Smith is the directory of a href=http://some.center.com;Some Center/a . His research interests include bWireless Security/b == Any functions that can help remove all the HTML tags in it? What

Re: [PHP] remove html tags in text?

2006-05-11 Thread Stut
Bing Du wrote: Say, if I have a paragraph like this: == h1John Smith/h1 Dr. Smith is the directory of a href=http://some.center.com;Some Center/a . His research interests include bWireless Security/b == Any functions that can help remove all the HTML tags in it? What about just

Re: [PHP] PHP URL query

2006-05-11 Thread tedd
At 5:43 PM +0100 5/10/06, IraqiGeek wrote: Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through URL query. The following will show you how to do post and get :

Re: [PHP] remove html tags in text?

2006-05-11 Thread Joe Henry
On Thursday 11 May 2006 9:51 am, Bing Du wrote: Any functions that can help remove all the HTML tags in it? What about just removing selected tags, like b/b? Looks like strip_tags() will do the trick for you: http://us3.php.net/manual/en/function.strip-tags.php -- Joe Henry

Re: [PHP] BDC to ASCII Conversion

2006-05-11 Thread John Hicks
Jay Blanchard wrote: I have been searching, but does anyone know of a BDC to ASCII conversion tool for PHP right off the top of their head? If not, I'll have to write one I haven't heard of BDC. Did you mean BCD (binary coded decimal)? Or possibly EBCDIC? (What platform is this data

RE: [PHP] BDC to ASCII Conversion

2006-05-11 Thread Jay Blanchard
[snip] I haven't heard of BDC. Did you mean BCD (binary coded decimal)? Or possibly EBCDIC? (What platform is this data coming from?) If it's EBCDIC data, there are plenty of translation tables you can use, (but you won't find a one-to-one correspondence in their character sets). [/snip]

Re: [PHP] Parsing images

2006-05-11 Thread Robert Cummings
On Thu, 2006-05-11 at 11:47, tedd wrote: At 9:28 AM +0300 5/11/06, Dotan Cohen wrote: Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just something that I was discussing with a friend. My stand was that ImageMagik could crack them. She

RE: [PHP] BDC to ASCII Conversion

2006-05-11 Thread Jim Moseby
Yes...typo...I am a dyslexic dog In dog we trust ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] BDC to ASCII Conversion

2006-05-11 Thread Joe Henry
On Thursday 11 May 2006 10:08 am, Jim Moseby wrote: In dog we trust Am partial to Dog is my co-pilot -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 10:09 am, tedd wrote: At 8:35 PM -0500 5/4/06, Richard Lynch wrote: Synopsis: You could just Javascript and browser info to dynamically layout text to fit available space and word-wrap nicely. Find me anybody on the planet who has actually successfully done this.

Re: [PHP] Parsing images

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 1:28 am, Dotan Cohen wrote: Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just something that I was discussing with a friend. My stand was that ImageMagik could crack them. She says no way. What are your opinions?

Re: [PHP] getting $_GET params from iFrame window to parent

2006-05-11 Thread Richard Lynch
On Wed, May 10, 2006 10:49 pm, blackwater dev wrote: I have a small site which provides search functionalities. My search sites are framed in my clients sites via iframe. I have a client who would like to put the search form somewhere else on their site (it is currenly all on my page

Re: [PHP] php parsing and db content

2006-05-11 Thread Richard Lynch
On Wed, May 10, 2006 9:32 pm, Schalk wrote: I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure

RE: [PHP] BDC to ASCII Conversion

2006-05-11 Thread Jay Blanchard
[snip] In dog we trust Am partial to Dog is my co-pilot [/snip] You must be a member of the First United Universal House of Dog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Upload File (binary files?)

2006-05-11 Thread tedd
At 1:02 AM +1000 5/11/06, Peter Hoskin wrote: Despite common belief, SQL is not suited to the storage of binary files. SQL is based on ASCII. Store your files on the filesystem, not SQL. How is it not suited? I stopped using mySQL to store images because of browser refresh problems, but

RE: [PHP] Another Shell Caught

2006-05-11 Thread Chris W. Parker
Wolf mailto:[EMAIL PROTECTED] on Thursday, May 11, 2006 8:01 AM said: If any of you guys want to know when I get another shell caught on my site, email me off-list and I'll set you up as a mailing list personally. This new one is the r57shell and is picked up by Symantec What is a

Re: [PHP] Parsing images

2006-05-11 Thread tedd
At 12:11 PM -0400 5/11/06, Robert Cummings wrote: On Thu, 2006-05-11 at 11:47, tedd wrote: At 9:28 AM +0300 5/11/06, Dotan Cohen wrote: Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just something that I was discussing with a

Re: [PHP] remove html tags in text?

2006-05-11 Thread Jochem Maas
new-more-constructive-way-of-saying-RTFM with-thanks-to=Richard Lynch obviously by now you know the function strip_tags(). given that your a university student don't you think we could expect a little more research ability on your part? I already knew the strip_tags() function but for fun I

RE: [PHP] Another Shell Caught

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 12:44 pm, Chris W. Parker wrote: Wolf mailto:[EMAIL PROTECTED] on Thursday, May 11, 2006 8:01 AM said: If any of you guys want to know when I get another shell caught on my site, email me off-list and I'll set you up as a mailing list personally. This new one is

Re: [PHP] Parsing images

2006-05-11 Thread Robert Cummings
On Thu, 2006-05-11 at 13:48, tedd wrote: At 12:11 PM -0400 5/11/06, Robert Cummings wrote: On Thu, 2006-05-11 at 11:47, tedd wrote: At 9:28 AM +0300 5/11/06, Dotan Cohen wrote: Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just

[PHP] Re: Good Answers

2006-05-11 Thread Richard Lynch
It turns out that what I want is sort of there... http://catb.org/~esr/faqs/smart-questions.html#id266392 However, put me down for +1 on adding Security section of php.net and/or phpsec.org to the NEWBIE doc. :-) I still think we, as a community, should focus on giving better answers as

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-11 Thread tedd
Does this qualify? http://xn--ovg.com/ajax_page Well, on page 1, I can't get it to re-size at all... So, no, it doesn't qualify. :-) You didn't say it must be re-sizable. Okay, let me get this right. If the page could be resized, and the text would dynamically fill the space, and

Re: [PHP] Good Answers

2006-05-11 Thread Micky Hulse
Ligaya Turmelle wrote: here is the link for the improved newbie doc - http://zirzow.dyndns.org/php-general/NEWBIE Might be nice to see a link to the NEWBIE information in the footer of the PHP list emails... know what I mean? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Another Shell Caught

2006-05-11 Thread Wolf
Google: c99 r57 tung and PHP shell scripts They are hack scripts for your servers to try to take them over. Since modifying my upload area in November I have caught 4 separate shell scripts and have been using them to harden my apache and php installs. Wolf -- PHP General Mailing List

Re: [PHP] remove html tags in text?

2006-05-11 Thread Dave Goodchild
strip_tags On 11/05/06, Bing Du [EMAIL PROTECTED] wrote: Hello everyone, Say, if I have a paragraph like this: == h1John Smith/h1 Dr. Smith is the directory of a href=http://some.center.com;Some Center/a . His research interests include bWireless Security/b == Any functions that can

Re: [PHP] Good Answers

2006-05-11 Thread Wolf
Yeah, to think we used to have English Majors as the wait-staff in restaurants and drive-thrus so you at least were understood when giving your food and drink order... Richard Lynch wrote: SNIP PHP *has* lowered the entry barrier ridiculously low, to the point where we've got idiots and English

[PHP] SMS E-Mail and other oddities

2006-05-11 Thread Jay Blanchard
I am attempting to send SMS via an e-mail messageand it works! *phew* phonenumber@sms.myserver.com Problem is that the reply to or from field on the device always shows [EMAIL PROTECTED] regardless of what I have set the Replay-To: or From: headers. PHP runs as nobody, so this makes

RE: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Jay Blanchard
[snip] Send us some source code and we can help you out! [/snip] Always reply to the list and please do not top post. $poot = ini_set(sendmail_from, '[EMAIL PROTECTED]'); $smsTo = $_POST['smsPhone'] . '@sms.myserver.com'; $to = $smsTo; $subject = $_POST['smsSubject']; $message

Re: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Eric Butera
On 5/11/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Send us some source code and we can help you out! [/snip] Always reply to the list and please do not top post. $poot = ini_set(sendmail_from, '[EMAIL PROTECTED]'); $smsTo = $_POST['smsPhone'] . '@sms.myserver.com'; $to =

[PHP] Mktime formatting problems

2006-05-11 Thread Ryan A
Hey, So far this is what I have done: - 1) read the files from a directory, discard the files with a .php extention and the directories (eg: . and .. ) 2) put the files into an array ($the_files[]) 3) put it into a while loop and display the files like so: echo

Re: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Stut
Jay Blanchard wrote: $poot = ini_set(sendmail_from, '[EMAIL PROTECTED]'); $smsTo = $_POST['smsPhone'] . '@sms.myserver.com'; $to = $smsTo; $subject = $_POST['smsSubject']; $message = $_POST['smsMessage']; $headers = 'From: '. $poot . \r\n .

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Stut
Ryan A wrote: echo $the_files[$i] . date(F d Y H:i:s., filectime($directory_with_files.$the_files[$i])); The next step is, I want to only echo the files that are over x minutes (or x hours) old, ignore anything below, I am using mktime() along with date() to format it accordingly...but am

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Eric Butera
On 5/11/06, Ryan A [EMAIL PROTECTED] wrote: Hey, So far this is what I have done: - 1) read the files from a directory, discard the files with a .php extention and the directories (eg: . and .. ) 2) put the files into an array ($the_files[]) 3) put it into a while

RE: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Jay Blanchard
[snip] $fromaddress = '[EMAIL PROTECTED]'; mail($to, $subject, $message, $headers, '-f'.$fromaddress); [/snip] Cool...worked like a champeene race dog! (Say it with a Southern drawl) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another Shell Caught

2006-05-11 Thread Jochem Maas
Wolf wrote: Google: c99 r57 tung and PHP shell scripts They are hack scripts for your servers to try to take them over. Since modifying my upload area in November I have caught 4 separate shell scripts and have been using them to harden my apache and php installs. hi Wolf, Im sure Im not

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Ryan A
Hey, First, thank you Eric and Stut, your answers and this article that I found on the web http://www.phpbuilder.com/columns/akent2610.php3?print_mode=1 put my mind back on the right tracksometimes its so damn silly how things you use for ages suddenly get muddled up in the head. Thanks

[PHP] Re: extract text from pdf

2006-05-11 Thread Porpoise
cajbecu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Is there any posibility to extract all text from a PDF file? (I have read all the documentation about PHP PDF-Lib but no answer...) If it is in the form of text within the PDF file then yes. If it's in the form of an

Re: [PHP] Re: Upload File (binary files?)

2006-05-11 Thread Jochem Maas
tedd wrote: At 1:02 AM +1000 5/11/06, Peter Hoskin wrote: Despite common belief, SQL is not suited to the storage of binary files. SQL is based on ASCII. Store your files on the filesystem, not SQL. How is it not suited? I stopped using mySQL to store images because of browser refresh

[PHP] include_path and absolute paths in include functions

2006-05-11 Thread Steven Stromer
For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); However, I am now needing to switch to absolute paths: include_once (/lib/included.php); This

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 3:37 pm, Ryan A wrote: So far this is what I have done: - 1) read the files from a directory, discard the files with a .php extention and the directories (eg: . and .. ) 2) put the files into an array ($the_files[]) 3) put it into a while

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-11 Thread Porpoise
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, May 11, 2006 10:09 am, tedd wrote: At 8:35 PM -0500 5/4/06, Richard Lynch wrote: But maybe I've just missed the boat. Has been known to happen. :-) Does this qualify? http://xn--ovg.com/ajax_page Well,

RE: [PHP] Mktime formatting problems

2006-05-11 Thread Jef Sullivan
Here is what I have used for mktime.. $unix_date_33 = mktime(0,0,0,date(m),date(d)-33,date(Y)); I am getting the current month, day, and year from the system. I am subtracting 33 days from the current day. The result is compared to a date value from the database. Jef -Original

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Ryan A
Hey Rich, 1) read the files from a directory, discard the files with a .php extention and the directories (eg: . and .. ) 2) put the files into an array ($the_files[]) 3) put it into a while loop and display the files like so: //Only do files over 2 hours old: if ((time()

Re: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 3:16 pm, Jay Blanchard wrote: I am attempting to send SMS via an e-mail messageand it works! *phew* phonenumber@sms.myserver.com Problem is that the reply to or from field on the device always shows [EMAIL PROTECTED] regardless of what I have set the Replay-To: or

[PHP] PECL / PEAR confusion (with memcache)

2006-05-11 Thread D. Dante Lorenso
All, I'm really having a hard time making sense of PECL and PEAR. My understanding is that PECL is for PHP extensions (written in C using the extension API) and that PEAR is a repository of PHP modules (classes written in PHP using the PEAR-approved framework). PEAR VS PECL COMMANDS On my

Re: [PHP] include_path and absolute paths in include functions

2006-05-11 Thread Jochem Maas
Steven Stromer wrote: For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); this is what should work given you ini path. maybe check the file

Re: [PHP] include_path and absolute paths in include functions

2006-05-11 Thread D. Dante Lorenso
Steven Stromer wrote: For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); However, I am now needing to switch to absolute paths: include_once

Re: [PHP] include_path and absolute paths in include functions

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 3:17 pm, Steven Stromer wrote: For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); However, I am now needing to switch to

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 1:20 pm, tedd wrote: Does this qualify? http://xn--ovg.com/ajax_page Well, on page 1, I can't get it to re-size at all... So, no, it doesn't qualify. :-) You didn't say it must be re-sizable. Okay, let me get this right. If the page could be resized, and the

Re: [PHP] Parsing images

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 1:03 pm, Robert Cummings wrote: Edge detection, noise suppression, and data analysis don't quite equate to recognition. Also 30 years of OCR still requires that the sample be good quality and conform to fairly detectable patterns. If this is so trivial, I await the

[PHP] Does PECL install modify my php.ini? or even look at it?

2006-05-11 Thread D. Dante Lorenso
All, I installed an extension via PECL and it seems to have plopped the extension into it's own extension directory instead of the one in my PHP.ini file. pecl install memcache /usr/lib/php/extensions/no-debug-non-zts-20050922/memcache.so But my PHP.ini file says to use: grep

[PHP] Sending a lot of data to remote site

2006-05-11 Thread Ryan A
Hi, I need to send an array of data to a remote site from my script, the array will contain anything from 1 to 5000 entries of less than 150 alpha numeric characters each. Can you suggest the best method of doing this? Am looking at serialize() or a normal POST using some of the publicly

Re: [PHP] Sending a lot of data to remote site

2006-05-11 Thread Jochem Maas
Ryan A wrote: Hi, I need to send an array of data to a remote site from my script, the array will contain anything from 1 to 5000 entries of less than 150 alpha numeric characters Ok dude, braindump coming up - just some random thoughts and ideas, no concrete answers: 5000 * 100 = 50

Re: [PHP] Sending a lot of data to remote site

2006-05-11 Thread Ryan A
Hey, Thanks for replying. Ok dude, braindump coming up - just some random thoughts and ideas, no concrete answers: Thats ok, still in the planning stage, not a line of code written so am open to ideas instead of just concrete answers. 5000 * 100 = 50 bytes - i.e. on average about

Re: [PHP] Parsing images

2006-05-11 Thread Robert Cummings
On Thu, 2006-05-11 at 18:11, Richard Lynch wrote: On Thu, May 11, 2006 1:03 pm, Robert Cummings wrote: Edge detection, noise suppression, and data analysis don't quite equate to recognition. Also 30 years of OCR still requires that the sample be good quality and conform to fairly

[PHP] Parsing a stdClass Object created with mimeDecode

2006-05-11 Thread Graham Anderson
Hi I am trying to get the body text from a number of different emails using mimeDecode [Pear] Unfortunately, it appears that the body text could be in any number of locations in the stdClass Object depending on which email is processed. At this point, I can only access the node by looking

[PHP] Re: include_path and absolute paths in include functions

2006-05-11 Thread Steven Stromer
I am now needing to switch to absolute paths: include_once (/lib/included.php); why do you need to do that? that include will bypass the include_path and only look in the /lib dir on your machine - which is not what you want I think. Thanks everyone for your great responses. What was my

Re: [PHP] Re: include_path and absolute paths in include functions

2006-05-11 Thread D. Dante Lorenso
If you are using PHP 5, you might have some fun with the __autoload() function. I use something like this in production: //-- function __autoload($class_name) { require_once ($class_name..php); } function push_libs() {

Re: [PHP] Does PECL install modify my php.ini? or even look at it?

2006-05-11 Thread Chris
D. Dante Lorenso wrote: All, I installed an extension via PECL and it seems to have plopped the extension into it's own extension directory instead of the one in my PHP.ini file. pecl install memcache /usr/lib/php/extensions/no-debug-non-zts-20050922/memcache.so But my PHP.ini file

[PHP] SimpleXML is creating nodes when it shouldn't...

2006-05-11 Thread D. Dante Lorenso
I've recently upgraded to PHP 5.1.4 from 5.1.2 and noticed that in 5.1.3 there were changes made to SimpleXML. Now, when I touch an element which didn't used to exist, instead of acting like it didn't exist, it creates it! That's horrible! Well, this used to work: ?php $xmlstr =

[PHP] phpEditIni has moved to phpeditini.net

2006-05-11 Thread Jeremy C O'Connor
The new browser based editor of PHP.INI files on Windows, phpEditIni, has moved to a new site: http://phpeditini.net Download it today! -- info at phpeditini dot net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php