D
D
Dmitry2016-05-15 20:31:02
PHP
Dmitry, 2016-05-15 20:31:02

call to undefined function mysql_connect() error in ssh?

I tried to call a php file (which needs a connection to the mysql database) from under ssh - I got an error:
Fatal error: Call to undefined function mysql_connect() in...
I don’t understand why the error occurs, if the sites on the server work fine, there is no such error ...
What could be the reason for the error in ssh?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-05-15
@liggth

console php uses its own (separate) configs.
here answered in more detail on a similar problem Why rar_open () does not work when running the script from the console?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question