What are the different ways to login to a remote server?
Explain the means, advantages and disadvantages?
ssh (secured shell) is a good way to log in a remote server/
computer u need a ssh client for windows system the most
common is PuTTy advantage includes u could just run all
applications as if its running on ur system and hence easy
managing and disadv is what if u leaked ur ssh key and
password
-Abhishek Dilliwal
http://abhishek.x10hosting.com
| Is This Answer Correct ? | 2 Yes | 0 No |
What is magic function in php?
What is session cookies php?
How can I find the colour of a pixel of an image?
2 Answers Rushmore Consultancy,
i start a new session with : session_start(); then i set some session variable like this : $_SESSION['name']=$_POST['name'];\ and some another variables. at bottom of page i set header to diffrent page : header('location: index.php'); exit(); now in new page (index.php i can't access to my session variables, like $_SESSION['name']) what's wrong ? thanks. here is my files : a.php ======================================== session_start(); require ('config.inc.php'); if(isset($_POST)) foreach($_POST as $v=>$k) { $items[$v]=$k; } $sql="SELECT * FROM members WHERE username='{$items['user']}' AND pass=MD5('{$items['Password']}') "; $res=mysql_query($sql); $row=mysql_fetch_assoc($res); if($row['username']) { $_SESSION['type']=$row['type']; $_SESSION['name']=$row['name']; $_SESSION['family']=$row['family']; $_SESSION['username']=$row['username']; $_SESSION['date']=$row['date']; } header('location: admin.php'); exit(); ====================================== admin.php ===================================== <?php session_start(); if(!isset($_SESSION['admin'])) { header('location: index.php'); exit(); } require ('config.inc.php'); ?> . . . =================================
How is session data stored?
Tell me what is the default session time in php?
How is it possible to know the number of rows returned in the result set?
What are the two types of variables?
Write a program to display table of a number using php?
Why would we use === instead of ==?
What is meant by content management system?
3 Answers Global Logic, IBEE, TCS, Toyota,
Why do we use javascript in php?