php-general Digest 8 Feb 2010 17:09:28 -0000 Issue 6580

2010-02-08 Thread php-general-digest-help
php-general Digest 8 Feb 2010 17:09:28 - Issue 6580 Topics (messages 301870 through 301887): 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

php-general Digest 9 Feb 2010 05:42:27 -0000 Issue 6581

2010-02-08 Thread php-general-digest-help
php-general Digest 9 Feb 2010 05:42:27 - Issue 6581 Topics (messages 301888 through 301896): simple WSDL client 301888 by: Robert R Simple code obfuscation 301889 by: Brian Dunning 301891 by: Richard Quadling 301892 by: Ashley Sheridan 301893 by:

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Ashley Sheridan
On Sun, 2010-02-07 at 23:45 -0500, Paul M Foster wrote: 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

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

2010-02-08 Thread Ashley Sheridan
On Sun, 2010-02-07 at 23:24 -0800, TerryA wrote: 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

[PHP] Re: Re: Issue with blocked socket stream

2010-02-08 Thread Phani Raju
It was a mistake while copying the code. I had '\n' only. On Sun, 07 Feb 2010 21:31:55 +0530 wrote 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

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

2010-02-08 Thread TerryA
Hi Guys Thanks for all your input. This forum is great! I can get the attributes OK but I can't code the checking routing correctly. This is what I have: Many thanks again for your input. I tried this but it only gives me the data for each element. I need to be able to access the attributes of

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Stephan Ebelt
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 it.

Re: [PHP] Help with regex (search/replace) please

2010-02-08 Thread Gautam Bhatia
hello, Hi ryan, i am not sure i am getting you on what ya want , is this something like what ya want, the code below which i wrote? function get_value() { var el = document.form_name.elements.length; for(var i =0 ; i= el ; i++) { if(document.form_name.elements[i].type=checkbox) { var id =

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Ashley Sheridan
On Mon, 2010-02-08 at 11:18 +0100, Stephan Ebelt wrote: 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

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Michael A. Peters
TG wrote: 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). Persistent sessions are possible. The way I'm doing it in the CMS I am working on is via GET which saves selection in session.

[PHP] Re: php selecting multiple stylesheets

2010-02-08 Thread Al
On 2/7/2010 11:20 PM, 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 it. I'm also thinking of

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

2010-02-08 Thread TerryA
Got it! I corrected my syntax and this code now works as far as I can tell: ?php $file= 'annnonces.xml'; // load file $xml = simplexml_load_file($file) or die (Unable to load XML file!); foreach ($xml-xpath('//lot') as $lot) { echo $lot-numero_lot, 'type ', $lot-type, $lot-identification,

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread tedd
At 11:20 PM -0500 2/7/10, 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 it. I'm also thinking

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Ashley Sheridan
On Mon, 2010-02-08 at 10:00 -0500, tedd wrote: At 11:20 PM -0500 2/7/10, 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

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Michael A. Peters
Ashley Sheridan wrote: There is a good reason for having different stylesheets that use differing colour systems. For example, some people with learning difficulties benefit from yellow text on blue backgrounds, as apparently those colours together are better at capturing a users attention

[PHP] simple WSDL client

2010-02-08 Thread Robert R
Hi, I am writing a simple WSDL client in php as follow: ?php $wsdl = http://staff.um.edu.mt/cabe2/supervising/undergraduate/owlseditFYP/TemperatureService.wsdl ; $client = new SoapClient( http://staff.um.edu.mt/cabe2/supervising/undergraduate/owlseditFYP/TemperatureService.wsdl );

[PHP] Simple code obfuscation

2010-02-08 Thread Brian Dunning
Hey all - I'm selling a custom PHP solution to FileMaker users. It uses FileMaker's PHP API, so everyone who has FileMaker Server is already set up to use it, but very few of them have any knowledge of how to set up a server or do anything PHP related. But I do want to add some level of code

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Stephan Ebelt
On Mon, Feb 08, 2010 at 10:22:07AM +, Ashley Sheridan wrote: [...] in CSS there is also the concept of 'alternate stylesheets' build in. A page can basically specify as many stylesheets as it wants where one is default and all others are 'alternate'. The browser will then offer menu

Re: [PHP] Simple code obfuscation

2010-02-08 Thread Richard Quadling
On 8 February 2010 19:32, Brian Dunning br...@briandunning.com wrote: Hey all - I'm selling a custom PHP solution to FileMaker users. It uses FileMaker's PHP API, so everyone who has FileMaker Server is already set up to use it, but very few of them have any knowledge of how to set up a

Re: [PHP] Simple code obfuscation

2010-02-08 Thread Ashley Sheridan
On Mon, 2010-02-08 at 23:13 +, Richard Quadling wrote: On 8 February 2010 19:32, Brian Dunning br...@briandunning.com wrote: Hey all - I'm selling a custom PHP solution to FileMaker users. It uses FileMaker's PHP API, so everyone who has FileMaker Server is already set up to use it,

Re: [PHP] Simple code obfuscation

2010-02-08 Thread Phpster
On Feb 8, 2010, at 2:32 PM, Brian Dunning br...@briandunning.com wrote: Hey all - I'm selling a custom PHP solution to FileMaker users. It uses FileMaker's PHP API, so everyone who has FileMaker Server is already set up to use it, but very few of them have any knowledge of how to

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread David Mehler
Hello Everyone, Thank you for the various positions and suggestions. I'm going for either cookies or sessions, your examples have given me much to check. For this situation I should probably have mentioned I need to keep this as simple as possible, so features like a user login

[PHP] Re: Simple code obfuscation

2010-02-08 Thread Manuel Lemos
Hello, on 02/08/2010 05:32 PM Brian Dunning said the following: Hey all - I'm selling a custom PHP solution to FileMaker users. It uses FileMaker's PHP API, so everyone who has FileMaker Server is already set up to use it, but very few of them have any knowledge of how to set up a server

[PHP] poll: howto do informative error handling without the fatalities

2010-02-08 Thread Rene Veerman
Hi, I'm looking for a strategy to do informative error handling at all levels of my code, yet keep these errors non-fatal as often as possible. Adhering to a proper code-standard with regards to error handling would speed up development of any code (it would shorten the bug-hunt time a lot), but

[PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-08 Thread Rene Veerman
I would also like to hear suggestions on how to fix this mess: $r = funcA ( funcB ( funcC ( $p ) ) ); if funcB() / funcC() fails, how would you fudge/abort the calling function in the chain? One may think that funcA and funcB just check their parameters list for being error arrays, but the

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-08 Thread Teus Benschop
On Tue, 2010-02-09 at 07:22 +0100, Rene Veerman wrote: I would also like to hear suggestions on how to fix this mess: $r = funcA ( funcB ( funcC ( $p ) ) ); if funcB() / funcC() fails, how would you fudge/abort the calling function in the chain? One may think that funcA and funcB just