FTP or Telnet files/directories with PHP?

From: Date: Sat, 27 Oct 2001 14:48:20 +0000
Subject: FTP or Telnet files/directories with PHP?
Groups: php.general 
Request: Send a blank email to php-general+get-72566@lists.php.net to get a copy of this message
Here's the problem: I want a PHP scrip ton my shared server to be able to create some directories and files. I don't want to make a directory with 777 permissions. Also, I'm going to distribute this script, so I don't want to do set "web" or "nobody" as having write access in my system. Solution? Can PHP run some FTP or TELNET commands? If so, couldn't I have PHP log into the server under the actual username and password, then create the directories and write the files??? The files would have the correct ownership and read/write/execute permissions too. Would this work? Where do I start? Thanks! -Jeff Gannaway ___________________________________________________________ Save 15% on 2002 Calendars and Holiday Cards! http://www.AvantGifts.com Discount Code: hopper22ct Offer Good Through October 31, 2001 ___________________________________________________________

« previous php.general (#72566) next »