Results 1 to 3 of 3

Thread: print function

  1. #1
    Join Date
    Mar 2004
    Location
    PJ
    Posts
    2
    Rep Power
    0

    print function

    hi, can anybody here answer my question ?? plezz...

    1) besides using 'printf()' function in php, is there any method to print a web page or certain file?

    2) i want to print certain page/file by clicking a button located in 1 page... how?

  2. #2
    Join Date
    Feb 2003
    Location
    Kluang, Johor
    Posts
    2,367
    Rep Power
    247
    1) I am curious why you are looking for other function since the function - printf() is already there?

    Anyway, if you don't want to use printf(), you may output a page by looping character by character... but that is not wise to do so.

    2) you may use Javascript for the purpose. Here is sample code:
    Code:
    <script>
    function printPage() {
    window.print();  
    }
    </script>
    Call the javascript function from link or button to print the page.

  3. #3
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    231
    yeah!
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. magazine printing, print magazine, large print magazines, magazines printing
    By muqtada123 in forum Other Webmaster-related Services and Promotion
    Replies: 0
    Last Post: 16-10-2009, 02:29 AM
  2. Print friendly button... please help
    By lov3ly in forum Website Design
    Replies: 1
    Last Post: 26-05-2009, 05:54 AM
  3. Print Document
    By hymns in forum Website Programming
    Replies: 12
    Last Post: 02-11-2003, 05:11 PM
  4. php : perbezaan print & echo
    By progmania in forum Website Programming
    Replies: 2
    Last Post: 18-08-2003, 09:14 AM
  5. print
    By kasih in forum Website Programming
    Replies: 3
    Last Post: 16-11-2002, 11:25 AM

Posting Permissions

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

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112