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? Link to comment https://forums.phpfreaks.com/topic/140496-phpinfo-to-phpini/ Share on other sites More sharing options...
Mchl Posted January 12, 2009 Share Posted January 12, 2009 ... Why? What are you trying to do? Link to comment https://forums.phpfreaks.com/topic/140496-phpinfo-to-phpini/#findComment-735210 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. Link to comment https://forums.phpfreaks.com/topic/140496-phpinfo-to-phpini/#findComment-735227 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. Link to comment https://forums.phpfreaks.com/topic/140496-phpinfo-to-phpini/#findComment-735235 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. Link to comment https://forums.phpfreaks.com/topic/140496-phpinfo-to-phpini/#findComment-735259 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.