Page 1 of 1

ftp Red Hat

Posted: Mon Feb 09, 2004 4:40 pm
by ol4pr0
Oke i got the following problem..

Red Hat installed..

including with the ftp..

The box is currenly not besides me anymore and now it seems that ftp is installed but i can not get in.

What can be my problem

Posted: Mon Feb 09, 2004 6:14 pm
by m3rajk
what's your firewall set to?

Posted: Mon Feb 09, 2004 6:21 pm
by ol4pr0
WEll i had it turned off for a minuut to see if that was the thing cuasing it..

turned out i had some ftp installed however after installing the wu-ftpd everyting was c00l ;-)


next question

Code: Select all

mysql_connect_?( // worked fine on my win2k
after uploading it all to linux and changing the $localhost it fall apart like Grrrr...


Any solution?

Code: Select all

errror message ( more of them lol )

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/mail/joinnewsletter.php on line 7

I do have to add that the mysql is not running on the same machine.

Code: Select all

// example of one of the scripts that worked fine before and now ;-(

$host = '10.10.10.2';
$port = '3306';
$user = 'root';
$pass = '';

$connection = mysql_connect($host, $port, $user)
or die("cannot make connection");
//select our database email 
$db = mysql_select_db("email" , $connection)
or die("cannot find database");
//insert the values of our form into our database
$sql_query = "INSERT INTO email VALUES ("$company","$name","$email")";
$results = mysql_query($sql_query);