point me in the right direction w/annotate?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

No I do not think your code will work.

To change the save path you need to put the relative or absolute paths to the folder.

Code: Select all

$new_name = $_SERVER['DOCUMENT_ROOT'] . "/images/ASP_Images/".$_FILES['Image']['name'].jpg";
OR
$new_name = images/ASP_Images/".$_FILES['Image']['name'].jpg";
Depending on the location of the form and the images folder.

Try something simple first and get it to work then build on it.
If you use my example code you can then modify it a bit at a time.

Try using the php bit of my code, change $up_files = $_FILES['filename']; to $up_files = $_FILES['Image']; and see if that works.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

$new_name = "images/ASP_Images/".$_FILES['Image']['name'].".jpg";
This line was incorrect

${'Photo' . $counter} = $Name . '-'.$_FILES['Image']['name']".jpg";
I have no idea what this line is supposed to do
Is this what you want as $Name has no value ?
$Name = $_FILES['Image']['name']".jpg";
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

I have not seen this ${'Photo' . $counter} = $Name . '-'.$_FILES['Image']['name']".jpg"; before but that does not mean much as I am learning php

Code: Select all

$Photo[$counter] = $Name . "-".$_FILES['Image']['name']".jpg"; 
Give that a go.
Post Reply