473,545 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML_ToPDF, I'm stuck some help please

Hi there,
I'm trying to get HTML_ToPDF (3.3) running on en dedicated server,
safe_mode enabled. Been trying for more than 2 days now, without success.
Have similar script running on my own personal server. Safe mode disabled.

This is what I did so far:
---
I copied html2ps, ps2pdf and curl into
/opt/guide/www.domain.inva lid/HTML/config/html2pdf/, directory also
holds all HTML_ToPDF-files. Did chmod 777 to the specified folder.
Temp-folder is /opt/guide/www.domain.inva lid/HTML/tmp (also 777).
The script:
---
// PDF (include class)
@require_once($ _SERVER['DOCUMENT_ROOT']."/config/html2pdf/HTML_ToPDF.php" );
$defaultDomain = "http://www.domain.inva lid";

// PDF (path to html)
$htmlFile = $_SERVER['DOCUMENT_ROOT']."/pdf/input.html";

// PDF (path to pdf)
$pdfFile = $_SERVER['DOCUMENT_ROOT']."/pdf/output.pdf";

// PDF (settings)
$pdf = new HTML_ToPDF($htm lFile, $defaultDomain, $pdfFile);
$pdf->setDebug('true ');
$pdf->setPs2Pdf('/opt/guide/www.domain.inva lid/HTML/config/html2pdf/ps2pdf');
$pdf->setHtml2Ps('/opt/guide/www.domain.inva lid/HTML/config/html2pdf/html2ps');
$pdf->setGetUrl('/opt/guide/www.domain.inva lid/HTML/config/html2pdf/curl
-i');
$pdf->setTmpDir('/opt/guide/www.domain.inva lid/HTML/tmp');
$pdf->addHtml2psSett ings('break-table: 0');
$result = $pdf->convert();
Running the script returns:
---
DEBUG: html2ps command run:
/opt/guide/www.domain.inva lid/HTML/config/html2pdf/html2ps -f
/opt/guide/www.domain.inva lid/HTML/tmp/CONF-4omnhC -o
/opt/guide/www.domain.inva lid/HTML/tmp/PS-YJn3Ar
/opt/guide/www.domain.inva lid/HTML/tmp/HTML-SDrxWw.html 2>&1
DEBUG: html2ps output:
DEBUG: config file: /opt/guide/www.domain.inva lid/HTML/tmp/CONF-4omnhC
(not removed)
DEBUG: html file:
/opt/guide/www.domain.inva lid/HTML/tmp/HTML-SDrxWw.html (not removed)
DEBUG: ps file: /opt/guide/www.domain.inva lid/HTML/tmp/PS-YJn3Ar (not
removed)
Error: there was a problem running the html2ps command. Error code
returned: 127. setDebug() for more information

---
DEBUG: html2ps output is empty, so I tried to execute the command from
shell. Created a file test.php containing:
<?
exec('/opt/guide/www.domain.inva lid/HTML/config/html2pdf/html2ps -f
/opt/guide/www.domain.inva lid/HTML/tmp/CONF-4omnhC -o
/opt/guide/www.domain.inva lid/HTML/tmp/PS-YJn3Ar
/opt/guide/www.domain.inva lid/HTML/tmp/HTML-SDrxWw.html 2>&1');
?>

running '/>php test.php' returned;
---
Error opening resource file:
/opt/guide/www.domain.inva lid/HTML/tmp/CONF-N4OHnA
*** Error opening /opt/guide/www.domain.inva lid/HTML/tmp/PS-JXAcZk for
output

The generated files in tmp-dir are owned by 'nobody:other', only nobody
has rw-access, group other has r-access.

Why can't php open the file?
What actions to take to solve this?

Thanks in advance!
Aug 18 '05 #1
0 1739

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2133
by: Vladimir | last post by:
I'm running ASP on IIS 5.1 on Windows XP, the same thing works on Windows 98 with PWS. The function below stuck the IIS - draws only frame with nothing inside and wait for infinite. All other requests to IIS are stuck. I presume that it is some permission thing, but what? Is there some log or something that I can check? Please help! ...
17
2013
by: JT | last post by:
Help me the following C++ question: Write a program to help a local bookshop automate its billing system. The program should do the following: (a)Let the user enter the ISBN, the system will trace the title and price of the book automatically. The system should check whether the book is in the stock or not. If it is not, please let the...
8
2940
by: MLH | last post by:
I use a mouse-down procedure to trap right mouse clicks and CTRL-Right mouse clicks. Running the procedure must put honey or some other sticky substance into my keyboard because subsequent RightMouseClicks run as if they were CTRL-RightMouseClicks I have to close the form and reopen it to clear this behavior. Then, after the first...
12
2116
by: MuZZy | last post by:
Hi, Sorry for a repeated post but i didn't receive an answer and will try to re-phrase my question: How do i close an additional thread from the main thread, if this additional thread is stuck waiting for a blocking operation, eg. if in this additional thread i wait for a Tcp connection: Socket s = tcpListener.AcceptSocket();
1
1680
by: jessebasketball | last post by:
i am a very beginner programmer and am stuck on a very simple problem. I am trying to make a game where the user is presented with a scenerio and options. ie you are standing in the parking lot a.run b.go home c.stay there when a option is selected a new option is presented.
2
2056
by: rehet | last post by:
hye.. i really need ur guys help.. im stuck.. i want to count the word freq and print them according to the word length.. > the longest be output first.. ouh.. and my input must be alphabet or alhabet+numeric only.. here what i did so far.. #include <iostream> #include <string> #include <map> using namespace std; class Cmp : public...
4
3118
by: =?Utf-8?B?TWF1cg==?= | last post by:
My cd is stuck in the drive. I can open the drawer O K but the c d will not come out Help me please -- Maur
1
1689
by: =?Utf-8?B?VHJ1cHRpIERhbGlh?= | last post by:
Hi to all, I am new in this newsgroup and new to .NET also. I am creating an application where I have to perform Mail Merge from my program. I have created a form which contain RTB and user can write letters. I programmatically add tags for address, name, comp. name et while saving the letter. I have a datasource - in for mof a dataset to...
0
7420
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7934
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6003
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3476
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1033
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.