I happened to be in the market for web hosting when another topic arose on a message board and I noticed a lot of people saying hostony was a good company.
I ended up purchasing a plan with them.
Anyone know PHP enough that they could help me? Help support hasn't helped me much, they seem to be foreign or something, don't understand the problem and the solutions do nothing. Haven't gotten an answer on a couple forums I've posted.
Or maybe someone here will know off hand.
I have a simple script so far...
$ftp_server="mydomain.com";
$ftp_user_name="mainuser";
$ftp_user_pass="thepassword";
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result)) {
echo "FTP connection has failed!";
echo "Attempted to connect to $ftp_server for user
$ftp_user_name";
exit;
} else {
echo "Connected to $ftp_server, for user $ftp_user_name";
}
$handle=fopen("hithere.txt","w");
if (!$handle)
{
print("no worky worky");
}
I'm logging in with the user name and password that I usually use with my FTP client, but when I do this with php, I get the following output when running the script...
"Connected to mydomain.com, for user mainuser
Warning: fopen(hithere.txt): failed to open stream: Permission denied in /home/mydomain/public_html/test.php on line 23
no worky worky "
Do I need to ask hostony to change some settings or do I need to program more stuff in PHP to allow it? I turned on World write priveleges in the public_html and www folders too. Thanks!