Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    New to the CF scene
    Join Date
    Mar 2009
    Location
    New Brunswick, Canada
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does it cost anything to install the above program, WAMP?

  2. #17
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Quote Originally Posted by jaymista View Post
    Does it cost anything to install the above program, WAMP?
    http://www.google.co.in/search?q=wamp
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  3. #18
    Regular Coder hinch's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    923
    Thanks
    25
    Thanked 80 Times in 80 Posts
    Quote Originally Posted by adumpaul View Post
    some basic qusetion in php:
    1.What is staic and dynamic webpage?
    2.what is css?
    3.How do you connect database with php code?
    4.What is session ?

    1) static is a page made up purely of html and/or css it does not automatically update its self or allow any form of interaction with a data storage or retrieval system eg: a database
    Dynamic is basically everything you see on the internet
    2) css = cascading style sheets used for defining a layout and design etc of your website you can read more here http://www.w3schools.com/css/
    3) like this

    PHP Code:
            define("DB_NAME","mydatabase");
        
    define("SERVER_NAME","serveraddress");
        
    define("USER_NAME","myusername");
        
    define("PASSWORD","mypassword");
    $conn mysql_connect(SERVER_NAMEUSER_NAMEPASSWORD) or die("Could not connect: " mysql_error());
    mysql_select_db(DB_NAME$conn); 
    4) a session is something you create in in your web page that can store data for you to use. so if you want to store something and use it later you can store it in a session. most commonly used in login systems where people will store a "logged in" variable to identify users who are logged in or not.
    A programmer is just a tool which converts caffeine into code

    My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
    My hobby: http://www.angel-computers.co.uk
    My life: http://www.furious-angels.com

  4. #19
    New Coder
    Join Date
    Jan 2010
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    ldap, php ldap, ldap authentication

    How to use LDAP to authenticate user.
    Code:
    function ldap_auth($server, $domain, $username, $password) {
    	if (strlen($username) == 0 || strlen($password) == 0) {
    		return false;
    	}
    
    	$ds = ldap_connect($server)
    		or die('Connection to the LDAP server failed.');
    
    	if (!$ds) {
    		return false;
    	}
    	ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
    	ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
    
    	
    	$r = @ldap_bind($ds, "$domain\\$username", $password);
    
    	if (!$r) {
    		return false;
    	}
    $dn = "dc=ad,dc=domain,dc=com";
    $filter =  "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))";
    $search_results = ldap_search($ds, $dn, $filter) or die ("ldap search failed");
    $entries = ldap_get_entries($ds, $search_results);
    
    if( $entries["count"] > 0) 
    {
    
    }
    else {
    error_log("No such user $username found", 0);
    
    }
            ldap_close($ds);
    
    	return true;
    
    	
    }

  5. #20
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Im new to php. Can anyone help me for php random script that i can define priority. Example I have number 1 to 10 in array. I want to select 1 to 4 in first 4 picks. Then only it should pick 5-10.

    How can i do this. I hope this is clear. If not please ask.

    Thanks

  6. #21
    New to the CF scene
    Join Date
    Sep 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There are many to learn code of php,like w3scool,ytube e.t.c


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •