Tow Tiny Questions!

From: Date: Wed, 20 Dec 2000 20:08:05 +0000
Subject: Tow Tiny Questions!
Groups: php.general 
Request: Send a blank email to php-general+get-31303@lists.php.net to get a copy of this message
Dear Sir, At first ,I should thank you and "The PHP Development Team" and all persons who help for improvment of "PHP". I have tow questions about PHP: 1)If I want to use some HTML tags like <embed src="http://myserver/file.wav" ... > in a PHP page ,how can I use them? (I examined print "<embed src=\""http://myserver/file.wav"... >"; but it didn't work) 2)If there is any limitation for executation of PHP pages on various browsers and platforms ? (What about the question number 7.8 in FAQ? I have printed it here: 7.8. My PHP script works on IE and Lynx, but on Netscape some of my output is missing. When I do a "View Source" I see the content in IE but not in Netscape. Even when I telnet to port 80 directly the correct content shows up. How can this be? PHP is server-side and my browser can't possibly know that the content it is seeing is generated by PHP, so what is going on? Very good question! ;) This is a tricky little issue and it has come up twice in the past month as of this writing. Both times I ended up spending a good 20 minutes trying to figure out what the heck was going on. The answer is that both IE and Lynx ignore any NULs (\0) in the HTML stream. Netscape does not. The best way to check for this is to compile the command-line version of PHP (also known as the CGI version) and run your script from the command line and pipe it through 'od -c' and look for any \0 characters. (If you are on Windows you need to find an editor or some other program that lets you look at binary files) When Netscape sees a NUL in a file it will typically not output anything else on that line whereas both IE and Lynx will. If this issue has bitten you, congratulations! You are not alone) your sincerely Atieh Kashani __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/

« previous php.general (#31303) next »