Posted By: Brijesh on October 31, 2015, 2:45 pm | Post: 1 |
Hi,
sdb_import() takes the parameter as the filename and the file should be available at : /var/softaculous/SOFTNAME You just need to pass the filename, you cannot pass the full path to the SQL file. Or you can read that SQL file and then execute the query using sdb_query() function : PHP Code
----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on November 2, 2015, 9:30 am | Post: 3 |
Hi,
It looks like the documentation was incorrect for the sdb_import() function. I have updated it : http://www.softaculous.com/docs/Making_Custom_Package#Explanation_of_Important_functions To achieve your purpose you can use the following code : PHP Code
Edited by Brijesh : November 2, 2015, 10:01 am ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: LeonardChallis on November 2, 2015, 9:53 am | Post: 4 |
Thanks again, that makes sense.
Did you mean to write sdb_query for the last line of PHP there? |
Posted By: Brijesh on November 2, 2015, 10:02 am | Post: 5 |
Hi,
Yes it should be sdb_query() I have edited the post. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on July 19, 2019, 9:05 am | Post: 7 |
Hi,
As per our discussion over email you have managed to get this working. Let us know if you still face any issues. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |