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
How to Prevent Pdo from Interpreting a Question Mark as a Placeholder
Memcached VS Apc Which One Should I Choose
How to Enable PHP's Openssl Extension to Install Composer
How to Embed Images in HTML Email
Can You Add an If Statement in Order By
How to Get Current Time in Milliseconds in PHP
Not Equal to != and !== in PHP
How to Catch This Error: "Notice: Undefined Offset: 0"
Naming Convention Issues When Using Codeigniter in Windows and Linux
JavaScript Equivalent of PHP's List()
Mysqli Query Results to Show All Rows
Best Practice to Generate Random Token for Forgot Password
How to Write a Stored Procedure Using PHPmyadmin and How to Use It Through PHP
How to Read Large Worksheets from Large Excel Files (27Mb+) with PHPexcel