Re: picture into mysql (file address)
| From: | Seabird | Date: | Thu, 19 Dec 2002 20:20:11 +0000 |
| Subject: | Re: picture into mysql (file address) | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24300@lists.php.net to get a copy of this message | ||
since this is a local folder (testing on local server) I have complete
access everywhere. I judge from your sample that register_globals are ON and
mine are turned off (for several reasons.
Do I have a typo somewhere? where does my full path start etc.
the actual folder is in: c:\apache\htdocs\seabird.jmtech.ca\otf.com\images
pls help me.
Jacco
--
http://seabird.jmtech.ca
Attitude is Everything!
But Remember, Attitudes are Contagious!
Is Yours worth Catching????
"Terry Romine" <eatrom@blazing-trails.com> wrote in message
news:6168CD59-1361-11D7-BD86-00039395157C@blazing-trails.com...
> One comment is to be sure the destination folder has write privileges
> for world.
>
> My typical usage is:
>
> > 2) // datafile is field name for image/file upload browser
> > $img_dir = "../photos"; // must be 777 access
> > if($datafile_name != "") {
> > if ($datafile_name != "none") {
> > $newFileName = $datafile_name;
> > if (!(copy($datafile, "$img_dir/$newFileName"))) {
> > $errmsg = "<b>copying $newFileName
> > failed</b><br>";
> > } else {
> > $errmsg = "<b>copying $newFileName
> > succeeded</b><br>";
> > }
> > }
> > }
>
> On Wednesday, December 18, 2002, at 02:20 PM, Seabird wrote:
>
> > exec("cp $_POST[picture]
> > //localhost/seabird.jmtech.ca/OTF.com/images/$_POST[picture_name]");
>