Re: [PHP] Re: hello

2009-01-10 Thread Daniel Brown
On Sat, Jan 10, 2009 at 01:57, Robert Cummings wrote: > > Grumble, grumble... did I mention freshwater falls from the sky and > forms vertical piles outside my home? You have a camera for a reason, Rob. Snap a few shots and we'll help pick out the next Interjinn logo. ;-P -- daniel.br...

Re: [PHP] Re: hello

2009-01-10 Thread Paul M Foster
On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote: > On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote: > > On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > > > -12C in Toronto > > > > > > > Meh! 30C - 35C in Cape Town, South Africa almost every day for the last > > month. It ha

Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 02:59 -0500, Daniel Brown wrote: > On Sat, Jan 10, 2009 at 01:57, Robert Cummings wrote: > > > > Grumble, grumble... did I mention freshwater falls from the sky and > > forms vertical piles outside my home? > > You have a camera for a reason, Rob. Snap a few shots and w

Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 03:10 -0500, Paul M Foster wrote: > On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote: > > > On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote: > > > On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > > > > -12C in Toronto > > > > > > > > > > Meh! 30C - 35C i

[PHP] com_event_sink question

2009-01-10 Thread Jason Paschal
Hello all, Can i just create a function for the particular event i want to respond to? Or do all possible events have to be dealt with in your class? If I just make the function for the one event I want to respond to, will the COM's other events stay intact? Thank you, Jason

Re: [PHP] Using MDB2 outside the PEAR framework?

2009-01-10 Thread Murray
Just for the record, it appears (so far) that the fix for my problem was REMOVING the path to the normal PEAR directory from my 'include_path' string. I guess a conflict was taking place where files were being loaded both from the included subdirectories in my application and the PEAR directories t

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Gary
Ok, not yet... If the file I want to test resides in My Documents\Sites\nameofsite, I set my "Test server folder" in DW to map to here...correct? Now down to URL prefix, I have tried http://localhost http://localhost/sitename C:/xampp/apache,( which btw is the Site Root as described in "httpd.co

Re: [PHP] Been staring at the code for too long...

2009-01-10 Thread tedd
At 1:38 PM -0500 1/9/09, Jason Pruim wrote: mysqli_stmt_prepare($stmt, "UPDATE database.table ( Jason: Here's the problem, your code should read: mysqli_stmt_prepare($stmt, "UPDATE database.table SET ( You forgot the "SET". As a point of practice, I always use: $query = "UPDATE $d

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
At 12:18 PM -0500 1/9/09, Gary wrote: I've done a number of sites in html and am now venturing into php. Can I create a page in html and insert php code that will work? (for example, take an existing page and insert a date command) Can I create a page with the php extension that contains only c

Re: [PHP] Couple of beginner questions

2009-01-10 Thread Gary
Looks like a great link, thank you. But am I to understand that all I need to do is change the extention on a file to php from html for all to be right with the world? Gary "tedd" wrote in message news:p06240803c58e55325...@[192.168.1.101]... > At 12:18 PM -0500 1/9/09, Gary wrote: >>I've done

[PHP] Re: Couple of beginner questions

2009-01-10 Thread tedd
At 5:39 PM + 1/9/09, Nathan Rixham wrote: if it has the file extension .php then it will be passed through php and compiled; otherwise the php source code you insert will just show up in the html source. Gary: That is true, but with the following code in a .htaccess file you can force th

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Murray
The fundamental thing you're missing, as I understand it (I'm sure someone will speak up if I'm wrong), is that you shouldn't be storing your site outside the htdocs directory. This is where Apache looks for files it can display in your browser. So, you need to move all of the files you have in "M

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
At 11:35 AM -0800 1/9/09, VamVan wrote: -- Remember as you re still a beginner try to avoid using ?> at the end of complete PHP code page. or else if you have empty lines at the end of the file "then you wont see blank page of death in PHP". I'm not a beginner, but this is a practice that many

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Nathan Rixham
Gary wrote: Ok, not yet... If the file I want to test resides in My Documents\Sites\nameofsite, I set my "Test server folder" in DW to map to here...correct? Now down to URL prefix, I have tried http://localhost http://localhost/sitename C:/xampp/apache,( which btw is the Site Root as describ

Re: [PHP] Re: Couple of beginner questions

2009-01-10 Thread tedd
At 2:04 PM + 1/10/09, Nathan Rixham wrote: tedd wrote: At 5:39 PM + 1/9/09, Nathan Rixham wrote: if it has the file extension .php then it will be passed through php and compiled; otherwise the php source code you insert will just show up in the html source. Gary: That is true, but

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
At 8:48 AM -0500 1/10/09, Gary wrote: Looks like a great link, thank you. But am I to understand that all I need to do is change the extention on a file to php from html for all to be right with the world? Yup. By changing the suffix (extension), you are telling the server that this file is

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Gary
Ok, I believe I have it workingmeaning when I click on Live Data View, I see the date appear in my datetest.php page But Im still confused... The succesful configuration (providing I am not suffering from premature exhuberation) is Testing server folder: c:\xampp\htdocs\barrister (the loca

Re: [PHP] Create image from HTML

2009-01-10 Thread tedd
At 11:29 AM -0500 1/9/09, Christoph Boget wrote: Does anyone know if it's possible, using PHP, to take HTML (either as an input or from a URL) and generate an image (essentially, create a screenshot) of that HTML/page? I've looked around but was unable to find anything and I'm just not sure if i

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
At 7:38 PM + 1/9/09, c...@l-i-e.com wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Specifically, do NOT add tags in place of newlines. Store the newlines. Upon OUTPUT, you can use nl2br() to get tags. Or str_replace if you want instead. This i

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
At 11:43 AM -0800 1/9/09, VamVan wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Specifically, do NOT add tags in place of newlines. Store the newlines. 100% I agree. Thats called the act of defensive programming. We have no right over altering user

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Nathan Rixham
Gary wrote: Ok, I believe I have it workingmeaning when I click on Live Data View, I see the date appear in my datetest.php page But Im still confused... The succesful configuration (providing I am not suffering from premature exhuberation) is Testing server folder: c:\xampp\htdocs\barr

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Gary
Ok...now that makes sense, I was looking for the documentroot, not the server root... Thanks to everyone ... Im sure I will be back for more... Gary "Nathan Rixham" wrote in message news:4968ba7d.5000...@gmail.com... > Gary wrote: >> Ok, I believe I have it workingmeaning when I click o

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-10 Thread tedd
At 7:23 AM -0800 1/9/09, Brian Dunning wrote: I'm trying a stripped down test just to try to get this work. I have a valid jpeg on disk: -snip- Try this: http://webbytedd.com/b/thumb/index.php All the code is there -- and it works. Cheers, tedd -- --- http://sperling.com http://ancie

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
On Sat, 10 Jan 2009 09:58:24 -0500, tedd.sperling wrote: >Never store any html whatsoever in a database. > >HTML is presentation and is NOT data. Except when HTML is data, e.g. CMS. And it's better to let people input that using something like TinyMCE than to let them put in tags themselves and

Re: [PHP] Re: Create image from HTML

2009-01-10 Thread Per Jessen
Daniel Brown wrote: > You can use xvfb (X Virtual Frame Buffer) on *NIX systems without > running X itself, a stripped down Mozilla navigate to and display the > page, and then snap a "screen" shot of the buffer. Not very > economical, but it would work. I did just that a while ago, it worked p

Re: [PHP] Editing in a text area field

2009-01-10 Thread Nathan Rixham
tedd wrote: At 11:43 AM -0800 1/9/09, VamVan wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Specifically, do NOT add tags in place of newlines. Store the newlines. 100% I agree. Thats called the act of defensive programming. We have no right over

Re: [PHP] Been staring at the code for too long...

2009-01-10 Thread Jason Pruim
On Jan 10, 2009, at 8:35 AM, tedd wrote: At 1:38 PM -0500 1/9/09, Jason Pruim wrote: mysqli_stmt_prepare($stmt, "UPDATE database.table ( Jason: Here's the problem, your code should read: mysqli_stmt_prepare($stmt, "UPDATE database.table SET ( You forgot the "SET". As a point of p

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
At 11:58 AM -0500 1/9/09, Daniel Brown wrote: // Convert HTML linebreak tags to paragraph tags. Daniel: -snip code- Nice function. Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
At 3:19 PM + 1/10/09, Nathan Rixham wrote: tedd wrote: While one can look at it as defensive programming, it has a larger scope than that. Certainly you want to sanitize all input from users to prohibit injections, but more than that you want to keep data separate from presentation.

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
At 2:19 AM +1100 1/11/09, Ross McKay wrote: On Sat, 10 Jan 2009 09:58:24 -0500, tedd.sperling wrote: Never store any html whatsoever in a database. HTML is presentation and is NOT data. Except when HTML is data, e.g. CMS. And it's better to let people input that using something like TinyMCE

Re: [PHP] Editing in a text area field

2009-01-10 Thread Nathan Rixham
tedd wrote: At 2:19 AM +1100 1/11/09, Ross McKay wrote: On Sat, 10 Jan 2009 09:58:24 -0500, tedd.sperling wrote: Never store any html whatsoever in a database. HTML is presentation and is NOT data. Except when HTML is data, e.g. CMS. And it's better to let people input that using something

[PHP] Problem with sybase_get_last_message

2009-01-10 Thread Steve
I'm running into PHP Bug #11262: It would be wonderful if PHP could discard error #3621 (Command has been aborted.) This message is a pain, because when something goes wrong, sybase gives the real error, and then also gives this second useless message. This means that if a query fails, sybase_get_

Re: [PHP] Using MDB2 outside the PEAR framework?

2009-01-10 Thread Richard Heyes
> Where would I find that article, if you think it might help me get MDB2 > working properly? It won't help you get MDB2 working - it's a general thing I wrote on structuring your applications and websites. I have used for quite a while though, and it's served me well. -- Richard Heyes HTML5 Gr

Re: [PHP] Using MDB2 outside the PEAR framework?

2009-01-10 Thread Richard Heyes
>> Where would I find that article, if you think it might help me get MDB2 >> working properly? > > It won't help you get MDB2 working - it's a general thing I wrote on > structuring your applications and websites. I have used for quite a > while though, and it's served me well. Sorry, forgot the

[PHP] pecl4win - any updates?

2009-01-10 Thread pan
Has there been any progress reinstating pecl packages for windows? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] is_readable() returns 1 if file is still uploading

2009-01-10 Thread Merlin Morgenstern
Hi there, I am importing data out of xml files on a linux server. Now I am running into problems if the file is currently beeing uploaded and the upload has not finished to the server. Is there a function which returns true if the file is complete and not in upload status? I tried is_readable(

Re: [PHP] is_readable() returns 1 if file is still uploading

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 19:22 +0100, Merlin Morgenstern wrote: > Hi there, > > I am importing data out of xml files on a linux server. Now I am running > into problems if the file is currently beeing uploaded and the upload > has not finished to the server. > Is there a function which returns true

Re: [PHP] is_readable() returns 1 if file is still uploading

2009-01-10 Thread Jim Lucas
Merlin Morgenstern wrote: Hi there, I am importing data out of xml files on a linux server. Now I am running into problems if the file is currently beeing uploaded and the upload has not finished to the server. Is there a function which returns true if the file is complete and not in upload s

Re: [PHP] Re: hello

2009-01-10 Thread Paul M Foster
On Sat, Jan 10, 2009 at 03:16:34AM -0500, Robert Cummings wrote: > On Sat, 2009-01-10 at 03:10 -0500, Paul M Foster wrote: > > On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote: > > > > > On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote: > > > > On Fri, 2009-01-09 at 18:15 -0500,

Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 16:00 -0500, Paul M Foster wrote: > On Sat, Jan 10, 2009 at 03:16:34AM -0500, Robert Cummings wrote: > > > On Sat, 2009-01-10 at 03:10 -0500, Paul M Foster wrote: > > > On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote: > > > > > > > On Sat, 2009-01-10 at 05:20

Re: [PHP] Re: hello

2009-01-10 Thread Daniel Brown
On Sat, Jan 10, 2009 at 16:06, Robert Cummings wrote: > > Snowball hits sandcastle... promptly melts... washes sandcastle away. > > *throws another snowball at you* > > I've got LOTS more where they came from. *danbrown casts Spell of Awe and attains Level 63 Wizard. *danbrown turns you into a f

Re: [PHP] Couple of beginner questions

2009-01-10 Thread Paul M Foster
On Sat, Jan 10, 2009 at 09:46:14AM -0500, tedd wrote: > At 8:48 AM -0500 1/10/09, Gary wrote: >> Looks like a great link, thank you. >> >> But am I to understand that all I need to do is change the extention on a >> file to php from html for all to be right with the world? > > Yup. > > By changing

Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 16:14 -0500, Daniel Brown wrote: > On Sat, Jan 10, 2009 at 16:06, Robert Cummings wrote: > > > > Snowball hits sandcastle... promptly melts... washes sandcastle away. > > > > *throws another snowball at you* > > > > I've got LOTS more where they came from. > > > *danbrown c

Re: [PHP] Re: hello

2009-01-10 Thread Nathan Rixham
Robert Cummings wrote: On Sat, 2009-01-10 at 16:14 -0500, Daniel Brown wrote: On Sat, Jan 10, 2009 at 16:06, Robert Cummings wrote: Snowball hits sandcastle... promptly melts... washes sandcastle away. *throws another snowball at you* I've got LOTS more where they came from. *danbrown cast

Re: [PHP] Re: hello

2009-01-10 Thread Daniel Brown
On Sat, Jan 10, 2009 at 16:21, Nathan Rixham wrote: > > are you three flirting? Are you jealous? -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP Gene

Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 21:21 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Sat, 2009-01-10 at 16:14 -0500, Daniel Brown wrote: > >> On Sat, Jan 10, 2009 at 16:06, Robert Cummings > >> wrote: > >>> Snowball hits sandcastle... promptly melts... washes sandcastle away. > >>> > >>> *thro

Re: [PHP] Re: hello

2009-01-10 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Jan 10, 2009 at 16:21, Nathan Rixham wrote: are you three flirting? Are you jealous? *throws snowball too* "shut p" when in rome.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Stephen
c...@l-i-e.com wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Specifically, do NOT add tags in place of newlines. Store the newlines. Upon OUTPUT, you can use nl2br() to get tags. Or str_replace if you want instead. This is crucial as a habit, dow

Re: [PHP] Re: hello

2009-01-10 Thread Björn Bartels
*rofl* damn... i love this list... so much for on- ehmmm off-list posts :p ... Am 10.01.2009 um 22:24 schrieb Nathan Rixham: Daniel Brown wrote: On Sat, Jan 10, 2009 at 16:21, Nathan Rixham wrote: are you three flirting? Are you jealous? *throws snowball too* "shut p" yeah...

[PHP] Unique Object Instance ID..?

2009-01-10 Thread Nathan Rixham
Evening All, Not too often I ask a question here, but here goes; I'm making an "Object" class which all of my other classes extend, and I need each instance to have it's own unique id, seemed simple but it's harder than I thought (the difficulty is when it comes to deciding the syntax). so

[PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Colin Guthrie
'Twas brillig, and Nathan Rixham at 10/01/09 23:31 did gyre and gimble: all I need is a completely unique id for each object instance that can never be repeated at any time, even in a multiserver environment (and without using any kind of incremented value from a db table or third party app)

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Eric Butera
On Sat, Jan 10, 2009 at 6:31 PM, Nathan Rixham wrote: > Evening All, > > Not too often I ask a question here, but here goes; > > I'm making an "Object" class which all of my other classes extend, and I > need each instance to have it's own unique id, seemed simple but it's harder > than I thought

Re: [PHP] Editing in a text area field

2009-01-10 Thread Phpster
That can and should be done with a simple str_replace() on the display portion of the code. Bastien Sent from my iPod On Jan 10, 2009, at 5:01 PM, Stephen wrote: c...@l-i-e.com wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/ filtering. Specifically, do

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Phpster
Unique()? Bastien Sent from my iPod On Jan 10, 2009, at 6:31 PM, Nathan Rixham wrote: Evening All, Not too often I ask a question here, but here goes; I'm making an "Object" class which all of my other classes extend, and I need each instance to have it's own unique id, seemed simple b

[PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Nathan Rixham
Colin Guthrie wrote: 'Twas brillig, and Nathan Rixham at 10/01/09 23:31 did gyre and gimble: all I need is a completely unique id for each object instance that can never be repeated at any time, even in a multiserver environment (and without using any kind of incremented value from a db table o

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
On Sat, 10 Jan 2009 10:40:43 -0500, tedd.sperling wrote: >[...] >One might want to design a CMS for a client (I've done it) such that >you limit the client's ability to inject presentation choices, such >as using bold/italic tags. But that also requires more programming >effort to determine if

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
tedd wrote: >The argument over what HTML is, will never be resolved. > >I say it's a delivery mechanism and tags such as and are >unwanted elements. They simply confuse/blur the purpose of the >language. I should have said and , I guess. Of course, copypasta from another rich text editor can

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
Nathan Rixham wrote: >HTML is a markup language used to describe the structure of a document; >presentation of HTML is controlled by either a client, with optional >instructions via attributes (bad) or css (good) I almost agree, except that there are attributes that define the behaviour of HTML

Re: [PHP] Editing in a text area field

2009-01-10 Thread Nathan Rixham
Ross McKay wrote: Nathan Rixham wrote: HTML is a markup language used to describe the structure of a document; presentation of HTML is controlled by either a client, with optional instructions via attributes (bad) or css (good) I almost agree, except that there are attributes that de

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
On Sat, 10 Jan 2009 17:01:28 -0500, Stephen wrote: >How do you suggest dealing with a need to allow italics, bold, >underlines, etc? Give them a rich text editor, IMHO. That way, you get close tags! Some examples: http://tinymce.moxiecode.com/ http://www.fckeditor.net/ http://developer.yahoo.c

[PHP] Referencing variable in calling class?

2009-01-10 Thread Murray
Hi All, I'd like to reference the value of a variable in a class that called the current piece of code via a require_once. In essence, I have a 'front controller' class that builds the page to be displayed depending on several criteria. One issue I'm having is that when a user logs out of my app

[PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Ross McKay
On Sat, 10 Jan 2009 23:31:29 +, Nathan Rixham wrote: >[...] >all I need is a completely unique id for each object instance that can >never be repeated at any time, even in a multiserver environment (and >without using any kind of incremented value from a db table or third >party app) Have

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ashley Sheridan
On Sun, 2009-01-11 at 11:19 +1100, Ross McKay wrote: > tedd wrote: > > >The argument over what HTML is, will never be resolved. > > > >I say it's a delivery mechanism and tags such as and are > >unwanted elements. They simply confuse/blur the purpose of the > >language. > > I should have said

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Nathan Nobbe
On Sat, Jan 10, 2009 at 4:31 PM, Nathan Rixham wrote: > Evening All, > > Not too often I ask a question here, but here goes; > > I'm making an "Object" class which all of my other classes extend, and I > need each instance to have it's own unique id, seemed simple but it's harder > than I thought

Re: [PHP] Editing in a text area field

2009-01-10 Thread Murray
I don't know why, but I always baulk when I see HTML and, for example, XML etc described as a 'language'. I may well be wrong, but these always seem to be more appropriately described as a 'syntax' rather than a 'language', at least in the computer science sense. Of course, maybe these are essenti

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ashley Sheridan
On Sun, 2009-01-11 at 11:44 +1000, Murray wrote: > I don't know why, but I always baulk when I see HTML and, for example, XML > etc described as a 'language'. > > I may well be wrong, but these always seem to be more appropriately > described as a 'syntax' rather than a 'language', at least in th

Re: [PHP] Editing in a text area field

2009-01-10 Thread Murray
Interesting, I've never seen this presented as an issue of ethics before. I think I can see your point, but I'd suggest that there's an interplay of ethical obligations between a user and the host / creator of an application in which perhaps the user should or in many cases has to accept a de-prior

Re: [PHP] Editing in a text area field

2009-01-10 Thread Eric Butera
On Sat, Jan 10, 2009 at 8:51 PM, Murray wrote: > Interesting, I've never seen this presented as an issue of ethics before. I > think I can see your point, but I'd suggest that there's an interplay of > ethical obligations between a user and the host / creator of an application > in which perhaps t

Re: [PHP] Editing in a text area field

2009-01-10 Thread Murray
I agree with others that in most cases you should be storing input as it is presented to you once POSTed (with the usual caveats of escaping etc to make INSERTing / UPDATEing possible). This is exactly what you are doing when accepting input from FCKEditor etc. Your input contains markup, and that

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
Ashley Sheridan wrote: >FCKEditor is a good editor (although poorly named!) that allows you to >set it not to use and tags and force it to convert them to > and instead. Couple this with a decent regex and you can >strip out the extra style tags which result from a pasted MSWord >selection. Li

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Ross McKay
On Sat, 10 Jan 2009 18:42:01 -0700, Nathan Nobbe wrote: >checkout spl_object_hash() > >http://php.net/function.spl_object_hash NB: only guarantees uniqueness for objects instantiated and in memory at the same time. See the comments on that page for an example of creating identical object hashes f

Re: [PHP] Referencing variable in calling class?

2009-01-10 Thread Paul M Foster
On Sun, Jan 11, 2009 at 10:33:30AM +1000, Murray wrote: > Hi All, > > I'd like to reference the value of a variable in a class that called the > current piece of code via a require_once. > > In essence, I have a 'front controller' class that builds the page to be > displayed depending on several

Re: [PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Micah Gersten
Can you use something like APC to cache the instance variable so that it's persistent across different sessions? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Nathan Rixham wrote: > Colin Guthrie wrote: >> 'Twas brillig, and Nathan Rixham at 10/01/09 23:31