Skip to content

Commit 066c681

Browse files
committed
update
1 parent 453c3f1 commit 066c681

File tree

2,323 files changed

+397806
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,323 files changed

+397806
-0
lines changed

LESSON 25 - الدرس/app.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
// header("Location: home.php");
4+
header("refresh:3;url=home.php");
5+
// header("Location: مسار المستهدف");
6+
// header("refresh:3;url = مسار المستهدف");
7+
8+
?>

LESSON 25 - الدرس/home.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>صفحة الثانية</h1>

LESSON 25 - الدرس/logo.jpg

24.9 KB
Loading

LESSON 26 - الدرس/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
function print_message(){
4+
echo "<h1>Learn PHP With Coder Shiyar</h1>";
5+
}
6+
7+
print_message();
8+
print_message();
9+
print_message();
10+
print_message();
11+
?>

LESSON 27 - الدرس/index.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
// function نوع الأول من
3+
// function print_message(){
4+
// echo "<h1>Learn PHP With Coder Shiyar</h1>";
5+
// }
6+
// print_message();
7+
8+
function print_data($name,$year){
9+
echo "<h2> Name: " . $name . " , Year: " . $year . "</h2>";
10+
}
11+
print_data("Coder Shiyar",2000);
12+
print_data("Hamid",2002);
13+
print_data("Abbas",1999);
14+
?>

LESSON 28 - الدرس/index.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
function setText(){
4+
$text = "<h1>Coder Shiyar</h1>";
5+
return $text;
6+
}
7+
setText();
8+
9+
function setResult($number1 , $number2){
10+
return $number1 * $number2;
11+
}
12+
13+
$getText = setText();
14+
15+
$getResult = setResult(10,50);
16+
17+
echo $getResult;
18+
19+
20+
echo $getText;
21+
22+
if(setText() === "Coder"){
23+
echo "تم تنفيذ اوامر";
24+
}
25+
?>

LESSON 28 - الدرس/logo.jpg

24.9 KB
Loading

LESSON 29 - الدرس/App.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
session_start();
3+
?>
4+
<h1> <?php echo $_SESSION["email"] ?> </h1>

LESSON 29 - الدرس/index.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
// function must be the very first thing in your document. Before any HTML tags.
3+
// يجب أن تكون هذه الوظيفة هي أول شيء في الصفحة. قبل أي عناصر اتش تي ام ال.
4+
// session_start();
5+
6+
// // remove all session variables - لحذف جميع متغيرات من نوع سشن
7+
// session_unset();
8+
9+
// // destroy the session - لتدمير سشن
10+
// session_destroy();
11+
12+
session_start();
13+
14+
15+
$_SESSION["email"] = "team.codershiyar@gmail.com";
16+
17+
?>
18+
19+
20+
<h2> <?php
21+
if(!empty($_SESSION["email"])){
22+
echo $_SESSION["email"];
23+
}else{
24+
echo "ذلك متغير غير متواجد";
25+
}
26+
27+
28+
?> </h2>

LESSON 30 - الدرس/index.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
// strip_tags(); لحذف عناصر اتش تي ام ال من النص
4+
// لتحويل عناصر اتش تي ام ال إلى النص عادي
5+
// filter_var($string , FILTER_SANITIZE_STRING);
6+
$text = "<h1>Coder Shiyar</h1>";
7+
echo filter_var($text,FILTER_SANITIZE_STRING);
8+
?>
9+
10+
11+
<form method="POST">
12+
<input type="text" name="title"/>
13+
<input type="text" name="text"/>
14+
<button name="publish" type="submit">نشر</button>
15+
</form>
16+
17+
18+
<?php
19+
if(isset($_POST['publish'])){
20+
echo $_POST["title"];
21+
echo $_POST["text"];
22+
}
23+
?>

0 commit comments

Comments
 (0)