473,386 Members | 2,114 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,386 software developers and data experts.

PDFlib detection?

Greetings,

Apologies in advance for the crosspost.

I would like to determine if the PDFlib library has been installed on a
shared server which I do not administer. Is there a command I can run on
a Unix server to detect if PDFlib is installed?

Jul 17 '05 #1
2 3911
On Wed, 07 Apr 2004 11:59:39 -0700, bonehead <se**********@here.org> wrote:
I would like to determine if the PDFlib library has been installed on a
shared server which I do not administer. Is there a command I can run on
a Unix server to detect if PDFlib is installed?


function_exists on one of the functions defined by that extension?

http://uk.php.net/manual/en/function...ion-exists.php

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2
bonehead <se**********@here.org> wrote in message
news:<40**************@here.org>...

I would like to determine if the PDFlib library has been installed on a
shared server which I do not administer. Is there a command I can run on
a Unix server to detect if PDFlib is installed?


Option 1:

if (function_exists('pdf_new')) {
echo "PDFlib is available.<br />\n";
} else {
echo "PDFlib is not available.<br />\n";
}

Option 2:

if (extension_loaded('pdf')) {
echo "PDFlib is available.<br />\n";
} else {
echo "PDFlib is not available.<br />\n";
}

Cheers,
NC
Jul 17 '05 #3

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

Similar topics

2
by: Randell D. | last post by:
Folks, I've read the PHP online help file and I believe the ClibPDF functionality is seperate, but similar to the PDFlib version - What is the difference? Why would one use one, instead of the...
0
by: William Holroyd | last post by:
So I've got PHP to recognize mcrypt and pdflib in the phpinfo() output, but trying to use any of the functions fail with "...undefined function called..". There aren't any configurable files with...
0
by: ian douglas | last post by:
Hey all, Anyone have a wraper written as a drop-in replacement for PDFlib? That is, use their function names, parameters, pretty much identically? I'm making some slight modifications to an...
0
by: acorn71 | last post by:
Hello, Are there advantages to using PDFlib over FPDF? My employer has purchased a license to PDFlib but I wanted to know if FPDF is a better overall choice. I'm specifically referring to any...
0
by: Rul | last post by:
i have to build pdf files from tiff in a visual basic application, so i downloaded http://download.devparadise.com/pdflib-2.01.zip pdflib's 2.01 source to make the visual basic bind, but the vb...
0
by: Jeff_M | last post by:
I asked my web hosting company to install PDFlib so that I could create, just very simple dynamic pdfs. (using PHP5) They said it is installed. When I call phpinfo(), I see this . Configure...
2
by: Nader Emami | last post by:
L.S., Would somebody help me about PDFlib using? I am a user of a Linux machine (not root) and I have installed PDFlib somewhere in my home directory. So I can't change the '/etc/php.ini' file....
0
by: seth.northrop | last post by:
Hi, I get this error with the new PHP PDF Binaries: http://pecl.php.net/bugs/bug.php?id=9491&edit=1 And I've attempted to do the workaround (install a newer PDFLib binary). That fixes the...
1
by: sanjeev1984chadha | last post by:
Hi I am facing trouble in calling PDFlib class i have a file called "export.php"and while running it from command prompt i get an error Fatal error: Class 'PDFlib' not found in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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...

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.