[PHP] Simple question!!!
Hi, Imagine the following script: Some Title If I try to execute via Internet Explorer ("5.x") apparently every thing works fine. It shows the string "I'm dead". But if I use the Netscape 4.7x, I get a blank screen. When I view the Source Code ("HTML code in Netscape") it shows: Some Title I'm dead Netscape can't render the page if its missing the and tags in the end. I already used 'return' end 'exit' functions but with the same result. There is some configuration parameter to the PHP server to send the rest of HTML code after exit the script or workaround? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Simple question!!!
Hi, CC wrote: >(...)Another option would be to echo the closing tags from within the conditional, >prior >to calling the die(). I already thought that, but if I want to use the die function inside another function that can be called anywhere in the script (inside a table or form) I've possibly the same problem. >I believe output buffering can also be used to >achieve what you want, but someone else will have to explain how (whether?) >that can be done here. That a good idea, I thinks it is a new feature of PHP 4.0. Thanks ... +++++++ Ricardo D'Aguiar MemoSis - Sistemas Informáticos Portugal +++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Debugger, Debugger and Debugger
Hi, Problem: I'm trying put to work the debugger in php4.0.4pl1(Red Hat Distribution), I change my php.ini file to enable the debugger but when try to use in a simple script I get the following error: Fatal error: Call to undefined function: debugger_on() in /var/www/html/php/dbg.php on line 2 Questions: 1º Do I need some sort of extension (something like xxx.so) to activate the debugger? 2º In php documentation (Chapter: Using the Debugger) says: Set up a TCP listener on that port somewhere (for example socket -l -s 1400 on UNIX). I don't have that "socket" command in Linux/Unix, what is this? What this means? 3º I need to debug my script what is the best way to do that? (I tried the "Zend IDE Test Drive" but after 30 days is not for free and can't put to work the "The DBG PHP Debugger"). 4º What is the difference between Zend debugger, Dmitri Dmitrienko PHP debugger (seen link below) and the 'internal' PHP debugger? Thanks, (Sorry for the bad english) Additional Information: PHP version: PHP Version 4.0.4pl1- Red Hat distribution O.S. - Red Hat 7.0 Compiled options (PHP) extract from phpinfo(): './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' Simple Script to test the debugger: PHP.INI file (Revelant parts): #Extension actived extension=imap.so extension=ldap.so extension=pgsql.so [Debugger] debugger.host = localhost debugger.port = 7869 debugger.enabled= true Dmitri Dmitrienko PHP Debugger: http://dd.cron.ru/dbg/ +++ Ricardo D'Aguiar MemoSis - Sistemas Informáticos Portugal +++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]