Re: [PHP] Recursion and threaded message boards...

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 11:23 am, Tony Di Croce wrote: I have to write some PHP backend code for a threaded message board. The db has a message table, and each message has a parent id. Does anyone have any advice for someone whos never done this in PHP? I'm currently thinking that I write

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 9:43 am, Jason Pruim wrote: I want to be able to sort that info so my sql query looks like: Select * from current order by '$order'; and $order is populated by a GET when they click on a link: A href=index.php?order='Last'Sort by last name/A Now... the whole PHP page

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 10:00 am, Daniel Brown wrote: It's safe to ignore the `Undefined index` notices. That will just appear if a variable is referenced without first being instantiated or defined. No biggie, just put this at the head of your code: ini_set(error_reporting,E_ALL

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 10:18 am, Daniel Brown wrote: So you're all going to tell me that you have E_NOTICE set to report on your sites? Damn right I do! That's the FIRST thing I change on any new development site, anywhere, anytime. -- Some people have a gift link here. Know what I

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 10:43 am, Robert Cummings wrote: On Fri, 2007-08-10 at 11:40 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: If PHP thinks something might be wrong it will tell you. Why on earth would you want to ignore it? You think you're smarter than PHP?

Re: [PHP] function - action

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 9:40 am, Martin Alterisio wrote: 2007/8/7, Richard Lynch [EMAIL PROTECTED]: On Fri, August 3, 2007 1:38 am, Ralph Kutschera wrote: I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as

Re: [PHP] multiple data to insert to database

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 8:36 am, Alain Roger wrote: I would like to know what is the best way and fastest to insert into PostgreSQL around 25.000 records (extracted from CSV file). Should i use the standard pg_exec($dbconn, insert into...); for each record ? 25.000 records is not THAT large,

Re: [PHP] Import XLS file with UTF-8

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 8:04 am, Alain Roger wrote: So now i know how to import the content of the CSV file to database, however, before to import to database i do a simple test. in fact, i display in my browser all content of my CSV file. unfortunately, not all characters are displayed

Re: [PHP] Running a server process

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 6:26 am, Nathan Wallis wrote: I have a windows application the performs a certain task that I need it to perform. I am in the process of developing my site and am really interested in the functionality of the site at the moment and haven't set about putting the

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Tijnema
On 8/11/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, August 10, 2007 1:26 pm, Kevin Murphy wrote: I doubt this, but is there any way to determine via PHP if a browser was refreshed automatically via a META tag vs the person clicking the refresh button? You could embed something in

Re: [PHP] help with ming library

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 6:24 am, Diana wrote: How do I install the ming library on windows?? I copied the php_ming.dll that I had on another computer and enabled this line in php.ini extension=php_ming.dll but I still get that error Call to undefined function Ming_setScale() There are

Re: [PHP] permissions for include()

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 8:15 pm, jekillen wrote: On Aug 8, 2007, at 9:34 PM, Richard Lynch wrote: On Wed, August 8, 2007 7:52 pm, jekillen wrote: Apache runs as the User setting in httpd.conf If that User can rwx the files, then PHP can rwx the files. If not, not. It's that simple.

RE: [PHP] get and post together

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 7:55 pm, Daevid Vincent wrote: It has a size limit for one (maybe 1k chars?) The limit has been increased with each version of the HTTP spec, and implementors have always been encouraged to make the limit as high as practical. But they could not claim to be implementing

Re: [PHP] preg_match_all to match img tags

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 6:45 pm, Ólafur Waage wrote: I know this isn't exactly a php related question but due to the quality of answers ive seen lately ill give this a shot. (yes yes im smoothing up the crowd before the question) I have a weblog system that i am creating, the trouble is that

Re: [PHP] Forwarding $_POST[]...

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 1:04 pm, Tony Di Croce wrote: I keep wanting to do something, and either I dont know how to do it, or I'm doing something wrong and need to rethink things. Quite often, I have a form that submits to a php script via POST and after doing some processing (or more

Re: [PHP] Exceptions

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 11:50 am, Peter Pan wrote: I'm having an issue where throwing Exceptions are displaying a blank page even though the Exception is being caught in a try...catch statement. This is happening on our production server where warnings, errors, exceptions, etc. are not to be

Re: [PHP] Segmentation fault on PHP CLI

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 8:43 am, Martin Marques wrote: I have a script which I run from cron. I'm testing it directly from the console: /usr/bin/php -f /path/to/script.php The thing is: Script executes great, and everything it has to do gets done, but it throughs a segmentation fault

Re: [PHP] Re: string as file

2007-08-10 Thread Richard Lynch
Reading that, I think it's similar to this: http://php.net/stream I'm really not sure what the OP wants, though... On Thu, August 9, 2007 6:32 pm, Dan wrote: Well, I have no idea what the Phython StringIO method does. Could someone explain in PHP terms maybe? Google gave me this

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 1:24 am, Phil Curry wrote: $userValues = ' 1'; line 102 echo ($userValues['afterDark']); // outputs 1 line 103 if ( $userValues['afterDark'] == 0 ) {// passes When using echo to display debug output ALWAYS surround the data with some kind

RE: [PHP] magic quotes

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 8:23 am, Bastien Koert wrote: you could use ini_set at the top of the script to turn the magic quotes off... No, you could not. Lonngg before ini_set is called, PHP has *already* applied the Magic Quotes feature and munged your data. :-) -- Some people

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Robert Cummings
On Sat, 2007-08-11 at 02:10 +0200, Tijnema wrote: On 8/11/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, August 10, 2007 1:26 pm, Kevin Murphy wrote: I doubt this, but is there any way to determine via PHP if a browser was refreshed automatically via a META tag vs the person clicking

<    1   2