Definitionپێناسە
Inserting the code of another PHP file into the current one with include, require, include_once or require_once. If the file is missing, include gives a and continues, while require stops with a .
هێنانی کۆدی فایلێکی تری PHP بۆ ناو فایلی ئێستا بە include، require، include_once یان require_once. ئەگەر فایلەکە نەبێت، include دەدات و بەردەوام دەبێت، بەڵام require بە دەوەستێت.
Exampleنموونە
Use require for files the page cannot work without.
require بۆ ئەو فایلانە بەکاربهێنە کە پەڕەکە بەبێ ئەوان کار ناکات.
require "header.php"; // must exist
include "ads.php"; // optional
echo "Page content";Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
تێخستنی فایل، هێنانی فایل، هاوردەکردنی فایلەکە، هاوردەکردنەکانی فایل، هاوردەکردنێکی فایل
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
No term in the notes; هاوردەکردن is the everyday Kurdish word for "importing".
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Shows include, require, include_once and require_once, how PHP finds the file, and how to reuse HTML parts on many pages.
include، require، include_once و require_once نیشان دەدات، چۆن دەدۆزێتەوە و چۆن پارچەکانی لە زۆر دووبارە بەکاربهێنیتەوە.
Learn more inزیاتر فێربە لە
- Including Files: include and requireهاوردەکردنی فایل: include و require
- PHP Syntax: Tags, Statements and Commentsداڕستنی PHP: تاگ، ڕستە و لێدوان
- Redirects: Sending the Browser Somewhere Elseئاڕاستەکردنەوە: ناردنی تۆڕگەڕ بۆ شوێنێکی تر
- Uploading Filesبارکردنی فایل
- A Login System with Sessionsسیستەمی چوونەژوورەوە بە سێشن