$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://174.888.888.888/~{$user_name}/index.php/install/-/configure/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, "SITE=TEST&uEmail=test@gmail.com&DB_SERVER=localhost&DB_USERNAME={$user_name}&DB_PASSWORD=pass123&DB_DATABASE={$user_name}_my_test&INSTALL_SAMPLE_CONTENT=1&LANG=pl_PL"); curl_exec ($ch); curl_close ($ch);
Kod służy do automatycznej instalacji cms. Instalacja przebiega poprawnie. Problem polega na tym że dostaje stronę wynikową instalacji.
Cytat
Install Concrete
Congratulations. Concrete has been installed. You have been logged in as admin with the password 593318.
If you wish to change this password, you may do so from the users area of the dashboard.
Continue to your site. >
Congratulations. Concrete has been installed. You have been logged in as admin with the password 593318.
If you wish to change this password, you may do so from the users area of the dashboard.
Continue to your site. >
A chciałbym pobrać ją do zmiennej i obrobić.
echo curl_exec ($ch) - wyświetla 1 - czyli true - operacja przebiegła poprawnie.
Jak wyłączyć automatyczne wyświetlanie strony wynikowej. A samą stronę pobrać do zmiennej.
Z góry dziękuję za pomoc.
Pozdrawiam