sqlite : Fatal error: Call to undefined function sqlite_escape_string() - php

I use a script who recquires SQLITE,
on my previous hoster, it works,
on local it works,
on my new dedicaced server, it doesn't, i use PHP5 of course, on this link, you have a phpinfo() of the server.
http://bit.ly/bXlLT1
Could you tell me what/how (apt get?) to install correctly sqlite to avoid this fatal error?
Thanks

sqlite installed : problem fixed.

Related

Loading ldap driver onto MAMP on Mac OS X

Currently, I am getting an error
fatal error: undefined function ldap_connect()
I am assuming this is because I do not have the library php_ldap.dll, but I am unsure how to even obtain it. Basically, I'm trying to get it so that ldap driver appears on the phpinfo page.
Please do not mark this question as duplicate: Fatal error: Call to undefined function: ldap_connect(). This solution works for Linux and Windows, but does not work on Mac OS.
Any input would be appreciated.
When you are on a Mac php_ldap.dll won't help you as that's a windows file.
If you are using MAMP you should have a look at the MAMP documentation to see how to enable other extensions. IIRC there is a possibility to enable extensions in the preferences somewhere but I might be wrong or that has changed since I looked the last time. If there is that possibility, you should be able to enable the LDAP extension there.

mssql_connect() problems even with php_sqlsrv_54_nts.dll

So apparently I'm a lucky bastard and got problems with this function in my localhost ever since I know myself.
I can't change the connection to PDO due to the code simply isn't mine and have more than 100 files with this connection, so I have to keep them, and connect into my localhost with them, so I can edit and work on it while on my machine.
When I try to connect with mssql_connect() the following error is displayed: Fatal error: Call to undefined function mssql_connect()
Searching on all type of questions here, I found that mssql_connect() doesn't work anymore on 5.3 versions + of php, but there is some .dll that Windows itself provides to those who still want to work with this function.
The .dll files are:
php_sqlsrv_54_nts.dll and php_sqlsrv_54_ts.dll
I'm using 54 because my php version is 5.4.45
Even though, still not working, the .dlls are enabled in php.ini, but the message keeps showing.
Does anyone REALLY have a solution to this problem? I really need to keep using this functions...
Thanks!

WAMP server stopped working due to Fatal error: Call to undefined function oci_connect()

So far I am using WAMP server with oracle successfully past one year,but unfortunately it stopped working and displaying an error like this Fatal error: Call to undefined function oci_connect(). I verified all DLL files and connection I dint do any modification for past one year and verified all related link Fatal error: Call to undefined function oci_connect().How can I fix this error.kind give some solution.
I have refer and verified lots of reference links. But everything is perfect. Past 1 year it was working perfectly, but today morning it will not work and shown the above error here, How can I solve this?
May be dll was crashed. Can you update the required dlls?
Otherwise reinstall the Oracle?
It will work..
Please check your PHP version first. it must be not latest one also your wamp server is around 2.2.
Please add require oracle extension from here.
Add
php_oci8_11g.dll
In php.ini and enable extension.
Its working for me. Still have issue let me know.

Call to undefined function mysql_connect() on Heroku. (PHP works fine locally but not on heroku- why?)

Thanks for your help in advance. I have been working on this bug for more than 12 hours now.
There is an AJAX signup form in my Heroku site which runs on MySQL and is connected to ClearDB Database. I can successfully send data to the database on my local server (MAMP). However, I cannot do the same on the server.
The requests cannot get send to the database and gets stuck at loading. Upon inspection I realise it is a PHP 500 Error.
I found the key problem in the Heroku logs. 2014-11-24T15:02:31.238493+00:00 app[web.1]: [24-Nov-2014 15:02:30 UTC] PHP Fatal error: Call to undefined function mysql_connect() in /app/index.php on line 5
Line 5 of the index.php is mysql_connect('hostname', 'username, 'password');
I have tried running php_getinfo(); and found that there is no MySQL support in the server. On a side note, I have MySQL support in my localhost.
The server php.ini paths are as such: Configuration File (php.ini) Path /app/.heroku/php/etc/php & Loaded Configuration File /app/vendor/heroku/heroku-buildpack-php/conf/php/php.ini
What should I do?
mysql_* functions are deprecated and actually removed in the next PHP version. Check out mysqli.
Worth noting that you can enable mysql_* on Heroku via composer.json. This is documented in Heroku's devcenter docs on PHP support.
Also recommend you consider using a more modern MySQL library, though :)

db2_connect to as400 with php and wamp server

I have been trying to connect to a ibm db2 database but it seems impposible. The as400 is in a different server than the one running php.
Everytime I do a db2_connect I get the following error:
Fatal error: Call to undefined function db2_connect()
How can I make this function work?
Tip: I've already tried with odbc and it was a lost of time, but I'm open to suggestions on that path as well.
[EDIT]
I finally changed to java... it was impossible with php...
Check your php.ini file and make sure it has the DB2 extension enabled. http://www.php.net/manual/en/install.pecl.php
Try this link:
http://www.theregister.co.uk/2006/08/09/db2_udb_part2/
Deals with:
Installing the PHP DB2 extension,
Creating a connection,
Obtaining a result set
Also gives as an alternative the PDO option.
But as for DB2 on the AS400, am not sure if something still needs to be installed on the
AS400 for this to work?
Anyway, have used the ODBC Client Access with no problems at all. What difficulty did you run into?

Categories