function delTree($dir) {
   $files = array_diff(scandir($dir), array('.','..'));
    foreach ($files as $file) {
      (is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file");
    }
    return rmdir($dir);
  }فشكن حذف مجلد محدد 🗂
المصدر :
https://www.php.net/manual/en/function.rmdir.php#منقول
function  get($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);   
    $ch_data = curl_exec($ch);
    curl_close($ch);
    return $ch_data;
}function By CURL
@php88
@MROAN8
function  get($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$ch_data = curl_exec($ch);
curl_close($ch);
return $ch_data;
}
if(preg_match('/^(get)(.*?)/i',$text)){
$s= str_replace('get','',$text);
file_put_contents("$chat_id.html", get($s));
bot('sendDocument', [
'chat_id' => $chat_id,
"mime_type"=> "application/octet-stream",
"document"=>new CURLFile("$chat_id.html"),
"caption"=>"@php88",
'parse_mode' => "Markdown",
'disable_notification' => false,
]);
}
get+url
يقوم هذا الكود بجلب ملفات المواقع بواسطه هذا الفاكشن حسب طلب بعض الاخوه
@php88
@MROAN8
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$ch_data = curl_exec($ch);
curl_close($ch);
return $ch_data;
}
if(preg_match('/^(get)(.*?)/i',$text)){
$s= str_replace('get','',$text);
file_put_contents("$chat_id.html", get($s));
bot('sendDocument', [
'chat_id' => $chat_id,
"mime_type"=> "application/octet-stream",
"document"=>new CURLFile("$chat_id.html"),
"caption"=>"@php88",
'parse_mode' => "Markdown",
'disable_notification' => false,
]);
}
get+url
يقوم هذا الكود بجلب ملفات المواقع بواسطه هذا الفاكشن حسب طلب بعض الاخوه
@php88
@MROAN8
❤1
  Library & Api for muslim pray times for islamicfinder.org
Home Page : https://packagist.org/packages/lil-nickel/islamicfinder-api
Example Api : http://lil-nickel.epizy.com/api.php
#منقوال
  
  Home Page : https://packagist.org/packages/lil-nickel/islamicfinder-api
Example Api : http://lil-nickel.epizy.com/api.php
#منقوال
packagist.org
  
  
  The PHP Package Repository
👍1
  السلام عليكم ورحمة الله
حسب طلب بعض الناس للكود الاذكار هذا كود تلقائي
حسب طلب بعض الناس للكود الاذكار هذا كود تلقائي
if($update){
$gett=file_get_contents("https://iuytiuyt.000webhostapp.com/api/a.php");
bot('sendMessage',[
'chat_id'=>$chat_id, 
'text'=>$gett,
]);
}👍1
  السلام عليكم ورحمة الله !!
،إرسال رسالة نصية api
، يمكن استخدام html في إرسال رسالة بشكل تام
to = ggtest@example.com
➖➖➖➖➖➖➖➖➖
sub = my subject
➖➖➖➖➖➖➖➖➖
text = Message ++ html
➖➖➖➖➖➖➖➖➖
from = mroan6@example.com
➖➖➖➖➖➖➖➖➖
url= https://phpmaro.ml/API/message.php
➖➖➖➖➖➖➖➖➖
ex
،إرسال رسالة نصية api
، يمكن استخدام html في إرسال رسالة بشكل تام
to = ggtest@example.com
➖➖➖➖➖➖➖➖➖
sub = my subject
➖➖➖➖➖➖➖➖➖
text = Message ++ html
➖➖➖➖➖➖➖➖➖
from = mroan6@example.com
➖➖➖➖➖➖➖➖➖
url= https://phpmaro.ml/API/message.php
➖➖➖➖➖➖➖➖➖
ex
https://phpmaro.ml/API/message.php?to=muybm@hi2.in&sub=welcom&text=<!DOCTYPE html>
<html>
<body>
<h2>test</h2>
<a href="https://xn--r1a.website/php88/" >ch !</a> 
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>mroan</td>
<td>mohmmed</td>
</tr>
</table>
</body>
</html>&from=mroan👍4
  ❗️ Api Download video without Watermark from Tiktok ➖🔔
▶️
ℹ️ Continue To : @xDstor
▶️
function CurlGetContents($url)
{
    $header = array('Accept-Language: en');
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
    $data = curl_exec($curl);
    curl_close($curl);
    return $data;
}
preg_match('%(?:http[s]?:\/\/)?(?:vm|www|vt)\.(?:tiktok\.com/(?:([^@ ]{9}|.+)))%i', $text,$tiktokurl);
if(isset($tiktokurl[0])){
CurlGetContents("https://dstor.space/Free/Tiktok/api.php?t=".$TOKEN."&u=".$botusername."&c=".$chat_id."&m=".$message_id."&url=".urlencode($tiktokurl[0]));
} ◀️ℹ️ Continue To : @xDstor
👍2🤔2
  ❗️ Api Download Videos from Facebook 📱🔔
▶️
😀 Continue To : @xDstor
▶️
function CurlGetContents($url)
{
    $header = array('Accept-Language: en');
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
    $data = curl_exec($curl);
    curl_close($curl);
    return $data;
}
preg_match('/(?:https?:\/\/)?(?:www\.)?(mbasic.facebook|m\.facebook|facebook|fb)\.(com|me|watch|gg)\/(?:(?:\w\.)*#!\/)?(?:pages\/)?(?:[\w\-\.]*\/)*([\w\-\.]*)/',$text,$getfburl);
if(isset($getfburl[0])){
CurlGetContents("https://dstor.space/Free/Facebook/api.php?ty=fb&t=".$TOKEN."&u=".$botusername."&c=".$chat_id."&m=".$message_id."&url=".urlencode($getfburl[0]));
} ◀️😀 Continue To : @xDstor
🤔4👍3
  Media is too big
    VIEW IN TELEGRAM
  ❤5🔥3👍2🥰2🤬2
  