Category Php
Create Auth URL
1 |
echo getHostByName(php_uname('n')); |
Html
1 2 3 4 5 6 7 8 9 10 11 12 |
<!DOCTYPE html> <html> <body> <form method="post" enctype="multipart/form-data"> Select image to upload: <input type="file" name="filedata"> <input type="submit" value="Upload Image" name="submit"> </form> </body> </html> |
PHP
1 2 3 4 |
//2020-06-03T19:08:18+10:00 date('c',time()); date('c',strtotime("+1 month",time())) |
1 2 3 4 5 6 7 8 |
function get_string_between($string, $start, $end){ $string = ' ' . $string; $ini = strpos($string, $start); if ($ini == 0) return ''; $ini += strlen($start); $len = strpos($string, $end, $ini) - $ini; return substr($string, $ini, $len); } |
1 2 3 4 |
$string = '<div class="abc">My data</div>'; echo strip_tags($string); // output = My data |
Use this link https://www.dropbox.com/developers/documentation/http/documentation for documentation
Create a function for Curl call
Use this link https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/graph-oauth?view=odsp-graph-online for documentation
creating a function for curl call