PHP secure connection

  • balaguru_s
  • Born
  • Born
  • No Avatar
  • Joined: May 26, 2010
  • Posts: 1
  • Status: Offline

Post May 30th, 2010, 10:54 pm

Establish a secure connectivity to web server using PHP? how It is?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 30th, 2010, 10:54 pm

  • sandy_j_sam
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 26, 2010
  • Posts: 9
  • Status: Offline

Post July 28th, 2010, 10:38 pm

I Think that, you ask, How we establish connection php with database, because on localhost don't need for external connection Just see them,
and if am wrong way, then please mention proper query, I'll solve them.


<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if (mysql_query("CREATE DATABASE db_name",$con))
{
echo "Database created";
}
else
{
echo "Error creating database: " . mysql_error();
}

mysql_select_db("db_table_name", $con);
$sql = "CREATE TABLE sample_table
(
FirstName varchar(15) NOT NULL,
LastName varchar(15) NOT NULL,
)";
mysql_query($sql,$con);
mysql_close($con);
?>
  • onlyican.com
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Nov 20, 2005
  • Posts: 1589
  • Loc: Hants, UK
  • Status: Offline

Post July 30th, 2010, 1:18 am

Or if you trying to have PHP read files on the server, u need fopen and CHMOD settings

OR Secure Connect SSL certificate (Example used when making payments)
Heal your mind, and the body will follow

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 145 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.