Jump to content

.httaccess


Carsten

Recommended Posts

Started this Apache business a couple of days ago , and so far I'm lost and very frustrated...

There are so many directives, and they all overule one and another or something completely different.

What a mess!

 

My problem:

I can freely connect to external websites from my localhost using the PHP command:

ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

 

But when I place my script on my hosted server (using safe-php) it doesn't work.

 

This is the layout of my httaccess file.

 

 

# -FrontPage-

 

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

 

<Limit GET POST>

order deny,allow

deny from all

allow from all

</Limit>

<Limit PUT DELETE>

order deny,allow

deny from all

</Limit>

 

 

Do I need the AllowCONNECT directive, or perhaps setting up PORT to handle more than the

default 443 563? If the connection issue is solved, will the <Limit PUT> deny from all prevent me from ftp'ing files?

 

I don't want to comprimise my website, so if someone could please throw in a directive that ensures access to a single subfolder by supplying a unique name+password of my choice, I'd be very happy (a link is fine).

 

Carsten

 

Link to comment
https://forums.phpfreaks.com/topic/2857-httaccess/
Share on other sites

Using FTP from within PHP is not a function that Apache deals with.

 

Safe mode in PHP disables a lot of functions. See [a href=\"http://us2.php.net/manual/en/features.safe-mode.php\" target=\"_blank\"]http://us2.php.net/manual/en/features.safe-mode.php[/a] for more information.

 

This question should probably be moved to one of the PHP forums.

 

Ken

Link to comment
https://forums.phpfreaks.com/topic/2857-httaccess/#findComment-9657
Share on other sites

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.