- To: SLUG <slug@xxxxxxxxxxx>
- Subject: [SLUG] OT? Printing and viewing PHP code from WWW.
- From: Michael Lake <Mike.Lake@xxxxxxxxxx>
- Date: Wed Oct 25 14:36:00 2000
- Organization: University of Technology, Sydney
Hi All,
Im a bit stumped here and the topic is a bit OT as it would
also prob occur if I was on a windows machine :-)
I am looking at www.devshed.com/Server_Side/PHP/PHP101_1/
which has some excellent PHP tutorials but when I try to
print the article (even the printer friendly one) the code
within the <PRE> tags does not show. Im using Netscape, I
tried Opera also. I can see it on the screen as follows:
<?php
phpinfo();
?>
and if I save the HTML its there as I can see the
following...
<BLOCKQUOTE><PRE><HR size=1 noshade><FONT face=courier>
<?php
... PHP code ...
?>
</FONT><HR size=1 noshade></PRE></BLOCKQUOTE>
but it doesn't print and if I save it them I can't see the
code on screen anymore. I get the <HR> at the start and end
only. If I save as PostScript the code doesn't print. If I
save it as text its a mess because of the way the HTML is
layed out.
I can hack the source and get it to show and print by
inserting a space between every instance of a < and the ?
immediately following (hurrah for vi) but yuk. Clearly the
PRE tag is interpreting the two char sequence <? and hiding
everything thereafter.
I just want to save the pages and view/print them later to
teach myself PHP.
Suggestions?
Mike
--
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:Mike.Lake@xxxxxxxxxx Ph: 02 9514 1724 Fx: 02
9514 1628
URL: http://www.science.uts.edu.au/~michael-lake/
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------