User Profile

Collapse

Profile Sidebar

Collapse
pemoamsi
pemoamsi
Last Activity: Apr 17 '13, 10:18 AM
Joined: Apr 9 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pemoamsi
    started a topic Copy a file from a folder to another
    in PHP

    Copy a file from a folder to another

    Good morning,

    What have I done?
    I have indicated the source folder as $source, destination folder as $destination and file name as $file, did all operations needed in my code, but have not figured how do I copy the file to another folder, like build that little piece of code.
    Could someone give me a tutorial with the necessary commands or an example?
    See more | Go to post

  • pemoamsi
    started a topic print database records (SQLite)
    in PHP

    print database records (SQLite)

    Code:
    $result2 = $db->query('
    SELECT users_id, permission 
    FROM users 
    WHERE username="'.$username.'" AND password= "'.$password.'";');
    
    
    while($row = sqlite_fetch_array($result2, SQLITE_ASSOC)) {
    			extract($row);
    			$_SESSION['users_id'] = $row['id_users'];
    			$_SESSION['permission'] = $row['permission']; 
    		  }
    See more | Go to post
No activity results to display
Show More
Working...