Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I have uploaded an image. Works great. It is in the temp dir the web hosting service created. I can also get an image into my mach running xp and IIS and PhP. The image is there in the temp php dir on my mach.
I want to copy this image to a dir I create. I call that dir MyImage on both my mach and the web hosting service. I cannot get the image moved from the temp dir to my dir.
Here is the code:Code: Select all
if (!move_uploaded_file($TempPath,$OrgFileName ))
{
echo "File could not be moved.";
echo "<br>";
}
else
{
echo "We were able to move the uploaded file to the tempfilename.";
echo "<br>";
}Still no luck.
Here is the output:
Code: Select all
TempPath=C:\PHP\uploadtemp\php14.tmp
OrgFileName=c:\Inetpub\wwwroot\Kinders\MyImages\MV
C-013S.JPG
Warning: move_uploaded_file(c:\Inetpub\wwwroot\Kinder\MyIma
ges\MVC-013S.JPG): failed to open stream: Permission denied in c:\inetpub\wwwroot\kinder\ImageValidationUtility.php on line 80TIA
Frank
feyd | Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]