Hello everybody, I'm trying to use the great API cPanel have for automating the process of creating and managing accounts and all that stuff.
now i have cPanel 11.25 and the function restoreaccount works for me but i have a question regarding it.
the information in the wiki isn't pretty clear as for restore type .. daily is 1? weekly is 2 and monthly is 3?
it's not mentioned anywhere what are the values for the 3 types of restore plus in whm i can specify few other options like whether i want to restore mysql databases or not, i can't specify that in the API as well?
and one more thing, say php is configured that the max execution time is 30 seconds while restoring an account might sometimes exceed that if the website has lots of data so what's the way to work around it? i did not try but i guess the php code will break out and print an error telling u that max execution time has been exceeded should i increase the max execution time? or there is another way?
thanks in advance
now i have cPanel 11.25 and the function restoreaccount works for me but i have a question regarding it.
the information in the wiki isn't pretty clear as for restore type .. daily is 1? weekly is 2 and monthly is 3?
it's not mentioned anywhere what are the values for the 3 types of restore plus in whm i can specify few other options like whether i want to restore mysql databases or not, i can't specify that in the API as well?
and one more thing, say php is configured that the max execution time is 30 seconds while restoring an account might sometimes exceed that if the website has lots of data so what's the way to work around it? i did not try but i guess the php code will break out and print an error telling u that max execution time has been exceeded should i increase the max execution time? or there is another way?
thanks in advance