Thanks again for response,
i am sorry i did not provide detail.
My DB is hosted on web1.pingcorp.co.uk and my files are hosted on dcc.securepaynet.net
now i have access to php.ini file only on dcc.securepaynet.net
dcc.securepaynet.net people are saying that they dont allow connections from outside, they are providing only php.ini file to make changes.
so is there any way so that i can access database from web1.pingcorp.co.uk by making any change in php.ini file
default php.ini file which i found on my root is:
----------------------------------Start----------------
register_globals = off
allow_url_fopen = off
expose_php = off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fields et="
[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
----------------------------------Close----------------
i changed allow_url_fopen = off to allow_url_fopen = on
this allow me to use include file. i tried to put a db connection file on web1.pingcorp.co.uk and access it from dcc.securepaynet.net using PHP include statement.
it successfully include file but i could not use the database class of that included file.
i guess this include file is executed on server where file is hosted so i can not create objects of that included class...
now what will be helpful for me is that
is there any way so that i can access database from web1.pingcorp.co.uk by making any change in php.ini file which is on dcc.securepaynet.net
Thanks for your valuable suggestions
Regards
RAKesh vermA
|