RE: [PHP-WIN] Tow Tiny Questions!

From: Date: Fri, 22 Dec 2000 01:31:31 +0000
Subject: RE: [PHP-WIN] Tow Tiny Questions!
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4591@lists.php.net to get a copy of this message
I think some one already answered #1. You have some extraneous "s in your code: print "<embed src=\""http://myserver/file.wav"... >"; ^ ^ Try this: print "<embed src=\"http://myserver/file.wav\">"; Basically, any embedded quotes within quotes need to be escaped with a backslash. Re: #2 - PHP is a server-side scripting platform. You use it to basically get some input, process it and output some stuff. Stuff (text, html, javascript etc) you output must be able to be displayed or rendered properly by different browsers on different platforms - that's up to you the developer. Ignatius > -----Original Message----- > From: nastaran kashani [mailto:nkashani2000@yahoo.com] > Sent: Thursday, 21 December 2000 06:07 > To: php-windows@lists.php.net > Subject: [PHP-WIN] Tow Tiny Questions! > > > > 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/ > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#4591) next »