Re: [PHP] extracting text - regex

2009-04-10 Thread Ashley Sheridan
On Wed, 2009-04-08 at 17:14 +0200, Merlin Morgenstern wrote: George Larson wrote: On Wed, Apr 8, 2009 at 9:13 AM, George Larson george.g.lar...@gmail.comwrote: I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just

[PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
Hello, I am trying read text out of a text that is inbetween two divs. Somehow this should be possible with regex, I just can't figure out how. Example: div id=test bla blub /div I would like to extract the text bla blub out of this example. Has anybody an idea on how to do that? Is there

Re: [PHP] extracting text - regex

2009-04-08 Thread Per Jessen
Merlin Morgenstern wrote: Hello, I am trying read text out of a text that is inbetween two divs. Somehow this should be possible with regex, I just can't figure out how. Example: div id=test bla blub /div I would like to extract the text bla blub out of this example. This

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ?php $handle = @fopen('page.htm', 'r'); if ($handle) { while (!feof($handle)) { $eos =

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
On Wed, Apr 8, 2009 at 9:13 AM, George Larson george.g.lar...@gmail.comwrote: I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ?php $handle =

Re: [PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
George Larson wrote: On Wed, Apr 8, 2009 at 9:13 AM, George Larson george.g.lar...@gmail.comwrote: I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ?php

Re: [PHP] Extracting text from PDF files

2007-10-10 Thread David Giragosian
On 10/9/07, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I need to extract the text from a PDF file for storage in the database. [/snip] It depends. If the PDF is an image file you cannot do it with PHP. http://www.php.net/pdf read the second user note [snip] Madison, WI 53703

[PHP] Extracting text from PDF files

2007-10-09 Thread Skip Evans
Hey all, I need to extract the text from a PDF file for storage in the database. Is there a way to do this in PHP? -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, WI 53703 608-250-2720 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and

RE: [PHP] Extracting text from PDF files

2007-10-09 Thread Jay Blanchard
[snip] I need to extract the text from a PDF file for storage in the database. [/snip] It depends. If the PDF is an image file you cannot do it with PHP. http://www.php.net/pdf read the second user note [snip] Madison, WI 53703 [/snip] P.S. Do you know of the Madison Scouts? -- PHP General

RE: [PHP] extracting text from text file to be used in PHP

2003-06-14 Thread Boaz Yahav
tomorrow. -Original Message- From: Lance Q [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 1:41 AM To: [EMAIL PROTECTED] Subject: [PHP] extracting text from text file to be used in PHP Hello all, One of the sites I host is a radio station. Their computer has been setup

[PHP] extracting text from text file to be used in PHP

2003-06-13 Thread Lance Q
Hello all, One of the sites I host is a radio station. Their computer has been setup to automagically upload the current song and the next song to their web site via FTP. Unfortunately, the format it comes in is pretty awful. (See below). tag The CURRENT CutID is: 70428 The Type is: MUS The

Re: [PHP] extracting text from text file to be used in PHP

2003-06-13 Thread Jeff Harris
On Jun 13, 2003, Lance Q claimed that: |Hello all, | |One of the sites I host is a radio station. Their computer has been setup to |automagically upload the current song and the next song to their web site |via FTP. Unfortunately, the format it comes in is pretty awful. (See below). |tag |The

[PHP] extracting text

2002-12-24 Thread Clivus2k1
Okay guys heres the question: say i have a line of text like: [blah], [rah] PH33r Us! [moo] how can I extract all the text in the brackets and set it as a var, im totally stuck, my idea was to use strstr() but that wouldnt work as all the tags were not at the end :( - CS

RE: [PHP] extracting text

2002-12-24 Thread John W. Holmes
say i have a line of text like: [blah], [rah] PH33r Us! [moo] how can I extract all the text in the brackets and set it as a var, im totally stuck, my idea was to use strstr() but that wouldnt work as all the tags were not at the end :( Assuming you want to replace [foo] with the value in