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
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
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
---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
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");
> >
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
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
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
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
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
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
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
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
13 matches
Mail list logo