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. -- Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.

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 fo

[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: "http://metaphilm.com/philm.php?id=29_0_2_0";>Is Tyler Durden Hobbes?" now ge

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

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,

[PHP] PHP Memory Management

2008-08-02 Thread Waynn Lue
I've been running the script below: And I get PHP Fatal Error: Allowed Memory Size Exhausted after it runs for a bit. Looking at the memory usage, it's because $getBundles (an array) is huge, and keeps growing. What I'm confused by is why setting it to something else in the next iteration of t

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. Th

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
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] 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

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 >

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

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 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 th

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 f

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 th

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 debu

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 . It should work the same. But it doesn't in older user agents or with older assistive technology: http://stevenclark.com.au/2008/07/11/named-anchors-and-skip-navi

[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,

[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

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 web

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 var

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 PH

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 us

[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] 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 tag placement. If in your web page you place an anchor tag like this: Then in the URL you add this to the end

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

2008-08-02 Thread Benjamin Hawkes-Lewis
mike wrote: I have this: File: 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 server and have enabled PUT as a method, supposedly) Maybe I need to d

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

2008-08-02 Thread Richard Heyes
> > File: > > > > 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, chances are it doesn't support PUT. -- Richard Heyes http://www.phpguru.org --

[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 ?

[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] 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 includ

[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 shoul

[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 pa

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: File: 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 server and have enabled P

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

2008-08-02 Thread mike
I have this: File: 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 server and have enabled PUT as a method, supposedly) Maybe I need to do something di

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

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

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 websit