in reply to write to .jpg error problem
Can't write to 'localhost/choo/tcimages/176801_1.JPG-14660': No such file or directory ... I have no idea what to do here.
Have you checked if there's a directory like that?
Since the pathname is relative, it's relative to whatever the current working directory is when that open executes. Because the working directory can change, normally absolute pathnames are better; if there's a configuration option somewhere that sets the path for these files, you might want to check that it's set to an absolute path rather than a relative one.
As for the code, note the filename is being passed in as $arg, so this particular code doesn't help, you'd have to trace back where $arg is coming from.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: write to .jpg error problem
by traincity (Sexton) on Jul 02, 2019 at 21:16 UTC | |
by marto (Cardinal) on Jul 02, 2019 at 21:48 UTC | |
by bliako (Abbot) on Jul 03, 2019 at 00:49 UTC | |
by marto (Cardinal) on Jul 03, 2019 at 08:22 UTC | |
by bliako (Abbot) on Jul 04, 2019 at 23:33 UTC | |
by traincity (Sexton) on Jul 03, 2019 at 08:06 UTC | |
by marto (Cardinal) on Jul 03, 2019 at 08:21 UTC |