How to Access the PHP.Ini File in Godaddy Shared Hosting Linux

How to access the php.ini file in godaddy shared hosting linux

Create php.ini file with your desired setting and upload it in your root folder of server. It will take effect with this new setting.

You can't edit the php.ini file of godaddy server, but you can upload your own copy of your php.ini with your new setting.

This new setting will be available only to you. Other websites will not be affected with this new setting.

Previously I faced the same issue, but after doing this my problem was resolved.

GoDaddy php.ini on shared cpanel hosting... where, what and how?

The answer, for me, seems to be to edit the "additional system" ini file at /opt/alt/php56/link/conf/alt_php.ini

The one caveat is that it will be overwritten if you change PHP settings via cpanel. I can live with that, since this actually works.

shared hosting CPanel linum godaddy

ok I could not find any solution with godaddy.. They said everything are wokring fine in the server.. So, I tried to find a better optimized solution to my problem and I found the XMLReader:

$reader = new XMLReader();
$reader->open($product_xml_link);
while($reader->read()) {
if($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'product' ) {
//..do the proccess here..whatever you want..
//for example
$product = new SimpleXMLElement($reader->readOuterXml());
$pid = $product->id;
$name = $product->name;
...
...
}

There are lots of links that you could read of about XMLReader, which is also better for large XML files..

Now, I could INSERT all the XML Elements into DB without any 500 internal errors.
*Although my XML is not to big..about 3.500 products

GoDaddy include_path and auto_prepend_file

I was able to get this working by using a .user.ini file:

Since PHP 5.3.0, PHP includes support for configuration INI files on a
per-directory basis.

I also found this documentation from GoDaddy useful.



Related Topics



Leave a reply



Submit