Re: [PHP] gentoo php

2010-03-02 Thread Ashley Sheridan
On Tue, 2010-03-02 at 20:36 +0530, Kaushal Shriyan wrote:

 Hi,
 
 I used simplexml as use flag and did emerge -av php. I still get the
 same below issue.
 
 Fatal error: Call to undefined function simplexml_import_dom() in
 /var/www/localhost/htdocs/apps/latency-monitor/Monitor/LatencyScraper.php
 on line 39
 
 Please suggest.
 
 Thanks,
 
 Kaushal
 


What does a phpinfo() script tell you about the extension? Is it visible
in the info page? If not, have you made sure that there is nothing that
might need to be added to your php.ini enabling the module (loading the
module is not the same as it being enabled)

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] gentoo php

2010-03-02 Thread Teus Benschop
On Tue, 2010-03-02 at 20:36 +0530, Kaushal Shriyan wrote: 
 Hi,
 
 I used simplexml as use flag and did emerge -av php. I still get the
 same below issue.
 
 Fatal error: Call to undefined function simplexml_import_dom() in
 /var/www/localhost/htdocs/apps/latency-monitor/Monitor/LatencyScraper.php
 on line 39
 

The following note on the function quick reference on php.net may help:

Gentoo users: emerge does not compile dev-lang/php with simplexml by
default. To enable this option, add the flag simplexml to your USE
variable and recompile php.

Teus.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gentoo php

2010-03-02 Thread Krzysztof Antczak

W dniu 02.03.2010 16:18, Teus Benschop pisze:

The following note on the function quick reference on php.net may help:

Gentoo users: emerge does not compile dev-lang/php with simplexml by
default. To enable this option, add the flag simplexml to your USE
variable and recompile php.

Teus.



And that means: USE=simplexml emerge -av php

KA.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gentoo php

2010-03-02 Thread mrfroasty


On 03/02/2010 04:06 PM, Kaushal Shriyan wrote:

Hi,

I used simplexml as use flag and did emerge -av php. I still get the
same below issue.
   


Can you provide us with data that indeed you have enabled important 
useflags on that php which you have compiled?

You also need to restart/reload apache once you finished compiling php.

Results on my development platform:
#emerge -pv php

dev-lang/php-5.2.12  USE=apache2 bcmath berkdb bzip2 calendar cgi cli 
crypt ctype curl curlwrappers doc exif fdftk filter ftp gd gdbm gmp hash 
iconv imap inifile ipv6 json ldap ldap-sasl mcve mhash mysql mysqli 
ncurses nls pcre pdo posix readline reflection session simplexml snmp 
soap sockets spell spl ssl threads tidy tokenizer truetype unicode wddx 
xml xmlreader xmlrpc xmlwriter xsl zlib


You can easily add flags with something like this:
#echo dev-lang/php simplexml xml xmlreader xmlwritter  
/etc/portage/package.use


GR
Muhsin


Fatal error: Call to undefined function simplexml_import_dom() in
/var/www/localhost/htdocs/apps/latency-monitor/Monitor/LatencyScraper.php
on line 39

Please suggest.

Thanks,

Kaushal

   



--
Extra details:
OSS:Gentoo Linux
profile:x86
Hardware:msi geforce 8600GT asus p5k-se
location:/home/muhsin
language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
Typo:40WPM
url:http://www.mzalendo.net
url:http://www.zanbytes.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gentoo php

2010-03-02 Thread Kaushal Shriyan
On Wed, Mar 3, 2010 at 1:11 AM, mrfroasty mrfroa...@gmail.com wrote:

 On 03/02/2010 04:06 PM, Kaushal Shriyan wrote:

 Hi,

 I used simplexml as use flag and did emerge -av php. I still get the
 same below issue.


 Can you provide us with data that indeed you have enabled important useflags
 on that php which you have compiled?
 You also need to restart/reload apache once you finished compiling php.

 Results on my development platform:
 #emerge -pv php

 dev-lang/php-5.2.12  USE=apache2 bcmath berkdb bzip2 calendar cgi cli crypt
 ctype curl curlwrappers doc exif fdftk filter ftp gd gdbm gmp hash iconv
 imap inifile ipv6 json ldap ldap-sasl mcve mhash mysql mysqli ncurses nls
 pcre pdo posix readline reflection session simplexml snmp soap sockets spell
 spl ssl threads tidy tokenizer truetype unicode wddx xml xmlreader xmlrpc
 xmlwriter xsl zlib

 You can easily add flags with something like this:
 #echo dev-lang/php simplexml xml xmlreader xmlwritter 
 /etc/portage/package.use

 GR
 Muhsin
Thanks Muhsin :). I did followed it already. it worked like a charm

Kaushal

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php