php-general Digest 16 Jul 2008 07:23:32 -0000 Issue 5571

2008-07-16 Thread php-general-digest-help
php-general Digest 16 Jul 2008 07:23:32 - Issue 5571 Topics (messages 276878 through 276901): Re: Advice on a radar chart 276878 by: Richard Heyes 276880 by: tedd 276881 by: Richard Heyes Re: Math Weirdness 276879 by: tedd is there a problem with php script

php-general Digest 16 Jul 2008 19:26:05 -0000 Issue 5572

2008-07-16 Thread php-general-digest-help
php-general Digest 16 Jul 2008 19:26:05 - Issue 5572 Topics (messages 276902 through 276930): Re: How can i get the location of an exit()/die() from within register_shutdown_function()? 276902 by: Chris 276904 by: Mathijs van Veluw 276908 by: Thijs Lensselink

[PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and line-number from where the exit/die originated? Thx

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Chris
Mathijs van Veluw wrote: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and line-number from where

Re: [PHP] Downloading a file

2008-07-16 Thread Tom Chubb
On 16/07/2008, Robbert van Andel [EMAIL PROTECTED] wrote: I am having trouble getting a file to download to work in Internet Explorer. The site works fine in FireFox. The page retrieves the contents of a file from a database and outputs the following ?PHP header(Content-type:

Re: [PHP] How can i get the location of an exit()/die() from withinregister_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Chris wrote: Mathijs van Veluw wrote: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and line-number

RE: [PHP] Changing PHP.ini

2008-07-16 Thread Jay Blanchard
[snip] By visiting php.info in a web browser I have confirmed the location of my php.ini file as /usr/local/php5/lib/php.ini. I open that file and edit the line: ; - display_errors = Off and change it to display_errors = On I then retstart Appache and visit php.info which still reports

[PHP] Re: Byte range support

2008-07-16 Thread Manuel Vacelet
On Tue, Jul 15, 2008 at 3:53 PM, Manuel Vacelet [EMAIL PROTECTED] wrote: Hello all, How can I make my php apps aware of byte range HTTP request ? I have a script that output data to user if she's granted to do so. But as of today, if download fails, she must restart the download from the

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Thijs Lensselink
Quoting Mathijs van Veluw [EMAIL PROTECTED]: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread tedd
At 9:23 AM +0200 7/16/08, Mathijs van Veluw wrote: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and

RE: [PHP] Downloading a file

2008-07-16 Thread Robbert van Andel
Thanks, that did the trick. I'd done a google search before but didn't come up with any answers but hadn't added headers to the search phrase. In case anyone is interested in the solution, my script included session_start and I found that by adding session_cache_limiter(none) before

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 3:23 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Eric Butera wrote: On Wed, Jul 16, 2008 at 3:23 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 9:41 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Well i don't use 'OR die()' stuff. But exceptions. For some reason from within the register_shutdown_function() function i get an empty error message. This only occurs, as far as i know, when there is an exit

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Eric Butera wrote: On Wed, Jul 16, 2008 at 9:41 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Well i don't use 'OR die()' stuff. But exceptions. For some reason from within the register_shutdown_function() function i get an empty error message. This only occurs, as far as i know, when there

Re: [PHP] Freelance PHP development in India

2008-07-16 Thread Ryan S
No apologies necessary, good luck! Cheers! R - Original Message From: Denis L. Menezes [EMAIL PROTECTED] To: Ryan S [EMAIL PROTECTED]; Wolf [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Sent: Monday, July 14, 2008 3:31:43 PM Subject: Re: [PHP] Freelance PHP development

Re: [PHP] Math Weirdness

2008-07-16 Thread Shawn McKenzie
Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-07-15 at 12:37 -0400, tedd wrote: At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: ¼ Cheers, Rob. Yeah and here's ƒ Like or not, that's all there is to it. Weird... you're client

Re: [PHP] Math Weirdness

2008-07-16 Thread Jason Pruim
On Jul 16, 2008, at 11:39 AM, Shawn McKenzie wrote: Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-07-15 at 12:37 -0400, tedd wrote: At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: ¼ Cheers, Rob. Yeah and here's ƒ Like or not, that's

[PHP] Re: Freelance PHP development in India

2008-07-16 Thread Manuel Lemos
Hello, on 07/14/2008 01:20 AM Denis L. Menezes said the following: Dear friends. I am looking for freelance web developers in India. Can contact me? As Thiago mentioned, there is a directory of PHP professionals available for taking PHP jobs that is sorted by country. Here you may find

RE: [PHP] Math Weirdness

2008-07-16 Thread Jay Blanchard
[snip] And then put it in Jay's pocket since we know he's skimming! If you're lucky maybe he'll cut you in for not telling the boss :P [/snip] Allegedly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] implementing a website search feature using php

2008-07-16 Thread Sudhakar
i want to implement a feature where a user searches with a keyword and search results are displayed according to the keyword or phrase entered by the user. following are the steps i want to follow. please advice if i am missing out any steps or i can add any step. 1. read the keyword entered by

Re: [PHP] Math Weirdness

2008-07-16 Thread Daniel Brown
On Tue, Jul 15, 2008 at 3:50 PM, tedd [EMAIL PROTECTED] wrote: Well, someone's client took infinity and turned it into an integral. tdd Yeah, but they stole your 'e' to make up for it. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo.

Re: [PHP] implementing a website search feature using php

2008-07-16 Thread Robert Cummings
On Wed, 2008-07-16 at 22:50 +0530, Sudhakar wrote: i want to implement a feature where a user searches with a keyword and search results are displayed according to the keyword or phrase entered by the user. following are the steps i want to follow. please advice if i am missing out any

[PHP] Copying Multiple Files from One Server to Another Server

2008-07-16 Thread Wei, Alice J.
Hi, I am running into a problem here with handling the files. My client wants me to copy all the files to one server over to another server. Currently, I use a very slow way that has to handle my code by writing in and out files manually as in the following: $lines3 =

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread tedd
At 9:15 AM -0400 7/16/08, Eric Butera wrote: As an aside, if I were to see some jibberish about a query and line numbers when I click a link I'd leave that site. (And for the archives) It is a security vuln to show full file paths to an end user. If someone is tampering with your system we

Re: [PHP] implementing a website search feature using php

2008-07-16 Thread tedd
At 10:50 PM +0530 7/16/08, Sudhakar wrote: i want to implement a feature where a user searches with a keyword and search results are displayed according to the keyword -snip- It sounds like you want a search for a site -- if so, see this: http://sperling.com/examples/search/ It's a lot less

Re: [PHP] implementing a website search feature using php

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 1:20 PM, Sudhakar [EMAIL PROTECTED] wrote: i want to implement a feature where a user searches with a keyword and search results are displayed according to the keyword or phrase entered by the user. following are the steps i want to follow. please advice if i am

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-16 Thread Daniel Brown
On Tue, Jul 15, 2008 at 5:43 PM, Stut [EMAIL PROTECTED] wrote: Code please, we're not mind readers! I sensed you would say that, Stuart. ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 1:53 PM, tedd [EMAIL PROTECTED] wrote: At 9:15 AM -0400 7/16/08, Eric Butera wrote: As an aside, if I were to see some jibberish about a query and line numbers when I click a link I'd leave that site. (And for the archives) It is a security vuln to show full file

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread tedd
At 2:18 PM -0400 7/16/08, Eric Butera wrote: On Wed, Jul 16, 2008 at 1:53 PM, tedd [EMAIL PROTECTED] wrote: At 9:15 AM -0400 7/16/08, Eric Butera wrote: As an aside, if I were to see some jibberish about a query and line numbers when I click a link I'd leave that site. (And for the

[PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
Hi, I have a snippet of code here: shell_exec(tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data); $file1=http:/www.mysite.com/test/$id/data.tar; $file2=http://www.mysite2.com/test/$id/.tar;; copy($file1,$file2); I got the following error in the access log of the server:

Re: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
On Wed, 2008-07-16 at 15:58 -0400, Wei, Alice J. wrote: Hi, I have a snippet of code here: shell_exec(tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data); $file1=http:/www.mysite.com/test/$id/data.tar; $file2=http://www.mysite2.com/test/$id/.tar;;

[PHP] Child PID exit signal Illegal instruction (4)

2008-07-16 Thread Schiz0
Hey, I'm running PHP 5.2.6 on FreeBSD 7.0-RELEASE-p2, using apache 2.2.9. I have a PHP script that is valid code (I tested it on another server and it worked fine). The problem is, it keeps killing the httpd processes and outputting nothing. I get this message in my apache error logs each time

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
Hi, I have a snippet of code here: shell_exec(tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data); $file1=http:/www.mysite.com/test/$id/data.tar; $file2=http://www.mysite2.com/test/$id/.tar;; copy($file1,$file2); I got the following error in the access log of the

Re: [PHP] Copy Function Errors

2008-07-16 Thread Daniel Brown
On Wed, Jul 16, 2008 at 4:45 PM, Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, I have a snippet of code here: shell_exec(tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data); $file1=http:/www.mysite.com/test/$id/data.tar; $file2=http://www.mysite2.com/test/$id/.tar;;

Re: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
On Wed, 2008-07-16 at 16:53 -0400, Daniel Brown wrote: On Wed, Jul 16, 2008 at 4:45 PM, Wei, Alice J. [EMAIL PROTECTED] wrote: Is there something I have missed here? Are you considered a special student at the University? Now, now, no need to be mean. We were all noobs at one time or

RE: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
On Wed, 2008-07-16 at 16:45 -0400, Wei, Alice J. wrote: Hi, I have a snippet of code here: shell_exec(tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data); $file1=http:/www.mysite.com/test/$id/data.tar; $file2=http://www.mysite2.com/test/$id/.tar;;

RE: [PHP] Copy Function Errors

2008-07-16 Thread Boyd, Todd M.
-Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 3:46 PM To: Robert Cummings Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors ---8--- snip Is there something I could do here to allow my file be copied to the

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-16 Thread Stut
On 16 Jul 2008, at 19:18, Daniel Brown wrote: On Tue, Jul 15, 2008 at 5:43 PM, Stut [EMAIL PROTECTED] wrote: Code please, we're not mind readers! I sensed you would say that, Stuart. ;-P Can you sense what I'm thinking right now? BTW, if anyone is looking for a PHP5/MySQL dev job in

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-16 Thread Daniel Brown
On Wed, Jul 16, 2008 at 5:28 PM, Stut [EMAIL PROTECTED] wrote: Oh, and you'd be working for me so bear that in mind ;) *crickets* (And not the games.) -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated

RE: [PHP] Copy Function Errors

2008-07-16 Thread bruce
Hi Alice... I just caught/saw this thread. I'm asuming you haven't found/solved what you're trying to do. So, What exactly are you trying to accomplish? What OS are you running on both the client/server machine? Are you trying to copy from a directory on one box, to a directory on another box?

[PHP] Corrupted ZIP files (downloaded via a php script) : Internext Explorer 7

2008-07-16 Thread robert mena
Hi, I have a set of files stored in a directory and I need to serve those via a php script (in order to protect, control access etc). The problem is that zip files (exe also) get corrupted when I try from IE7. I've read the posts from this list and google etc with no idea of how to solve it.

[PHP] Soap Call Error

2008-07-16 Thread VamVan
Hello Guys, I have been getting a wierd soap exception lately [faultstring] = looks like we got no XML document [faultcode] = Client [faultcodens] = http://schemas.xmlsoap.org/soap/envelope/ What does that mean? The call gets properly called and it does what it needs to do, but the

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
Hi Alice... I just caught/saw this thread. I'm asuming you haven't found/solved what you're trying to do. So, What exactly are you trying to accomplish? What OS are you running on both the client/server machine? Are you trying to copy from a directory on one box, to a directory on another