The download is free, but we offer some paid services. Support us by subscribing
Delete ads and speed up browsing the library.
The download starts with the click of a button without waiting for the book to be ready.
No limits for download times.
You can upload unlimited books in the library.
Enable readers to download your books without waiting.
Delete ads on the books that you publish.
No problems with download links for your uploaded books.
The source of the book
This book was brought from archive.org as under a Creative Commons license, or the author or publishing house agrees to publish the book. If you object to the publication of the book, please contact us.
| Author: | Abd Allah AlMohammadi |
| Category: | PHP Programming Language [Edit] |
| Language: | Arabic |
| Pages: | 17 |
| Files Size: | 854.17 KB |
| Extensions: | ZIP , PDF |
| Creation Date: | 31 Aug 2004 |
| Rank: | 331,467 No 1 most popular |
| Short link: | Copy |
| More books like this book | |
يتناول الكتاب مجموعة من الدوال البرمجية في لغة PHP المخصصة للتعامل مع المجلدات، حيث يفصل في آلية عمل دالة `opendir` لفتح المجلدات عبر مسار نصي وإعادة مقيس اتصال من نوع resource، ودالة `closedir` لإغلاق هذا المقبض. كما يشرح كيفية التحكم في مسار العمل النشط باستخدام دالة `getcwd` لجلب المسار الحالي، ودالة `chdir` لتغييره، مع الإشارة إلى دالة `chroot` التي تؤدي وظيفة مشابهة.
يستعرض النص طرق قراءة محتويات المجلدات، بدءاً من القراءة التسلسلية عبر دالة `readdir` التي تعتمد على مؤشر افتراضي (Virtual Pointer) ينتقل بين العناصر، ودالة `rewinddir` التي تعيد هذا المؤشر إلى بداية المجلد بشكل يشبه دالة `reset` المستخدمة مع المصفوفات. كما يتطرق إلى القراءة الشاملة باستخدام دالة `scandir` التي تخزن العناصر في مصفوفة (array) مع إمكانية تحديد ترتيب العناصر تصاعدياً أو تنازلياً عبر بارامتر عددي.
يخصص الكتاب جزءاً لشرح التعامل مع المجلدات وفق البرمجة كائنية التوجه (OOP) من خلال الكلاس `dir` الذي يعمل كغلاف (Wrapper) للدوال التقليدية، حيث يحتفظ داخلياً بمتغيرات المسار `path` والمقيس `handle` لتسهيل استدعاء دوال مثل `read()` و`close()`. كما يوضح استخدام دالة `is_dir` للتحقق من صحة المسار قبل البدء بعمليات الفتح لتفادي الأخطاء البرمجية.
شرح مكتبة دوال الأدلة في PHP هو دليل تقني مباشر يركز على الجانب الإجرائي في التعامل مع المجلدات، وهو مفيد لمن يريد فهم كيفية إدارة الملفات برمجياً دون الدخول في تعقيدات نظرية زائدة. ينجح الكتاب في تبسيط مفاهيم قد تبدو مربكة للمبتدئين، مثل فكرة **المؤشر الافتراضي (Virtual Pointer)** الذي تتحكم فيه دالة `readdir` للتنقل بين الملفات، وكيفية استعادة هذا المؤشر لبداية المجلد باستخدام `rewinddir` لتجنب إغلاق المجلد وفتحه من جديد.
يسير المؤلف في طرحه بنمط تعليمي تقليدي؛ يبدأ بتعريف الدالة، ثم يفكك بارامتراتها، وينتهي بمثال تطبيقي. من النقاط الجيدة في الكتاب أنه لم يكتفِ بالدوال الإجرائية، بل شرح كيفية التعامل مع المجلدات وفق البرمجة كائنية التوجه عبر **الكلاس `dir`** الذي يعمل كغلاف يسهل استدعاء العمليات. كما يركز على تفاصيل دقيقة مثل الفرق بين القراءة التسلسلية والقراءة الشاملة للمجلد باستخدام `scandir` التي تخزن النتائج في مصفوفة مع إمكانية التحكم في ترتيبها.
تجربة القراءة سلسة جداً لأن الكتاب لا يفترض معرفة مسبقة عميقة، بل يشرح حتى أبسط الأمور مثل معنى القيمة `void` في لغات البرمجة. ومع ذلك، يطلب الكتاب من القارئ صبراً على أسلوب الكتابة الذي يميل أحياناً إلى التكرار في شرح الأمثلة، كما أن التركيز ينصب على الدوال الفردية أكثر من بناء مشاريع متكاملة.
هذا الكتاب موجه للمبرمجين المبتدئين في لغة PHP الذين يحتاجون إلى مرجع سريع ومبسط للتعامل مع نظام الملفات. أما من يبحثون عن أنماط تصميم متقدمة أو إدارة ملفات في بيئات سحابية معقدة، فقد يجدون المحتوى محدوداً وبسيطاً للغاية.
Be the first one to Rate, Review and Quote from the book
E-books are complementary and supportive of paper books and never cancel it. With the click of a button, the e-book reaches anyone, anywhere in the world.
E-books may weaken your eyesight due to the glare of the screen. Support the book publisher by purchasing his original paper book. If you can access it and get it, do not hesitate to buy it.
Publish your book now for free
We require cookies for this site to function. Please enable them to continue.
نحن نظهر لك هذه الرسالة لأننا نحترم خصوصيتك.
By using this website, you consent to us collecting cookies to provide you with a better user experience,
more details.
You cannot browse the site since you refused the use of cookies, as the site relies primarily on them to work.
Intellectual property is reserved for the authors mentioned on the books and the library is not responsible for the ideas of the authors
Old and forgotten books that have become past to preserve Arab and Islamic heritage are published,
and books that their authors are accepted to published.
The Universal Declaration of Human Rights states: "Everyone has the right freely to participate in the cultural life of the community, to enjoy the arts and to share in scientific advancement and its benefits.Everyone has the right to the protection of the moral and material interests resulting from any scientific, literary or artistic production of which he is the author".