php

برمجة نظام القوالب

بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته القوالب هي تقييم للمبرمج فهي من تحدد سرعة البرنامج و إمكانية تصميمه و تطويره بسهوله لأن بكل بساطه المطور و المصمم ليسوا متعمقين في البرمجه بالشكل الكافي للتعديل و تخيل معي إن كانوا يستطيعوا ذلك فسيقوم شخص بتعديل جزء و يأتي صاحب الموقع لتغير التصميم فيأتي الاخر بتعديله ...

  • حازم علي
  • 15-7-2008
  • 9756

خطوات نحو برمجة الكائنات - PHP5

php5,class,oop,Java,functions

  • vividona
  • 14-7-2008
  • 8849

دوال الملفات

basename,dirname,fopen,fread,fwrite,fputs,fseek,feof,fgets,filesize,filetype,filemtime,

  • حازم علي
  • 6-7-2008
  • 7543

دوال التحقق

is_dir,is_file,is_readable,is_writable,is_executable,file_exists,is_uploaded_file,empty,isset

  • حازم علي
  • 6-7-2008
  • 2763

خاصية mod_rewrite - شرح مفصل

بسم الله الرحمن الرحيم مقدمة تسمح لك تقنية mod_rewrite والموجودة في برنامج Apache الشهير بتحويل زوار الموقع من رابط الى رابط آخر دون علمهم ودون تغيير الرابط في المتصفح، هذا يمكنك من تحويل الزائر من رابط الصفحة القديم الى الرابط الجديد مثلاً، كما تسمح لك بإعادة كتابة الروابط بالشكل الذي تريده ويسهل على الزائر وعلى محرك البحث أيضاً ...

  • فِكرة
  • 6-7-2008
  • 3473

تعلم كيف تبرمج سكريبت لتحميل الملفات بيدك

مركز تحميل,تحميل ملفات,تحميل صور,upload,تحميل مجاني

  • ابوطارق
  • 6-7-2008
  • 3582

قد تختلف الأساليب .. لكن النتيجة واحدة

في البداية .. أي إنسان على وجه هذه الأرض له طريقة التفكير الخاصة به .. فمنهم من يفكر بطريقة معوقة ! (يجي من العكس) ومنهم من يأتي بالحل مباشرة ومنهم الوسط .. كذلك المبرمجين لحل أي مشكلة تعرض عليه يتخذ طريقته وتفكيره الخاص .. في النهاية تجده وجد الحل .. لكن هل هي الطريقة الوحيده لهذ الحل ! بالطبع لا فمن المشاكل التي واجهتني في البرمجة ...

  • Flasher
  • 29-6-2008
  • 2145

استعلامات MySQL بشكل متقدم

UPDATE,TABLE,SET,FIELD,MySQL,استعلامات,CONCAT,REPLACE,SELECT

  • flasher
  • 29-6-2008
  • 3196

معظم دوال String حزمه من الدوال وشرحها

String,addslashes,stripslashes,dechex,ceil,htmlentities,strlen,str_replace

  • صقرفورهوست
  • 18-6-2008
  • 4307

Using PHP To Backup MySQL Database

[L]There are at least three ways to backup your MySQL Database : 1- Execute a database backup query from PHP file. 2- Run mysqldump using system() function. 3- Use phpMyAdmin to do the backup. Execute a database backup query from PHP file Below is an example of using SELECT INTO OUTFILE query for creating table backup : [php][/php] To restore the backup you just need to run LOAD DATA INFILE query like this : [php][/php] It's a good idea to name the backup file as tablename.sql so you'll know from which table the backup file is Run mysqldump using system() function The ...

  • 20-3-2008
  • 2517

Form Validation With PHP

[L]Whenever you make a form you should not leave it alone without any form validation. Why? Because there is no guarantee that the input is correct and processing incorrect input values can make your application give unpredictable result. You can validate the form input on two places, client side and server side. Client side form validation usually done with javascript. Client side validation makes your web application respond 'faster' while server side form validation with PHP can act as a backup just in case the user switch off javascript support on her browser. And since different browsers ...

  • 20-3-2008
  • 6684

Creating A Guestbook Using PHP and MySQL Part 2

[L] Welcome to the second part of this guestbook tutorial. In this second part we'll add some code to our previous guestbook script which will allow us to view the entries. Without further ado let's start working on it. [U]Viewing the entries[/U] [php] Guestbook // ... the rest of javascript code goes here

  • 20-3-2008
  • 35879

Creating A Guestbook Using PHP and MySQL

[L]You've seen it at least once right? Guestbook is one of the most common thing to find in a website. In this tutorial we'll create a guestbook using PHP and MySQL. I have split this tutorial into two section, each covering a specific feature of the guestbook. - Creating The Sign-Guestbook Form This part will cover creating the database tables, the guestbook form and the process of saving the entry to database - Viewing The Entries You want to see the guestbook entries of course. This section covers fetching the entries from database and put int into an HTML table. You will also learn ...

  • 20-3-2008
  • 140244

Uploading Files To MySQL Database

[L]Using PHP to upload files into MySQL database sometimes needed by some web application. For instance for storing pdf documents or images to make som kind of online briefcase (like Yahoo briefcase). For the first step, let's make the table for the upload files. The table will consist of. - id : Unique id for each file - name : File name - type : File content type - size : File size - content : The file itself For column content we'll use BLOB data type. BLOB is a binary large object that can hold a variable amount of data. MySQL have four BLOB data types, they are : - TINYBLOB - ...

  • 20-3-2008
  • 7786

Uploading Files To File Server Using PHP

[L]Now, we will make another upload script. But this time we won't save the file in the database. We will only store the file info there but the real file is stored in the file server. We need a little modification to the upload table. Instead of using BLOB datatype we just use VARCHAR to store the file path. [code]CREATE TABLE upload2 ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, type VARCHAR(30) NOT NULL, size INT NOT NULL, path VARCHAR(60) NOT NULL, PRIMARY KEY(id) );[/code] The HTML form we use is no different with the previous one since the real changes will take ...

  • 20-3-2008
  • 7301

SimpleXML

[L]SimpleXML handles the most common XML tasks and leaves the rest for other extensions. -------------------------------------------------------------------------------- [color=FA0309]What is SimpleXML?[/color] SimpleXML is new in PHP 5. It is an easy way of getting an element's attributes and text, if you know the XML document's layout. Compared to DOM or the Expat parser, SimpleXML just takes a few lines of code to read text data from an element. SimpleXML converts the XML document into an object, like this: - Elements - Are converted to single attributes of the SimpleXMLElement object. ...

  • 20-3-2008
  • 1763