PHP Simplicity Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Guest posting is allowed. Again!

Author Topic: Cannt set upload path  (Read 3518 times)

0 Members and 1 Guest are viewing this topic.

Shafiq

  • Guest
Cannt set upload path
« on: September 23, 2005, 10:35:47 PM »

My upload directory path is:
/home/reviver/public_html/SFU1_3_1/

How should I modify this code to set the path:

/*    File Destination    */
//here you must specify the real path of the directory where you want to upload
//your files to! use the trailing slash as in the exmaple..
//most of the time, the default value of this constant is what you need.
//note: this constant IS NOT AND MUST NOT contain a URL!!
define('SFU_REALPATH', dirname(__file__).'/');
/*example:  /home/usr/public_html/upload/ */
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: Cannt set upload path
« Reply #1 on: September 24, 2005, 04:22:31 PM »

define('SFU_REALPATH''/home/reviver/public_html/SFU1_3_1/');

;)
Logged

We don't need a reason to help people

shafiq

  • Guest
Re: Cannt set upload path
« Reply #2 on: September 24, 2005, 11:50:27 PM »

yesssssssssssss! it worked
thank you.
i am really grateful :)
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: Cannt set upload path
« Reply #3 on: September 26, 2005, 06:40:00 AM »

you are welcome :)
Logged

We don't need a reason to help people

rorobobo

  • Guest
Problem in the path
« Reply #4 on: December 19, 2005, 04:06:36 PM »

Hello,

I have a problem, put path : define('SFU_REALPATH', '/home/rorobobo/public_html/studioupload/upload/');

But look : http://studioupload.be/upload i have put chmod 777 in upload but don't function...

Can you help me ?

Sorry for my english because i am french !

Regards
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: Cannt set upload path
« Reply #5 on: December 21, 2005, 08:14:46 AM »

http://studioupload.be/upload doesn't have SFU there!
but what exactly do you mean by "don't function" ?
Logged

We don't need a reason to help people

rorobobo

  • Guest
Re: Cannt set upload path
« Reply #6 on: December 21, 2005, 05:47:22 PM »

Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: Cannt set upload path
« Reply #7 on: December 22, 2005, 11:28:52 AM »

are you sure about the real path?
also double check the chmod mode..
Logged

We don't need a reason to help people

rorobobo

  • Guest
Re: Cannt set upload path
« Reply #8 on: December 22, 2005, 12:49:29 PM »

I am sure...
Logged

(Goobs)

  • Guest
Re: Cannt set upload path
« Reply #9 on: January 28, 2006, 12:22:58 AM »

I had the same problem... copy and paste the following line:

define('SFU_REALPATH', '/home/rorobobo/public_html/studioupload/upload/');

I'm by no means an expert but I think there is an extra space or something in the original file (in the ZIP). I was POSITIVE I had everything CHMODed correctly and I just  replaced the original path with my path... it didn't work. I read this thread and copied and pasted Saleh's reply to Shafiq and replaced his path with my path and it works beautifully now!

Good luck... if you haven't already given up!!

Mike
Logged
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What is the answer to one plus one? (in numbers):