Hunter, Jess wrote:
Thanks for the reply, you are right, the file is going on a Linux box, but
the source file is located on the client computer (windoze).

You cannot open a remote file by using it's directory path on the remote system. The two ways to do this would be to a) (recommended) open it with a URL, thus the 'client' computer would need to be running a web server, or b) mount the remote drive as a share on the *nix box, and access the file thru the share.


http://us4.php.net/manual/en/function.fopen.php

The addslashes was part of the original sample script.

It was probably made for text to be entered in a db, and in that case (if you are using MySQL), the function mysql_escape_string() would be a better choice...


http://us4.php.net/manual/en/function.mysql-escape-string.php

The storage would only be temporary, I intend to make it so when the file is
viewed, there will be an option to delete it.  The binary images would only
reside in the DB for 2-4 weeks tops.

Most seem to think (including myself) that it is better to store binary files in the file system, and put the text url/path to them in the db.


As for your suggestion to modify the script to meet my needs, that is what I
am trying to do...  Thanks for the assistance

Look in the manual for explanations of the functions you're trying to use. Copying an example will rarely do what YOU need/want it to do, and you'll have a better understanding how to modify it by reading how the individual functions work.


-----Original Message-----
From:   John Nichel [SMTP:[EMAIL PROTECTED]

Please don't reply directly to me (or anyone else on the list) unless asked to do so. When you just reply to an individual, your message does not make it into the list archives, and won't be searchable by the next person who comes along with the same problem (that is IF people would actually search the archives).
<snip>


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to