Welcome to Truecodeing.tk plz join are other site TrueGamerz.tk
Site admin Dirty_Tazer & Bman24 & Snick458 & Always_Jonezen have any questions ask a admin or a mod
Welcome to Truecodeing.tk plz join are other site TrueGamerz.tk
Site admin Dirty_Tazer & Bman24 & Snick458 & Always_Jonezen have any questions ask a admin or a mod
Would you like to react to this message? Create an account in a few clicks or log in to continue.


TrueGamerz.tk
 
HomeHomeGallerySearchLatest imagesRegisterLog in
We have a new site that's a vbulliten join TrueGamerz.Tk
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
Xx...Tazer...xX (1239)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
bman24 (247)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
Always_Jonezen (155)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
Navy-Hawk (121)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
qwerty (91)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
CjZitical (91)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
snick458 (80)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
MAG (77)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
»Air Bourne« (76)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
.-jZeIvIiiX-. (73)
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcapQUICK REFERENCES OF ADVANCED PHP  I_voting_barQUICK REFERENCES OF ADVANCED PHP  I_vote_rcap 
Latest topics
» Socom FTB3 USA Gamesave 100% Complete
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeSun Dec 29, 2013 7:31 pm by pandemic44

» Making a scantime crypter - VB.net
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeWed Aug 15, 2012 7:01 am by shayl

» VERY IMPORTANT !!!!!!!!!!
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeFri Mar 09, 2012 9:34 pm by kfederigan

» my FTB3 gamesave request
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeTue Oct 25, 2011 2:39 pm by The.S.Man

» How To Install Pspsdk (PRX Compiler)
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeThu Aug 04, 2011 3:47 pm by xUnD3ADxMARIN3x

» Hope's
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeFri Jul 15, 2011 3:51 pm by nemopsp

» Offline Guns Online No Need Gamesaves!
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeWed Apr 20, 2011 3:08 pm by jeshuag

» Need Game Save Please
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeMon Apr 18, 2011 8:15 am by guy mandude

» my gsave request
QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeSun Apr 10, 2011 12:57 pm by Killin

Who is online?
In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests

None

Most users ever online was 120 on Tue May 14, 2019 3:05 pm
Statistics
We have 826 registered users
The newest registered user is netanter

Our users have posted a total of 3902 messages in 2169 subjects
Poll
Do you like too shop online??
Yes
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcap25%QUICK REFERENCES OF ADVANCED PHP  I_vote_rcap
 25% [ 14 ]
no
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcap25%QUICK REFERENCES OF ADVANCED PHP  I_vote_rcap
 25% [ 14 ]
Don't have credit card
QUICK REFERENCES OF ADVANCED PHP  I_vote_lcap51%QUICK REFERENCES OF ADVANCED PHP  I_vote_rcap
 51% [ 29 ]
Total Votes : 57
HITS
HTML Hit Counter
Web Counter
facebook
truecodeing

truecodeing

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
May 2024
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
262728293031 
CalendarCalendar
Search
 
 

Display results as :
 
Rechercher Advanced Search
Affiliates
 
Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of Truecodeing on your social bookmarking website

Bookmark and share the address of on your social bookmarking website
Music playlist

MusicPlaylist
Music Playlist at MixPod.com

 

 QUICK REFERENCES OF ADVANCED PHP

Go down 
AuthorMessage
Xx...Tazer...xX
Owner
Owner
Xx...Tazer...xX


Posts : 1239
T®ue Points : 1102678
T®ue Reputation : 40
Join date : 2009-09-02
Age : 31
Location : Chicago,Illinois

QUICK REFERENCES OF ADVANCED PHP  Empty
PostSubject: QUICK REFERENCES OF ADVANCED PHP    QUICK REFERENCES OF ADVANCED PHP  I_icon_minitimeSun Jul 11, 2010 7:24 pm

today I will show you guys a quick references of advanced PHP. In this tutorial, it will show you a guide of commands, directions and etc. This also provides information for commonly used tasks, syntax, and more! This reference info will help you towards your assessment in your Computing education, so if you think I am messing something please notify me with a comment and/or reply and I will get your message. Also if you had anymore questions please do so.

Well I think we are ready, so lets get started.......

Now here are the following I will show you guys in this references info:

Advanced Operators
MySQL Functions

File Reading
File Writing
File/Directory Handling
Function Handling
Object Functions
Constants
Magic Constants
The list of commands/directions of PHP advanced

Advanced Operators:
Instanceof - instanceof
@- @() // Suppress generated errors/notices

Database Of MySQL:
mysql_connect([],[],[]);
mysql_create_db(,[]);
mysql_select_db(,[]);
mysql_drop_db(,[]);
mysql_list_dbs([]);
mysql_list_tables(,[]);
mysql_list_fields(,,[]);
mysql_query(,[]);
mysql_fetch_array(,);
mysql_fetch_assoc();
mysql_fetch_object(,[],[]);
mysql_fetch_row();

Code: [Select]
// Example using fetch_array
while ($result_row = mysql_fetch_array($result,MYSQL_ASSOC)){
echo "Field 1 is: {$result_row['field1']}";
}

// Example using fetch_object
while ($result_obj = mysql_fetch_object($result)) {
echo "Field 1 is: " . $result_obj->field1;
}

mysql_affected_rows([]);
mysql_num_rows();
mysql_num_fields();
mysql_real_escape_string(,[]);
mysql_close([]);

File Reading/Writing:
fopen(,,[],[]);
fread(,);
fwrite(,,[]);
fseek(,,[]);
fclose();
is_readable();
is_writeable();

Code: [Select]
// Example of writing to file

$file = fopen("hellobob.txt","w");

if ($file) {
fwrite($file,"This is a line of text");
fclose($file);
}

// Example of reading from file

$fileread = fopen("hellobob.txt","r");

if ($fileread) {
$text = fread($fileread,100);
fclose($fileread);

echo "Read in: $text";
}

File/directory Handling:
file_exists();
is_file();
dirname();
is_dir();
mkdir(,[],[],[]);
rmdir(,[]);
rename(,,[]);
copy(,,[]);
chmod(,);
unlink(]);

Code: [Select]
// Example of using is_file, copy, and unlink to rename file.

if (is_file("hellobob.txt")) {
copy("hellobob.txt","goodbyebob.txt");
unlink("hellobob.txt");
}

// Example of file_exists and rename

if (file_exists("goodbyebob.txt")) {
rename("goodbye.txt","helloagainbob.txt");
}

Function Handling:
create_function(,);
call_user_func( [, [, [, ... ]]]);
call_user_func(array(,)[, [, [,
... ]]]);
call_user_func_array(,);
function_exists();

Code: [Select]
// Example of creating anonymous function (returns the value 6)

$myNewFunction = create_function('$param1,$param2','return $param1 * $param2;');
echo "Result is: " . $myNewFunction(2,3);

// Example of calling class method using parameter

class MyClass {
function showMessage($test = "") {
echo "Welcome to DIC! $test";
}
}

call_user_func(array('MyClass','showMessage'),"Enjoy your stay.");

Object Functions:
$variable = get_class([]);
$arrayofclassnames = get_declared_classes();
$variable = get_parent_class([]);
$arrayofproperties = get_object_vars([]);

is_a(,);
is_subclass_of(,);

class_exists();
method_exists(,);

Constants:
// Define a constant
define(,,[]);

"Magic" Constants:
__LINE__ - Current line number of the file.
__FILE__ - The full path and filename of the file. If used inside an include, the name
of the included file is returned.
__FUNCTION__ - The function name.
__CLASS__ - The class name.
__METHOD__ - The class method name. (PHP 5.0+)

Thanks for reading and I hope you learn something

Credits:_-_EVIL-LOCO_-_ and PHP school and prep
Back to top Go down
https://truecodeing.forumotion.net
 
QUICK REFERENCES OF ADVANCED PHP
Back to top 
Page 1 of 1
 Similar topics
-
» QUICK REFERENCES OF BASIC PHP

Permissions in this forum:You cannot reply to topics in this forum
 :: Computer section :: Visual basic :: PHP-
Jump to:  
Create a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com