RE: [PHP] debugging PHP memory corruption

2012-01-05 Thread Andrew Morum
>Hi Andy, >Have you tried running it with valgrind? (See [1] for tips). >Otherwise, you might have more luck at php-internals mailing list, >since it is related to PHP development if you intend to fix either PHP >or the plugin. > >Matijn >[1] https://bugs.php.net/bugs-getting-valgrind-log.php Than

Re: [PHP] debugging PHP memory corruption

2012-01-04 Thread Matijn Woudt
On Wed, Jan 4, 2012 at 3:34 PM, Andrew Morum wrote: > We've got a problem with PHP 5.3.8 and a third party (open source) > library (WSo2 SOAP). > > > > At some point during the request to the PHP script, some structures seem > to be getting corrupted causing PHP to crash. > > > > Depending on the

Re: [PHP] Debugging Help Needed

2011-04-13 Thread Rich Shepard
On Wed, 13 Apr 2011, Daniel Brown wrote: I believe he meant that it's been too long since he used C (which uses semicolons) and that Python, which he used more recently, doesn't use semicolons (which always trips me up whenever I have to patch Python code). Thank you, Daniel. Inserting

Re: [PHP] Debugging Help Needed

2011-04-13 Thread Daniel Brown
On Tue, Apr 12, 2011 at 22:06, Paul M Foster wrote: > > Wait, what?! Did they change C? When did this happen?! ;-} I believe he meant that it's been too long since he used C (which uses semicolons) and that Python, which he used more recently, doesn't use semicolons (which always trips me up

Re: [PHP] Debugging Help Needed

2011-04-13 Thread Richard Quadling
On 13 April 2011 03:06, Paul M Foster wrote: > On Tue, Apr 12, 2011 at 03:37:26PM -0700, Rich Shepard wrote: > >> On Tue, 12 Apr 2011, Daniel Brown wrote: >> >> >   You missed the ending semicolon, that's all. >> >> Daniel, >> >>   Oops! Too long since C and Python doesn't use semicolons. > > Wait

Re: [PHP] Debugging Help Needed

2011-04-12 Thread Paul M Foster
On Tue, Apr 12, 2011 at 03:37:26PM -0700, Rich Shepard wrote: > On Tue, 12 Apr 2011, Daniel Brown wrote: > > > You missed the ending semicolon, that's all. > > Daniel, > > Oops! Too long since C and Python doesn't use semicolons. Wait, what?! Did they change C? When did this happen?! ;-}

Re: [PHP] Debugging Help Needed

2011-04-12 Thread Rich Shepard
On Tue, 12 Apr 2011, Daniel Brown wrote: You missed the ending semicolon, that's all. Daniel, Oops! Too long since C and Python doesn't use semicolons. Adding that, I remove the error but do not see the printed backtrace. Please suggest how I can determine the source of the page not f

Re: [PHP] Debugging Help Needed

2011-04-12 Thread Daniel Brown
On Tue, Apr 12, 2011 at 18:29, Rich Shepard wrote: > >  Looking at the PHP manual I see there's a function called > debug_print_backtrace(), but I have not found how to properly use it. When I > insert it at the top of ErrorHandler404(), php throws an error when I try to > run index.php: > > funct

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Brady Mitchell
On Aug 29, 2008, at 851AM, Edward Diener wrote: I have not looked into PHP IDEs at all so far. Any recommendations ? Thanks ! Please don't start this up again. Check the "PHP IDE Needed" thread that has been active for the past several days or search the list archives. http://marc.info/

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 11:51 AM, Edward Diener <[EMAIL PROTECTED]>wrote: > Dan Joseph wrote: > >> On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED] >> >wrote: >> >> > I have not looked into PHP IDEs at all so far. Any recommendations ? Thanks > ! > > > -- > PHP General Mailing Li

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
Dan Joseph wrote: On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED]>wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED]>wrote: > I am fairly new to PHP. What is the best way of debugging PHP scripts ? > > I have put in echo statements to tell me what is happening, but perhaps > there are better methods. > > I have a PHP script on a server, which I a

Re: [PHP] Debugging classes

2008-01-22 Thread Jochem Maas
Vishal Patel schreef: i dont know why the hell im on it so please whoever did this, i wish they would stop fucking about with my account. please can you unsuscribe me to all such mailing lists as at the moment im recieving about 10 new emails a minute about all this stuff which im sure you can

Re: [PHP] Debugging classes

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 6:15 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > TG schreef: > > I have a semi-good understanding of classes even if I don't totally > 'grok' > > the benefits for the projects I've worked on so far. > > > > One thing that keeps smacking me in the face, though, is reverse > enginee

Re: [PHP] Debugging classes

2008-01-22 Thread Jochem Maas
Vishal Patel schreef: who the fuck are you and why the fuck are you emailing me I'm fucking me actually. and I'm fucking mailing a fucking mailing list which apparently your fucking subscribed to. So now your fucking up to speed. Any other fucking questions? On Jan 22, 2008 11:15 PM, Jochem

Re: [PHP] Debugging classes

2008-01-22 Thread Jochem Maas
TG schreef: I have a semi-good understanding of classes even if I don't totally 'grok' the benefits for the projects I've worked on so far. One thing that keeps smacking me in the face, though, is reverse engineering in order to make proper changes to projects created by others using classes.

Re: [PHP] Debugging classes

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 2:40 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > At least, that would be one of the first features I'd put into an IDE, > if I used OOP in PHP and if I used IDEs in the first place... actually php-eclipse and pdt both have pretty solid oop support for php. and theyre free. the

Re: [PHP] Debugging classes

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 12:06 pm, TG wrote: > One thing that keeps smacking me in the face, though, is reverse > engineering > in order to make proper changes to projects created by others using > classes. OOP requires a great deal more high-level documentation, to tell what classes do what and h

Re: [PHP] Debugging classes

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 1:06 PM, TG <[EMAIL PROTECTED]> wrote: > > I have a semi-good understanding of classes even if I don't totally 'grok' > the benefits for the projects I've worked on so far. > > One thing that keeps smacking me in the face, though, is reverse > engineering > in order to make proper

Re: [PHP] Debugging Extensions (APD, etc.)

2007-04-10 Thread Richard Lynch
On Thu, April 5, 2007 11:04 am, Daniel Brown wrote: > Does anyone have any experience using engine-level debuggers > and/or > extensions in PHP? I installed the PECL module APD just a moment ago, > and > haven't even used it yet, because I wanted to see if anyone here has a > better suggestion

Re: [PHP] Debugging Extensions (APD, etc.)

2007-04-05 Thread Eric Butera
On 4/5/07, Daniel Brown <[EMAIL PROTECTED]> wrote: Does anyone have any experience using engine-level debuggers and/or extensions in PHP? I installed the PECL module APD just a moment ago, and haven't even used it yet, because I wanted to see if anyone here has a better suggestion. I'd like

Re: [PHP] Debugging includes

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 11:31 am, Jonathan Kahan wrote: > I am attmepting to run a php scrip and this is the error i keep on > getting. > The scripts first 4 lines are below the errors. When errors are > returned, > does that mean that the error is local or in one of the include > scripts? I > have

Re: [PHP] Debugging includes

2007-03-26 Thread Richard Davey
Jonathan Kahan wrote: I am attmepting to run a php scrip and this is the error i keep on getting. The scripts first 4 lines are below the errors. When errors are returned, does that mean that the error is local or in one of the include scripts? I have tried to reverse the order of the includes

Re: [PHP] Debugging itpc

2007-01-24 Thread Richard Lynch
On Wed, January 24, 2007 1:01 pm, Skip Evans wrote: > Hey all, > > I'm working on a site that allows users to build > libraries of podcasts, and one of the calls to a > PHP file is itpc, not http. > > Hence I don't have the ability to echo data for > debugging, and I also don't have write access to

Re: [PHP] Debugging itpc

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 12:01 -0700, Skip Evans wrote: > Hey all, > > I'm working on a site that allows users to build > libraries of podcasts, and one of the calls to a > PHP file is itpc, not http. > > Hence I don't have the ability to echo data for > debugging, and I also don't have write acc

Re: [PHP] Debugging itpc

2007-01-24 Thread Skip Evans
Hey Robert, Oh, of course. Heck, I was already trying to fwrite to a file so that should have occurred me... ...if I hadn't done all that acid in the 60s, and I was only FIVE in the 60s! Thanks for clearing the fog. Skip Robert Cummings wrote: On Wed, 2007-01-24 at 14:07 -0500, Robert Cu

Re: [PHP] Debugging itpc

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 14:07 -0500, Robert Cummings wrote: > On Wed, 2007-01-24 at 12:01 -0700, Skip Evans wrote: > > Hey all, > > > > I'm working on a site that allows users to build > > libraries of podcasts, and one of the calls to a > > PHP file is itpc, not http. > > > > Hence I don't have

Re: [PHP] Debugging PHP

2007-01-12 Thread Eric Butera
On 1/12/07, Sancar Saran <[EMAIL PROTECTED]> wrote: Hi, Due to my English knowladge shortcomings or just my own stupity I cannot setup a working php debug module. Is any one have working solution. My target was, able to check every functions and or files for performance issues. I thing this c

[PHP] [totaly off t****] Re: [PHP] Debugging Log

2006-07-13 Thread Jochem Maas
tedd wrote: > At 6:19 PM -0400 7/12/06, Michael B Allen wrote: >> On Wed, 12 Jul 2006 22:44:23 +0100 >> Stut <[EMAIL PROTECTED]> wrote: >> >>> Michael B Allen wrote: Thanks for the tip dipshit. >>> Maybe I'm in a sensitive mood, but that was uncalled for. Michael, meet >>> /dev/null, I hope yo

Re: [PHP] Debugging Log

2006-07-13 Thread tedd
At 6:19 PM -0400 7/12/06, Michael B Allen wrote: >On Wed, 12 Jul 2006 22:44:23 +0100 >Stut <[EMAIL PROTECTED]> wrote: > >> Michael B Allen wrote: >> > Thanks for the tip dipshit. >> >> Maybe I'm in a sensitive mood, but that was uncalled for. Michael, meet >> /dev/null, I hope you live happily ever

Re: [PHP] Debugging Log

2006-07-12 Thread Jochem Maas
Michael B Allen wrote: > On Wed, 12 Jul 2006 22:44:23 +0100 > Stut <[EMAIL PROTECTED]> wrote: > >> Michael B Allen wrote: >>> Thanks for the tip dipshit. >> Maybe I'm in a sensitive mood, but that was uncalled for. Michael, meet >> /dev/null, I hope you live happily ever after. > > Oh, no. What a

Re: [PHP] Debugging Log

2006-07-12 Thread Michael B Allen
On Wed, 12 Jul 2006 22:44:23 +0100 Stut <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: > > Thanks for the tip dipshit. > > Maybe I'm in a sensitive mood, but that was uncalled for. Michael, meet > /dev/null, I hope you live happily ever after. Oh, no. What am I going to do now? You're like

Re: [PHP] Debugging Log

2006-07-12 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael B Allen wrote: > Thanks for the tip dipshit. Maybe I'm in a sensitive mood, but that was uncalled for. Michael, meet /dev/null, I hope you live happily ever after. - -Stut -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comm

Re: [PHP] Debugging Log

2006-07-12 Thread Michael B Allen
On Wed, 12 Jul 2006 21:13:31 +0100 Stut <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Michael B Allen wrote: > > On Wed, 12 Jul 2006 19:13:53 +0100 > > Stut <[EMAIL PROTECTED]> wrote: > >> Michael B Allen wrote: > >>> What is the standard method of logging debug

Re: [PHP] Debugging Log

2006-07-12 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael B Allen wrote: > On Wed, 12 Jul 2006 19:13:53 +0100 > Stut <[EMAIL PROTECTED]> wrote: >> Michael B Allen wrote: >>> What is the standard method of logging debug info? Should I just fopen >>> a file for append and write the message or is there a

Re: [PHP] Debugging Log

2006-07-12 Thread Michael B Allen
On Wed, 12 Jul 2006 19:13:53 +0100 Stut <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Michael B Allen wrote: > > What is the standard method of logging debug info? Should I just fopen > > a file for append and write the message or is there a facility provided? >

Re: [PHP] Debugging Log

2006-07-12 Thread Dan McCullough
Ahh yes I do that as well, I knew there was another other then syslog. On 7/12/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Michael B Allen wrote: > What is the standard method of logging debug info? Should I just fopen > a file for append and write the message or is there a facility provided? th

Re: [PHP] Debugging Log

2006-07-12 Thread Jochem Maas
Michael B Allen wrote: > What is the standard method of logging debug info? Should I just fopen > a file for append and write the message or is there a facility provided? there is also error_log() (and the 'error_log' ini setting) - I abuse it for debugging now and again. > > Mike > -- PHP Ge

Re: [PHP] Debugging Log

2006-07-12 Thread Dan McCullough
I wrote my own, very simple, very easy. I think the code is in the archive somewhere. Otheres have written similar functions. CODE +++ function logError ($logentry, $lgname) { // simple function to log errors to text/log file. $logfile = @fop

RE: [PHP] Debugging Log

2006-07-12 Thread KermodeBear
http://pear.php.net/package/Log/ works well for me. Supports writing messages to files, to a separate window via JavaScript, probably syslog as well as a few others. -Original Message- From: Michael B Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 2:02 PM To: php-general@l

Re: [PHP] Debugging Log

2006-07-12 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael B Allen wrote: > What is the standard method of logging debug info? Should I just fopen > a file for append and write the message or is there a facility provided? http://php.net/syslog or use a file. There are also various JS-based solutions f

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
> WILD GUESS!!! > > Since you're NOT closing off the streams, PHP is trying to > close them for you, but you've unset various variables and > whatnot, and confused PHP into fclose()ing the WRONG thing. Hmm, I said all streams are getting closed. If they were not then a malformed zip would be

RE: [PHP] Debugging custom streams

2006-02-10 Thread Richard Lynch
e that, it's odds-on that somebody on PHP Dev Team can fix it. On Fri, February 10, 2006 9:40 am, Jared Williams wrote: > >> > >> >>-Original Message- >> >>From: Jochem Maas [mailto:[EMAIL PROTECTED] >> >>Sent: 10 February 2006 14:17 >&g

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
Ahha, after some rethinking, I've dropped the append custom stream, as its not really required. And instead of using a custom in memory stream for handling the central directory stream, just using tmpfile(), the application error has disappeared. Jared > > >>Jared Williams wrote: > > >> > >

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
> > > >>-Original Message- > >>From: Jochem Maas [mailto:[EMAIL PROTECTED] > >>Sent: 10 February 2006 14:17 > >>To: [EMAIL PROTECTED] > >>Cc: php-general@lists.php.net > >>Subject: Re: [PHP] Debugging custom streams > >&

Re: [PHP] Debugging custom streams

2006-02-10 Thread Jochem Maas
Jared Williams wrote: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 14:17 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Debugging custom streams Jared Williams wrote: Hi, Short version, is there any way of

RE: [PHP] Debugging custom streams

2006-02-10 Thread Jared Williams
> -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: 10 February 2006 14:17 > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Subject: Re: [PHP] Debugging custom streams > > Jared Williams wrote: > > > > Hi, > &

Re: [PHP] Debugging custom streams

2006-02-10 Thread Jochem Maas
Jared Williams wrote: Hi, Short version, is there any way of listing all open resources from within a PHP script? Think I may have a problem relating to the object/resource shutdown order within PHP, but cant see which custom stream handler still has an open resource. Long v

Re: [PHP] debugging dl()

2005-09-07 Thread Mikey
Bob Pilly wrote: Hi All Im having problems using dl() to load an extension that someone has given me. I get the following output from this simple script: //script //output PHP Warning: dl(): \u?\u: Unable to initialize module Module compiled with module API=20020429, debug=0, threa

Re: [PHP] debugging dl()

2005-09-07 Thread Jasper Bryant-Greene
Bob Pilly wrote: [snip] PHP Warning: dl(): \u?\u: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHPcompiled with module API=20041030, debug=0, thread-safety=0 These options need to match The module was compiled for an earlier version

Re: [PHP] Debugging mail()

2005-07-28 Thread Philip Hallstrom
I have the following code in my script and no errors are created, but I do not get any emails. It works on other servers. Are there some logs I can check to figure out why an email is not being sent/received? Depends on your setup, but /var/log/maillog in the unix world would be a good plac

Re: [PHP] debugging modules

2005-01-25 Thread Arshavir Grigorian
Rasmus Lerdorf wrote: Arshavir Grigorian wrote: Hi, I am having trouble debugging a PECL module (APC) because while I am able to --enable-debug when configuring the PHP course, I cannot do the same for APC (no such configure option). Does anyone know how to do that? PHP Warning: Unknown(): apc

Re: [PHP] debugging modules

2005-01-20 Thread Rasmus Lerdorf
Arshavir Grigorian wrote: Hi, I am having trouble debugging a PECL module (APC) because while I am able to --enable-debug when configuring the PHP course, I cannot do the same for APC (no such configure option). Does anyone know how to do that? PHP Warning: Unknown(): apc: Unable to initialize

Re: [PHP] debugging

2005-01-19 Thread Jochem Maas
Justin French wrote: On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote: ... I use simple define('DEBUG', true'); in the main config file where also database login info is stored. I like to use exactly the same files for both development and live servers... it makes it much easier to mirror the

Re: [PHP] debugging

2005-01-19 Thread Richard Lynch
William Stokes wrote: > I would like to add some debugging/info code to my pages. In test > environment of course. Any ideas how to do this? I mean for example to > print > to a web page the line number when the script fails or something like > that. > It's a pain on the **s to hunt typo's by just

Re: [PHP] debugging

2005-01-19 Thread Bret Hughes
On Wed, 2005-01-19 at 05:51, Marek Kilimajer wrote: > Justin French wrote: > > On 19/01/2005, at 5:36 PM, William Stokes wrote: > > > >> I would like to add some debugging/info code to my pages. In test > >> environment of course. Any ideas how to do this? I mean for example to > >> print > >> to

Re: [PHP] debugging

2005-01-19 Thread Justin French
On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote: Justin French wrote: On 19/01/2005, at 5:36 PM, William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the line number when

Re: [PHP] debugging

2005-01-19 Thread Marek Kilimajer
Justin French wrote: On 19/01/2005, at 5:36 PM, William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the line number when the script fails or something like that. It's a p

Re: [PHP] debugging

2005-01-19 Thread Marek Kilimajer
William Stokes wrote: I'm trying to get the ini_set("error_reporting",E_ALL); work. No matter what kind of errors I write I just get blank screen when the script fails. Do I need to also echo the errors to screen? Or can the error reporting be disabled by the server admin (my adsl operator)? so

Re: [PHP] debugging

2005-01-19 Thread William Stokes
I'm trying to get the ini_set("error_reporting",E_ALL); work. No matter what kind of errors I write I just get blank screen when the script fails. Do I need to also echo the errors to screen? Or can the error reporting be disabled by the server admin (my adsl operator)? so that no errors are pr

Re: [PHP] debugging

2005-01-18 Thread Justin French
On 19/01/2005, at 5:36 PM, William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the line number when the script fails or something like that. It's a pain on the **s to hun

RE: [PHP] debugging messages in popup windows

2004-08-18 Thread Jay Blanchard
[snip] i'm not talking about How to make the popup window I want to know how can I make the popup window track page errors and display it thats it :-) [/snip] At the risk of repeating myself.JavaScript. PHP is server-side, JavaScript is client-side where the action needs to take place. PHP doe

RE: [PHP] debugging messages in popup windows

2004-08-18 Thread Jay Blanchard
[snip] guys, I'm working on a project, and running a php debug script while testing the script, How can I make the debug messages(including error and warning) appears only in popup window? and update automaticly when clicking on another link [/snip] JavaScript -- PHP General Mailing List (http://

RE: [PHP] Debugging a Session Problem

2003-07-31 Thread Johnson, Kirk
I am out of ideas, short of rebuilding PHP. Sessions work, I just don't see what is wrong in this situation. Sorry, good luck. Kirk > -Original Message- > From: Lee Stewart [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2003 4:11 PM > To: [EMAIL PROTECTED] &g

RE: [PHP] Debugging a Session Problem

2003-07-30 Thread Lee Stewart
The only thing in the Apache error log is: [Fri Jul 25 16:19:31 2003] [error] PHP Notice: Undefined variable: test in /srv/www/htdocs/page2.php on line 3 No other messages I can find in any logs. df shows the file system only 70% full... At 08:38 AM 7/28/2003, Johnson, Kirk wrote: Anything

RE: [PHP] Debugging a Session Problem

2003-07-28 Thread Johnson, Kirk
Anything in the Apache or PHP error logs? Permissions are OK, there is space on the drive? Kirk > -Original Message- > From: Lee Stewart [mailto:[EMAIL PROTECTED] > Sent: Friday, July 25, 2003 6:00 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Debugging a Session Proble

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread Curt Zirzow
* Thus wrote Lee Stewart ([EMAIL PROTECTED]): > Using the $_SESSION[] style produces the same results... Zero length > session file in /tmp, and no data passed... (available at > http://4.43.81.92/page1a.php) You did see my post about space left on /tmp? > > So where do I go from here...

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Lee Stewart
Using the $_SESSION[] style produces the same results... Zero length session file in /tmp, and no data passed... (available at http://4.43.81.92/page1a.php) So where do I go from here...Is there any way to debug it? Like I said, I suspect it's not a PHP code bug, but I'm at a loss as

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread Curt Zirzow
* Thus wrote Lee Stewart ([EMAIL PROTECTED]): > The symptom is that when I attempt to save a session variable, it > creates the session file in /tmp, but with a zero length - no variable > names or values stored. (/tmp is globally read/write) This happens not > only with the application I'm mo

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Johnson, Kirk
To: [EMAIL PROTECTED] > Subject: RE: [PHP] Debugging a Session Problem > > > I agree that it's probably a config problem -- somewhere... > > Yes, the session ID is passed correctly, but since page1.php > doesn't end up > with any variables or values in the sessio

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Lee Stewart
I agree that it's probably a config problem -- somewhere... Yes, the session ID is passed correctly, but since page1.php doesn't end up with any variables or values in the session file, so regardless that it has the right session ID, there's nothing in the session file to restore... The php.ini

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Johnson, Kirk
use its built-in defaults, which is register_globals off. Kirk > -Original Message- > From: Lee Stewart [mailto:[EMAIL PROTECTED] > Sent: Friday, July 25, 2003 2:00 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Debugging a Session Problem > > > At 11:55 AM 7/25/200

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Lee Stewart
At 11:55 AM 7/25/2003, you wrote: If you are relying on cookies to transmit the session ID, make sure you have session cookies enabled in your browser. Also check that you don't have an .htacess file in your directory that is overriding the register_globals setting. Turn your error_reporting up to

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread Chris Shiflett
--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > Seem to remember something about starting a session and then > redirecting with header causing trouble. Yeah, I think you're right, and I think that was with IIS. This archive might be helpful: http://marc.theaimsgroup.com/?l=php-general&m=102

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread CPT John W. Holmes
From: "Lee Stewart" <[EMAIL PROTECTED]> > I'm moving an application that I'm in the trying to move to a new > platform. It was running fine on an older Linux platform with PHP > 4.0.3 and Apache 1.3.14. The new platform is also Linux, with PHP 4.2.2 > and Apache 1.2.26 -- with register_globals o

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Johnson, Kirk
> I'm moving an application that I'm in the trying to move to a new > platform. It was running fine on an older Linux platform with PHP > 4.0.3 and Apache 1.3.14. The new platform is also Linux, > with PHP 4.2.2 > and Apache 1.2.26 -- with register_globals on. (I just > upgraded it from >

Re: [PHP] Debugging Techniques for PHP4

2001-11-28 Thread Andrey Hristov
The APD(apd.communityconnect.com) extensions. DBG extension( http://dd.cron.ru/dbg/) Enjoy Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Dr. Ian McDonald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 28,

RE: [PHP] Debugging aids (after the style of: Error management)

2001-10-26 Thread Chris Bailey
Sounds like getting a stack trace in various other languages. I know that Komodo and I think maybe a couple others has a built in debugger. It may (or may not) show you a stack trace/call trace display. -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26

Re: [PHP] Debugging problems

2001-05-22 Thread Chris Lee
best bet is to put some error checking in. function _check_db($query = '', $line = '') { if ( mysql_errno() ) { echo "Error: Problem with DataBase : {$GLOBALS['db_database']}\n"; echo "Error: " . mysql_errno() . ':' . mysql_error() . "\n"; echo "Query: $query\n"; echo "Line : $l

RE: [PHP] debugging problems

2001-05-18 Thread Don Read
On 18-May-01 Taline Makssabo wrote: > This is a program i wrote to get some information at keep track with some > stats. I am very new at this so bare with meI keep on getting this > Warning: > > Warning: Supplied argument is not a valid MySQL result resource in > /home/virtual/ppcu/home/htt

Re: [PHP] debugging problems

2001-05-18 Thread elias
You forgot to select the database! mysql_select_db($db_name); -elias http://www.eassoft.cjb.net ""Taline Makssabo"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is a program i wrote to get some information at keep track with some > stats. I am very ne

Re: [PHP] debugging php

2001-01-15 Thread Richard Lynch
> - what is a good tcp-listener (i tried tcpdump, but this gives to much > output) No help for you there... I've never even tried this. Maybe you could pipe tcpdump through grep, and include something like ZZ in all your error messages or something... > - the debugger doesn't work: the com