FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Printing out or displaying for debugging
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Printing out or displaying for debugging [message #179840 is a reply to message #179837] Tue, 11 December 2012 16:59 Go to previous messageGo to previous message
C is currently offline  C
Messages: 24
Registered: January 2012
Karma:
Junior Member
I am just a beginner, so I will need help with the actual commands I should use, not necessarily the whole code, but the commands which I should learn to use. Thanks.

On Tuesday, December 11, 2012 6:05:19 PM UTC+2, The Natural Philosopher wrote:
> On 11/12/12 15:59, C wrote:
>
>> What is a good way to see the values of a few variables for debugging?
>
>> I cannot debug locally. I have to put the code on the server in the
>
>> normal Internet site (which does not receive a lot of human visitors),
>
>> so it would not hurt to display the values of some variables for a few
>
>> minutes while I am debugging.
>
>>
>
> I would write a php function that does three things.
>
> (i) checks to see if the browser remote IP address is you, and if it
>
> isn't, does nothing - that lets all of your other users off the hook.
>
> (ii) adds any error and debugging messages to a big chunk of memory.
>
> (iii) RIGHT at the end of you page, calls the function again to
>
> *display* the buffer contents in a <div> that overlays everything.
>
>
>
> An alternative is to create a debug notice area in some empty bit of
>
> real estate.
>
>
>
>
>
>
>
> --
>
> Ineptocracy
>
>
>
> (in-ep-toc’-ra-cy) – a system of government where the least capable to
>
> lead are elected by the least capable of producing, and where the
>
> members of society least likely to sustain themselves or succeed, are
>
> rewarded with goods and services paid for by the confiscated wealth of a
>
> diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: When is it possible for $_SERVER['SERVER_NAME'] to contain something other than the URL which actvated the script?
Next Topic: Re: Converting file from word.doc to pdf...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 12:33:29 GMT 2024

Total time taken to generate the page: 0.04929 seconds