Php/xml

Discussion in 'PHP' started by one198, Sep 6, 2007.

  1. #1
    I running PHP in my fedora 5 opearting system. I have PHP version 5.1.6 and once i load php info page it,s mention that xml reader and xml writer alreay disable .so how to enable these two option.

    At the end of configure command section it has these things
    ('--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter')

    How i enable Xml reader and writer.
    Please help me

    Thank you
     
    one198, Sep 6, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Uncomment these 2 lines in your php.ini file.

    
    extension=php_xmlreader.dll
    extension=php_xmlwriter.dll
    
    Code (markup):
    And restart Apache.
     
    nico_swd, Sep 6, 2007 IP
  3. Jeewhizz

    Jeewhizz Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ignore the above post, that's for a windows installation of PHP.

    You'll need to reinstall/re-compile PHP. As you're on fedora, you should be able to update it using

    yum update php

    If that doesn't work, (fedora might be issuing an old PHP RPM), then you'd need to either recompile it from source, or get a better RPM. Fedora have released PHP 5.2.2 for FC 7 - http:// rpm.pbone.net/index.php3/stat/4/idpl/4792518/com/php-5.2.2-3.i386.rpm.html

    You could try installing this (as root):

    rpm -Uvh ftp:// mirror.switch.ch/mirror/fedora/linux/releases/7/Fedora/source/SRPMS/php-5.2.2-3.src.rpm

    Jee

    P.s. remove spaces
     
    Jeewhizz, Sep 6, 2007 IP
  4. one198

    one198 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello guys

    Thank you for your advice Jeewhizz .Ima using fedora 5,but i used http:// rpm.pbone.net/index.php3/stat/4/idpl/4792518/com/php-5.2.2-3.i386.rpm.html link to downloads rpm .once I downloaded php-5.2.2-3.i386.rpm file.I used below command to update my rpm package

    rpm -Uvh php-5.2.2-3.i386.rpm
    but it,s gave error message.
    After that i updated perc.When I tired to installed php-cli it asked about php-common package,but i cant update php-common package because it give below message once i try to installed php-common package

    please help me
     
    one198, Sep 7, 2007 IP
  5. Jeewhizz

    Jeewhizz Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You are going to need to download all the related RPM's into a directory

    i.e. php-pear-5.2.4-1

    and so on.

    Then do a rmp -Uvh *.rpm which should fix it.

    If you don't know what you are doing, you should really get someone in who can.
     
    Jeewhizz, Sep 7, 2007 IP