OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Problem with parsing remote xml files
This page's ID:
27694
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Well, using that piece of code works the same... I still get partial xml files. I tried using fread with a larger size, it didn't work. I also tried : [code]$xml = fread ( $handle, filesize ($xml_file) );[/code] And [code]$xml = file_get_contents($xml_file);[/code] Both did not work either. I am really beginning to think that this problem is bound to the remote computers... Most of the time the script works, but sometimes I get partial files for no apparent reason... Maybe they are closing the connection or something, preventing the script to retrieve the whole file and parse it. I'll try to get more information about this problem... Perhaps another solution would be using an xslt parser, I'll look into that as a last resort. If you have other ideas about what is wrong, you are welcome. Thanks again for the help so far :) ---- If wishes were fishes, we'd all cast nets. [url=http://www.ozoneasylum.com/5700] [img]http://moon.shadow.free.fr/images/sigs/index.php[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail