NameSilo

PHP: Fopen or simplexml

Spaceship Spaceship
Watch

kedaar

Established Member
Impact
14
Hi,

I have written a script using fopen, however I can use simplexml to retrieve XML feed. As a lazy dominer I have reused the PHP script that was writter few years back using fopen.
I would like to know, would it be any performance issues if I keep fopen? Or I should be rewriting using simplexml.

I am expecting 100-200 hits on the page.

Thanking you,
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
To be honest the best way is to actually try it and see what performance hit it has.

If you are getting the xml from an external site you would probably be better using cURL to retrieve the data.
 
0
•••
To be honest the best way is to actually try it and see what performance hit it has.

If you are getting the xml from an external site you would probably be better using cURL to retrieve the data.

Thx Peter,

I was not aware of cURL. I will have to dig the info on cURL.
 
0
•••

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back