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.
Detect FTP connection and change PHP variable?
Moderator: General Moderators
- 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?
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.
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.
Re: Detect FTP connection and change PHP variable?
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.