Re: [PHP] Exposing PHP/errors on production vs. dev

2008-08-02 Thread Richard Heyes
Personally, and I know I'm not alone here... I keep E_NOTICE enabled Then you're both mad. Users really shouldn't see any error regardless, so error reporting IMO should be off entirely. A blank screen that you can blame on a variety of things is far preferable to users knowing that your

Re: [PHP] Exposing PHP/errors on production vs. dev

2008-08-02 Thread mike
On 8/2/08, Richard Heyes [EMAIL PROTECTED] wrote: Personally, and I know I'm not alone here... I keep E_NOTICE enabled Then you're both mad. Users really shouldn't see any error regardless, so error reporting IMO should be off entirely. A blank screen that you can blame on a variety of

Re: [PHP] Exposing PHP/errors on production vs. dev

2008-08-02 Thread Richard Heyes
Then you're both mad. Users really shouldn't see any error regardless, so error reporting IMO should be off entirely. A blank screen that you can blame on a variety of things is far preferable to users knowing that your website is broken. In production I keep error_reporting set to 0. There

[PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread mike
I have this: form method=PUT action=work.php File: input type=file / input type=submit value=Submit / /form Looking in my webserver logs, it changes that to a GET. Ideas anyone? The receiver is PHP and I am pretty sure I know how to handle it once it is properly PUT-ted. (I run nginx for the

Re: [PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread n3or
enctype=multipart/form-data eventually?! mike schrieb: I have this: form method=PUT action=work.php File: input type=file / input type=submit value=Submit / /form Looking in my webserver logs, it changes that to a GET. Ideas anyone? The receiver is PHP and I am pretty sure I know how to

[PHP] Referencing files in cron jobs versus format when running from URL

2008-08-02 Thread ioannes
I have a file that works from the URL like: www.mysite.com/cronjob.php and this file includes references to uploaded files like this: /home/mysite/public_html/dir/subdir/filename.xml and this is used in functions like filemtime(). The uploaded files are found on the server using the above

[PHP] E-Shop system

2008-08-02 Thread Alain Roger
Hi, i'm currently analyzing an e-shop system. i understand how to display products and so on, however i still have some question marks on the following topics: 1. what is the best way for showing product image ? - to store them in DB or onto filesystem as simple image files ? - each product

[PHP] Returning response includes HTML form data

2008-08-02 Thread Edward Diener
I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP file appended to it. Naturally I do not want the form to be included

[PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Maciek Sokolewicz
Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP file appended to it. Naturally I do not want

[PHP] Re: E-Shop system

2008-08-02 Thread Maciek Sokolewicz
Alain Roger wrote: Hi, i'm currently analyzing an e-shop system. i understand how to display products and so on, however i still have some question marks on the following topics: 1. what is the best way for showing product image ? - to store them in DB or onto filesystem as simple image files

Re: [PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread Richard Heyes
form method=PUT action=work.php File: input type=file / input type=submit value=Submit / /form Looking in my webserver logs, it changes that to a GET. You could use Fiddler to verify what type of requests your browser is making: http://www.fiddlertool.com If it is indeed the browser,

Re: [PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread Benjamin Hawkes-Lewis
mike wrote: I have this: form method=PUT action=work.php File: input type=file / input type=submit value=Submit / /form Looking in my webserver logs, it changes that to a GET. Ideas anyone? The receiver is PHP and I am pretty sure I know how to handle it once it is properly PUT-ted. (I run

Re: [PHP] remembering where the user is on the page??

2008-08-02 Thread brian
Jim Lucas wrote: Rod Clay wrote: I'm creating a website in php and I've noticed that many websites seem to remember where the user is on the page, You are probably referring to a name=/a tag placement. If in your web page you place an anchor tag like this: a name=SomeName/a Then in the

[PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Maciek Sokolewicz wrote: Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP file appended to it.

Re: [PHP] Referencing files in cron jobs versus format when running from URL

2008-08-02 Thread brian
ioannes wrote: I have a file that works from the URL like: www.mysite.com/cronjob.php and this file includes references to uploaded files like this: /home/mysite/public_html/dir/subdir/filename.xml and this is used in functions like filemtime(). The uploaded files are found on the server

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread brian
Edward Diener wrote: Maciek Sokolewicz wrote: Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP

Re: [PHP] Exposing PHP/errors on production vs. dev

2008-08-02 Thread Robert Cummings
On Sat, 2008-08-02 at 09:15 +0100, Richard Heyes wrote: Personally, and I know I'm not alone here... I keep E_NOTICE enabled Then you're both mad. Users really shouldn't see any error regardless, so error reporting IMO should be off entirely. A blank screen that you can blame on a variety

Re: [PHP] Exposing PHP/errors on production vs. dev

2008-08-02 Thread Robert Cummings
On Sat, 2008-08-02 at 10:32 +0100, Richard Heyes wrote: Then you're both mad. Users really shouldn't see any error regardless, so error reporting IMO should be off entirely. A blank screen that you can blame on a variety of things is far preferable to users knowing that your website is

[PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Al
Here' the snippet I use on all my code files. Default is create and add to error log file on the current dir. I generally echo $error_reporting to remind myself that the error reporting is active. if(true) // TRUE for debug only { ini_set(display_errors, on); //use off if users

[PHP] Re: remembering where the user is on the page??

2008-08-02 Thread Al
I've never tried it for this type of application; but, html Map may be a neat approach since you won't need JS or any special client-side code, just plain old html. Rod Clay wrote: I'm creating a website in php and I've noticed that many websites seem to remember where the user is on the page,

Re: [PHP] remembering where the user is on the page??

2008-08-02 Thread Benjamin Hawkes-Lewis
brian wrote: A better way to do that is to give some block element--a header, a div, etc.--an ID. That works exactly the same as a name= It should work the same. But it doesn't in older user agents or with older assistive technology:

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Daniel Brown
On Sat, Aug 2, 2008 at 12:52 PM, Al [EMAIL PROTECTED] wrote: Here' the snippet I use on all my code files. Default is create and add to error log file on the current dir. I generally echo $error_reporting to remind myself that the error reporting is active. if(true) // TRUE for debug only

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Robert Cummings
On Sat, 2008-08-02 at 13:34 -0400, Daniel Brown wrote: On Sat, Aug 2, 2008 at 12:52 PM, Al [EMAIL PROTECTED] wrote: Here' the snippet I use on all my code files. Default is create and add to error log file on the current dir. I generally echo $error_reporting to remind myself that the

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Daniel Brown
On Sat, Aug 2, 2008 at 1:40 PM, Robert Cummings [EMAIL PROTECTED] wrote: Hmmpf! Oh, God, it's tasted human blood! Cut the crap, Rob. Don't even try to act innocent in front of the list, denying that you threw that chair through my window and punched me in the throat all because I

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Robert Cummings
On Sat, 2008-08-02 at 13:53 -0400, Daniel Brown wrote: On Sat, Aug 2, 2008 at 1:40 PM, Robert Cummings [EMAIL PROTECTED] wrote: Hmmpf! Oh, God, it's tasted human blood! Cut the crap, Rob. Don't even try to act innocent in front of the list, denying that you threw that chair

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Daniel Brown
On Sat, Aug 2, 2008 at 1:58 PM, Robert Cummings [EMAIL PROTECTED] wrote: Sorry, I hired a profession for the chair throwing-- my bulldog Steve Ballmer! More wasteful spending by the Canadian. You know that he's just going to wind up finding a way to introduce new bugs into the act of

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread mike
On 8/2/08, Al [EMAIL PROTECTED] wrote: Here' the snippet I use on all my code files. Default is create and add to error log file on the current dir. The problem is if the script is fubar, it won't read the error_log ini override... Open question for all: Even though I have error_reporting set

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Robert Cummings
On Sat, 2008-08-02 at 14:01 -0400, Daniel Brown wrote: On Sat, Aug 2, 2008 at 1:58 PM, Robert Cummings [EMAIL PROTECTED] wrote: Sorry, I hired a profession for the chair throwing-- my bulldog Steve Ballmer! More wasteful spending by the Canadian. You know that he's just going to

Re: [PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread mike
On 8/2/08, Benjamin Hawkes-Lewis [EMAIL PROTECTED] wrote: I can appreciate why one might imagine otherwise, but XHTML 1.x forms only support GET and POST. GET and POST are the only allowed values for the method attribute. Sigh. That makes sense then. So to test my script I need to use curl

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
brian wrote: Edward Diener wrote: Maciek Sokolewicz wrote: Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Benjamin Hawkes-Lewis
Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does find some text to output, and it outputs it. That text happens to be a form.

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does find some text to output, and it outputs it.

[PHP] PHP Memory Management

2008-08-02 Thread Waynn Lue
I've been running the script below: ?php $appIds = getLotsOfAppIds(); foreach ($appIds as $appId) { echo $appId\n; //echo memory_get_usage() . \n; try { $getBundles = getBundles($appId); $numBundles = count($registeredBundles); echo $numBundles . \n;

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Maciek Sokolewicz
Edward Diener wrote: Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does find some text to output,

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Maciek Sokolewicz wrote: Edward Diener wrote: Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does

[PHP] PHP 5 auto-htmlentitizing strings?

2008-08-02 Thread Weston C
I just switched over an app from PHP 4 to PHP 5, and one of the weird things I'm noticing initially is that some of the html output seems to be html entitized. For example, a link that was showing up in html output as: a href=http://metaphilm.com/philm.php?id=29_0_2_0;Is Tyler Durden Hobbes?/a

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Chacha C
Somehow .. I feel this isn't PHP Related. On Sat, Aug 2, 2008 at 11:08 AM, Robert Cummings [EMAIL PROTECTED]wrote: On Sat, 2008-08-02 at 14:01 -0400, Daniel Brown wrote: On Sat, Aug 2, 2008 at 1:58 PM, Robert Cummings [EMAIL PROTECTED] wrote: Sorry, I hired a profession for the chair

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Daniel Brown
On Sun, Aug 3, 2008 at 12:22 AM, Chacha C [EMAIL PROTECTED] wrote: Somehow .. I feel this isn't PHP Related. Boy, nothing gets by you, eh? Welcome to the list, new meat. -- /Daniel P. Brown Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel