Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Output Preceeded with blank lines

Status
Not open for further replies.

ghvn

Technical User
Aug 15, 2001
8
GB
Hi There,





i have a minor problem trying to validate HTML output from scripts, the main reason being blank lines before conent. It is probable easier to show you what I mean





----


HTML Output from PHP script



---



1:


// blank lines 2 -21


21:


22:


23: <!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;

24: <html>


25:


26: <head>


27: <title>


//rest of HTML Output





-------------





Is there any easy way to strip all the unwanted blanks lines from the output. These lines are not present in any of my scripts or include files, they just seem to appear.





Thanks in advance for any help,





best wishes





Mike
 
Those blank lines have to come from somewhere. If you have several include files, and each include file has a newline (carriage return) after the last '?>', then that could be your problem. -------------------------------------------

&quot;Calculus is just the meaningless manipulation of higher symbols&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-unknown F student
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top