PDA

View Full Version : Very Confused with Path, Please Help!


dunhill
1st of November 2003 (Sat), 05:19
Hi All,

I'll just quickly explain:

I have setup ftp server and tested it, this all works fine.

No its time to setup "Path Setup"

URL: http://www.test.com/GALLERY/photo/USA/normal/
Variable: default
FTP Folder: /public_html/GALLERY/photo/USA/normal
(NOTE: This works , file is loaded here"

The thumb path and microthumb paths is where I just DON'T KNOW, I have tried all variations i can think of.

Thumb Path
---------------
URL: http://www.test.com/GALLERY/photo/USA/thumb/
Relative Path: (This is what I don't know??????)
FTP Folder: /public_html/GALLERY/photo/USA/thumb


Microthumb
--------------
URL: http://www.test.com/GALLERY/photo/USA/microthumb/
Relative Path: (This is what I don't know??????)
FTP Folder: /public_html/GALLERY/photo/USA/microthumb

Pekka
1st of November 2003 (Sat), 05:34
dunhill wrote:
Hi All,

I'll just quickly explain:

I have setup ftp server and tested it, this all works fine.

No its time to setup "Path Setup"

URL: http://www.test.com/GALLERY/photo/USA/normal/
Variable: default
FTP Folder: /public_html/GALLERY/photo/USA/normal
(NOTE: This works , file is loaded here"

The thumb path and microthumb paths is where I just DON'T KNOW, I have tried all variations i can think of.

Thumb Path
---------------
URL: http://www.test.com/GALLERY/photo/USA/thumb/
Relative Path: (This is what I don't know??????)
FTP Folder: /public_html/GALLERY/photo/USA/thumb


Microthumb
--------------
URL: http://www.test.com/GALLERY/photo/USA/microthumb/
Relative Path: (This is what I don't know??????)
FTP Folder: /public_html/GALLERY/photo/USA/microthumb



Those relative paths are

../photo/USA/thumb/

and

../photo/USA/microthumb/


The starting point for relative thumb paths is your input folder.

../ means 'step one folder back'
./ means 'in this folder'
name/ in the end of path means 'a folder called name'
name in the end of path means 'a file called name'
/folder/folder/ / in the beginning of the path means server root which is usually the httpd folder ( the starting folder when your website is)

So, ../photo/USA/thumb/ means "back up one folder and then go to folder photo/USA/thumb/"

dunhill
1st of November 2003 (Sat), 05:39
Thank You very much for your quick response,

I tried those relative paths,, i get the following errors, i get these error regardless what I try.


msg 2502 | ftp
Photo id 38 added to database.
[Sat Nov 1st, 2003 03:40:25]

msg 2501 | ftp
: FAILED TO DISCONNECT. Reason: ftp_quit() expects parameter 1 to be resource, boolean given
[Sat Nov 1st, 2003 03:40:25]

msg 2500 | ftp
: ERROR in connecting to ''. Reason: ftp_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known
[Sat Nov 1st, 2003 03:40:25]

msg 2499 | ftp
: FAILED TO DISCONNECT. Reason: ftp_quit() expects parameter 1 to be resource, boolean given
[Sat Nov 1st, 2003 03:40:25]