Re: [PHP] Extracting data from exec() call

2011-06-14 Thread Jim Lucas
On 6/14/2011 10:35 AM, Ashley M. Kirchner wrote: > > I'm trying to extract data coming from an exec() call. The exec() call is > performing an ncdump on a netCDF file: > >$filename = "mlab.20110101.cdf"; > exec("/usr/bin/ncdump -l 2048 -v wmax ".$filename, $output); > ech

[PHP] Extracting data from exec() call

2011-06-14 Thread Ashley M. Kirchner
I'm trying to extract data coming from an exec() call. The exec() call is performing an ncdump on a netCDF file: This is all fine, however the data comes in with extra information I don't need, and the data I do need is in a long string format: Array ( [0] => netc

[PHP] extracting data from XML file to PHP variable ..

2004-03-31 Thread Kenn Murrah
Greetings. I've been RTFM all morning and for the live of me can't figure out how to relate the element name to its data, e.g. if the element name is "fullname" and the data is "John Doe' how do I achieve $fullname = "John Doe" I must not be understanding how xml_parse works, and my searches

RE: [PHP] extracting data from text file

2002-07-01 Thread Beverly Steiner
---Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 5:17 PM To: php-general Subject: [PHP] extracting data from text file Hello , I have a text file that looks like this. each entry is on a different line I need to pull the data out of it and put each

Re: [PHP] extracting data from text file

2002-07-01 Thread Pushkar Pradhan
Just use file(), this is most appropriate for reading file line by line. http://www.php.net/manual/en/function.file.php > > On Monday, July 1, 2002, at 05:17 PM, [EMAIL PROTECTED] wrote: > > > I have trend this but it does not work properly > > > > $fp = @fopen(file.txt,"r"); > >

Re: [PHP] extracting data from text file

2002-07-01 Thread Erik Price
On Monday, July 1, 2002, at 05:17 PM, [EMAIL PROTECTED] wrote: > I have trend this but it does not work properly > > $fp = @fopen(file.txt,"r"); > $line = explode("\n",$fp); > $valueC = "$line[0]"; > $valueST = "$line[1]"; > @fclose($fp); What er

[PHP] extracting data from text file

2002-07-01 Thread rdkurth
Hello , I have a text file that looks like this. each entry is on a different line I need to pull the data out of it and put each line of data into its own variable US State City Company Name Section 2 www.domain.com [EMAIL PROTECTED] I have trend this but it does not work properly $fp

Re: [PHP] Extracting data

2001-11-27 Thread Andrey Hristov
ata2" [2]=> string(5) "data3" } } Best regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Joeri Vankelst" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November

[PHP] Extracting data

2001-11-27 Thread Joeri Vankelst
Hi, I'm looking for a way to extract data from a single variable. I'll explain: The variable contains somthing that look like: #@data1#@data2#@data3 What I would like to do is check the data between the #@'s so I can compare data1, 2 and 3 with a another variable. The next this I would like to b

[PHP] Extracting Data

2001-09-12 Thread programmer
Here is a line of data: hidden name=PAYMENT_UNITS value="1"> How could I extract data from the above to get the following $PAYMENT_UNITS=1 Thanks, Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] extracting data from html

2001-07-30 Thread Adrian D'Costa
Hi, This mail is very looong as I have included the code. What I need is to extract certian text from the html file and dump it into mysql table. This is what the html looks like (code below). The mysql part can wait now. I have given comment between each file. As of now the php is just prin

RE: [PHP] Extracting Data from a URL output

2001-01-17 Thread Benjamin Munoz
D] Subject: [PHP] Extracting Data from a URL output I have a bit of a question which ive tried to look into, but I cant seem to find the right commands to check into or what the best method of attack it. Basically, I want to grab a URLs data, make the data a string (which im doing with fopen and fr

[PHP] Extracting Data from a URL output

2001-01-17 Thread Chris Aitken
I have a bit of a question which ive tried to look into, but I cant seem to find the right commands to check into or what the best method of attack it. Basically, I want to grab a URLs data, make the data a string (which im doing with fopen and fread). But now I have the entire html as a strin