javascript hit counter


Php

Php


4 23 ... 2345614 ...
31 40 223
  1. #31
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb php5


     

     










    :-



    1-

    2-

    3-

    4-

    &-
    &-

    5-

    6- construct destruct

    7-

    8-

    9- private, public, protected

    10-

    11-

    12-

    -------------------------------------------------

    1- :



    php Object Oriented Program(OOp ) PHP4 PHP5 Zend

    php4
    • & :






















    .



    2- :






    PHP:

    Class


    {

    //

    }





    3-








    var



    :




    PHP:

    class TV
    // TV

    {



    var
    ;

    }








    PHP:

    class TV
    // TV

    {



    var
    $tardod= 12036;
    //

    // 12036



    }












    PHP:

    class TV
    // TV

    {



    var
    $tardod= array();
    //



    }





    3-

    Function

    http://www.traidnt.net/vb/showthread.php?t=83181

    class






    PHP:
    class TV

    {


    function
    ()
    {

    //

    }

    }






    PHP:

    class TV

    {


    function
    print_msg ($message
    )
    {

    print
    "<div>$message</div>"
    ;

    }

    }



    &-





    PHP:
    $this->




    PHP:

    class TV //
    {
    //
    var $color= ' '
    ;


    function
    tv_color
    ()
    {

    echo
    "
    $this-> color"
    ;


    }

    /*



    $this->



    color

    */

    }


    Code:
    $this->



    PHP:
    $this->




    PHP:
    $this->$





    :






    PHP:

    class TV //
    {
    //
    var $color= ' '
    ;


    function
    tv_color
    ()
    {

    return
    "
    $this-> color"
    ;


    }


    function
    total
    ()
    {

    print
    $this->tv_color();
    // tv_color
    //

    }


    }



    &-




    new




    PHP:



    //

    $tv = new
    ;

    //

    $tv->
    ();





    PHP:


    class TV //
    {
    //
    var $color= ' '
    ;


    function
    tv_color
    ()
    {

    return
    "
    $this-> color"
    ;


    }


    function
    total
    ()
    {

    print
    $this->tv_color();
    // tv_color
    //

    }


    }

    $tv= new TV
    ;

    $tv->color=''
    ;

    print
    $tv->total
    ();




       

  2. #32
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb php5


    5-







    • extends
    extends





    PHP:
    PHP:
    class 

      
      

      
      
    class 
    B  extends        

      
      



    :





    PHP:
    PHP:
    class 

      
    var 
    $name='    '
      

      
      
    class 
    B  extends  A  

      
    function 
    msg() 

      
    echo 
    $this->name//         
    // A  
    //           
    // A 
      

      



    6- construct destruct


    • & construct





    php 5

    PHP:
    __construct






    PHP:
    PHP:
    class TV 

      
      
    function 
    __construct() 

      
    echo 
    "   "
      

      
      

      
      
    $tv = new TV //        



    • & destruct


    PHP:
    unset()







    PHP:
    PHP:
    class TV 

      
      
    function 
    __construct() 

      
    echo 
    "   "
      

      
    function 
    __destruct() 

      
    echo 
    "  "
      

      

      
      
    $tv = new TV //        
      
    unset($tv); //       



    7-



    PHP:
    clone





    PHP:
    class c
    {

    var
    $num=50
    ;

    }

    $c= new c
    ;
    $s= clone $c;
    // $s

    echo $c->num
    ;

    echo
    "<br/>"
    ;

    echo
    $s->num
    ;








    PHP:
    __clone





    PHP:
    PHP:
    class table 

      
    var 
    $border 3
    var 
    $color  "red"
      
    function 
    inputItem$num 

      
    $this->border $this->border $num 
      
    print 
    $num     "
      

      
    function 
    __clone() 

      
    $this->border 

      

      
    $firstTable = new table
    $firstTable->inputItem(20); 
    $secondTable= clone $firstTable
      
    echo  
    "<br/>".$firstTable->border 
      
    echo  
    "<br/>".$secondTable->border 


    8-

    abstract



    php.net


    PHP:
    PHP:
    abstract class AbstractClass 

        
    // Force Extending class to define this method 
        
    abstract function getValue(); 
        abstract  function 
    prefixValue($prefix); 
      
        
    // Common method 
       
    function printOut() { 
            print 
    $this->getValue() . "\n"
        } 

      
    class 
    ConcreteClass1 extends AbstractClass 

       function 
    getValue() { 
            return 
    "ConcreteClass1"
        } 
      
       function 
    prefixValue($prefix) { 
            return 
    "{$prefix}ConcreteClass1"
        } 

      
    class 
    ConcreteClass2 extends AbstractClass 

         function 
    getValue() { 
            return 
    "ConcreteClass2"
        } 
      
        function 
    prefixValue($prefix) { 
            return 
    "{$prefix}ConcreteClass2"
        } 

      
    $class1 = new ConcreteClass1
    $class1->printOut(); 
    echo 
    $class1->prefixValue('FOO_') ."\n"
      
    $class2 = new ConcreteClass2
    $class2->printOut(); 
    echo 
    $class2->prefixValue('FOO_') ."\n"


    abstract ,

    abstract



    9- private, public, protected





    private :

    public :

    protected :

    :


    PHP:
    class MyClass
    {
    privat $color = "blue"
    ;
    public
    $color2 = "red"
    ;
    protected
    $color3 = "white"
    ;

    }


    10-




    PHP:
    const




    PHP:
    PHP:
    class MyClass 


    const 
    color="red"

    function 
    __construct() 


    print 
    self::color


    }  
    class 
    MyClass 


    const 
    color="red"

    function 
    __construct() 


    print 
    self::color









       

  3. #33
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb


    11-
    php












    PHP:
    include()



    new

    ::

    :


    PHP:
    class MyClass
    {

    var
    $name="First object"
    ;

    }


    echo
    MyClass::name
    ;


    :




    .





    12-






    1-
    2-
    3-
    4-



    1-
    2-





    PHP:
    PHP:
    <? 
    class DBConnect 


    var 
    $link=false;//    

    var $sql //  

    var $arr=array(); //           

    function __construct($host,$user,$pass,$dbname)   //   


    $this->linkmysql_connect($host,$user,$pass); 

    if(!
    $this->link) exit ('     '); 
    else 
    mysql_select_db($dbname); 



    function 
    query(&$query)  //     

    $this->sqlmysql_query($query,$this->link); 

    return 
    $this->sql



    function 
    fetch_array($query)//     

    $this->sql=$query
    $this->arrmysql_fetch_array($this->sql); 
    return 
    $this->arr



    function 
    __destruct()   //        


        if(
    $this->sqlmysql_free_result($this->sql); 

        if(
    $this->linkmysql_close(); 








    ?>





    PHP:
    PHP:
    $db= new DBConnect(' ',' ',' ','  '); 

    $sql=$db->query(""); 

    $arr=$db->fetch_array($sql); 

    unset(
    $db); 




    11-
    php












    PHP:
    include()



    new

    ::

    :


    PHP:
    class MyClass
    {

    var
    $name="First object"
    ;

    }


    echo
    MyClass::name
    ;


    :




    .





    12-






    1-
    2-
    3-
    4-



    1-
    2-





    PHP:

    <?
    class
    DBConnect
    {

    var
    $link=false;
    //

    var $sql ;
    //

    var $arr=array();
    //

    function __construct($host,$user,$pass,$dbname)
    //
    {

    $this->link= mysql_connect($host,$user,$pass
    );

    if(!
    $this->link) exit (' '
    );
    else
    mysql_select_db($dbname
    );

    }

    function
    query(&$query)
    //
    {
    $this->sql= mysql_query($query,$this->link
    );

    return
    $this->sql
    ;

    }

    function
    fetch_array($query)
    //
    {
    $this->sql=$query
    ;
    $this->arr= mysql_fetch_array($this->sql
    );
    return
    $this->arr
    ;

    }

    function
    __destruct()
    //
    {

    if(
    $this->sql) mysql_free_result($this->sql
    );

    if(
    $this->link) mysql_close
    ();


    }



    }

    ?>




    PHP:

    $db
    = new DBConnect(' ',' ',' ',' ');

    $sql=$db->query(""
    );

    $arr=$db->fetch_array($sql
    );

    unset(
    $db
    );







       

  4. #34
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb











    PHP:
    PHP:
    <form name="reg" method="post" action="signup.php?do=send"
    <
    table width="250" border="0" cellspacing="0" cellpadding="0"

    <
    tr
    <
    td width="414" align="center"><font size="1"></font></td
    </
    tr
    <
    tr
    <
    td width="414" align="center"><input name="username" type="****" id="name" size="37"></td
    </
    tr
    <
    tr
    <
    td align="center"><font size="1"> </font></td
    </
    tr
    <
    tr
    <
    td align="center"><input name="email" type="****" id="email" size="37"></td
    </
    tr
    <
    tr
    <
    td align="center"><font size="1"> </font></td
    </
    tr
    <
    tr
    <
    td align="center"><input name="password" type="password" id="password" size="37"></td
    </
    tr
    <
    tr
    <
    td align="center" width="99%"><font size="1">  </font></td
    </
    tr
    <
    tr
    <
    td align="center" width="99%"><input name="repassword" type="password" value="" size="37"></td
    </
    tr
    <
    tr
    <
    td align="center" width="99%"><font size="1"></font></td
    </
    tr
    <
    tr
    <
    td align="center" width="99%"><input name="country" type="****" id="country" size="37"></td
    </
    tr
    <
    tr
    <
    td width="99%"
    <
    p align="center">&nbsp
                                     
    </
    b
                                     
    <
    input name="aloow" onClick="********.enableform.submit.disabled ='';" id="yes" type="radio" value="yes" style="font-weight: 700"><b> <label for="yes"
    </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
                                    </
    b
                        <
    input name="aloow" type="radio" onClick="********.enableform.submit.disabled ='true';"  id="no" value="no" checked style="font-weight: 700"><b><label for="no">  
    </label
    <
    br
    </
    b
    <
    br
    <
    input id="submit" name="submit" type="submit" value="" disabled></td
    </
    tr
    </
    table
    </
    form





    PHP:
    signup.php?do=send

    signup.php




    switch



    PHP:
    switch ($_GET['do']){

    }



    PHP:
    case"":
    die(
    " "
    );
    break;





    PHP:
    case"send":




    PHP:
    function check($var){
    $var = trim($var
    );
    $var = strip_tags($var
    );
    $var = mysql_real_escape_string($var
    );
    return (
    $var
    );
    }




    PHP:
    if(!isset( $_******[ ])){


    }



    PHP:
    $username = check($_POST[username]);
    $password = check($_POST[password
    ]);
    $repassword = check($_POST[repassword
    ]);
    $email = check($_POST[email
    ]);
    $country = check($_POST[country
    ]);
    $md5password = md5($password
    );

    md5

    http://www.traidnt.net/vb/showthread.php?t=954827



    ..


    PHP:
    $getuser = mysql_db_query("$DB_Name", "SELECT * FROM `$tblname` WHERE $tblname.`user_name` = '$username' ") ;
    $issetuser = mysql_affected_rows
    ();





    PHP:
    $getmail = mysql_db_query("$DB_Name", "SELECT * FROM `$tblname` WHERE $tblname.`user_mail` = '$email' ") ;
    $issetmail = mysql_affected_rows
    ();



    PHP:
    $issetuser

    $issetmail










    PHP:

    PHP:
        if ($username ==''
                    { 
                    
    $errors[] = '   '
                    } 
                    elseif ( 
    $password != $repassword
                    { 
                    
    $errors[] = '    '
                    } 
                    elseif (
    valid_email($email)==FALSE
                    { 
                    
    $errors[] = '   '
                    } 
                    elseif (
    $issetuser  !=  0
                    { 
                    
    $errors[] = '     '
                    } 
                    elseif (
    $issetmail  !=  0
                    { 
                    
    $errors[] = '     '
                    } 


    $issetuser


    PHP:
    if(is_array($errors))
    { while (list(
    $key,$value) = each($errors
    ))
    {

    echo(
    $value."<br>"
    );
    }

    is_array

    㿿



    site_activation


    1
    2
    3
    4

    site_activation



    PHP:
    PHP:
    if($siteactivation == (1)){ 
           
               
    }elseif($siteactivation == (2)){ 
        
            
    }elseif($siteactivation == (3)){ 
        
            
                  
        





    break;








       

  5. #35
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb




    :







    admin username password




    PHP:
    PHP:
    <? 
    /*     */ 
    $con mysql_connect("localhost","   ","  "
    $db mysql_select_db("  ",$con); 
    /*    */ 
    $query "select * from admin"
    $result mysql_query($query); 
    /*     */ 
    while($name mysql_fetch_array($result)){ 
    echo 
    $name['username']; 
    echo 
    "<br>"
    echo 
    $name['password']; 

    ?>






       

  6. #36
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb Form




    ::


    ::

    .

    Submit .

    (**** Box) (Radio buttons and check box) ::




    Radio Check .




    PHP:
    <Form>

    </
    Form
    >


    Action Method ::

    Action ::

    ::


    PHP:
    <Form Action="Result_page.php">
    </
    Form
    >


    submit (Result_page.php) () .


    Method ::

    ::


    PHP:
    <Form Action="Result_page.php" Method="post">
    <
    Form Action="Result_page.php" Method="Get"
    >


    (Result_page.php) .

    ::

    Get ::

    .


    http://localhost/order_page.php?name=value&age=20

    name age name **** Box age name .

    .

    query string .

    Get .

    Post ::

    Get Get .

    Get URL .















       

  7. #37
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array
       

  8. #38
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb







    mail.html mail.php
    mail.html >













    > mail.php
    ,


    4
    >
    >
    >
    >
    4




    3













    mail.php
    ( )




    to


    you



    sub
    msg



    mail.php
    html



    html

    <!--***bot bot="SaveResults" u-file="C:\My ********s\My ***s\_private\form_results.csv" s-format="****/CSV" s-label-fields="TRUE" --><p align="center">










    <form method="POST" action="--***BOT-SELF--">
    "--***BOT-SELF-- mail.php






    mail.php





    mail.htm
    mail.php
    txt
    mail php




    PHP:
    <html dir ="rtl">
    <head><title> </title></head>
    </html>
    <?
    mail
    ("$to", "$sub", "$msg","From:$you"
    );
    echo
    "<BR>"
    ;
    echo
    "<BR>"
    ;
    echo
    "<center> $to</center>"
    ;
    ?>

    mail.php
    mail.htm mail.php



    mail.html









       

  9. #39
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb Python







    .
    .






    http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi





    Py******erer



    http://www.mediafire.com/?e5ioniytoxs







    python Kdevelop Eric




    print

    . print (run) F9

















    -

    .

    .






    x 10 22
    10 x x print x .

    (A>Z) (0<9) .
    # @ /$

    PHP:
    and assert break class continue def
    del elif
    else
    except exec finally
    for from global if
    import in
    is lambda not
    or pass
    print
    raise return try while
    yield


    name .


    = .





    ++ .

    - ( ).
    - .
    - a3 b9 fx
    - () .







    */ + ...

    %
    */ + ...

    %









       

  10. #40
      Bakenam
    :
    : 350
    : Nov 2008
    :
    : 11,390
    : 20
    Array
    : 27
    Array

    vb php


    \ php








       


 

: 1 (0 1 )

     

, , , , , , php,