Results 1 to 8 of 8

Thread: [RESOLVED] Printing Problem

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Resolved [RESOLVED] Printing Problem

    PHP Code:
    <?PHP
    //--    画像とシステム名の表示    --


    //======画面表示======
    print "<TABLE ALIGN='center' CELLPADDING='0' CELLSPACING='0'>"."\n";
    print 
    "        <TR>"."\n";
    print 
    "            <TD ALIGN='center' WIDTH='830'><IMG SRC='images/binus.gif' BORDER='0'></TD>"."\n";
    print 
    "        </TR>"."\n";
    print 
    "</TABLE>"."\n";

    print 
    "<P ALIGN='center'><FONT CLASS='title'>" $strTitle "</FONT></P>" ."\n";

    ?>
    I have this script here... and could anyone tell me what's wrong with it..
    I mean in windows it works perfectly and the image tag shows the image correctly...

    but now that it is deployed in linux the image tag won't show... anyone please help.

  2. #2

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Printing Problem

    Sorry everyone.. I found the prob.. case...

    but still if anyone could find any probs.. or something that I needed to correct with the style.. please do so. I'd be more than happy to listen.

  3. #3

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Printing Problem

    I'll just have to resolve this one too.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Printing Problem

    Quote Originally Posted by oceanebelle
    Sorry everyone.. I found the prob.. case...

    but still if anyone could find any probs.. or something that I needed to correct with the style.. please do so. I'd be more than happy to listen.
    Since you asked . It is better and easier to read if you embed the PHP inside your HTML, not the other way round. This is what I mean:
    PHP Code:
    <?PHP
    //--    画像とシステム名の表示    --

    //======画面表示======
    ?>
    <table align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" width="830"><img src="images/binus.gif" border="0"></TD>
        </tr>
    </table>
    <p align="center"><font class="title"><?php echo($strTitle?></font></p>
    Also, notice how all the HTML tag names and attributes are lower-case and attribute values are enclosed in double quotes. If you want this to validate as XHTML, you must make sure HTML conforms to those rules.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Printing Problem

    Yeah I totally agree.

    But then the whole content as you see there is in a single file which is included on other files with this command

    <?PHP include_once('InsertImg.php'); ?>

    Would that still be ok using your suggestion I mean?

  6. #6

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Printing Problem

    Quote Originally Posted by visualAd
    Also, notice how all the HTML tag names and attributes are lower-case and attribute values are enclosed in double quotes. If you want this to validate as XHTML, you must make sure HTML conforms to those rules.
    You should see the entire code.. I had a hell of a time converting everything... first asp to php.. then vbscipt to javascript (this is quite annoying this part what with all the names and automatic function assignment based on names in vbscript)... and then to be bothered with HTML.. ahahaha.. all their tags are almost like that...

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: [RESOLVED] Printing Problem

    Quote Originally Posted by oceanebelle
    Yeah I totally agree.

    But then the whole content as you see there is in a single file which is included on other files with this command

    <?PHP include_once('InsertImg.php'); ?>

    Would that still be ok using your suggestion I mean?
    When you use include the parser goes into HTML mode. So it is toatlly OK to include files like that.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  8. #8

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Printing Problem

    Quote Originally Posted by visualAd
    When you use include the parser goes into HTML mode. So it is toatlly OK to include files like that.
    Really?!.. I didn't read that in dox... or perhaps I misread or skipped it or something.. but really the dox aren't that in depth on explaining things...

    Thanks visualAd!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width