IMHO.WS

IMHO.WS (http://www.imho.ws/index.php)
-   Веб-программирование (http://www.imho.ws/forumdisplay.php?f=29)
-   -   PHP Upload Center 1.4 (http://www.imho.ws/showthread.php?t=70781)

legazoil 11.10.2004 21:25

PHP Upload Center 1.4
 
hello,
i hope to be in the good forum.
i wanted help to put PHP Upload Center 1.4 on my website
i don't understand how to set correct value in the config.php
<?
//
// Copyright (C) 2001, 2002 by Sergey Korostel skorostel@mail.ru
//-----------------------------------------------------------------------------------------------------------------------------------------
// VARS TO MODIFY / ÏÅÐÅÌÅÍÍÛÅ ÄËß ÍÀÑÒÐÎÉÊÈ ÑÊÐÈÏÒÀ
// See comments in English & Russian.
//-----------------------------------------------------------------------------------------------------------------------------------------

// Link to homepage
// Ññûëêà íà äîìàøíþþ ñòðàíèöó

$homeurl="http://www.minsk2000.to/sattv/sattv/";

// URL where upload center will be installed (do not left the trailing slash)
// URL ãäå ñêðèïò áóäåò óñòàíîâëåí (íà çàáóäüòå çàâåðøàþùèé ñëýø)

//$installurl="http://www.minsk2000.to/sattv/upload";
$installurl="http://127.0.0.1/upload";

// Path and URL to uploads folder
// Ïóòü ê äèðåêòîðèè, êóäà áóäóò çàãðóæàòüñÿ ôàéëû

//$uploads_path="/www/htdocs/sattv/uploads";
//$url_path="http://www.minsk2000.to/sattv/uploads";
$uploads_path="c:\usr\www\uploads";
$url_path="http://www.minsk2000.to/sattv/uploads";


if i put PHP Upload Center 1.4 on
http://mywebsite.com/upload/index.php
if i want uploads come in http://mywebsite.com/upload/upload/
how to set the four lignes
$homeurl="http://mywebsite.com/upload/";
$installurl="http://mywebsite.com/upload";
$uploads_path="http://mywebsite.com/upload/upload";
$url_path="http://mywebsite.com/upload/upload";
doe'nt work
i hope for your help
many thanks

Alexandr 172 12.10.2004 12:44

$uploads_path and $url_path, IMHO, are local paths, not URLs

legazoil 12.10.2004 13:45

thank alexandr for your answer, but i dont understand
you mean the upload files go on my computer, no in a path of my website
i dont find explains on internet about this script, all the links are dead
could you develop your explain
many thanks

Hubbitus 12.10.2004 15:44

May be $installurl is a dir where placed base source of "PHP Upload Center 1.4" and not path to install?

legazoil 21.10.2004 14:50

with
$homeurl="http://mywebsite.free.fr/";
$installurl="http://mywebsite.free.fr/uploads";
$uploads_path="http://mywebsite.free.fr/uploads/uploads";
$url_path="http://mywebsite.free.fr/uploads/uploads";




i have:

Warning: opendir(http://mywebsite.free.fr/uploads/uploads): failed to open dir: not implemented in /var/www/free.fr/5/c/mywebsite/uploads/index.php on line 257

Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/free.fr/5/c/mywebsite/uploads/index.php on line 258

Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/free.fr/5/c/mywebsite/uploads/index.php on line 272

Warning: fopen(http://mywebsite.free.fr/uploads/uploads/$$$.dlcnt): failed to open stream: HTTP wrapper does not support writeable connections. in /var/www/free.fr/5/c/mywebsite/uploads/index.php on line 275

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/free.fr/5/c/mywebsite/uploads/index.php on line 276

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/free.fr/5/c/mywebsite/uploads/index.php on line 277


if someone could help me......
thanks

Hubbitus 21.10.2004 16:45

Change $uploads_path to local path on you server (from $uploads_path="http://mywebsite.free.fr/uploads/uploads"; to $uploads_path="/var/www/free.fr/5/c/mywebsite/uploads/uploads")

legazoil 22.10.2004 14:58

many thanks hubbitus
it's good now
i hope i can help you later
still many thanks


Часовой пояс GMT +4, время: 23:20.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.