Re: [PHP] simplexml - can it do what I need?

2010-02-07 Thread TerryA
Hi Shawn Thanks for answering my query. I have looked at the suggestions: $xml = simplexml_load_file('file.xml', 'SimpleXMLElement', LIBXML_NOCDATA); I am/was able to load the file OK and to access the data by iteration. However, I can't find a way to extract data by attributes. I need something

Re: [PHP] simplexml - can it do what I need?

2010-02-07 Thread Carlos Medina
TerryA schrieb: Hi Shawn Thanks for answering my query. I have looked at the suggestions: $xml = simplexml_load_file('file.xml', 'SimpleXMLElement', LIBXML_NOCDATA); I am/was able to load the file OK and to access the data by iteration. However, I can't find a way to extract data by attributes.

[PHP] Hi list --- justa simple question

2010-02-07 Thread ebhakt
I am developing a website here wherein i need to post a lot of content. I am trying to develop a script to post data automatically to the site the site is designed in drupal any idea/comment or suggestion on how should i begin with because i am new to php language -- Bhaskar Tiwari GTSE General

Re: [PHP] Warning?

2010-02-07 Thread tedd
At 7:02 PM + 2/6/10, Jochem Maas wrote: Op 2/6/10 4:29 PM, tedd schreef: Hi: Has anyone encountered this warning? Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global

[PHP] Re: Issue with blocked socket stream

2010-02-07 Thread Nathan Rixham
Phani Raju wrote: > I am trying to open a blocking stream using fsockopen. I want to write and > read XML input/output from a server. After opening the steam I will send a > XML request to server using the stream. Once this request is sent, I want to > keep listening on the port indefinitely. >

[PHP] Re: Warning?

2010-02-07 Thread Shawn McKenzie
tedd wrote: > Hi: > > Has anyone encountered this warning? > > Warning: Unknown: Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session > extension does not consider global variables as a source of data, unless > register_globals i

[PHP] Re: Hi list --- justa simple question

2010-02-07 Thread Al
On 2/7/2010 10:22 AM, ebhakt wrote: I am developing a website here wherein i need to post a lot of content. I am trying to develop a script to post data automatically to the site the site is designed in drupal any idea/comment or suggestion on how should i begin with because i am new to php la

Re: [PHP] Re: Hi list --- justa simple question

2010-02-07 Thread ebhakt
thanks for the suggestion but i need a out of the box solution , be it based on dotnet or php on how to post content to a website or blog by reading an xml file or like a feed rss for example i need something to function like the feed aggregator module in drupal but not for drupal , for any websi

Re: [PHP] Re: Hi list --- justa simple question

2010-02-07 Thread shiplu
On Sun, Feb 7, 2010 at 10:55 PM, ebhakt wrote: > thanks for the suggestion but i need a out of the box solution , be it based > on dotnet or php on how to post content to a website or blog by reading an >  xml file or like  a feed rss for example > i need something to function like the feed aggreg

Re: [PHP] Warning?

2010-02-07 Thread Jochem Maas
Op 2/7/10 3:40 PM, tedd schreef: > At 7:02 PM + 2/6/10, Jochem Maas wrote: >> Op 2/6/10 4:29 PM, tedd schreef: >>> Hi: >>> >>> Has anyone encountered this warning? >>> >>> Warning: Unknown: Your script possibly relies on a session side-effect >>> which existed until PHP 4.2.3. Please be adv

[PHP] Re: Warning?

2010-02-07 Thread tedd
At 10:15 AM -0600 2/7/10, Shawn McKenzie wrote: tedd wrote: Hi: Has anyone encountered this warning? Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a s

[PHP] php selecting multiple stylesheets

2010-02-07 Thread David Mehler
Hello, I'm trying to set up a web site. This site has multiple stylesheets, one default stylesheet that should be used if the other is not chosen. The second is a high contrast stylesheet and can be selected by user's who need it. I'm also thinking of adding two more for smaller and larger font sel

[PHP] pecl install geoip doesnt work. Warning: opendir(/var/tmp/pear-build-root/install-geoip-1.0.7//var/www/pear): failed to open dir: No such file or directory in PEAR/Builder.php on line 188

2010-02-07 Thread David Taveras
Hello, Before writing to the general list I tried to search for a pecl users list but apparently it is closed only to developers. Iam running pecl install geoip, it confirms as per below that it was installed correctly but a find / -name geoip.so yields nothing, the paths mentioned at the end als

Re: [PHP] php selecting multiple stylesheets

2010-02-07 Thread Paul M Foster
On Sun, Feb 07, 2010 at 11:20:18PM -0500, David Mehler wrote: > Hello, > I'm trying to set up a web site. This site has multiple stylesheets, > one default stylesheet that should be used if the other is not chosen. > The second is a high contrast stylesheet and can be selected by user's > who need

Re: [PHP] pecl install geoip doesnt work. Warning: opendir(/var/tmp/pear-build-root/install-geoip-1.0.7//var/www/pear): failed to open dir: No such file or directory in PEAR/Builder.php on line 188

2010-02-07 Thread Jochem Maas
Op 2/8/10 4:35 AM, David Taveras schreef: > /root/bin/pecl install geoip without giving it much thought ... try this: > sudo /root/bin/pecl install geoip this is assuming you we're not running the command as root in the first place. -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] php selecting multiple stylesheets

2010-02-07 Thread TG
You could use PHP and cookies (session variables are only useful until the browser is closed, so it's not as persistant as it sounds like you may want). You could also have a system where users log in and they can save their preferences on their user account settings. What you may also look in

Re: [PHP] simplexml - can it do what I need?

2010-02-07 Thread TerryA
Hi Carlos I looked at the documentation for hours but don't see any solution. I'm uploading a sample file here. The full file contains around 100 properties but the uploaded file has just one. I need to extract data from this file to write to a MySQL database. I have no problem in doing this unti