php file and database connection

Author Message

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 ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:08:37
Script start
Timing: Jan 18 2025 05:08:37
Module start 'layout'
Timing: Jan 18 2025 05:08:37
Module start 'content'
Timing: Jan 18 2025 05:08:38
Module end 'content'
Timing: Jan 18 2025 05:08:38
Script end

Main resources:

Total runtime0.9603 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 587.9219152.6250
Module start 'layout' 0.00900.0063 740.546939.4453
Module start 'content' 0.01530.9433 779.9922507.5156
Module end 'content' 0.95850.0017 1,287.50788.1563
Script end 0.9603  1,295.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3697160.0002
Check MTime0.00130.1356160.0001
Mysql Total
Database connection0.00110.115710.0011
Mysqli_queries0.904394.1662560.0161
Looping result0.00060.0606540.0000
Template Total0.918895.720.4594
Template load0.00230.242120.0012
Template processing0.916495.429720.4582
Template load and register function0.00020.022810.0002
states
state_id_array0.00090.093010.0009
state_identifier_array0.00110.116320.0006
Override
Cache load0.00190.2001260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.066020.0003
Fetch class attribute name0.00090.098530.0003
XML
Image XML parsing0.00060.065720.0003
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00270.2814170.0002
String conversion0.00000.001840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs