Quantcast
Channel: Сообщество PHP DevelStudio - среда разработки программ
Viewing all articles
Browse latest Browse all 6336

Ускорение работы функций

$
0
0
Кто хорошо разбирается, у меня проблемки с post запросами. Они очень долго работают нужно ускорить их работу. Сделайте что нибудь с этими кодами)
PHP код:

$auth_login c("auth_login")->text;
$auth_pass c("auth_pass")->text;
$auth_server "Сервер";
$auth_domain "Домен";
$auth_catalog "Каталог";
$auth_files "Файл";
$auth_format "Формат";
$data file_get_contents("http://$auth_server$auth_domain/$auth_catalog/$auth_files$auth_format?login=$auth_login&pass=$auth_pass");
$user_name file_get_contents("http://$auth_server$auth_domain/$auth_catalog/user_name$auth_format?login=$auth_login");
$user_famil file_get_contents("http://$auth_server$auth_domain/$auth_catalog/user_famil$auth_format?login=$auth_login");
$panel file_get_contents("http://$auth_server$auth_domain/$auth_catalog/user_panel$auth_format?login=$auth_login");
$teg file_get_contents("http://$auth_server$auth_domain/$auth_catalog/user_teg$auth_format?login=$auth_login");
$banned file_get_contents("http://$auth_server$auth_domain/$auth_catalog/user_banned$auth_format?login=$auth_login");
if(
$banned == "1")
{
messageDlg("Ваш аккаунт заблокирован!"mtWarningMB_OK);
app::close();
}
else
{
if(
$data === 'done')
{
user_avatar();
user_money();
c("Form111->user_name_famil")->text "$user_name $user_famil";
c("Form111->user_teg")->text "$teg";
if(
$panel == 1)
{
ShowForm(c('Form1111'), SW_SHOW);
}
LoadForm(c('Form111'), LD_NONE);
}
else
{
MessageBox("Не верный логин или пароль""Ответ с сервера");
}


PHP код:

$login c("reg_login")->text;
$pass c("reg_pass")->text;
$pass2 c("reg_pass2")->text;
$email c("reg_email")->text;
$skype c("reg_skype")->text;
$name c("reg_name")->text;
$famil c("reg_famil")->text;
$server "Сервер";
$domain "Домен";
$catalog "Каталог";
$files "Файл";
$format "Формат";

$html file_get_contents('http://2ip.ru/');
preg_match_all('#<big id=\"d_clip_button\">(.*?)</big>#'$html$ip);
$ip2 $ip[1][0];

if(
$pass == $pass2)
{
$data file_get_contents("http://$server$domain/$catalog/$files$format?login=$login&pass=$pass&email=$email&name=$name&famil=$famil&skype=$skype&ip=$ip2");
MessageBox("$data""Ответ с сервера");
}else{
messageDlg("Пароли не совпадают!"mtWarningMB_OK);} 


Viewing all articles
Browse latest Browse all 6336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>