473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problems about print a pdf content

Hi, all
I create a pdf content on fly and then print it out with coding as following. It's used to work fine on an apache server. Now I change to another apache server on different machine, it won't work now. I wonder maybe the apache version is different, this one is lattest version. Can't figure out the problem. Please advise, thank you very much!


header('Content-Type: application/pdf');
header('Content-Disposition: inline');
print($rpt_content);

Jack
May 24 '09 #1
3 1791
prabirchoudhury
162 100+
could you check "PDF Support: enabled" for both server ... you could check calling phpinfo() function on a separate php page.

The phpinfo() function generates a html page with all the information
about the PHP installation, including the information about the Apache
web server, the version and settings of the PHP compiler, and the
supplemental PHP libraries that are installed and activated.
May 24 '09 #2
Markus
6,050 Expert 4TB
Do you get any output? What *does* happen? What *doesn't* happen? Are there any errors given?

PDF reading is left up to the browser (the browser needs a plugin to read it).
May 24 '09 #3
Thank you for reply. I did checked variable
$rpt_content
which does have correct content of PDF. The browser got nothing after
PHP print($rpt_content)
and become like hang up. On phpinfo, I didn't found anything about PDF. Actually I didn't use PHP to create PDF content. I just read a pdf file from somewhere in server disk.
May 25 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Irmen de Jong | last post by:
Hi I'm trying to create e-mail content using the email.MIMEText module. It basically works, until I tried to send mail in non-ascii format. What I did, to test both iso-8859-15 and UTF-8...
3
by: John Draper | last post by:
I am having a lot of problems trying to get a Python CGI to run. I have included 3 parts... 1) A simple stripped down python module. 2) An output of what I get when I do: python index.py...
0
by: Ira Lee | last post by:
Hi. I'm having a bit of trouble using a Perl script that will login to a secure website... and then access subsequent pages with a cookie. This works when accessing manually via the browser...
10
by: connyledin | last post by:
Im trying to create a version of the game Wumpus. Mine is called Belzebub. But im STUCK! And its due tuesday 2 maj. Im panicing! Can some one help me?? here is the file:...
1
by: john.swilting | last post by:
my code index.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta name="generator" content="Bluefish 1.0.7"> <meta name="author" content="root"> <meta...
1
by: sunshine | last post by:
Hello all, Please help, I am going crazy here I have a html page with javascript code contained so, when the content on the div is too big for the div, it automatically displays a scroll bar...
7
by: Guy Davidson | last post by:
Hi Folks, I'm having some issues with an small socket based server I'm writing, and I was hoping I could get some help. My code (attached below) us supposed to read an HTTP Post message...
0
by: eddiefisher41 | last post by:
Hey guys. Im having problems running a python cgi. Im using the example code from: http://www.python.org/doc/essays/ppt/sd99east/sld041.htm as writen by Van Rossum himself I can get the script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.