🗊 Презентация РНР hypertext preprocessor language

Нажмите для полного просмотра!
РНР hypertext preprocessor language, слайд №1 РНР hypertext preprocessor language, слайд №2 РНР hypertext preprocessor language, слайд №3 РНР hypertext preprocessor language, слайд №4 РНР hypertext preprocessor language, слайд №5 РНР hypertext preprocessor language, слайд №6 РНР hypertext preprocessor language, слайд №7 РНР hypertext preprocessor language, слайд №8 РНР hypertext preprocessor language, слайд №9 РНР hypertext preprocessor language, слайд №10 РНР hypertext preprocessor language, слайд №11 РНР hypertext preprocessor language, слайд №12 РНР hypertext preprocessor language, слайд №13 РНР hypertext preprocessor language, слайд №14 РНР hypertext preprocessor language, слайд №15 РНР hypertext preprocessor language, слайд №16 РНР hypertext preprocessor language, слайд №17 РНР hypertext preprocessor language, слайд №18 РНР hypertext preprocessor language, слайд №19 РНР hypertext preprocessor language, слайд №20 РНР hypertext preprocessor language, слайд №21 РНР hypertext preprocessor language, слайд №22 РНР hypertext preprocessor language, слайд №23 РНР hypertext preprocessor language, слайд №24 РНР hypertext preprocessor language, слайд №25 РНР hypertext preprocessor language, слайд №26 РНР hypertext preprocessor language, слайд №27 РНР hypertext preprocessor language, слайд №28 РНР hypertext preprocessor language, слайд №29 РНР hypertext preprocessor language, слайд №30

Вы можете ознакомиться и скачать презентацию на тему РНР hypertext preprocessor language. Доклад-сообщение содержит 30 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


РНР hypertext preprocessor language, слайд №1
Описание слайда:

Слайд 2


Include Files The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it into the file that...
Описание слайда:
Include Files The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement. Including files is very useful when you want to include the same PHP, HTML, or text on multiple pages of a website.

Слайд 3


Example of include Welcome to my home page! Some text. Some more text.
Описание слайда:
Example of include Welcome to my home page! Some text. Some more text.

Слайд 4


PHP include vs. require The require statement is also used to include a file into the PHP code. However, there is one big difference between include...
Описание слайда:
PHP include vs. require The require statement is also used to include a file into the PHP code. However, there is one big difference between include and require; when a file is included with the include statement and PHP cannot find it, the script will continue to execute. If we do the same example using the require statement, the echo statement will not be executed because the script execution dies after the require statement returned a fatal error.

Слайд 5


File and file handleing
Описание слайда:
File and file handleing

Слайд 6


Simple syntax to read file in php
Описание слайда:
Simple syntax to read file in php

Слайд 7


File Open/Read/Close
Описание слайда:
File Open/Read/Close

Слайд 8


Create and write on File // create file $myfile = fopen("testfile.txt", "w")
Описание слайда:
Create and write on File // create file $myfile = fopen("testfile.txt", "w")

Слайд 9


Forms and Files
Описание слайда:
Forms and Files

Слайд 10


РНР hypertext preprocessor language, слайд №10
Описание слайда:

Слайд 11


Create The Upload File PHP Script
Описание слайда:
Create The Upload File PHP Script

Слайд 12


Check if File Already Exists // Check if file already exists if (file_exists($target_file)) { echo "Sorry, file already exists."; $uploadOk...
Описание слайда:
Check if File Already Exists // Check if file already exists if (file_exists($target_file)) { echo "Sorry, file already exists."; $uploadOk = 0; }

Слайд 13


Limit File Size // Check file size if ($_FILES["fileToUpload"]["size"] > 500000) { echo "Sorry, your file is too...
Описание слайда:
Limit File Size // Check file size if ($_FILES["fileToUpload"]["size"] > 500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } //If the file is larger than 500KB, an error message is displayed

Слайд 14


Limit File Type // Allow certain file formats if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType !=...
Описание слайда:
Limit File Type // Allow certain file formats if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; $uploadOk = 0; } //The code only allows users to upload JPG, JPEG, PNG, and GIF files. All other file types gives an error message

Слайд 15


Complete Upload File PHP Script (part 1)
Описание слайда:
Complete Upload File PHP Script (part 1)

Слайд 16


Complete Upload File PHP Script (part 2) // Check if file already exists if (file_exists($target_file)) { echo "Sorry, file already...
Описание слайда:
Complete Upload File PHP Script (part 2) // Check if file already exists if (file_exists($target_file)) { echo "Sorry, file already exists."; $uploadOk = 0; } // Check file size if ($_FILES["fileToUpload"]["size"] > 500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; $uploadOk = 0; }

Слайд 17


Complete Upload File PHP Script (part 3) // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not...
Описание слайда:
Complete Upload File PHP Script (part 3) // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded."; } else { echo "Sorry, there was an error uploading your file."; } } ?>

Слайд 18


PHP Images from Folder
Описание слайда:
PHP Images from Folder

Слайд 19


Glob () The glob() function returns an array of filenames or directories matching a specified pattern. This function returns an array of...
Описание слайда:
Glob () The glob() function returns an array of filenames or directories matching a specified pattern. This function returns an array of files/directories, or FALSE on failure.

Слайд 20


Count () The count() function returns the number of elements in an array.
Описание слайда:
Count () The count() function returns the number of elements in an array.

Слайд 21


Opendir () & Readdir () Opendir is function to open a directory Readdir is function to read files in a directory that is open
Описание слайда:
Opendir () & Readdir () Opendir is function to open a directory Readdir is function to read files in a directory that is open

Слайд 22


PHP pathinfo() Function The pathinfo() function returns an array that contains information about a path. The following array elements are returned:...
Описание слайда:
PHP pathinfo() Function The pathinfo() function returns an array that contains information about a path. The following array elements are returned: [dirname] [basename] [extension]

Слайд 23


in_array () It searches for a value in an array
Описание слайда:
in_array () It searches for a value in an array

Слайд 24


РНР hypertext preprocessor language, слайд №24
Описание слайда:

Слайд 25


PHP Error Handling
Описание слайда:
PHP Error Handling

Слайд 26


Error Handling When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program...
Описание слайда:
Error Handling When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. This tutorial contains some of the most common error checking methods in PHP. We will show different error handling methods: Simple "die()" statements Custom errors and error triggers Error reporting

Слайд 27


Example of Error Handling
Описание слайда:
Example of Error Handling

Слайд 28


Exception handling Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs....
Описание слайда:
Exception handling Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception. This is what normally happens when an exception is triggered: The current code state is saved The code execution will switch to a predefined (custom) exception handler function Depending on the situation, the handler may then resume the execution from the saved code state, terminate the script execution or continue the script from a different location in the code

Слайд 29


Exception handling example When an exception is thrown, the code following it will not be executed, and PHP will try to find the matching...
Описание слайда:
Exception handling example When an exception is thrown, the code following it will not be executed, and PHP will try to find the matching "catch" block. If an exception is not caught, a fatal error will be issued with an "Uncaught Exception" message.

Слайд 30


Example of Try, throw and catch
Описание слайда:
Example of Try, throw and catch



Похожие презентации
Mypresentation.ru
Загрузить презентацию