Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6910449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:48:56+00:00 2026-05-27T08:48:56+00:00

I need to create a PDF on a PHP page for a client whose

  • 0

I need to create a PDF on a PHP page for a client whose web host has disabled fopen. All of the PHP->PDF frameworks I’ve seen so far use fopen to add images to the PDF. Is there either a framework that doesn’t use fopen, or another way to create PDFs in PHP.

I’ve used the FPDF framework up to now, and looked at dompdf and mpdf. (I’ve got a few others to look at but thought I’d ask here if someone has got experience).

I tried using curl with FPDF but ran into streaming errors.

Thanks,

Adrian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:48:57+00:00Added an answer on May 27, 2026 at 8:48 am

    If fopen is disabled, it is very likely that all other functions to access the file system (like file_get_contents()) are disabled as well. A PHP PDF library will have to use some function to access the image, so there is probably no way to do this under the current conditions.

    Your client will have to talk to the web host about re-enabling those functions, or look for a new provider. That might be a good idea anyway: disabling all filesystem functions is really excessive and silly, and possibly a symptom of bigger underlying security issues – I can see no reason to do this on a properly configured system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a PDF file on the client side using JavaScript. How
I need to create a pdf with four equal length columns across the page
In a PHP project I need to Create a PDF file and redirect to
We need to create a basic PDF reader running on J2ME. While there are
I was in need of the ability to create a PDF Envelope, and hadn't
I have a directory with PDF files that I need to create an index
I need to create an ASP page (classic, not ASP.NET) which runs remote shell
we are building a PHP script that we need at work to create reports
I need to create a pdf file from the HTML provided from database which
I need to take a ZF rendered view and create a PDF that should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.