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

  • SEARCH
  • Home
  • 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 9211439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:17:46+00:00 2026-06-18T01:17:46+00:00

Hi I have mybb installed on my website. I have also installed dompdf and

  • 0

Hi I have mybb installed on my website. I have also installed dompdf and its working in its own directory i.e. I have installed in "DOM" directory. Now I can easily general pdfs with this simple code , keeping in the "DOM" directory.

<?php
require_once "dompdf_config.inc.php";
//$file = "www/test/css_at_font_face.html"; 
$file="msf.html";
$dompdf = new DOMPDF();
$dompdf->load_html_file($file);
$dompdf->render();
$dompdf->stream("sample.pdf");

?>

If I try to access other file that is out the director DOM i.e.

load_html_file($file);
$dompdf->render();
$dompdf->stream(“sample.pdf”);

?>
I receive error Remote file requested, but DOMPDF_ENABLE_REMOTE is false

  • 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-06-18T01:17:47+00:00Added an answer on June 18, 2026 at 1:17 am

    To load html without enabling remote file access:

    <?php
    require_once "dompdf_config.inc.php";
    $file = "www/test/css_at_font_face.html"; 
    $html=file_get_contents($file);
    $dompdf = new DOMPDF();
    $dompdf->load_html($html);
    $dompdf->render();
    $dompdf->stream("sample.pdf");
    
    ?>
    

    To enable remote file access:

    Taken from dompdf_config.inc.php

    /**
     * Enable remote file access
     *
     * If this setting is set to true, DOMPDF will access remote sites for
     * images and CSS files as required.
     * This is required for part of test case www/test/image_variants.html through www/examples.php
     *
     * Attention!
     * **This can be a security risk**, in particular in combination with DOMPDF_ENABLE_PHP and
     * allowing remote access to dompdf.php or on allowing remote html code to be passed to
     * $dompdf = new DOMPDF(); $dompdf->load_html(...);
     * This allows anonymous users to download legally doubtful internet content which on
     * tracing back appears to being downloaded by your server, or allows malicious php code
     * in remote html pages to be executed by your server with your account privileges.
     *
     * @var bool
     */
    def("DOMPDF_ENABLE_REMOTE", true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have an app that can use tts to read text messages. It can also
Can Atlassian Crowd be used as a single sign on service for myBB ?
Have been trying to get integration testing working with my seam project and the
here is the query, I have inner joined 3 tables, Now i am looking
I'm using MyBB , I want to show on my website homepage the threads
Have spent the morning on the examples page, and can't seem to spot why
I've got a website (www.ferfereh.ir - sorry it's not english) and I've installed a
In MyBB forums you must have seen that all those threads are stoed as
have been playing with Cubepoints (wordpress plugin) and have installed the ranks module but
have written this little class, which generates a UUID every time an object of

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.