Skip to content

Commit

Permalink
php-documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
learnwithfair committed May 3, 2024
0 parents commit 79bde8a
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
88 changes: 88 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# PHP-DOCUMENTATION

[![Youtube][youtube-shield]][youtube-url]
[![Facebook][facebook-shield]][facebook-url]
[![Instagram][instagram-shield]][instagram-url]
[![LinkedIn][linkedin-shield]][linkedin-url]

Thanks for visiting my GitHub account!

<img src ="https://pngimg.com/uploads/php/php_PNG10.png" height = "200px" width = "180px"/> **Hypertext Preprocessor (PHP)** is a general-purpose scripting language geared towards web development. It was created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by the PHP Group. PHP was originally an abbreviation of Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.

### See More

- Visit-> https://www.w3schools.com/php/php_intro.asp
- Visit -> https://www.tutorialspoint.com/php/index.htm

### [Code-Example](https://github.com/learnwithfair/PHP-Code)

## Source Code (Download)

[Click Here](https://mega.nz/folder/RGFiUApD#PoKIVCwF8IkQhE2PHw1XxQ)

## Required Software

- Xampp [Download](https://www.apachefriends.org/download.html)
- Visual Studio Code [Download](https://code.visualstudio.com/download)

## Basic Syntax

```php
<?php
// Code tobe excuted
echo "Rahatul Rabbi";
?>
```

## Error Checker

```bash
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
```

## Date Check

```php
<?php

$date1 = date( 'Y-m-d', strtotime( "yesterday" ) );
$date2 = date( 'Y-m-d', strtotime( "-2 days" ) );
$date3 = date( 'Y-m-d', strtotime( "-3 days" ) );
$date4 = date( 'Y-m-d', strtotime( "-4 days" ) );
$date5 = date( 'Y-m-d', strtotime( "-5 days" ) );
$date6 = date( 'Y-m-d', strtotime( "-6 days" ) );

echo $date1."</br>";
echo $date2."</br>";
echo $date3."</br>";
echo $date4."</br>";
echo $date5."</br>";
echo $date6."</br>";

?>

<?php

$from_date = date( 'Y-m-d', strtotime( "-30 days" ) );
$to_date = date( 'Y-m-d', strtotime( "-6 days" ) );
echo $from_date.'</br>';
echo $to_date;
?>
```

## Follow Me

[<img src='https://cdn.jsdelivr.net/npm/[email protected]/icons/github.svg' alt='github' height='40'>](https://github.com/learnwithfair) [<img src='https://cdn.jsdelivr.net/npm/[email protected]/icons/facebook.svg' alt='facebook' height='40'>](https://www.facebook.com/learnwithfair/) [<img src='https://cdn.jsdelivr.net/npm/[email protected]/icons/instagram.svg' alt='instagram' height='40'>](https://www.instagram.com/learnwithfair/) [<img src='https://cdn.jsdelivr.net/npm/[email protected]/icons/twitter.svg' alt='twitter' height='40'>](https://www.twiter.com/learnwithfair/) [<img src='https://cdn.jsdelivr.net/npm/[email protected]/icons/youtube.svg' alt='YouTube' height='40'>](https://www.youtube.com/@learnwithfair)

<!-- MARKDOWN LINKS & IMAGES -->

[youtube-shield]: https://img.shields.io/badge/-Youtube-black.svg?style=flat-square&logo=youtube&color=555&logoColor=white
[youtube-url]: https://youtube.com/@learnwithfair
[facebook-shield]: https://img.shields.io/badge/-Facebook-black.svg?style=flat-square&logo=facebook&color=555&logoColor=white
[facebook-url]: https://facebook.com/learnwithfair
[instagram-shield]: https://img.shields.io/badge/-Instagram-black.svg?style=flat-square&logo=instagram&color=555&logoColor=white
[instagram-url]: https://instagram.com/learnwithfair
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/company/learnwithfair
3 changes: 3 additions & 0 deletions check error.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
25 changes: 25 additions & 0 deletions dateCheck.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

$date1 = date( 'Y-m-d', strtotime( "yesterday" ) );
$date2 = date( 'Y-m-d', strtotime( "-2 days" ) );
$date3 = date( 'Y-m-d', strtotime( "-3 days" ) );
$date4 = date( 'Y-m-d', strtotime( "-4 days" ) );
$date5 = date( 'Y-m-d', strtotime( "-5 days" ) );
$date6 = date( 'Y-m-d', strtotime( "-6 days" ) );

echo $date1."</br>";
echo $date2."</br>";
echo $date3."</br>";
echo $date4."</br>";
echo $date5."</br>";
echo $date6."</br>";

?>

<?php

$from_date = date( 'Y-m-d', strtotime( "-30 days" ) );
$to_date = date( 'Y-m-d', strtotime( "-6 days" ) );
echo $from_date.'</br>';
echo $to_date;
?>

0 comments on commit 79bde8a

Please sign in to comment.