swamp Posted January 12, 2009 Share Posted January 12, 2009 Is there anyway of extracting all the data from phpinfo(); to the same format needed for a php.ini file? Quote Link to comment Share on other sites More sharing options...
Mchl Posted January 12, 2009 Share Posted January 12, 2009 ... Why? What are you trying to do? Quote Link to comment Share on other sites More sharing options...
swamp Posted January 12, 2009 Author Share Posted January 12, 2009 I've built a site on a server and now I'm switching over to a new host but a few bits don't work and I'm pretty sure its to do with the ini settings... It all works fine on the old server so I want to use the same config as that for the new server. Quote Link to comment Share on other sites More sharing options...
trq Posted January 12, 2009 Share Posted January 12, 2009 Simply copying the ini file won't help unless php has the right extensions built in. Your better off tracking down why your scripts aren't working and going from there. Quote Link to comment Share on other sites More sharing options...
Mchl Posted January 12, 2009 Share Posted January 12, 2009 ini_get_all will get same info as phpinfo() but into array. Might be helpful. Oh, and get_loaded_extensions also. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.