Jump to content

Import file and read the contents


phpmady

Recommended Posts

You can just import the file and then parse it.  I suggest using XML because it's human and machine readable.  So if you have an XML file with the numbers you can do the following:

 

$filename = "/some/file/location/file.xml";
$contents = file_get_contents($filename);
$results = SimpleXML($contents);
// take a look at your data
print_r($results);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.