[PHP] Re: How to Separate PHP Errors to a file different than Apache Errors

2006-12-23 Thread Fahad Pervaiz
First of all php errors are not logged in apache error log. PHP errors are logged seperately. if you want to custom define error log file for your apache errors you can use virtualhost directive in apache httpd config file If you do not specify an ErrorLog directive within a container, error me

Re: [PHP] Clarification: Jump to a record/PHP paging...

2006-12-23 Thread Sumeet
T.J. Mahaffey wrote: > > My problem is that when a user performs a search, I need to display the > page on which their search string is found, but still display ALL > records within the paging of the entire database. > I've since discovered the core of what I need to do: > i would suggest u run t

Re: [PHP] How to Separate PHP Errors to a file different than Apache Errors

2006-12-23 Thread Sumeet
dear sir, > But Apache php errors generated by scripts served up by Apache as web pages > all show up in error_log. > > I'd like these Apache errors to go into php_errors so I can keep my "Apache: > file not found type errors" and "PHP Syntax" errors separate. when u run a script, apache fir

Re: [PHP] New User Sign up Notification

2006-12-23 Thread Ryan Fielding
Casey Chu wrote: I still do not understand. Isn't that what your script already does? On 12/23/06, Casey Chu <[EMAIL PROTECTED]> wrote: What do you mean by "now"? On 12/22/06, JMCS Niagara (Jeff) <[EMAIL PROTECTED]> wrote: > hi there. I'm looking to create a new user signup. So when someone s

Re: [PHP] New User Sign up Notification

2006-12-23 Thread Casey Chu
I still do not understand. Isn't that what your script already does? On 12/23/06, Casey Chu <[EMAIL PROTECTED]> wrote: What do you mean by "now"? On 12/22/06, JMCS Niagara (Jeff) <[EMAIL PROTECTED]> wrote: > hi there. I'm looking to create a new user signup. So when someone signs up, it emails

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Jon Anderson
Casey Chu wrote: Yeah, try testing. Maybe something like this: Execute"; if ($_POST['code']) { echo ""; $time_start = microtime_float(); eval($_POST['code']); $time_end = microtime_float(); echo "Loading took: ". $time_end - $time_start. ''; } echo "$form"; // Note: This script is extrem

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Jürgen Wind
Casey Chu wrote: > > Yeah, try testing. Maybe something like this: > $form = " name='code'> type='submit'>Execute"; > if ($_POST['code']) { > echo ""; >$time_start = microtime_float(); >eval($_POST['code']); >$time_end = microtime_float(); > echo "Loading took: ". $time_end -

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Casey Chu
Yeah, try testing. Maybe something like this: Execute"; if ($_POST['code']) { echo ""; $time_start = microtime_float(); eval($_POST['code']); $time_end = microtime_float(); echo "Loading took: ". $time_end - $time_start. ''; } echo "$form"; // Note: This script is extremely dangerous and

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Paul Novitski
At 12/23/2006 10:33 AM, Jean-Christophe Roux wrote: Hello, I have this php script of 3,500 lines with a big switch that is such that on each pass maybe 300 lines of codes are executed at most. The current speed of the file is ok. I like to keep the file like that because at each pass there is a

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Satyam
I would assume it does, since parsing each instruction and calling the internal functions to execute each echo should take time. I would use heredoc, which would allow you to make a single call and still keep the formatting of the string. You might also be interested in my own plugin to the

Re: [PHP] New User Sign up Notification

2006-12-23 Thread Casey Chu
What do you mean by "now"? On 12/22/06, JMCS Niagara (Jeff) <[EMAIL PROTECTED]> wrote: hi there. I'm looking to create a new user signup. So when someone signs up, it emails admin the Username, Real Name, and IP address. I have this code called newusersignupnotification.php ". "Username: ".$_

[PHP] Script's length, echo, and execution speed

2006-12-23 Thread Jean-Christophe Roux
Hello, I have this php script of 3,500 lines with a big switch that is such that on each pass maybe 300 lines of codes are executed at most. The current speed of the file is ok. I like to keep the file like that because at each pass there is a check on the whole script and it fails if there is

Re: [PHP] Clarification: Jump to a record/PHP paging...

2006-12-23 Thread tedd
At 11:24 AM -0500 12/23/06, Robert Cummings wrote: On Sat, 2006-12-23 at 11:05 -0500, tedd wrote: In my opinion, wrong thinking. You ask how many records appear before and after a search string result. That's like asking "What's the difference between an orange?" -- it doesn't make sense.

Re: [PHP] Clarification: Jump to a record/PHP paging...

2006-12-23 Thread Robert Cummings
On Sat, 2006-12-23 at 11:05 -0500, tedd wrote: > > In my opinion, wrong thinking. You ask how many records appear before > and after a search string result. That's like asking "What's the > difference between an orange?" -- it doesn't make sense. It makes perfect sense. He has an order to his un

Re: [PHP] Clarification: Jump to a record/PHP paging...

2006-12-23 Thread T.J. Mahaffey
I agree, tedd. And your points about what makes sense are taken. That being said, the end point of all this is for a search to simply act like a real person turning the pages of a phone book. All I need to do is take the user to a desired point within the records in the database. This is by r

Re: [PHP] Clarification: Jump to a record/PHP paging...

2006-12-23 Thread tedd
At 9:03 AM -0600 12/23/06, T.J. Mahaffey wrote: I see now that I did not explain myself adequately. I think "jump to record" was the wrong way to put it. So, here goes. I already have excellent paging functionality working well, based on a nice tutorial at PHPFreaks. My problem is that when a

[PHP] Clarification: Jump to a record/PHP paging...

2006-12-23 Thread T.J. Mahaffey
I see now that I did not explain myself adequately. I think "jump to record" was the wrong way to put it. So, here goes. I already have excellent paging functionality working well, based on a nice tutorial at PHPFreaks. My problem is that when a user performs a search, I need to display the

Re: [PHP] Apache 2.2 + PHP5.2 + php_oci8.dll

2006-12-23 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-23 12:21:35 +0800: > I saw numerous posting on this type of posting and no one seems to have a > consistent solution to it. > > Lately, I am quite disapointed with the pain of going thru this > configuration and testing. > I need to access the oracle 8i server db usin

RE: [PHP] How to Separate PHP Errors to a file different than Apache Errors

2006-12-23 Thread Shanon Swafford
> >-Original Message- >From: chris smith [mailto:[EMAIL PROTECTED] >Sent: Friday, December 22, 2006 11:29 PM >To: Shanon Swafford >Cc: php-general@lists.php.net >Subject: Re: [PHP] How to Separate PHP Errors to a file different than Apache Errors > > >On 12/23/06, Shanon Swafford <[EMAIL P