note 3227 modified in fopen by ronabop

From: Date: Sat, 19 Aug 2000 03:49:16 +0000
Subject: note 3227 modified in fopen by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2617@lists.php.net to get a copy of this message
You can use "@" signs in passwords if you first run the password through rawurlencode() to convert the @ sign to its URL encoded equivalent. $passcoded = rawurlencode($pass); $outputfile = fopen("ftp://someuser:$passcoded@someplace.net/some/directory/to/file.txt","w"); http://www.php.net/manual/function.fopen.php

« previous php.notes (#2617) next »