Академический Документы
Профессиональный Документы
Культура Документы
>
Start
Echo
Output Print
FILE_APPEND Gettype($var);
file_put_contents($file or $directory ,data ,mode Vardump($var);
exclusive LOCK_EX mode |another ); 2.integer Length
FILE_USE_INCLUDE_PATH 3.float(double )(Real Number)
file_get_contents(file path,include_path,context,offset ,Max_ Datatype 4.array( , "A"=>"value" , ,);
length);
5.null (Empty)
is_writable('file path');
6.class And Object
Mkdir('folder name'); make a directory(folder)
7.(resourse) Mysqli_connect();
rmdir('folder name'); remove directory(folder)
8.(resourse) Fopen(filename, Mode);
IS_dir('folder name'); check
to get the file name basename(path ,suffex);
Define(name ,Value ,Case-insensitive);
to change the file mode to read only or 0755 write only ,r+ chmod($file , 0444);
Const $Name
copy(__FILE__, __DIR__.'/Backup/Backup_one.php'); copy(old file ,new file);
False (Default)
rename(old file ,new file); Costants Case-insensitive
True
pathinfo(path , info);
File System
Can't Be Changed Or Update
must be writable
unlink(file name , context);
remove file
show files scandir(dir , sort type ,context);
If Elseif Else
And = $$
Fopen(file name ,mode ,include_path ,context);
Xor One Condition Is True But Not All
fopen(file name); handle
fread(handle ,byte length); Logical Operators Or =||
filesize(file name); length
Not Equal >> !
write in a file fwrite(handle , String ,length);
pointer in the file(for modification)
@ Ignore Errors
SEEK_SET fseek(handle , offset ,whence);
Error Message @ Fopen() Or Die("file Is Not Exist");
SEEK_CUR whence
Include( " Inc .Php"); New Page Will Be Opened
SEEK_END Error Operator
Die() Method To Control The Exception
close the file fclose($file Handel);
error_reporting(number errors you want to show);
Globals['name']
Globals .
can be accessed in any where Concatenation
String Operator .=
getting information about the host
$_server['PHP_SELF'];
ﺍﻟﺳﻳﺭﻓﺭ ﺑﻳﻧﺯﻝ ﺍﻟﻣﻠﻑ ﻓﻲ ﺟﻬﺎﺯﻙ ﺑﻳﻌﺭﻑ ﺍﻟﻣﻭﻗ ﻊ ﻋﻠﻳﻙ return object; doesn't print value
indexed
ﺗﺳ ﺟﻳﻝ ﺍﻟﺑﻳﺎﻧﺎﺕ ﻓﻲ ﻣﺗﻐﻳﺭﺍﺕ ﻋﻠﻰ ﺍﻟﺳﻳﺭﻓﺭ
start or resume session_start(); array within array
multiDiminsion
$_SESSION['name anything']; nestead foreach loop
array_unique($arrayName);
unix way time();
date_default_timezone_get('continent/country');
split the string into array
format the date=>('y-m-d h:i:s')
explode(separator , $stringName ,limit);
DATE explode
time stamp (time() +number) date(format,time stamp);
optional
http://php.net/manual/en/function.date.php limit
number(+ , - )
convert string(now,week,year,day,month) into time(y:m:d) strtotime(date , now);
convert explode to String
strcmp(string1,string2); = 0 equals
strncmp(string1,string,number of chars);
reverse string strrev(string);
substr(string ,start, length);