CentOS 5 Server :: Creating PDF Using PHP Getting Undefined Function Error?
Mar 16, 2009
I had installed PHP using yum install php. I am trying to use the pdf_new function to create pdfs from existing text files, but I get this error PHP Fatal error: Call to undefined function pdf_new()I have noticed that when I run the phpinfo() command, I cannot find the PDF phrase at all. My php.ini file does not even have these two linesextension=php_pdf.dll extension=php_cpdf.dll kind of command I should use if I need to build PDFs using PHP on Centos 5?
I'm newbie with Centos. I have got a server with Centos 5.2 and I need to use PHP 5 >= 5.1.0 function as timezone_open. So that, I follow this guide to update php. Now, I have got PHP 5.1.6 (cli) (built: Mar 31 2010 02:44:37). I create a simple test.php: Quote:<?php $var = timezone_open('UTC');print_r($var);?>
I had created a database in mysql called guestbook and created tables also in mysql and also granted remote connections privileges from below command
mysql> grant all privileges on *.* to root@192.168.1.222 identified by "rrcrrc";
i had accessed from my pc(192.168.1.222) and used phprunner to create php web pages and copied the phprunner output folder to use with apache. when i accessed from my pc the below error is coming
Fatal error: Call to undefined function: mysql_connect() in /home/administrator/useridall/include/dbconnection.php on line 9
i can't understand what is going on so i put this question in the forum, below is i am giving the dbconnection.php details.
I am trying to connect PHP with Mysql, but coming across the below error: PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/index.php on line 2
I know that you already had some cases of this error on this forum, and i wouldn't like to open up old topics, but none of the solutions mentioned before, helped.
I am trying to run a local php script on a Debian based server, but every time i run it, i get this error message:
Code:
Code:
And the php mysql_connect() function works as tested in this .php file
Code:
Using the script
Code:
The php script i am trying to run is a php irc bot from
Code:
And the mysql.php file which issues the error is like this:
Code:
I have also tried editing the mysql_connect function to be something like the test script i mentioned above, but still get the same error.
I have installed LAMP server using the apt-get (installed following packages: apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin) everything so far works great.
What i have noticed, that even though mysql shows up in phpinfo, it doesn't show up as a module listed in 'php -m'
I am having a problem with my slackware version 12 server. I tried installing a new joomla theme from the rockettheme and its giving me the following error while loading the site.
Fatal error: Call to undefined function imagecreatefromjpeg()in /home/www/verticaltest/modules/mod_rokstories/thumbnail.inc.php on line 167
Thought it was a problem with gd library modules, but in info.php, its showing that gd is installed in the server. Pasting the result form info.php below..
I have weird problem with postgresql + nginx + php5 0 ubuntu 11.04. Postgresql works just fine, when I run "php test.php" from shell. I assume php runs from shell are called cgi runs? When I open page from browser [URL]... I get following error. I assume php runs from browser are called cgi runs? Fatal error: Call to undefined function pg_connect() in /var/www/mydomain/htdocs/test.php on line 7 When you print php info, only reference to postgresql is pgsql.ini and pdo_pgsql.ini files that are parsed.
[code]....
I did install postgresql by running following commands:
I'm trying to create a program from 2 files - main.cpp that contains the main function, and modules.c that contains the definitions of the functions that are called in main(). modules.c only contain function definitions, no main function.
My Makefile is as follows:
Code:
I have included "modules.h", which contains all the function declarations, in my main.cpp.
When I try to make using this Makefile, I get the error
Code:
If I switch the order of modules.o and main.o in my $(TARGET) line, then I get errors that say "undefined reference to" the functions I have defined in modules.c, in main.cpp.
curl: try 'curl --help' or 'curl --manual' for more information so here curl is working when I'm trying php test.php I got: PHP Fatal error: Call to undefined function: curl_init() in /root/test.php on line 142
Also in php.ini is missing extension=php_curl.dll but I added and the same problem
I am trying to connect to my mysql database using php but I am getting the error "Fatal error: Call to undefined function mysql_connect()".
I checked phpinfo() and there is no reference to MySQL. I believe this means that my install of PHP doesn't support MySQL. Do I need to uninstall and reinstall with a version of PHP with MySQL support? If so how should I do this and how do I get a version of PHP that supports MySQL?
I am getting this error when I try to connect to my MySQL database from a PHP page. "Fatal error: Call to undefined function mysql_connect() in /usr/local/htdocs/test.php on line 11" I have found instances on the Internet where other people had the same problem but from everything I've read, none of it appears to do anything for me.
I have read that I need the "extension=mysql.so" in my php.ini file and to uncomment it but it's not in there and I don't even have the "mysql.so" file. Many people have said to install the MySQL "devel" package, which I have also done and it is still not adding the file. I have also tried running the PHP ./configure again with the "--with-mysql". After all of these I still can't seem to get any further than I was when I found out I had a problem.
While compiling one of my programs I am getting this error: Undefined symbol:_gfortran_internal_malloc64My program actually gets completely compiles and linked and this error is shown in run time.Does anybody have any experience about getting around this ? May be using some different version of GFortran ?I am using Centos 5.4 64 bit and GFortran 4.4
I am trying to connect to my mysql database using php but I am getting the error "Fatal error: Call to undefined function mysql_connect()".
I checked phpinfo() and there is no reference to MySQL. I believe this means that my install of PHP doesn't support MySQL. Do I need to uninstall and reinstall with a version of PHP with MySQL support? If so how should I do this and how do I get a version of PHP that supports MySQL?
I am trying to add some function to the c++ project (calling function) and the called function are in C. And i am getting error "undefined reference to "Hello(int,int)" " while linking. It is compiling correctly. It is linking to header file mention in the calling function. This header file has definition to the c - called function. Do you thinking having c files into C++ project will be a problem? Should I remove <stdio.h> in c files?
I'd like to learn debugging techniques as much as to solve this particular problem. While trying to build yad 0.5.1:
Code:
yad-notification.o: In function `yad_notification_run': /tmp/yad-0.5.1/src/notification.c:330: undefined reference to `gtk_status_icon_set_tooltip_text'
According to the source package's README file, "Yad depends on gtk+ only. Minimal gtk+ version is 2.12.0". I checked /var/log/packages and found gtk+2-2.14.7-i486-4 is installed.
Inspecting /tmp/yad-0.5.1/src/notification.c showed that gtk_status_icon_set_tooltip_text is a function. So it should be declared in the gtk+2-2.14.7 header files (or not?).
drwxrwxrwx 2 root root 1368064 Mar 10 18:28 monitor drwxrwxrwx 7 root root 12288 Feb 18 17:07 monitorDONE
I have created one short cut link for this folder with below command :
ln -s monitorDONE recordings lrwxrwxrwx 1 root root 11 Mar 13 14:30 recordings -> monitorDONE This link is under /var/www/html Now, when I do IP/recordings It show me an Error as Forbidden You don't have permission to access /recordings on this server.
I performed a yum update and now my yum is not working and I am unable to start my apache processes (in a dmz configuration).This is the error I am getting from yum.
yum clean Traceback (most recent call last): File "/usr/bin/yum", line 4, in ? import yum
I have a centos 5.5 server running great, but i am having issues with my xen vm01 virtual machine. The first probelm is, i have created the vm01 fine and it was running ( even though i can not login into it ) by running:
ivecd-tools mksquaush error on centos5.2I want to make a custom livecd. But I can't."Error creating Live CD : mksquashfs exited with error (1)"What shuld I do?hat log shuld I check?I did like this...centos5.2/i386Access livecd project site.Install livecd repo's syslinux and livecd-tools.download centos-livecd-minimal.ks project site.I have centos5.3 machine on vmware server install above 5.2 physical machine.But the 5.3 machine said same messages(mksquashfs exited ...)
I have created a ftp user in centos 5,but it got all permissions to delete files in other location,view the entire directory and create any folder in every place. How to deny this permissions to the particular user.And please help me to give permissions only to a specified location given by the root.
while creating a new database iam facing the below problem
mysql> create database auto-download-gta; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-download-gta' at line 1
I am new to linux, running a brand new centos 5.2 server. One application I want to use it for is to serve as a network host for a game my friends and I enjoy. Normally, to run the game in host mode you call the binary and pass it a port number (along with other options). To host a second instance of the game, same thing different port, you get the idea.
After doing that the binary runs in your window and dumps to stdout, so if you want it to run 24/7 you have to come up with your own strategy like nohup. Fair enough, now, I'm trying to coax the game into restarting automatically upon reboot. The most correct way to do this seemed to be to write a script for init.d so that's the road I traveled down. Now, to strain the metaphor, the pavement has ended and I'm stuck in the sand.
Here begin my questions: I've been following the structure of other init.d scripts and I notice they all seem to call the function daemon() (contained in /etc/init.d/functions) to start their services. Looking at the structure of daemon() I see that you can pass it a user and a pidfile. The user part seems to work fine, but no pidfile is created. Let me be more specific.
Like the other scripts, I explicitly touch /var/lock/subsys/game-port on startup, which works fine. However, all of those other services seem to have a pidfile in /var/run and mine doesn't. They don't create it explicitly in their init.d script therefore I assume that some other process is creating the pidfile. At first I thought it would be the call to daemon(), since you have the option of passing it --pidfile, but that doesn't seem to work.
Are the services themselves creating the pidfile? If that's the case then I have more complications because the game binary apparently doesn't do this. Second question but probably related to the first. None of the other init.d scripts I looked at seem to do anything special to detach their services from a particular terminal session, therefore I didn't think that I would need to either.
Again I thought this was something the call to daemon() might accomplish, but either I'm wrong or I'm doing something wrong. I can probably work around this with nohup or appending '&' or something, but I'm just curious that other services like crond, sshd, named, etc., don't seem to do this. Are they determining this behavior from within the binaries themselves? I hope this is clear, as I said I'm new so I may not be getting all of the terminology correct.
Wondering if the internal network will benefit of connecting to a local DNS server, rather than my ISP dns server. Can I create this local DNS server, without having an external domain, pointing to my server ?
All I want is faster lookup of known hostnames, both internally (hostnames) and externaly (cnn.com etc..)
We have a squid-proxy configured with 1 delay pool to limit the bandwith to 6M. I have to create a kind of exception for a specific remote host for which we want to reserve 1M which is not included within the 6M. How should I do that? Here is our actual configuration of the delay pools
I've just discovered that crontab is creating a new file in the root directory every time it executes a cronjob, and it doesn't erase over the old file so there are thousands of files in the root directory, they have the same name as the script file (appended with a numeral) but are all blank.here is what one of the cronjob's looks like[URL]