SimpleXML for PHP4

April 11, 2008 | In: Featured, PHP

PHP4 için SimpleXML fonksiyonu ararken diğer yazılmış XML okuyucu classlar dışında pek birşey bulamadım ve en iyisi kendim yazıyım dedim. Nerden başlasam ne etsem derken deneye deneye bu script ortaya çıktı ve PHP5′in simpleXML’i kadar hızlı olmasada aynı işi yapabiliyor. Koda ihtiyacı olanlar için aşağıya ekledim.

Briefly in English:
I wrote a simple script recently that works like simplexml on PHP4 and uses the PHP XML Parser to get local or remote files. It works a little slower than simplexml and maybe we could change foreach to for cycles. and that outputs directly an array not an object so we can use it without any object2array functions.

I moved the codes and the example file to
http://www.phpclasses.org/browse/package/4484.html

so check the address for further updates, bug reports etc.

New! The class is now also at : http://www.phpkode.com/scripts/item/simplexml-for-php4/

İlginizi çekebilecek diğer yazılar:






4 Responses to SimpleXML for PHP4

Avatar

krsnsk

May 2nd, 2008 at 00:18

yorum için teşekkürler.
http://krsnsk.info/index.php?/notlar.html Bölümünde de belirttiğim gibi mesajlarımın bir çoğu bildirgec.org’dan alıntı. “PHP 4 için SimpleXML” bildirgec.org’dan bir alıntı :)

Avatar

Taha Paksu

May 2nd, 2008 at 00:20

tamam canım bişey demedim bende zaten :D hatta teşekkürler sitene eklediğin için :)

Avatar

Alexis Rodríguez Ruano

May 21st, 2009 at 19:13

Hi, i found a little bug in the class, when a node has “0″ value, the php “count” function return false. i made a diff with the changes, you can download it from http://rapidshare.com/files/235639508/simplexmlAlex.diff.tar.gz

It’s a great class, thumb up for you!

Avatar

Taha Paksu

May 21st, 2009 at 19:20

Thank you Alexis, I’ll test this code and release a new version with that fix.

Comment Form




Dinlediklerim