Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    PHP SimpleXML - check version on suselinux

    how can i check if i have PHP SimpleXML on the opensuse

    is there a command that i can use in terminal
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  2. #2
    use the "code" module:
    python -c "import simplexml"
    if the module is installed on your system (i.e., in your python path), then you'll see no output and it will return a successful return value. Otherwise, it will raise an exception and exit 1.

  3. #3
    Linux Guru
    Join Date
    Dec 2013
    Victoria, B.C. Canada
    Close but since it's PHP he's using:
    php -m
    might work better!

  4. $spacer_open
  5. #4
    haha ha! whoops. nice catch.

    Edit: more here:
    Last edited by atreyu; 06-20-2014 at 11:31 PM. Reason: see edit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts