Jump to content

PHP First Time User Question


pillot1005

Recommended Posts

I don\'t know how to set up a database for a membership PHP script that I want to put on my website. I read a lot of articles and forums on this site but I still cannot find what I am looking for. This is what has occured on my site since I installed the script through my FTP.

 

Warning: mysql_pconnect(): Access denied for user: \'[email protected]\' (Using password: YES) in /home/cdlocal/public_html/db.php on line 11

Couldn\'t connect to server.

 

Could anyone tell me what I am doing wrong? I just took the script I found on this site and sent it through my FTP with some modifications where they were needed.

 

Regards,

Christopher

Link to comment
https://forums.phpfreaks.com/topic/1183-php-first-time-user-question/
Share on other sites

Hi pillot1005,

 

The error means that the username that you use is incorrect.

You could use this script to try connecting.

 


<?php

$ftp_server = "IP-Adress";

$ftp_user = "Your Uername";

$ftp_pass = "Your password";



// set up a connection or die

$conn_id = ftp_connect($ftp_server) or die("Couldn\'t connect to $ftp_server"); 



// try to login

ftp_login($conn_id, $ftp_user, $ftp_pass) or die ("Wrong username or password");

?>

 

Hope this helps

Have a nice day

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.