Forums / Developer / php file and database connection
pierrick j
Wednesday 06 January 2010 1:05:00 am
Hello,
I use paypal IPN (Instant payment Notification) on my ez-publish website and i have a problem. Paypal send on my webserver every payment information.
I use for this a php file that recieve POST information send by paypal but i have a problem when i want to connect to the database through ezmysqldb.php methods.
The error message :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/xxxxxx/www/lib/ezdb/classes/ezmysqldb.php on line 135
This method use informations of the site.ini file to provide user, password and host to the database connection but i would like that the file used is site.ini.append.php.
My php file are located in www/paypal/ it is not located in a module or in a siteaccess
I'm available for any questions.
Jérôme Vieilledent
Wednesday 06 January 2010 4:42:52 am
Hi Pierrick
Which version of eZ Publish do you use ? I think you should take a look to ezpaypal extension (for eZ 4.x, go to trunk/) ;)
If it's not sufficient, you really should develop an eZ Publish module for that... Maybe you can show a piece of code of your Paypal return script ?