473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

alert popup box

I can't find a way to create an alert popup box for debugging, is this
possible in php? I guess I'm thinking of visual basic where that was so
easy, in php I normally use *print* for this but it can be hard to find.

thanks
Mar 15 '07 #1
4 32407
"Paul Furman" <paul-@-edgehill.netwrote in message
news:my*****************@newssvr12.news.prodigy.ne t...
>I can't find a way to create an alert popup box for debugging, is this
possible in php? I guess I'm thinking of visual basic where that was so
easy, in php I normally use *print* for this but it can be hard to find.

No, it's not possible. Alertbox's don't exist in php. (Only way to make a
popup would be echo some javascript which would generate the popup.

<?php

$foo = bar;
echo "<script type='text/javascript'>alert('$foo')</script>";

?>

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
Mar 16 '07 #2
one thing i could suggest is to try a IDE program with an integrated
debugger. This way you can check content of a variable as you run the script
on a step by step mode. We are working on a pretty decent one that can also
debug javascript if need be.

read more about it here: http://www.jcxsoftware.com/

Steve.

"Kimmo Laine" <sp**@outolempi.netwrote in message
news:_2******************@reader1.news.saunalahti. fi...
"Paul Furman" <paul-@-edgehill.netwrote in message
news:my*****************@newssvr12.news.prodigy.ne t...
>>I can't find a way to create an alert popup box for debugging, is this
possible in php? I guess I'm thinking of visual basic where that was so
easy, in php I normally use *print* for this but it can be hard to find.


No, it's not possible. Alertbox's don't exist in php. (Only way to make a
popup would be echo some javascript which would generate the popup.

<?php

$foo = bar;
echo "<script type='text/javascript'>alert('$foo')</script>";

?>

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)

Mar 16 '07 #3
Kimmo Laine wrote:
"Paul Furman" <paul-@-edgehill.netwrote in message
news:my*****************@newssvr12.news.prodigy.ne t...
>>I can't find a way to create an alert popup box for debugging, is this
possible in php? I guess I'm thinking of visual basic where that was so
easy, in php I normally use *print* for this but it can be hard to find.

No, it's not possible. Alertbox's don't exist in php. (Only way to make a
popup would be echo some javascript which would generate the popup.

<?php

$foo = bar;
echo "<script type='text/javascript'>alert('$foo')</script>";

?>
Great, thanks. I guess because it just isn't an html possibility either
& php simply produces html... or javascript ;-)
Mar 17 '07 #4
Steve Belanger wrote:
one thing i could suggest is to try a IDE program with an integrated
debugger. This way you can check content of a variable as you run the script
on a step by step mode. We are working on a pretty decent one that can also
debug javascript if need be.

read more about it here: http://www.jcxsoftware.com/
Yeah that would be nice, I learned php after a prerequisite course in VB
& that's handy stuff. I've also used similar with LISP. I'm currently
using PSpad as my editor & it doesn't offer that AFAIK.
Mar 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Keith | last post by:
I have a session variable set on my main page which works fine, I also have a popup window called from a text link via javascript. For some reason the session variable is not available on the...
4
by: SibAndela | last post by:
Two little challenges: 1. I would like to achieve the equivalent of a client side javascript alert popup from server side code. Any suggestion how I can do this? 2. How can I cause a beep at...
13
by: dave yan | last post by:
hi, i have some forms which use javascript for data validation, e.g., checking to make sure all required fields are completed, checking that data falls within valid ranges for certain fields,...
1
by: Stuart Palmer | last post by:
Hi everyone, I am doing a page for an Israeli customer and doing a form validator with a javascript alert popup for errors listing the fields missed, line by line. When this pops up the text is...
0
by: atif | last post by:
i m working on an online MIS n i need help on how to generate the alert popup's like v used to hav in MSN messenger when v received a mail or someone's comes online. Thanx ----== Posted via...
1
by: MC | last post by:
Hi, I want to use MS Messenger in order to show an alert on my local PC from my VB.NET app (I don't want to use the Microsoft Alerts SDK, just de MS Alert Popup window) I think this is...
3
by: lohithb | last post by:
Hi, I have used javascript onclick event handler. But, in ssl a security alert is displayed when the event is generated. So can i give me a solution for this other than the settings in the browser...
2
by: jrsjrs | last post by:
The "filetest.txt" contents is here .................. one/yes two/no three/maybe four/fun five/ok ................ The main program is here
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.