PHP Upload Problem (urgent)

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
amkali
Lance Naik
Posts: 33
Joined: Sat Aug 03, 2002 9:53 pm
Location: Lahore, Pakistan

PHP Upload Problem (urgent)

Post by amkali »

Hey guys !

I am making a website and i need to upload images .... i know how to do it ... but i am facing a big problem.... I DO NOT HAVE THE RIGHTS TO THE uploadtmp DIRECTORY .... and the hosting service is not giving me the right (offcourse they will not).... so is there a work aroud for that ... i have searched the internet but found nothing... please response as quick as possible ..


_________________
God s gr8
Life s Good
Linux s Kool
outhanger
Battalion Quarter Master Havaldaar
Posts: 214
Joined: Sun Apr 18, 2004 5:58 pm
Location: CEME, Pindi

Post by outhanger »

In other words, "Show me how to hack so I can show off to my friends."
"Where blasphemy is a crime, religious freedom does not exist." - Stallman to Musharraf
amkali
Lance Naik
Posts: 33
Joined: Sat Aug 03, 2002 9:53 pm
Location: Lahore, Pakistan

Post by amkali »

Salam!

Not really, actually I presented the problem to the hosting service and they said that their PHP settings allow us to upload the images but not in this way the programmar have to OVERLOAD the PHP.INI settings for his site. And i dont know .... secondly i am not a hacker and i am not in that kinda stuff ... thirdly i dont wanna show off no one i work and this problem arised at my job ... So any one knows how can i do it ??



______________
God s Gr8
Life s Good
Linux s Kool
tahseenali
Cadet
Posts: 4
Joined: Tue Aug 03, 2004 8:54 am
Location: Vill: Wattar, PO: Akkorra Khattak, Nowshera.
Contact:

Post by tahseenali »

Hello
Why r they not allowding they should...Ok what control panel they use ...
kadnan
Battalion Quarter Master Havaldaar
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi,Pakistan
Contact:

Post by kadnan »

I dont understand why you want to alter php.ini file for uploading Images?
All you need to give rights to folder so that you can write(upload) files in it.
if you dont have access to create folders,you can`t do anything...
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

amkali wrote:Not really, actually I presented the problem to the hosting service and they said that their PHP settings allow us to upload the images but not in this way the programmar have to OVERLOAD the PHP.INI settings for his site.
so, ask them for the settings.

maybe you need to do

Code: Select all

ini_set("upload_tmp_dir", "/tmp");
Post Reply