Setting up code from localhost to server

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 1986 Views - Last Post: 05 March 2014 - 02:22 PM Rate Topic: -----

#1 4this   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 23
  • Joined: 05-March 14

Setting up code from localhost to server

Posted 05 March 2014 - 05:16 AM

Hi there,

I've been trying to get some code ruuning.
The code can be found at the next link - code link

As you can see it got a Client and a Server Code, this code is an android instant messenger based on socket communication.

The Server Code is containing three files - one sql file and two php files.

The thing is that when i tested the code using XAMPP as a localhost all worked fine.

The problems began when i tried to move it to a server.

What i have done is simple - i've open an account at serversfree.com. Then there i went to the MySQL database and created a database name: and username. After that i uploaded the sql file.

Then i went to the file manager option - and upload to it the index.php and the mysql.class.php. And also i've edit at the index.php file the four relevant lines -

$dbHost = "";
$dbUsername = "DBUSERNAME";
$dbPassword = "DBPASSWORD";
$dbName = "DBNAME";

Of course the input for each line is not the same as shown here.

The problem is, for example, when a user is trying to sign up - when i tried it at a localhost all went fine, but with the server - at the client side it tells the user that something went wrong and the signing up failed - But when i having a look at the mySQL table i can see that the user info sure got into the table, and even i can log in with that user info.

Another problem i'm having is when a user tries to add up another user to his contact list - is sure seem not to work.
Even when im going to the mySQL table and changing the value from 0 to 1 - as if to say that friend request is approved - still the user name is not showing up at the friends list. That thing sure worked at the localhost scenario.

Well i hope that someone here could help me to figre out what making this problem.

Here's the code for one of the php file-


index.php
<?php
/****************************************
*		Server of Android IM Application
*		  		
*		Supported actions: 
*			1.  authenticateUser
*			    if user is authentiated return friend list
* 		    
*			2.  signUpUser
* 		
*			3.  addNewFriend
* 		
* 			4.  responseOfFriendReqs
*
*			5.  testWebAPI
*************************************/


//TODO:  show error off

require_once("mysql.class.php");

$dbHost = "localhost";
$dbUsername = "DBUSERNAME";
$dbPassword = "DBPASSWORD";
$dbName = "DBNAME";


$db = new MySQL($dbHost,$dbUsername,$dbPassword,$dbName);

// if operation is failed by unknown reason
define("FAILED", 0);

define("SUCCESSFUL", 1);
// when  signing up, if username is already taken, return this error
define("SIGN_UP_USERNAME_CRASHED", 2);  
// when add new friend request, if friend is not found, return this error 
define("ADD_NEW_USERNAME_NOT_FOUND", 2);

// TIME_INTERVAL_FOR_USER_STATUS: if last authentication time of user is older 
// than NOW - TIME_INTERVAL_FOR_USER_STATUS, then user is considered offline
define("TIME_INTERVAL_FOR_USER_STATUS", 60);

define("USER_APPROVED", 1);
define("USER_UNAPPROVED", 0);


$username = (isset($_REQUEST['username']) && count($_REQUEST['username']) > 0) 
							? $_REQUEST['username'] 
							: NULL;
$password = isset($_REQUEST['password']) ? md5($_REQUEST['password']) : NULL;
$port = isset($_REQUEST['port']) ? $_REQUEST['port'] : NULL;

$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : NULL;
if ($action == "testWebAPI")
{
	if ($db->testconnection()){
	echo SUCCESSFUL;
	exit;
	}else{
	echo FAILED;
	exit;
	}
}

if ($username == NULL || $password == NULL)	 
{
	echo FAILED;
	exit;
}

$out = NULL;

error_log($action."\r\n", 3, "error.log");
switch($action) 
{
	
	case "authenticateUser":
		
		
		if ($userId = authenticateUser($db, $username, $password)) 
		{					
			
			// providerId and requestId is Id of  a friend pair,
			// providerId is the Id of making first friend request
			// requestId is the Id of the friend approved the friend request made by providerId
			
			// fetching friends, 
			// left join expression is a bit different, 
			//		it is required to fetch the friend, not the users itself
			
			$sql = "select u.Id, u.username, (NOW()-u.authenticationTime) as authenticateTimeDifference, u.IP, 
										f.providerId, f.requestId, f.status, u.port 
							from friends f
							left join users u on 
										u.Id = if ( f.providerId = ".$userId.", f.requestId, f.providerId ) 
							where (f.providerId = ".$userId." and f.status=".USER_APPROVED.")  or 
										 f.requestId = ".$userId." ";
										 
			//$sqlmessage = "SELECT * FROM `messages` WHERE `touid` = ".$userId." AND `read` = 0 LIMIT 0, 30 ";
			
			$sqlmessage = "SELECT m.id, m.fromuid, m.touid, m.sentdt, m.read, m.readdt, m.messagetext, u.username from messages m \n"
    . "left join users u on u.Id = m.fromuid WHERE `touid` = ".$userId." AND `read` = 0 LIMIT 0, 30 ";
			
	
			if ($result = $db->query($sql))			
			{
					$out .= "<data>"; 
					$out .= "<user userKey='".$userId."' />";
					while ($row = $db->fetchObject($result))
					{
						$status = "offline";
						if (((int)$row->status) == USER_UNAPPROVED)
						{
							$status = "unApproved";
						}
						else if (((int)$row->authenticateTimeDifference) < TIME_INTERVAL_FOR_USER_STATUS)
						{
							$status = "online";
							 
						}
						$out .= "<friend  username = '".$row->username."'  status='".$status."' IP='".$row->IP."' userKey = '".$row->Id."'  port='".$row->port."'/>";
												
												// to increase security, we need to change userKey periodically and pay more attention
												// receiving message and sending message 
						
					}
						if ($resultmessage = $db->query($sqlmessage))			
							{
							while ($rowmessage = $db->fetchObject($resultmessage))
								{
								$out .= "<message  from='".$rowmessage->username."'  sendt='".$rowmessage->sentdt."' text='".$rowmessage->messagetext."' />";
								$sqlendmsg = "UPDATE `messages` SET `read` = 1, `readdt` = '".DATE("Y-m-d H:i")."' WHERE `messages`.`id` = ".$rowmessage->id.";";
								$db->query($sqlendmsg);
								}
							}
					$out .= "</data>";
			}
			else
			{
				$out = FAILED;
			}			
		}
		else
		{
				// exit application if not authenticated user
				$out = FAILED;
		}
		
	
	
	break;
	
	case "signUpUser":
		if (isset($_REQUEST['email']))
		{
			 $email = $_REQUEST['email'];		
			 	
			 $sql = "select Id from  users 
			 				where username = '".$username."' limit 1";
			 
		
			 				
			 if ($result = $db->query($sql))
			 {
			 		if ($db->numRows($result) == 0) 
			 		{
			 				$sql = "insert into users(username, password, email)
			 					values ('".$username."', '".$password."', '".$email."') ";		 					
						 					
			 					error_log("$sql", 3 , "error_log");
							if ($db->query($sql))	
							{
							 		$out = SUCCESSFUL;
							}				
							else {
									$out = FAILED;
							}				 			
			 		}
			 		else
			 		{
			 			$out = SIGN_UP_USERNAME_CRASHED;
			 		}
			 }				 	 	
		}
		else
		{
			$out = FAILED;
		}	
	break;
	
	case "sendMessage":
	if ($userId = authenticateUser($db, $username, $password)) 
		{	
		if (isset($_REQUEST['to']))
		{
			 $tousername = $_REQUEST['to'];	
			 $message = $_REQUEST['message'];	
				
			 $sqlto = "select Id from  users where username = '".$tousername."' limit 1";
			 
			 
		
					if ($resultto = $db->query($sqlto))			
					{
						while ($rowto = $db->fetchObject($resultto))
						{
							$uto = $rowto->Id;
						}
						$sql22 = "INSERT INTO `messages` (`fromuid`, `touid`, `sentdt`, `messagetext`) VALUES ('".$userId."', '".$uto."', '".DATE("Y-m-d H:i")."', '".$message."');";						
						 					
			 					error_log("$sql22", 3 , "error_log");
							if ($db->query($sql22))	
							{
							 		$out = SUCCESSFUL;
							}				
							else {
									$out = FAILED;
							}				 		
						$resultto = NULL;
					}	
			 				 	 	
		$sqlto = NULL;
		}
		}
		else
		{
			$out = FAILED;
		}	
	break;
	
	case "addNewFriend":
		$userId = authenticateUser($db, $username, $password);
		if ($userId != NULL)
		{
			
			if (isset($_REQUEST['friendUserName']))			
			{				
				 $friendUserName = $_REQUEST['friendUserName'];
				 
				 $sql = "select Id from users 
				 				 where username='".$friendUserName."' 
				 				 limit 1";
				 if ($result = $db->query($sql))
				 {
				 		if ($row = $db->fetchObject($result))
				 		{
				 			 $requestId = $row->Id;
				 			 
				 			 if ($row->Id != $userId)
				 			 {
				 			 		 $sql = "insert into friends(providerId, requestId, status)
				 				  		 values(".$userId.", ".$requestId.", ".USER_UNAPPROVED.")";
							 
									 if ($db->query($sql))
									 {
									 		$out = SUCCESSFUL;
									 }
									 else
									 {
									 		$out = FAILED;
									 }
							}
							else
							{
								$out = FAILED;  // user add itself as a friend
							} 		 				 				  		 
				 		}
				 		else
				 		{
				 			$out = FAILED;			 			
				 		}
				 }				 				 
				 else
				 {
				 		$out = FAILED;
				 }				
			}
			else
			{
					$out = FAILED;
			} 			
		}
		else
		{
			$out = FAILED;
		}	
	break;
	
	case "responseOfFriendReqs":
		$userId = authenticateUser($db, $username, $password);
		if ($userId != NULL)
		{
			$sqlApprove = NULL;
			$sqlDiscard = NULL;
			if (isset($_REQUEST['approvedFriends']))
			{
				  $friendNames = split(",", $_REQUEST['approvedFriends']);
				  $friendCount = count($friendNames);
				  $friendNamesQueryPart = NULL;
				  for ($i = 0; $i < $friendCount; $i++)
				  {
				  	if (strlen($friendNames[$i]) > 0)
				  	{
				  		if ($i > 0 )
				  		{
				  			$friendNamesQueryPart .= ",";
				  		}
				  		
				  		$friendNamesQueryPart .= "'".$friendNames[$i]."'";
				  		
				  	}			  	
				  	
				  }
				  if ($friendNamesQueryPart != NULL)
				  {
				  	$sqlApprove = "update friends set status = ".USER_APPROVED."
				  					where requestId = ".$userId." and 
				  								providerId in (select Id from users where username in (".$friendNamesQueryPart."));
				  				";		
				  }
				  				  
			}
			if (isset($_REQUEST['discardedFriends']))
			{
					$friendNames = split(",", $_REQUEST['discardedFriends']);
				  $friendCount = count($friendNames);
				  $friendNamesQueryPart = NULL;
				  for ($i = 0; $i < $friendCount; $i++)
				  {
				  	if (strlen($friendNames[$i]) > 0)
				  	{
				  		if ($i > 0 )
				  		{
				  			$friendNamesQueryPart .= ",";
				  		}
				  		
				  		$friendNamesQueryPart .= "'".$friendNames[$i]."'";
				  		
				  	}				  	
				  }
				  if ($friendNamesQueryPart != NULL)
				  {
				  	$sqlDiscard = "delete from friends 
				  						where requestId = ".$userId." and 
				  									providerId in (select Id from users where username in (".$friendNamesQueryPart."));
				  							";
				  }						
			}
			if (  ($sqlApprove != NULL ? $db->query($sqlApprove) : true) &&
						($sqlDiscard != NULL ? $db->query($sqlDiscard) : true) 
			   )
			{
				$out = SUCCESSFUL;
			}
			else
			{
				$out = FAILED;
			}		
		}
		else
		{
			$out = FAILED;
		}
	break;
	
	default:
		$out = FAILED;		
		break;	
}

echo $out;



///////////////////////////////////////////////////////////////
function authenticateUser($db, $username, $password)
{
	
	$sql22 = "select * from users 
					where username = '".$username."' and password = '".$password."' 
					limit 1";
	
	$out = NULL;
	if ($result22 = $db->query($sql22))
	{
		if ($row22 = $db->fetchObject($result22))
		{
				$out = $row22->Id;
				
				$sql22 = "update users set authenticationTime = NOW(), 
																 IP = '".$_SERVER["REMOTE_ADDR"]."' ,
																 port = 15145 
								where Id = ".$row22->Id."
								limit 1";
				
				$db->query($sql22);				
								
								
		}		
	}
	
	return $out;
}

?>






mysql.class.php

<?php
 

class MySQL
{	
	private $dbLink;
	private $dbHost;
	private $dbUsername;
    	private $dbPassword;
	private $dbName;
	public  $queryCount;
	
	function MySQL($dbHost,$dbUsername,$dbPassword,$dbName)
	{
		$this->dbHost = $dbHost;
		$this->dbUsername = $dbUsername;
		$this->dbPassword = $dbPassword;
		$this->dbName = $dbName;	
		$this->queryCount = 0;		
	}
	function __destruct()
	{
		$this->close();
	}
	//connect to database
	private function connect() {	
		$this->dbLink = mysql_connect($this->dbHost, $this->dbUsername, $this->dbPassword);		
		if (!$this->dbLink)	{			
			$this->ShowError();
			return false;
		}
		else if (!mysql_select_db($this->dbName,$this->dbLink))	{
			$this->ShowError();
			return false;
		}
		else {
			mysql_query("set names latin5",$this->dbLink);
			return true;
		}
		unset ($this->dbHost, $this->dbUsername, $this->dbPassword, $this->dbName);		
	}	
	/*****************************
	 * Method to close connection *
	 *****************************/
	function close()
	{
		@mysql_close($this->dbLink);
	}
	/*******************************************
	 * Checks for MySQL Errors
	 * If error exists show it and return false
	 * else return true	 
	 *******************************************/
	function ShowError()
	{
		$error = mysql_error();
		//echo $error;		
	}	
	/****************************
	 * Method to run SQL queries
	 ****************************/
	function  query($sql)
	{	
		if (!$this->dbLink)	
			$this->connect();
			
		if (! $result = mysql_query($sql,$this->dbLink)) {
			$this->ShowError();			
			return false;
		}
		$this->queryCount++;	
		return $result;
	}
	/************************
	* Method to fetch values*
	*************************/
	function fetchObject($result)
	{
		if (!$Object=mysql_fetch_object($result))
		{
			$this->ShowError();
			return false;
		}
		else
		{
			return $Object;
		}
	}
	/*************************
	* Method to number of rows
	**************************/
	function numRows($result)
	{
		if (false === ($num = mysql_num_rows($result))) {
			$this->ShowError();
			return -1;
		}
		return $num;		
	}
	/*******************************
	 * Method to safely escape strings
	 *********************************/
	function escapeString($string)
	{
		if (get_magic_quotes_gpc()) 
		{
			return $string;
		} 
		else 
		{
			$string = mysql_escape_string($string);
			return $string;
		}
	}
	
	function free($result)
	{
		if (mysql_free_result($result)) {
			$this->ShowError();
			return false;
		}	
		return true;
	}
	
	function lastInsertId()
	{
		return mysql_insert_id($this->dbLink);
	}
	
	function getUniqueField($sql)
	{
		$row = mysql_fetch_row($this->query($sql));
		
		return $row[0];
	}
	function testconnection() {	
		$this->dbLink = mysql_connect($this->dbHost, $this->dbUsername, $this->dbPassword);		
		if (!$this->dbLink)	{			
			$this->ShowError();
			return false;
		}
		else if (!mysql_select_db($this->dbName,$this->dbLink))	{
			$this->ShowError();
			return false;
		}
		else {
			mysql_query("set names latin5",$this->dbLink);
			return true;
		}
		unset ($this->dbHost, $this->dbUsername, $this->dbPassword, $this->dbName);		
	}		
}







Is This A Good Question/Topic? 0
  • +

Replies To: Setting up code from localhost to server

#2 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3839
  • View blog
  • Posts: 14,002
  • Joined: 08-August 08

Re: Setting up code from localhost to server

Posted 05 March 2014 - 06:31 AM

A couple of questions for you:
  • Why are you using deprecated MySQL functions and not PDO or MySQLi prepared statements.
  • Why are you using phrases like "sure seem not to work" and not specific error messages as they're written in your log files?

Was This Post Helpful? 0
  • +
  • -

#3 4this   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 23
  • Joined: 05-March 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 06:43 AM

View PostCTphpnwb, on 05 March 2014 - 06:31 AM, said:

A couple of questions for you:
  • Why are you using deprecated MySQL functions and not PDO or MySQLi prepared statements.
  • Why are you using phrases like "sure seem not to work" and not specific error messages as they're written in your log files?


Well first of thank you for your reply.

Now about your first question - I didn't write this code i'm only trying to use it - and i also don't so well understand what you mean by that. The only fact i can say it that on localhost it works well and on server it dosen't.

About what written in my log files - as it seems it shows only simple line of info without any error - here's what's shows up in the log file -

signUpUser
signUpUser
signUpUser
authenticateUser
authenticateUser
authenticateUser
addNewFriend
authenticateUser
authenticateUser
authenticateUser
authenticateUser

as if to say that all is ok - as i said - at the sql table i can see that a user has been added, i can log in to the system with that user - but something is sure not working right- because i can't see other users in the friends list, when i try to sign up it syays at the client that there's a problem but at the sql table it look like all went well.
Was This Post Helpful? 0
  • +
  • -

#4 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3839
  • View blog
  • Posts: 14,002
  • Joined: 08-August 08

Re: Setting up code from localhost to server

Posted 05 March 2014 - 08:38 AM

View Post4this, on 05 March 2014 - 08:43 AM, said:

Now about your first question - I didn't write this code i'm only trying to use it - and i also don't so well understand what you mean by that.

That's a big problem. You shouldn't be trying to use code you don't understand, and we're not here to explain some one else's code to you or to write code for you. We're here to help you learn to write your own code.

I suggest you look through the tutorials section for an introduction to PDO, read and study it, then start writing your own code that makes use of it. Start with something small that writes to and then reads from a database and then work your way up until you can complete this project.
Was This Post Helpful? 0
  • +
  • -

#5 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6259
  • View blog
  • Posts: 24,028
  • Joined: 23-August 08

Re: Setting up code from localhost to server

Posted 05 March 2014 - 11:03 AM

Say hello to 5-year-old copypasta.

That code is fundamentally broken by virtue of not only using the deprecated mysql_ functions, as stated by CTphpnwb, but also storing passwords hashed simply with md5 and no escaping of user data leading to likely SQL injection attacks.
Was This Post Helpful? 0
  • +
  • -

#6 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2797
  • View blog
  • Posts: 8,142
  • Joined: 15-January 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 11:15 AM

That MySQL class is a fantastic example of what not to do. I like the ShowError method in particular, both for the fact that the implementation bears no resemblance to the comments describing it, and also the fact that it does nothing at all with the second line commented out.

        /*******************************************
         * Checks for MySQL Errors
         * If error exists show it and return false
         * else return true      
         *******************************************/
        function ShowError()
        {
                $error = mysql_error();
                //echo $error;          
        }      


I can appreciate the method to "safely escape strings" also. I especially like how, if magic quotes is enabled, it doesn't do anything at all. What's that you say? Your data didn't come from $_GET or $_POST? Well, magic quotes is on, so it must be fine!

        /*******************************
         * Method to safely escape strings
         *********************************/
        function escapeString($string)
        {
                if (get_magic_quotes_gpc()) 
                {
                        return $string;
                } 
                else 
                {
                        $string = mysql_escape_string($string);
                        return $string;
                }
        }

Was This Post Helpful? 0
  • +
  • -

#7 4this   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 23
  • Joined: 05-March 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 11:22 AM

Well i see you all know php - good for you.
Was This Post Helpful? 0
  • +
  • -

#8 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2797
  • View blog
  • Posts: 8,142
  • Joined: 15-January 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 11:27 AM

It's true, we've all taken the time to learn it.
Was This Post Helpful? 1
  • +
  • -

#9 4this   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 23
  • Joined: 05-March 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 11:38 AM

Well guess if you are a good learner doesn't mean you are a good teacher or even more than that a good person.
Was This Post Helpful? 0
  • +
  • -

#10 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2797
  • View blog
  • Posts: 8,142
  • Joined: 15-January 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 12:07 PM

OK, thanks for the feedback. And how about yourself, are you interested in learning how to program, or just using other peoples' code without understanding it? The code you have now is not suitable for use. It just isn't. It is old, and poorly-written. If you're interested in doing this yourself then we are here to help you learn. If you're not interested in learning how to do this for yourself, then I don't think we have much to offer you.
Was This Post Helpful? 0
  • +
  • -

#11 4this   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 23
  • Joined: 05-March 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 12:32 PM

Ok, ArtificialSoldier, here's what i want to learn to do with php - pretty much the same thing as waht this code meant to do.

I, myself know how to program at android environment - so regarding mySql and building with it database i have knowledge in it.
The thing is that i want to build a kind of instant messnager app - and when it comes to the server side i really don't have a clue.

So first of all let's talk about the mySQl tables - then i understand that -
1) I need table for registered users - and i need to write to it and also get info from it - in order to allow users to log in.

2)I need a table for friends - in order to allow one user to communicate with other users - so again here i need to allow user to send request to someone else and allow the other user to accept the request.

3) I need a table for messages- when user is sending to another user a message - so here i need to know which user it is, and to whom he is sending it and of course what's the message's content.

And i also want to be able to create groups - but i guess that will come later when i will begin to understand what and how to use php.

So i guess the first step is to build a table for users to sign up and be able to log in and how to communicate with the table-

So my first question is where would you recommend me to start and learn the relevant info about it?
Thanks for your help
Was This Post Helpful? 0
  • +
  • -

#12 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3839
  • View blog
  • Posts: 14,002
  • Joined: 08-August 08

Re: Setting up code from localhost to server

Posted 05 March 2014 - 12:56 PM

View Post4this, on 05 March 2014 - 02:32 PM, said:

I, myself know how to program at android environment

Great! Then you should have very little trouble with PHP. Sure, it's not the same as Java, but it's close enough that you should be able to write your own functions and classes in short order. After you've read the PDO tutorial you probably won't even need our help, but if you do, be sure to post your code along with a description of the problem and any error messages.

View Post4this, on 05 March 2014 - 02:32 PM, said:

So i guess the first step is to build a table for users to sign up and be able to log in and how to communicate with the table-

So my first question is where would you recommend me to start and learn the relevant info about it?

As I said before, there's a great tutorial on PDO in the tutorial section on this site.
Was This Post Helpful? 0
  • +
  • -

#13 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6888
  • View blog
  • Posts: 31,696
  • Joined: 10-May 07

Re: Setting up code from localhost to server

Posted 05 March 2014 - 01:01 PM

I'm confused at how this is a php question. I see this more as an issue with configuring & running a local webserver.
Was This Post Helpful? 0
  • +
  • -

#14 4this   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 23
  • Joined: 05-March 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 01:02 PM

Do you mean this link

http://wiki.hashphp....repared_Queries

??
Was This Post Helpful? 0
  • +
  • -

#15 4this   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 23
  • Joined: 05-March 14

Re: Setting up code from localhost to server

Posted 05 March 2014 - 01:11 PM

And in order to use PDO do i need any programs? or maybe just using let's say notpad++ is enough?
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2