Fatal Error: Call To Undefined Function Pdf_new()
Got a bit of a puzzler here!
I get this error:
Fatal error: Call to undefined function pdf_new() in /Applications/MAMP/htdocs/Dream PDF/pdfcreate.php on line 25
From this code:
<?php
$fontface = $_POST['fontface'];
$size = $_POST['fontsize'];
$content = $_POST['content'];
$pdf = pdf_new();
pdf_open('pdfs/1s.pdf');
$font = pdf_load_font($pdf, $fontface, "host", "");
pdf_begin_page($pdf, 595, 842);
pdf_setfont($pdf, $font, $size);
pdf_show_xy($pdf, $content, 50, 70);
pdf_end_page($pdf);
pdf_close($pdf);
pdf_delete($pdf);
?>
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Fatal Error: Call To Undefined Function :
I'm working in an environment that only uses windows!!! HELP!!! but because of this I must test and use everything on windows. So, I'm using PHP 4.06, Apache 1.3.2 and Windows 2000 pro. Everything works. But here is my problem. I tried setting up functionality with fdftk. What I tried doing is setting up my extension directory and the extension=php_fdf.dll in my php.ini file. When I try to run my script I get an error like this: Fatal Error: Call to undefined function : fdf_open().
View Replies !
View Related
Fatal Error: Call To Undefined Function: ()
I am currently butting my head against a brick wall with a problem right now. I am trying to use two arrays to track an item and it's quantity. When ever the script runs it says I keep getting this error message: Fatal error: Call to undefined function: () in /info/www/docs/cpcdb/search/addcart.php on line 109 This error occurs on the first time the session is initialized. The called function is get(). When I reload the page (reloading session) I get a new error Fatal error: Call to undefined function: () in /info/www/docs/cpcdb/search/addcart.php on line 93 which occurs in a branch of an if statement that checks to see if my arrays are not empty. The function called on line 93 is upditem. Code:
View Replies !
View Related
Fatal Error: Call To Undefined Function:
I have an online photogallery nearly working. I get the error below and have no idea why its happening. The 'Still Here!' bit is what the code is echoing so i can see if that set of code works. I have followed a tutorial for this and Not really sure what to do. Code:
View Replies !
View Related
Fatal Error: Call To Undefined Function
I'm running latest versions of Apache, PHP and MySql on WIN 2000. PHP is installed from the zip file. When serving php docs (code snippets below) I get the messages: "Fatal error: Call to undefined function mysql_connect() " "Fatal error: Call to undefined function mysql_pconnect() " I've been reading and searching and trying all sorts of things to fix this and can't find the solution. I've removed the comment from the line "extension=php_mysql.dll" in php.ini. (Below is the MySQL section of php.ini. It's pretty standard, I'm using defaults.) I edited my Apache config file with the needed lines: Code:
View Replies !
View Related
Fatal Error: Call To Undefined Function: Virtual()
I trying to install php on my local computer. Everything works OK, but virtual() function. If it is on a page, it returns "Fatal error: Call to undefined function: virtual()" I guess it something should be corrected in httpd.conf ot php.ini, because the same pages work just fine if called through my server (with php and apache installed). Both PC-s are under Windows. I think this is a common error, because there are plenty pages in Internet with this error.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Imap_open()
I have compiled php4.0.1pl2 with imap support and followed the instructions from the php website as well as followed the advice in the user notes under imap in the help section. I still can't get imap_open to work. I get: Fatal error: Call to undefined function: imap_open() in /www/mail.php on line 9 I have the latest version of the UW imap installed and working properly. Is there anything else i need to do inorder to get imap working?
View Replies !
View Related
Fatal Error: Call To Undefined Function: Proc_open()
Hi *. I get this error when trying to run proc_open() function: "Fatal error: Call to undefined function: proc_open() in /home/frantic/public_html/a/phpshell.pup on line 140" Does anybody knows what setting I have to change to fix this? Configuration: Linux loci 2.4.25 PUP Version 4.1.2 Apache Version Apache/1.3.26 Apache Release 10326100 Apache API Version 19990320
View Replies !
View Related
Fatal Error: Call To Undefined Function Mssql_connect()
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the webserver. All is working well, except I get a - Fatal error: Call to undefined function mssql_connect() in C:InetpubwwwrootCertificateOccupancymain.php on line 33 line 33: $conn = mssql_connect(toshibo,sa,ladeda) or die ("Could Not Connect to Database"); when trying to use mssql_connect. Info.php shows that the mssql module is loading which tells me that where I uncommented extension=php_mssql.dll in the php.ini file is working. I have set up paths for both the c:phpext and c:php directories. I had PHP 4.3.10 installed on the same box a day earlier, and the function worked. Also, I am using the ISAPI method for PHP instead of the CGI if it matters.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Gmp_random()
I want to create a random number, so I looked this up in the manual and it looked good. However, I can't get it to work. Tell me, why doesn't this work? $number = gmp_random("9999999999"); echo "$number"; gives me this: Fatal error: Call to undefined function: gmp_random() in /home/dpetersen/public_html/Site/newsletter.php on line 5 where line 5 is the line where the gmp_random() function is called. with or without quotes it doesn't work. And in the manual it says it will generate a random number between the number you specify and 0. but it doesn't give any examples and I just figured it would work like that.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Session_start()
Below is the simple code of session start : <?php session_start(); echo "session_start() works!";?> but when i run this script the browser gives me this error : Fatal error: Call to undefined function: session_start() in /var/www/html/session.php on line 2 This script was running fine and also my other scripts in older php 4.1.2, but when i upgraded to 4.2.1 the the problem started. Is it because of the old php.ini file not been overwritten or it is something else. Register Globals is off.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Imagecreate()
./configure' '--with-ldap' '--with-oci8=/home/oracle/OraHome1' '--with-mysql' '--with-apache=../apache_1.3.24' '--enable-transient-id' '--enable-gd=../gd-1.8.4' '--with-jpeg=../jpeg-6b' '--with-png=../libpng-1.2.3' '--with-zlib' everything compiles fine and runs except for when i use GD stuff. Fatal error: Call to undefined function: imagecreate() in ...etc etc etc Anyone have ideas on how to compile this correctly?
View Replies !
View Related
Fatal Error: Call To Undefined Function: Session_cache_limiter()
I am currently using version 4.0.6 of PHP and am trying to use the session_cache_limiter() function which was added in PHP versions greater than PHP 4.0.3. Unfortunately, my calls to said function yield the following message: Fatal error: Call to undefined function: session_cache_limiter() . . . Does anyone out there have any experience or advice about using session_cache_limiter()?
View Replies !
View Related
Fatal Error: Call To Undefined Function: Display_category()
I want this to run the if statement when clicking the save button(mainly cause it depends on variables that arent submitted yet), but it seems its running it at the calling of the file in my broswer, cause I get this error. Fatal error: Call to undefined function: display_category() in c:apachehtdocsgolesnewcatshowtable4.php on line 116 PHP Code:
View Replies !
View Related
Fatal Error: Call To Undefined Function: Sem_get()
I have trouble using sem_get(). I figure there must be something that I am not doing right, but I cannot figure out what. I put in <?PHP echo "entering PHP<BR>"; $sem_id=sem_get(飓'); echo "exiting PHP<BR>";?> and I get out entering PHP: Fatal error: Call to undefined function: sem_get() in /home/[...]/sem1.php on line 3 The web hosting firm insists that semaphore functions are available.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Imagecreatefromjpeg()
I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally choose ImageMagick because I've heard so much about it. I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3 that I compiled with --with-gd. I can use some of the image functions in PHP so why is this one undefined? What can I do to resolve it? The message follows, in addition, I include an extract from my phpinfo() to show that I do have GD Support fully enabled. Fatal error: Call to undefined function: imagecreatefromjpeg() An extract from phpinfo(); tells me the following: GD Support enabled GD Version bundled (2.0.15 compatible) GIF Read Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled What do I need to do to fix the problem? -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?
View Replies !
View Related
Fatal Error: Call To Undefined Function: Mime_content_type()
Does mime_content_type() require anything to be pre-compiled? I'm using PHP4.3.3 with Apache 1.3.28 and the man/help page in the latest php.chm windoze file doesn't mention any pre-requisites... -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?
View Replies !
View Related
Fatal Error: Call To Undefined Function: Sqlgetx()
I installed script on my site and now I'm getting error: Fatal error: Call to undefined function: sqlgetx() in /home/sharewsa/public_html/links/123454/index.php on line 36 on http://example.com/links/123454/ and also similar urls. When I refresh sumtimes it helps, also the urls like mentioned one work when entering by proxy from non USA IPs.
View Replies !
View Related
<b>Fatal Error</b>: Call To Undefined Function: Curl_init() In ....
I'm trying to test cURL function with a very very simple code: <?php // file name : test.php // create a new curl resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.phpbuilder.com/"); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); // close curl resource, and free up system resources curl_close($ch); ?> And run this script with: $ php -f test.php Then PHP said: <br /> <b>Fatal error</b>: Call to undefined function: curl_init() in <b>test.php</b> on line <b>3</b><br /> I go to see phpinfo and found : curl CURL support : enabled CURL Information : libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4 What's going on with my web server. And how to solve this?
View Replies !
View Related
Fatal Error: Call To Undefined Function: Curl_init()
So I'm using curl to submit people who subscribe to a mailing list that is handled by a different company, so we need to use curl to put the data into their system. Problem is, when a user wants to subscribe, I get this error: [17-Jul-2006 15:48:59] PHP Fatal error: Call to undefined function: curl_init() in /home/webserver/subscribe2.php on line 52 However, I looked in the PHP manual and the function is in there! And I know our PHP version has curl available. I don't know what to do!
View Replies !
View Related
PHP Fatal Error: Call To Undefined Function Mysqli_connect() In..
My program is <?php mysqli_connect('ns1','tdphp8','tdphp8')or die('connection error'); print'hai' ?> my output is [tdphpadmin@conws60 ~/public_html/demo]$ php sql.php PHP Fatal error: Call to undefined function mysqli_connect() in / home/ tdphpadmin/public_html/demo/sql.php on line 2 X-Powered-By: PHP/5.2.0 Content-type: text/html In the web browser,Everything works good and i am not getting the error or die message. actually database connection is established and data insertion data retrival are sucessfull but i am receiving this error in terminal.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Decrypt_md5()
to give access to some of my pages I use a loginscript. When people register the password is encrypted with the md5 function: $passw=md5("$inv_passw"); Now I want to have the user to ask for his password when he lost it by mail. the crypted password needs to be decrypted. I thought to use the nextcommand: $uncrypted = decrypt_md5($assw); but this gives a fault: Fatal error: Call to undefined function: decrypt_md5()
View Replies !
View Related
Fatal Error: Call To Undefined Function: Iconv()
I am trying to run a script which is installed on a web server that I do not own or administer. The script relates to a emailing list. When I go to send an email I get the following error: Fatal error: Call to undefined function: iconv() in /home/garry/public_html/pmnl/admin/send.php on line 78 I think the server is Linux based.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Mssql_connect
I just installed PHP 4.4.0 on our production webserver after practicing PHP on my localmachine for months. PHP installed fine, I can view PHP pages, but when I try to connect to our mssql server, I get the error mentioneed in the thread header. I had this same problem when I used PHP from my local machine to connect to the same mssql server, and I resolved it by editing the php.ini file to allow for the extension=php_mssql.dll and copying the ntwdblib.dll into the SYSTEM32 folder... But the fix for my machine doesn't seem to do the trick for the server.
View Replies !
View Related
Fatal Error: Call To Unsupported Or Undefined Function Foreach()
When trying to do a statement like the following: $filename = "/file/path/to/sites.inc"; $file = fopen ($filename, "r"); $fcontents = fread ($file, filesize ($filename)); fclose ($file); foreach($fcontents AS $line) { echo "$line "; } I get the following error message: Fatal error: Call to unsupported or undefined function foreach() Why is this happening? I'm used to perl and I know perl don't do weird stuff like this. I checked the value of fcontents and it does contain the information from the file but still no dice.
View Replies !
View Related
Fatal Error: Call To Undefined Function: Virtual() Right Format?
<?php virtual("http://iphere/cgi-bin/post/YaBB.pl?board=july_02_week1;action=news"); ?> and is it in right format? The page that I got it from said it should be set as <?php virtual("./your_yabb.pl?board=news;action=news"); ?> I cant post it for you because I am on a government computer and that would be frowned upon, but the error it gives me is this: Fatal error: Call to undefined function: virtual() in C:Documents and Settings ewmanjDesktopgdfest.php on line 8 The only thing in the document is this: Code:
View Replies !
View Related
Php5 Fatal Error: Call To Undefined Function Xslt_create()
I recently installed wampserver which packages php5, phpmyadmin and apache. All seems to work fine except when I try to use XSL functions such as xslt_create() I receive the following error: Fatal error: Call to undefined function xslt_create() I've uncommented the xsl extension : extension=php_xsl.dll phpinfo states the following : XSL enabled libxslt Version 1.1.7 libxslt compiled against libxml Version 2.6.11 EXSLT enabled libexslt Version 0.8.5 So, I believe XSL is enabled but the functionality doesn't seem to be available to me, does anyone have any idea how I can resolve this?
View Replies !
View Related
Excel Writer: Fatal Error: Call To Undefined Function: SetColumn()
I have a problem that is giving me a headache! I am using Excel Writer to create worksheets basically like so: require_once ('Excel/Writer.php'); $f_path="/path-to-file/$filename"; $workbook = new Spreadsheet_Excel_Writer($f_path); while($rfps=mysql_fetch_row($sheet_result)) { //set worksheet details $worksheet =& $workbook->addWorkSheet("Overview $rfps[1]"); $worksheet->setColumn(0,0,23); . . . . } If I cycle through one time, all works fine. If I cycle through more than once, I get "Fatal error: Call to undefined function: setColumn() in...." Any ideas on why the function is defined the first time though, but on the second time though it is no longer defined?
View Replies !
View Related
Fatal Error: Call To Undefined Function: Mysql_connect() In /var/www/html/index.php
I get the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/index.php on line 3. I have the following RPMS installed on RH7.2 MySQL-client-4.0.14-0 I would really appreciate it. MySQL-shared-4.0.14-0 MySQL-server-4.0.14-0 MySQL-devel-4.0.14-0 php-imap-4.0.6-7 php-4.0.6-7 apache-1.3.20-16 apache-devel-1.3.20-16 apacheconf-0.8.1-1 The code i am trying to run is: I would really appreciate it. <?php printf("opening db....."); $db = mysql_connect("localhost","user","password"); printf("closing db "); mysql_close($db); ?> The configure part of phpinfo() shows: ----- './configure' 'i386-redhat-linux' '--prefix=/usr' .<snip> '--enable-wddx' '--without-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' '--with-xml' ------ I believe the mysql is not installed to work along with PHP. I installed php using rpm. My question is how do i make it work. I have checked NG and tested all the options. But to no avail. I also tried by uncommenting the line extensin=mysql.so in /etc/php.ini.
View Replies !
View Related
MySQL Functions - Fatal Error: Call To Undefined Function Mysql_connect()
I am using AMP (Apache, MySQL and PHP) to develop a website, they're all installed correctly, and - as far as I know - working together correctly. I'm trying to connect to the MySQL database I've sent with this code: Code: $connection = mysql_connect("localhost", "****", "*******"); but I'm getting this error: Code: Fatal error: Call to undefined function mysql_connect() in C:Program FilesApache GroupApache2htdocsprojectsignupsubmit.php on line 10 Which makes me think maybe they aren't all working together. any ideas?
View Replies !
View Related
|