PHP Popup Window

I am debugging a PHP shopping cart written by a third party, using echo statements. In some case I want to echo a value before the shopping cart (Smarty based) outputs the header. Of-course, my echo is wiped out by the subsequent header statement. One thought I had was to use a popup window but of-course any javascript I output to open another window is also wiped out because it precedes the header statement. My only solution to date has been to put a die(""); statement after the echo but that is obviously sub-optimal. Suggestions?
esc_toe_accountAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

syedasimmeesaqCommented:
if I understand you correctly, you want to stop the execution of script after echo. Then use exit; to stop the execution.
Thanks
0
esc_toe_accountAuthor Commented:
No, I don't want to stop the script execution - I just want to see the value output by my echo statements, which I assume is being clobberred by the subsequent header. (The echo works fine if my echo statement is placed after the header is sent).
0
syedasimmeesaqCommented:
you wont be able to display  it before the header cause the echo statement will be followed by the header and it wouldnt give browser much of a time to display it.
so may be you want to use delay or something after echo and but before headers are sent
Thanks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
esc_toe_accountAuthor Commented:
Ok, 'no' is an answer I half suspected. I am using Eclipse and Zend debugger so have switched to viewing the values in the debugger.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.