php-general Digest 10 Feb 2010 11:49:15 -0000 Issue 6583

2010-02-10 Thread php-general-digest-help
php-general Digest 10 Feb 2010 11:49:15 - Issue 6583 Topics (messages 301913 through 301924): Re: SOAP connect error 301913 by: Shawn McKenzie 301914 by: Eric Lommatsch Re: howto do informative error handling without the fatalities 301915 by: clancy_1.cybec.com.au

Re: [PHP] create archive file in memory with zipArchive class

2010-02-10 Thread Richard Quadling
On 9 February 2010 16:47, Ryan Sun ryansu...@gmail.com wrote: thanks, Richard, maybe you are right, the actual file name is not my job I changed it to 'php://temp' but its still the same, nothing has been changed... On Tue, Feb 9, 2010 at 11:13 AM, Richard Quadling rquadl...@googlemail.com

Re: [PHP] RE: SOAP connect error

2010-02-10 Thread Richard Quadling
On 9 February 2010 22:14, Eric Lommatsch er...@micronix.com wrote: -Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Tuesday, February 09, 2010 3:07 PM To: Eric Lommatsch Cc: php-general@lists.php.net Subject: Re: SOAP connect error Eric Lommatsch wrote: Hello,

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

2010-02-10 Thread Richard Quadling
On 9 February 2010 22:25, clanc...@cybec.com.au wrote: On Tue, 9 Feb 2010 16:09:05 +, rquadl...@googlemail.com (Richard Quadling) wrote: On 9 February 2010 14:20, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote: Richard wrote:

Re: [PHP] PHP Manual problems

2010-02-10 Thread Shawn McKenzie
Lester Caine wrote: Since a large section of our USER base is still tied to W2k and does not have access to install other software, the call for IE6 to die is STILL somewhat premature! What is needed is someone to kick M$ to sort the mess out by at least allowing IE8 to install on W2k

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ashley Sheridan
On Wed, 2010-02-10 at 07:02 -0600, Shawn McKenzie wrote: Lester Caine wrote: Since a large section of our USER base is still tied to W2k and does not have access to install other software, the call for IE6 to die is STILL somewhat premature! What is needed is someone to kick M$ to sort

Re: [PHP] PHP Manual problems

2010-02-10 Thread Richard Quadling
On 10 February 2010 13:02, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've not had any personal experience with the public sector, but I have heard stories from those who have. By all accounts, it seems that most of the public sector is still stuck in the dark ages with regards to

Re: [PHP] Simple code obfuscation

2010-02-10 Thread דניאל דנון
Try http://www.seekposition.net/php-encode Ignore everything, just enter the code and check if it still works. On 2/8/10, 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

Re: [PHP] PHP Manual problems

2010-02-10 Thread tedd
At 7:02 AM -0600 2/10/10, Shawn McKenzie wrote: Lester Caine wrote: Since a large section of our USER base is still tied to W2k and does not have access to install other software, the call for IE6 to die is STILL somewhat premature! What is needed is someone to kick M$ to sort the mess out

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ashley Sheridan
On Wed, 2010-02-10 at 09:41 -0500, tedd wrote: At 7:02 AM -0600 2/10/10, Shawn McKenzie wrote: Lester Caine wrote: Since a large section of our USER base is still tied to W2k and does not have access to install other software, the call for IE6 to die is STILL somewhat premature!

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for using IE6 ... WTF ... you do realise this is essentially a web developers mailing list right? The

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Ashley Sheridan wrote: I've not had any personal experience with the public sector, but I have heard stories from those who have. By all accounts, it seems that most of the public sector is still stuck in the dark ages with regards to technology, which could go some way to explaining the abysmal

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Richard Quadling wrote: On 10 February 2010 13:02, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've not had any personal experience with the public sector, but I have heard stories from those who have. By all accounts, it seems that most of the public sector is still stuck in the dark ages

RE: [PHP] PHP Manual problems

2010-02-10 Thread Bob McConnell
From: Robert Cummings Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for using IE6 ... WTF ... you do realise this is essentially a web developers mailing

RE: [PHP] PHP Manual problems

2010-02-10 Thread Ashley Sheridan
On Wed, 2010-02-10 at 10:17 -0500, Bob McConnell wrote: From: Robert Cummings Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for using IE6 ... WTF

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Bob McConnell wrote: From: Robert Cummings Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for using IE6 ... WTF ... you do realise this is essentially a

RE: [PHP] PHP Manual problems

2010-02-10 Thread Bob McConnell
From: Ashley Sheridan On Wed, 2010-02-10 at 10:17 -0500, Bob McConnell wrote: From: Robert Cummings Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for

RE: [PHP] PHP Manual problems

2010-02-10 Thread Ashley Sheridan
On Wed, 2010-02-10 at 11:20 -0500, Bob McConnell wrote: From: Ashley Sheridan On Wed, 2010-02-10 at 10:17 -0500, Bob McConnell wrote: From: Robert Cummings Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote: On Thu, 04 Feb 2010

[PHP] problems with permissions or getting access to a file

2010-02-10 Thread Pat
hi all having trouble here with a site that I am hosting on go-daddy I want to keep my php and my images apart so to do this I have the base directory which contains the php scripts. On the directory above that I have my photos stored in /photos when I run my scripts I get the following:

Re: [PHP] Simple code obfuscation

2010-02-10 Thread Richard Quadling
On 10 February 2010 14:33, דניאל דנון danondan...@gmail.com wrote: Sent from my mobile device Use ROT26 for best security I can't read a word of that! -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814.html EE4Free :

Re: [PHP] problems with permissions or getting access to a file

2010-02-10 Thread Richard Quadling
On 10 February 2010 16:31, Pat patrick.j.r...@gmail.com wrote: hi all having trouble here with a site that I am hosting on go-daddy I want to keep my php and my images apart so to do this I have the base directory which contains the php scripts. On the directory above that I have my photos

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Bob McConnell wrote: Our SOP is to generate standards compliant pages, validate them with Firefox and the HTML Validator add-on, then deal with the deviant browsers. It's a lot less work than trying to do it the other way around. There are a few minor issues, such as W3C still refusing to

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Ashley Sheridan wrote: The W3C validator rejects that autocomplete attribute because it still isn't in any valid standard. Some browsers have introduced it, and PCI requires it to be there for browsers that recognise it, but it's not a good security feature, as browsers don't have to honor it

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ashley Sheridan
On Wed, 2010-02-10 at 10:20 -0800, Michael A. Peters wrote: Bob McConnell wrote: Our SOP is to generate standards compliant pages, validate them with Firefox and the HTML Validator add-on, then deal with the deviant browsers. It's a lot less work than trying to do it the other way

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Bob McConnell wrote: Our SOP is to generate standards compliant pages, validate them with Firefox and the HTML Validator add-on, then deal with the deviant browsers. It's a lot less work than trying to do it the other way around. There are a few minor issues, such as

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ashley Sheridan
On Wed, 2010-02-10 at 13:25 -0500, Robert Cummings wrote: Michael A. Peters wrote: Bob McConnell wrote: Our SOP is to generate standards compliant pages, validate them with Firefox and the HTML Validator add-on, then deal with the deviant browsers. It's a lot less work than trying

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Ashley Sheridan wrote: On Wed, 2010-02-10 at 13:25 -0500, Robert Cummings wrote: Michael A. Peters wrote: Bob McConnell wrote: Our SOP is to generate standards compliant pages, validate them with Firefox and the HTML Validator add-on, then deal with the deviant browsers. It's a lot less

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Ashley Sheridan wrote: What about search engines? Will there be any impact on these, particularly with regards to semantic content? I expect semantic markup to (eventually) improve how pages are indexed. Also, are there any browsers that would fall over with unknown tags? I know IE

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Robert Cummings wrote: Just a word of thought... if you're doing styling... use classes and not IDs. Use of IDs for styling is very often indicative of inexperience, inability, or lack of understanding with respect to CSS. I use ID when there will only be one element that needs to be

Re: [PHP] Simple code obfuscation

2010-02-10 Thread דניאל דנון
That meaning the message? I'll re-send it now: Try http://www.seekposition.net/php-encode Ignore everything, just enter the code and check if the code still works. On Wed, Feb 10, 2010 at 6:48 PM, Richard Quadling rquadl...@googlemail.comwrote: On 10 February 2010 14:33, דניאל דנון

Re: [PHP] PHP Manual problems

2010-02-10 Thread Paul M Foster
On Wed, Feb 10, 2010 at 02:56:36PM +1100, clanc...@cybec.com.au wrote: snip The interesting things in my websites go on behind-the-scenes, in the PHP, and produce relatively straightforward HTML. I have avoided the well-known bugs in IE6, and think my webpages display correctly on any of

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Michael A. Peters wrote: Robert Cummings wrote: Just a word of thought... if you're doing styling... use classes and not IDs. Use of IDs for styling is very often indicative of inexperience, inability, or lack of understanding with respect to CSS. I use ID when there will only be one

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Just a word of thought... if you're doing styling... use classes and not IDs. Use of IDs for styling is very often indicative of inexperience, inability, or lack of understanding with respect to CSS. I use ID when there will only be one

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Michael A. Peters wrote: Robert Cummings wrote: Just a word of thought... if you're doing styling... use classes and not IDs. Use of IDs for styling is very often indicative of inexperience, inability, or lack of understanding with respect to CSS. I use ID when

Re: [PHP] PHP Manual problems

2010-02-10 Thread Lester Caine
Shawn McKenzie wrote: Lester Caine wrote: Since a large section of our USER base is still tied to W2k and does not have access to install other software, the call for IE6 to die is STILL somewhat premature! What is needed is someone to kick M$ to sort the mess out by at least allowing IE8 to

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit gratuitous as an aside. Sure it's aside, but it's not exactly the semantic meaning

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit gratuitous as an aside. Sure it's aside, but it's not

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit gratuitous as an aside. Sure it's aside, but it's not

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Nathan Rixham wrote: Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit gratuitous as an aside. Sure it's

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit gratuitous

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit gratuitous

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Robert Cummings wrote: Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar

Re: [PHP] Simple code obfuscation

2010-02-10 Thread John Black
Brian Dunning wrote: But I do want to add some level of code obfuscation to prevent them from making simple changes to my code that allow them to exceed the privileges they've purchased. I have used PHP Processor 1.5 from http://gridinsoft.com for this. Back when I was looking

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Nathan Rixham wrote: Robert Cummings wrote: Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of aside as appearing through the document and contextually near to the information to which the aside

Re: [PHP] PHP Manual problems

2010-02-10 Thread Andrew Ballard
On Wed, Feb 10, 2010 at 3:48 PM, Robert Cummings rob...@interjinn.com wrote: Nathan Rixham wrote: The most common misconception of how this element should be used is for the standard sidebar. - see: http://html5doctor.com/understanding-aside/ Unfortunatley I examined that side quite

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Robert Cummings wrote: Nathan Rixham wrote: Robert Cummings wrote: Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: It took very little work since I was essentially doing that already. aside is the most logical html 5 layout tag for describing the sidebar in a two

Re: [PHP] PHP Manual problems

2010-02-10 Thread Michael A. Peters
Andrew Ballard wrote: On Wed, Feb 10, 2010 at 3:48 PM, Robert Cummings rob...@interjinn.com wrote: Nathan Rixham wrote: The most common misconception of how this element should be used is for the standard sidebar. - see: http://html5doctor.com/understanding-aside/ Unfortunatley I examined

[PHP] HTML5 aside description

2010-02-10 Thread Robert Cummings
From the editor's draft: The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
tedd wrote: At 1:38 PM -0500 2/10/10, Robert Cummings wrote: Agreed. Those make sense to demarcate the structure layout of the document... but still, for styling the class makes more sense since it keeps the specificity low and easy to override (especially true for skinnable apps). In my

[PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
Good day, May I ask you, gurus, whether it is possible to set a flag in PHP that persists for the duration of the server being switched on? If the server would be power cycled, the flag would be off. Similarly if the web server would be restarted the flag would be off also. I do realize that

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Jochem Maas
Op 2/11/10 5:42 AM, Teus Benschop schreef: Thank you for the hints given. I'll look into the various options given. The main reason for the need for a persistent flag in memory is that several installations where the PHP code would be deployed do not have access to crontab, so I am simulating

Re: [PHP] Owner or other; permissions for webpage users

2010-02-10 Thread clancy_1
On Wed, 10 Feb 2010 16:08:42 +1030, james.mcl...@gmail.com (James McLean) wrote: On Wed, Feb 10, 2010 at 2:51 PM, clanc...@cybec.com.au wrote: I'm basically familiar with the UNIX permissions - 'owner', 'group', or 'other', but I have no real idea how these apply to webpage users under PHP.

[PHP] syntax error in class

2010-02-10 Thread Dasn
Hello guys, I encountered a syntax error, and cannot figure out the reason, for example: == CODE == 1:?php 2:$opts = array ('header'='str1'.'str2'); 3:? === Works fine, but when I try to put it into a class,

Re: [PHP] syntax error in class

2010-02-10 Thread Jim Lucas
Dasn wrote: I got the syntax error. Why? Read the first paragraph on the following page. http://us3.php.net/manual/en/language.oop5.properties.php [quote] ... This declaration may include an initialization, but this initialization must be a constant value--that is, it must be able to be

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
On Thu, 2010-02-11 at 05:53 +, Jochem Maas wrote: whatever it is that your trying to do, it sounds like one of two things: 1. you have hosting that is unsuitable for your needs 2. you are tackling the problem incorrectly at any rate, as far I'm concerned, you should never have a long

Re: [PHP] HTML5 aside description

2010-02-10 Thread Robert Cummings
*haha* I've removed w3.org from the recipients list... so onwards to the content below... Jochem Maas wrote: Op 2/10/10 9:08 PM, Robert Cummings schreef: From the editor's draft: The aside element represents a section of a page that consists of content that is tangentially related to the

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Jochem Maas
Op 2/11/10 6:34 AM, Teus Benschop schreef: On Thu, 2010-02-11 at 05:53 +, Jochem Maas wrote: whatever it is that your trying to do, it sounds like one of two things: 1. you have hosting that is unsuitable for your needs 2. you are tackling the problem incorrectly at any rate, as far I'm

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
On Thu, 2010-02-11 at 06:46 +, Jochem Maas wrote: Op 2/11/10 6:34 AM, Teus Benschop schreef: On Thu, 2010-02-11 at 05:53 +, Jochem Maas wrote: whatever it is that your trying to do, it sounds like one of two things: 1. you have hosting that is unsuitable for your needs 2. you

Re: [PHP] syntax error in class

2010-02-10 Thread Eric Lee
2010/2/11 Jim Lucas li...@cmsws.com Dasn wrote: I got the syntax error. Why? only constant literal is allowed. You can think that it is static complie but not on runtime . Regards, Eric, Read the first paragraph on the following page.