Log in
Search
Latest topics
» یادش بخیر by azadmol 9/6/2019, 1:31 am
» aurora urdu bot
by launchar 3/1/2017, 6:58 am
» نیمباز خره فیلتر شد :دی
by Sweet_dream 8/26/2015, 5:33 am
» Iranian Chapar Messnger Demo Version
by bizar 8/1/2015, 3:22 pm
» New bot server
by n.raja 2/3/2015, 3:59 am
» Home Personal Trainer
by chamith1 1/25/2015, 12:30 am
» NEW JORDAN TEAM WEB FLOOD
by al.mdmr 12/6/2014, 6:08 pm
» iPhone6 Plus Replica New
by chamith1 11/26/2014, 1:57 am
» Samsung GALAXY ALPHA Replica BB
by chamith1 11/22/2014, 12:17 am
» iPhone6 PLus Replica now
by chamith1 11/22/2014, 12:15 am
» iPhone6 Replica Black
by chamith1 11/22/2014, 12:08 am
» Samsung Galaxy S5 Replica New one
by chamith1 11/22/2014, 12:06 am
» Its iPhone6 Replica
by chamith1 11/22/2014, 12:01 am
» brand newSamsung Galaxy Note4 Replica
by chamith1 11/21/2014, 11:57 pm
Top posters
αℓαm2αrtmαñ (910) | ||||
ArT (766) | ||||
mashr0ob (738) | ||||
P3rsianc4T (714) | ||||
PMC (597) | ||||
...a.del... (577) | ||||
Alireza.Xn (548) | ||||
soket (513) | ||||
rend (444) | ||||
Milano (345) |
Similar topics
Create own web flood english
3 posters
Page 1 of 1
Create own web flood english
XMPPHP is one of the PHP library to create web-based jabber client. On the site itself says that unlicensed developers XMPPHP XMPPHP is the successorof Class.Jabber.php.
Here I will explain the use XMPPHP little to perform the basic functions jabber, ie, send private messages and send a message to groupchat.
Please know that the main process in the XMPPHP in the handle by a XMLStream.php file. Where in it there are functions to process XML Streaming XMLStream.php addition there are also other supporting a file that is XMPP.php. In this file there are xml handler that will be sent via the XML Socket Stream.
Before we start creating the script, there are some applications and settings that we need to do
1. XMPPHP main files, can be downloaded in You are not allowed to view links.
Register or Loginhttp: / / code.google.com/ p / xmpphp
2. PHP server to run a php script, here I am using XAMPP.
3. Extract the files into forlder XMPPHP on xampp htdocs or www folder on some other server php applications.
4. Make sure you activate the extension php_openssl.dll on XAMPP, because we're going to make a connection using SSL on port 5222. You may view your php configuration on phpinfo, and to enable it to open the php.ini file in the folder xampp / apache / bin / php.ini. Remove the ";" in front of the string extension = php_openssl.dll.
5. Connection to the internet.
6. Finally, this process can only be done by PC users
Send a private message (use thegood)
In this section I will try to explainhow to send a private message to jabber client. Well first you run the xampp server, copy andsave the script below as private.php using your favorite text editor:
Code:
connect ();
$ Conn-> processUntil ('session_start');
$ Conn-> presence ();
$ Conn-> message ('maddoc@nimbuzz.com', 'Hello prince_aamir');
$ Conn-> disconnect ();
} Catch (XMPPHP_Exception $ e)
die ($ e-> getMessage ());
}
?>
Explanation of the script above is as follows:
Code:
include 'xmpphp / Log.php';
include 'XMPPHP / XMPP.php';
the script above, we will do inclusi Log.php files and XMPP.php, where there fungsi2 jabber command.
Code:
$ Conn = new XMPPHP_XMPP ('openfire.nimbuzz.com', 5222, 'username', 'password', 'xmpphp', 'nimbuzz.com', $ printlog = false,$ loglevel = XMPPHP_Log:: LEVEL_INFO);
Pieces script above contains host variables, port, username, password and jabber server that will be used. Where the function is contained in XMPP.php
Code:
public function __construct ($ host, $ port, $ user, $ password, $ resource, $ server= null, $ printlog = false, $ loglevel = null) {parent:: __construct ($ host, $ port, $ printlog, $ loglevel);
The above piece of script found on XMPP.php
Code:
$ Conn-> connect ();
The function of the script snippet above is to connect to jabber server.
Code:
$ Conn-> processUntil ('session_start');
$ Conn-> presence ();
This script contains the process will start after the session has started, and send presence to the jabber server.
Code:
conn-> message ('mohandes@nimbuzz.com', 'Hello mohandes');}
$ Conn-> disconnect ();
Potonga script above contains the sender's command, which consists of a user variable mosque and a message. This function is located in XMPP.php
Here I will explain the use XMPPHP little to perform the basic functions jabber, ie, send private messages and send a message to groupchat.
Please know that the main process in the XMPPHP in the handle by a XMLStream.php file. Where in it there are functions to process XML Streaming XMLStream.php addition there are also other supporting a file that is XMPP.php. In this file there are xml handler that will be sent via the XML Socket Stream.
Before we start creating the script, there are some applications and settings that we need to do
1. XMPPHP main files, can be downloaded in You are not allowed to view links.
Register or Loginhttp: / / code.google.com/ p / xmpphp
2. PHP server to run a php script, here I am using XAMPP.
3. Extract the files into forlder XMPPHP on xampp htdocs or www folder on some other server php applications.
4. Make sure you activate the extension php_openssl.dll on XAMPP, because we're going to make a connection using SSL on port 5222. You may view your php configuration on phpinfo, and to enable it to open the php.ini file in the folder xampp / apache / bin / php.ini. Remove the ";" in front of the string extension = php_openssl.dll.
5. Connection to the internet.
6. Finally, this process can only be done by PC users
Send a private message (use thegood)
In this section I will try to explainhow to send a private message to jabber client. Well first you run the xampp server, copy andsave the script below as private.php using your favorite text editor:
Code:
connect ();
$ Conn-> processUntil ('session_start');
$ Conn-> presence ();
$ Conn-> message ('maddoc@nimbuzz.com', 'Hello prince_aamir');
$ Conn-> disconnect ();
} Catch (XMPPHP_Exception $ e)
die ($ e-> getMessage ());
}
?>
Explanation of the script above is as follows:
Code:
include 'xmpphp / Log.php';
include 'XMPPHP / XMPP.php';
the script above, we will do inclusi Log.php files and XMPP.php, where there fungsi2 jabber command.
Code:
$ Conn = new XMPPHP_XMPP ('openfire.nimbuzz.com', 5222, 'username', 'password', 'xmpphp', 'nimbuzz.com', $ printlog = false,$ loglevel = XMPPHP_Log:: LEVEL_INFO);
Pieces script above contains host variables, port, username, password and jabber server that will be used. Where the function is contained in XMPP.php
Code:
public function __construct ($ host, $ port, $ user, $ password, $ resource, $ server= null, $ printlog = false, $ loglevel = null) {parent:: __construct ($ host, $ port, $ printlog, $ loglevel);
The above piece of script found on XMPP.php
Code:
$ Conn-> connect ();
The function of the script snippet above is to connect to jabber server.
Code:
$ Conn-> processUntil ('session_start');
$ Conn-> presence ();
This script contains the process will start after the session has started, and send presence to the jabber server.
Code:
conn-> message ('mohandes@nimbuzz.com', 'Hello mohandes');}
$ Conn-> disconnect ();
Potonga script above contains the sender's command, which consists of a user variable mosque and a message. This function is located in XMPP.php
mohandes_00- Amateur
- Posts : 21
Points & Level : 33
Thanks : 2
Join date : 2012-01-06
Re: Create own web flood english
Mr30 mohandes ino farsisho migi?
chetor bayad file php ro ruye host nasb kard?
HTMLsho baladam faghat in phpisho balad nistam
chetor bayad file php ro ruye host nasb kard?
HTMLsho baladam faghat in phpisho balad nistam
Alireza0098- Amateur
- Posts : 41
Points & Level : 116
Thanks : 7
Join date : 2011-11-03
Age : 31
Re: Create own web flood english
opera php dl kon
mohandes_00- Amateur
- Posts : 21
Points & Level : 33
Thanks : 2
Join date : 2012-01-06
mohandes_00- Amateur
- Posts : 21
Points & Level : 33
Thanks : 2
Join date : 2012-01-06
Re: Create own web flood english
Opera php az koja peyda konam?
Tu google opera php search konam?
Tu google opera php search konam?
Alireza0098- Amateur
- Posts : 41
Points & Level : 116
Thanks : 7
Join date : 2011-11-03
Age : 31
Re: Create own web flood english
Ahan tnx ok gereftam
Alireza0098- Amateur
- Posts : 41
Points & Level : 116
Thanks : 7
Join date : 2011-11-03
Age : 31
Re: Create own web flood english
Alireza j pm ro bd :S
mohandes_00- Amateur
- Posts : 21
Points & Level : 33
Thanks : 2
Join date : 2012-01-06
Similar topics
» DraGon Fire Auto Flood (700 Id) Flood Room + 2 Victim + Flood Prvt + Add + Dc ... (Hang Room In Server And Dc All Users ;)
» Sniper Style English Font v0.1
» Dragon Mysterious Auto Flood CD 12 Auto Flood Contian 12,000 Ids For Flood
» Sniper Style English Font v0.1
» Dragon Mysterious Auto Flood CD 12 Auto Flood Contian 12,000 Ids For Flood
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum