![]() |
|
#1
|
|||
|
|||
Writing image to folderI have script that uploads an image to an image folder (obvious its an image folder) within the script folder. I now want to have the image folder outside of the script folder (and still write to it).
At the moment I use Quote:
Now if I move the folder outside of my script folder I cannot work out what path I should use. I have tried lots of variations but cannot work it out. Can anybody help |
|
#2
|
|||
|
|||
|
Had a sleep and changed direction slightly.
So the last post is slightly null and void I am using Quote:
I now want to upload to a specified folder outside of this folder and also create a thumbnail of the image 150px in height (jpeg or gif) with the same name but say a prefix 't' (for thumb ) but the extension correct of course.Now I have searched lots of different scripts to get this clear but I am still slightly confused. What I could do with is a pointer to a clear tutorial that explains what each section means and does. Can anybody assist. |
|
#3
|
||||
|
||||
|
I don't know any tutorials but I have a few suggestions...
Use $_FILES instead of $HTTP_POST_FILES... A simple example... PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#4
|
|||
|
|||
|
I have solved the problem of uploading an image and creating a thumbnail using:
PHP Code:
However I suspect the code is not quite right even tho it works. Maybe its just that I am having a little success I am getting nervous. Can anybody (JdS) confirm that the code is ok and is on par with the pile of gobbledy-gook that I normally write. Last edited by JdS : 17-Jun-2004 at 07:14.
Reason: please enclose your PHP codes in [PHP] and [/PHP] tags.
|
|
#5
|
||||
|
||||
|
Are you nuts? I am not going to look at code when there's a good game on tonight!? I need my nap now so I can stay awake in the middle of the night.
Just kidding, unfortunately "image" and "uploading" stuff in PHP is not my forte. Hope someone else can go through your code and suggest changes if any. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
More photos on Flickr by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Adsense introduces targetted image ads | Div | Advertising & Affiliates Forum | 5 | 23-May-2004 10:59 |
| Problem with image | eRIC | MySQL / PHP Forum | 1 | 08-Apr-2004 06:22 |
| writing into file prob | belludandy | C Programming Language | 0 | 15-Nov-2003 19:25 |
| professional quality image generator | jrobbio | Graphics Forum | 0 | 27-May-2003 04:45 |
| how to return an image with a .js file | JdS | Web Design Forum | 5 | 24-Nov-2002 09:15 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The