Re: [PHP] syntax error in class

2010-02-10 Thread Eric Lee
2010/2/11 Jim Lucas > 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. > > http://us3.php.net/manual/en/language.oop5.propertie

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

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

Re: [PHP] HTML5 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 c

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 l

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 eva

[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:'str1'.'str2'); 3:?> === Works fine, but when I try to put it into a class, say: ==

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, 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. I know that if

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 simulati

[PHP] OT: [very mild rant-like commentary] Fwd: IMPORTANT: your message to public-html-comments

2010-02-10 Thread Jochem Maas
did I send the below message? must have been an artifact of the defacto 'Reply-to-All' on this mailing list. I dislike this kind of nonsense, It's in no way stopping SPAM engines and just means more stuff to be undertaken by real people prlease, as if a SPAM BOT can't catch this kind of messag

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
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 crontab's functionality by letting a PHP script

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Paul M Foster
On Thu, Feb 11, 2010 at 06:37:39AM +0200, Teus Benschop wrote: > 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 we

Re: [PHP] HTML5 description

2010-02-10 Thread Jochem Maas
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 content around the aside > element, and which could be considered separate from that content. Such > secti

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Jochem Maas
Op 2/11/10 4:37 AM, Teus Benschop schreef: > 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 res

[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 suc

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ross McKay
On Wed, 10 Feb 2010 10:12:01 -0500, Robert Cummings wrote: >I'm doing quite a bit more work in public sector these days. Recently ne >department finally did away with IE6 and moved to IE7. Here's what I had >to do to accomodate this gotcha: > > Nothing > >See, that was tough. Why was it so h

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

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ashley Sheridan
On Wed, 2010-02-10 at 19:09 +, Lester Caine wrote: > 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 ne

Re: [PHP] PHP Manual problems

2010-02-10 Thread tedd
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 experience I've se

[PHP] HTML5 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 typogr

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 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 thorou

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

Re: [PHP] PHP Manual problems

2010-02-10 Thread Andrew Ballard
On Wed, Feb 10, 2010 at 3:48 PM, Robert Cummings 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 thoroughly and got sm

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 relat

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 around

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 asi

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
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 s

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 a

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,

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 e

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 mean

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 ins

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 ther

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 element

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 eleme

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: > > 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] 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 wrote: > On 10 February 2010 14:33, דניאל דנון wrote: > > Sent from my mobile de

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 styled

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 use

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 l

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

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 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 othe

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 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 allow

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

2010-02-10 Thread Richard Quadling
On 10 February 2010 16:31, Pat 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 stored in /photo

Re: [PHP] Simple code obfuscation

2010-02-10 Thread Richard Quadling
On 10 February 2010 14:33, דניאל דנון 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 : http://www.exper

[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: tim

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, wrote: > >> On Thu, 04 Feb 201

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, wrote: >> On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem >> Maas) wrote: >>>

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, 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 maili

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, 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 Bob McConnell
From: Robert Cummings > Lester Caine wrote: >> James McLean wrote: >>> On Wed, Feb 10, 2010 at 2:26 PM, 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 r

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Richard Quadling wrote: On 10 February 2010 13:02, 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 technolog

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
Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, 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 interesting things in my we

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 premat

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 b

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 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

Re: [PHP] PHP Manual problems

2010-02-10 Thread Richard Quadling
On 10 February 2010 13:02, 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 s

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$ t

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 mac

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

2010-02-10 Thread Richard Quadling
On 9 February 2010 22:25, wrote: > On Tue, 9 Feb 2010 16:09:05 +, rquadl...@googlemail.com (Richard > Quadling) wrote: > >>On 9 February 2010 14:20, Ashley Sheridan wrote: >>> >>> On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote: >>> >>> Richard wrote: >>> > Hi, >>> > >>> >> I have

Re: [PHP] RE: SOAP connect error

2010-02-10 Thread Richard Quadling
On 9 February 2010 22:14, Eric Lommatsch 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] create archive file in memory with zipArchive class

2010-02-10 Thread Richard Quadling
On 9 February 2010 16:47, Ryan Sun 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 > wrote: >> On 9 February 2010 15:42, Ry