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

2007-08-10 Thread Borokov Smith
if (isset($_GET['order'] in_array($_GET['order'], array('Last', 'First', ...))) { $requestedOrder = $_GET['order']; } else { $requestedOrder = your default; } Mind the in_array() call. Always sanitize user input. greetz, boro Jason Pruim schreef: Hi All :) Hope you're not getting sick

Re: [PHP] string as file

2007-08-10 Thread Stut
Robert Cummings wrote: On Fri, 2007-08-10 at 16:28 +0100, Stut wrote: Rick Pasotto wrote: On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto [EMAIL PROTECTED] wrote: Does php have a

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each server containing the contents of the error log from the previous day and my first task each day is to go through that and track down any issues that usage has

[PHP] Recursion and threaded message boards...

2007-08-10 Thread Tony Di Croce
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 function that takes a db row as an argument, and initially,

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

2007-08-10 Thread Daniel Brown
On 8/10/07, Robert Cummings [EMAIL PROTECTED] 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] Friday morning brain farts....

2007-08-10 Thread Stut
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? Really? Okay, Stut, let's not make Friday the official Flame Dan Brown holiday this week. I

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

2007-08-10 Thread Robert Cummings
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? Really? Okay, Stut, let's not make Friday the official

Re: [PHP] string as file

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 16:28 +0100, Stut wrote: Rick Pasotto wrote: On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto [EMAIL PROTECTED] wrote: Does php have a facility similar to

[PHP] and newlines under windows

2007-08-10 Thread Faither
Hey there! I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a simple html break tag. If I use the replacing

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Tijnema
On 8/10/07, Daniel Brown [EMAIL PROTECTED] wrote: On 8/10/07, Faither [EMAIL PROTECTED] wrote: Hey there! I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or

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

2007-08-10 Thread Tijnema
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each server containing the contents of the error log from the previous day and my first task each day is to go

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 17:53 +0100, Richard Davey wrote: Hi Faither, Friday, August 10, 2007, 5:16:09 PM, you wrote: I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace

[PHP] Re: PHP on .NET DLR

2007-08-10 Thread Sancar Saran
Hello there, Once upon a time I try to ignite PHP community to develop some kind of client side php, which failed, because lack of interest (or because of javascript). In open source world everthing boosted from personal interest. Hi, Thanks for chipping in. Silverlight is not a fad,

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Tijnema
On 8/10/07, Stut [EMAIL PROTECTED] wrote: Faither wrote: I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Faither
Stut wrote: Faither wrote: I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a simple html break tag. If I use

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Daniel Brown
On 8/10/07, Faither [EMAIL PROTECTED] wrote: Hey there! I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a simple

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 18:14 +0200, Faither wrote: Hey there! I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with

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

2007-08-10 Thread Daniel Brown
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-10 at 17:39 +0100, Stut wrote: Robert Cummings wrote: On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each server containing the contents of

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Stut
Faither wrote: I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a simple html break tag. If I use the replacing

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 17:39 +0100, Stut wrote: Robert Cummings wrote: On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each server containing the contents of the error log from the previous day and my first task

[PHP] Getting a 'newline' out of a string

2007-08-10 Thread Faither
Hey there! I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a simple html break tag. If I use the replacing

Re: [PHP] Running a server process

2007-08-10 Thread Stut
Tijnema wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500

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

2007-08-10 Thread Tijnema
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-10 at 19:21 +0200, Tijnema wrote: On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each

Re: [PHP] Running a server process

2007-08-10 Thread Stut
Tijnema wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were executing this php function around the same time

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Richard Davey
Hi Faither, Friday, August 10, 2007, 5:16:09 PM, you wrote: I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a

[PHP] Getting a 'newline' out of a string

2007-08-10 Thread Faither
Hey there! I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. I have a text string from a form and am trying to replace the \n or chr(10) or however you might call the newline with a simple html break tag. If I use the replacing

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

2007-08-10 Thread Richard Davey
Hi Tony, Friday, August 10, 2007, 5:23:28 PM, you 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

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

2007-08-10 Thread Daniel Brown
On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each server containing the contents of the error log from the previous day and my first task each day is to go through that and track down any issues that usage has highlighted. That's actually a good point there that I

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

2007-08-10 Thread Richard Davey
Hi Stut, Friday, August 10, 2007, 4:44:14 PM, you wrote: On my production servers error_reporting is set to E_ALL, display_errors is off and log_errors is on. I get an email from each server containing the contents of the error log from the previous day and my first task each day is to go

Re: [PHP] string as file

2007-08-10 Thread Jim Lucas
Rick Pasotto wrote: On Thu, Aug 09, 2007 at 02:39:51PM -0700, Jim Lucas wrote: Rick Pasotto wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = EOT This is an example of $var1 and

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

2007-08-10 Thread Daniel Brown
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? Really? Okay, Stut, let's not make Friday the official Flame Dan Brown holiday this week. I vote that it should be

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 11:28 -0400, Daniel Brown wrote: On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: I never disable E_NOTICE or even E_STRICT. I'm humbled in the presence of greatness. Nothing great about it. It's work as usual. When you're developing the code you see any

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

2007-08-10 Thread Daniel Brown
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: I never disable E_NOTICE or even E_STRICT. I'm humbled in the presence of greatness. I do my best to ensure that there are no notices or warnings, but I still disable E_NOTICE in general, because I know that it's not going to end the

Re: [PHP] string as file

2007-08-10 Thread Stut
Rick Pasotto wrote: On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto [EMAIL PROTECTED] wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 10:43 -0400, Jason Pruim wrote: Hi All :) Hope you're not getting sick of my questions as of late, but I keep getting closer and closer and thank you all who have helped me in the past! The only reason I can see this far is I am standing on the shoulders of

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

2007-08-10 Thread Richard Davey
Hi Robert, Friday, August 10, 2007, 4:13:02 PM, you wrote: On Fri, 2007-08-10 at 11:00 -0400, Daniel Brown wrote: Remember to clean that input before you sit down at the table, there, boy! It's safe to ignore the `Undefined index` notices. That will just appear if a variable is

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

2007-08-10 Thread Daniel Brown
On 8/10/07, Stut [EMAIL PROTECTED] wrote: Bad Dan *slap*. Ignoring notices may be detrimental to your health and/or well-being. Better to initialise it with a default if it has not been set in the request. if (!isset($_GET['order'])) $_GET['order'] = 'Last'; Ouch! So you're all

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

2007-08-10 Thread Daniel Brown
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-10 at 11:00 -0400, Daniel Brown wrote: Remember to clean that input before you sit down at the table, there, boy! It's safe to ignore the `Undefined index` notices. That will just appear if a variable is

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto [EMAIL PROTECTED] wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge.

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 11:00 -0400, Daniel Brown wrote: Remember to clean that input before you sit down at the table, there, boy! 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

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

2007-08-10 Thread Daniel Brown
On 8/10/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi All :) Hope you're not getting sick of my questions as of late, but I keep getting closer and closer and thank you all who have helped me in the past! The only reason I can see this far is I am standing on the shoulders of giants don't know

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

2007-08-10 Thread Paul Novitski
At 8/10/2007 07: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 is being

[PHP] Friday morning brain farts....

2007-08-10 Thread Jason Pruim
Hi All :) Hope you're not getting sick of my questions as of late, but I keep getting closer and closer and thank you all who have helped me in the past! The only reason I can see this far is I am standing on the shoulders of giants don't know who said that but I like it :) Anyway...

Re: [PHP] function - action

2007-08-10 Thread Martin Alterisio
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 functions. Is there a chance that PHP can use the word

Re: [PHP] Running a server process

2007-08-10 Thread Tijnema
On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were executing this php function around the same time and the processing overlapped. Is there anyway to make an executable

Re: [PHP] Running a server process

2007-08-10 Thread Tijnema
On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were executing this php function around the same time and the

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Tijnema
On 8/10/07, Kevin Murphy [EMAIL PROTECTED] 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? -- Kevin Murphy Normally not, unless you add an extra GET item to the META tag, for

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Richard Davey
Hi Kevin, Friday, August 10, 2007, 7:26:30 PM, you 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 dynamically generate the meta tag, so it refreshes to your page

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-10 Thread Tijnema
On 8/10/07, John Mendenhall [EMAIL PROTECTED] wrote: I sent this to the php-install list. However, with no response, I knew there would be more eyes looking at it here. Hopefully, someone can send me a pointer on how to resolve this issue. It might be the root of other problems I am

Re: [PHP] Running a server process

2007-08-10 Thread Tijnema
On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were

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

2007-08-10 Thread Michael Preslar
Here's what I use to watch my apache logs.. Looks for php errors, notices, and warnings, seg faults, etc.. Grabs the stats for the prior hour and spits them to stdout.. Pipe that to mutt or sendmail and youve got an hourly cron.. Check the command line options for other good stuff.. Only catch:

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

2007-08-10 Thread Stephen
--- Tony Di Croce [EMAIL PROTECTED] 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? You are reinventing the wheel here. Why?

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 11:18 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Bad Dan *slap*. Ignoring notices may be detrimental to your health and/or well-being. Better to initialise it with a default if it has not been set in the request. if

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Tijnema
On 8/10/07, Stut [EMAIL PROTECTED] wrote: 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? Add a GET variable to the URL you put in the meta tag to tell you it

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 19:49 +0200, Tijnema wrote: On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: I always forget about file_get_contents() because its counterpart file_put_contents() for some ungodly reason didn't appear until PHP 5. Forget PHP4 and life becomes a lot easier :)

[PHP] multiple data to insert to database

2007-08-10 Thread Alain Roger
Hi, 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 ? thanks a lot, -- Alain Windows XP SP2

[PHP] manual vs. meta refresh

2007-08-10 Thread Kevin Murphy
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? -- Kevin Murphy Webmaster: Information and Marketing Services Western Nevada College www.wnc.edu 775-445-3326 P.S. Please note that my

Re: [PHP] function - action

2007-08-10 Thread Martin Alterisio
2007/8/3, Ken Tozier [EMAIL PROTECTED]: On Aug 3, 2007, at 9:39 AM, Ken Tozier wrote: On Aug 3, 2007, at 2:38 AM, Ralph Kutschera wrote: Hallo! I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as

Re: [PHP] Running a server process

2007-08-10 Thread Tijnema
On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Tijnema wrote: On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering

[PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-10 Thread John Mendenhall
I sent this to the php-install list. However, with no response, I knew there would be more eyes looking at it here. Hopefully, someone can send me a pointer on how to resolve this issue. It might be the root of other problems I am having. Per my previous message, I have recently upgraded from

Re: [PHP] Running a server process

2007-08-10 Thread Daniel Brown
On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were executing this php function around the same time and the processing overlapped. Is there anyway to make an executable

Re: [PHP] multiple data to insert to database

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 15:36 +0200, Alain Roger wrote: Hi, 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 ? thanks a lot, Let's

Re: [PHP] Hosting cost

2007-08-10 Thread Daniel Brown
On 8/10/07, Richard Davey [EMAIL PROTECTED] wrote: Hi Richard, Friday, August 10, 2007, 11:10:21 AM, you wrote: This is off topic so feel free to reply off list. My question is how much is it reasonable to charge for the following: 1. Building a very small website (you can see it here:

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Thu, Aug 09, 2007 at 02:39:51PM -0700, Jim Lucas wrote: Rick Pasotto wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = EOT This is an example of $var1 and $var2. EOT; and

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto [EMAIL PROTECTED] wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = EOT This is

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

2007-08-10 Thread Zoltán Németh
2007. 08. 10, péntek keltezéssel 15.04-kor Alain Roger ezt írta: Hi, 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

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

2007-08-10 Thread Alain Roger
i change the UTF-8 by windows-1250 and it works well. But what will happen if after i use UTF-8 in the rest of this PHP page ? everytime some characters will not be correctly displayed... moreover my database is in UTF-8. So i must expect some issue during copy data from CSv to database, no ?

[PHP] Import XLS file with UTF-8

2007-08-10 Thread Alain Roger
Hi, 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 correctly. in PHP page include meta

Re: [PHP] preg_match_all to match img tags

2007-08-10 Thread Ólafur Waage
Guys i would like to thank you for the help. Jan i used some of your code to help me get this. There was one issue with yours, preg_match_all while in a foreach will only match the last match and output that as the $m array. Here is the code, i hope someone else can use it. Its a working code in

Re: [PHP] Running a server process

2007-08-10 Thread Richard Heyes
That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were executing this php function around the same time and the processing overlapped. Is there anyway to make an executable run as a service, I am guessing at the terminology that I

Re: [PHP] help with ming library

2007-08-10 Thread Stut
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() Have you restarted your web server (Apache, IIS,

Re: [PHP] Running a server process

2007-08-10 Thread Tijnema
On 8/10/07, Nathan Wallis [EMAIL PROTECTED] wrote: Hi there, 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

[PHP] Hosting cost

2007-08-10 Thread Richard Heyes
This is off topic so feel free to reply off list. My question is how much is it reasonable to charge for the following: 1. Building a very small website (you can see it here: http://www.cleardebtadvice.co.uk) 2. Hosting it for two years 3. Providing email accounts as need be 4. Probably a

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

2007-08-10 Thread Zoltán Németh
2007. 08. 10, péntek keltezéssel 02.31-kor Jan Reiter ezt írta: Hi! Thank you for your response! The only intention of my code was to investigate the (back then) unexpected behavior of the if statement. With $var['test'] set to blah this expression should be false ($var['test'] ==

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

2007-08-10 Thread Stut
Robert Cummings wrote: On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each server containing the contents of the error log from the previous day and my first task each day is to go through that and track down any issues

[PHP] phpinfo does not display openssl module

2007-08-10 Thread Alain Roger
Hi i've reinstalled the complete server and i use apache module to load openSSL. However, if i uncomment in PHP.INI the extension=php_openssl.dll, it still does not appear on screen when i use phpinfo() function. i've tried also to uncomment some other extension and they also are not displayed

Re: [PHP] Hosting cost

2007-08-10 Thread Richard Davey
Hi Richard, Friday, August 10, 2007, 11:10:21 AM, you wrote: This is off topic so feel free to reply off list. My question is how much is it reasonable to charge for the following: 1. Building a very small website (you can see it here: http://www.cleardebtadvice.co.uk) 2. Hosting it

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

2007-08-10 Thread Stut
Daniel Brown wrote: On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: I never disable E_NOTICE or even E_STRICT. I'm humbled in the presence of greatness. I do my best to ensure that there are no notices or warnings, but I still disable E_NOTICE in general, because I know that

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

2007-08-10 Thread Stut
Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: Bad Dan *slap*. Ignoring notices may be detrimental to your health and/or well-being. Better to initialise it with a default if it has not been set in the request. if (!isset($_GET['order'])) $_GET['order'] = 'Last'; Ouch!

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

2007-08-10 Thread Stut
Daniel Brown wrote: On 8/10/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi All :) Hope you're not getting sick of my questions as of late, but I keep getting closer and closer and thank you all who have helped me in the past! The only reason I can see this far is I am standing on the shoulders of

[PHP] php 4.4.7 configure run causes syntax errors

2007-08-10 Thread John Mendenhall
I sent this to the php-install list. However, with no response, I knew there would be more eyes looking at it here. Hopefully, someone can send me a pointer on how to resolve this issue, if it is one. I recently upgraded our php from 4.4.0 to 4.4.7. When I run configure from the command line

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Stut
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? Add a GET variable to the URL you put in the meta tag to tell you it came from the meta tag. P.S. Please note that

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

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 19:21 +0200, Tijnema wrote: On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut [EMAIL PROTECTED] wrote: I get an email from each server containing the contents of the error log from

Re: [PHP] string as file

2007-08-10 Thread Stut
Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto [EMAIL PROTECTED] wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out =

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

2007-08-10 Thread Stut
Alain Roger wrote: Hi, 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 correctly. in PHP page include meta

[PHP] help with ming library

2007-08-10 Thread Diana
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() -- PHP General Mailing List (http://www.php.net/) To

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

2007-08-10 Thread Børge Holen
On Friday 10 August 2007 18:29, Stephen wrote: --- Tony Di Croce [EMAIL PROTECTED] 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] Running a server process

2007-08-10 Thread Nathan Wallis
Hi there, 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 details in place, so I am using the php function

Re: [PHP] Re: Thoughts about music library

2007-08-10 Thread Børge Holen
On Wednesday 08 August 2007 03:16, Richard Lynch wrote: On Tue, August 7, 2007 3:20 am, Colin Guthrie wrote: Børge Holen wrote: On Monday 06 August 2007 23:39, Colin Guthrie wrote: Børge Holen wrote: I'm building an web interface for my music collection. I'd have a quick look at

Re: [PHP] Running a server process

2007-08-10 Thread Stut
Tijnema wrote: On 8/10/07, Richard Heyes [EMAIL PROTECTED] wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were executing this php function around the same time and the processing overlapped. Is there anyway to make an

[PHP] simplexml_load_file()

2007-08-10 Thread Panquekas
Hello, I'm doing an script which it'll read the xml values, but I have one problem doing that. On the xml there is a tag that has an hífen in the middle, so when I do echo $xml-comment-id it gives me an error. How can I make this work? Thanks in advantage.

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-10 Thread John Mendenhall
On 8/10/07, John Mendenhall [EMAIL PROTECTED] wrote: Per my previous message, I have recently upgraded from php 4.4.0, to php 4.4.7. My configure options are as follows: snip I would like to know what I am doing wrong here. When I turn off pear, this does not happen. When I try

[PHP] Re: string as file

2007-08-10 Thread Dan
Well, I have no idea what the Phython StringIO method does. Could someone explain in PHP terms maybe? Google gave me this explaining stringIO http://docs.python.org/lib/module-StringIO.html . It didnt' make much sense still after reading it though. - Dan Rick Pasotto [EMAIL PROTECTED]

Re: [PHP] Code Igniter for 'novices' ?

2007-08-10 Thread Dan
Um yeah. The PHPpatterns.com site hasn't been updated for years. Plus I'm unable to find any actual content on anything there. I looked through the indexes but didn't find anything. Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] steve, though i havent used code

RE: [PHP] Open Source Job Wanted system

2007-08-10 Thread Joey
Hey Nathan, Actually what I was looking for was an application so that I could have a service like craiglist. Joey From: Nathan Nobbe [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 3:46 PM To: Joey Cc: PHP Subject: Re: [PHP] Open Source Job Wanted system craigslist is out

Re: [PHP] Open Source Job Wanted system

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 1:54 pm, Joey wrote: Has anybody had any experience with any open source Job posting systems out there? Check this out: http://jobcoin.com/ I haven't had a chance to install it and play with it yet, but it sure seems reasonable in its approach. -- Some people have a

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Richard Lynch
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 the META tag's URL such as: meta http-equiv=refresh

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

2007-08-10 Thread Dan
I have a suspicion that this is something like. 1. User enters info 2. Checks if info is indeed valid |_ If not then ask the user for correct info 3. Done process the info Is this right? You can do this buy having PHP post to itself, it checks if the info is valid and if it isn't it

Re: [PHP] Re: PHP on .NET DLR

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 12:12 pm, Sancar Saran wrote: Once upon a time I try to ignite PHP community to develop some kind of client side php, which failed, because lack of interest (or because of javascript). In open source world everthing boosted from personal interest. Wez did a PHPScript

Re: [PHP] and newlines under windows

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 11:48 am, Faither wrote: I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a \n-ewline. . . . Is it even possible under windows? ^^ In Linux, the newline is \n, but... Under Windows, the newline isn't \n, it's \r\n In the

  1   2   >