Detect FTP connection and change PHP variable?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Detect FTP connection and change PHP variable?

Post by JAB Creations »

Anyone know if it's possible to create or change a variable in PHP if you connect to your server via FTP?

In essence I'd like to lock preferences created by PHP and stored in cookies when I connect and update files; automating this would be cool. 8)
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Detect FTP connection and change PHP variable?

Post by Jade »

I'd think to do this you'd need to have something in FTP send a request to your server letting it know someone had logged in via ftp. Then you could take the request info and do what you had to do on that php page. I'm not sure but I think there is a config file associated with all FTP accounts that you could probably change to have it send the request and execute the php code.
Post Reply