Welcome to Geeklog, Anonymous Sunday, October 13 2024 @ 12:51 pm EDT

Geeklog Forums

Can't upload images, no access to php.ini


Timur Tabi

Anonymous
I'm running geeklog on my web-host ISP. They provide php and mysql support, and I've managed to install geeklog on my web site and interface to their php and mysql support. However, because their PHP is a global feature for all users, I have no access to php.ini.

My problem is that I cannot upload any images. When I try, I get these errors:

Upload of 08272003.jpg failed.
Chmod of 08272003.jpg to 0644 failed

All of my directories are 777, so it doesn't appear to be a file system permission problem. My guess is that PHP isn't allowing uploads. I've browsed the forum, and the suggestions I've seen so far say to modify php.ini. Well, I can't do that, so I need other ideas. I read another post about .htaccess, but I didn't understand it.

Could someone help me with this?
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
[now that I think about it, ignore this post]. Big Grin
 Quote

Timur Tabi

Anonymous
I think I figured out .htaccess. I created the file and added these two lines:

php_flag register_globals on
php_value file_uploads on

Now I don't get any errors, but the uploaded images don't appear in the story! I have [image1] and [image2] tags in the story text, but they are not replaced with the images.
 Quote

Timur Tabi

Anonymous
More information: despite the fact that Geeklog says that my story was submitted successfully, the jpegs I'm uploading do no appear on the file system. That is, my images/articles directory doesn't contain any files (except index.html).
 Quote

Timur Tabi

Anonymous
I still haven't resolved this issue, but I have found a workaround. I enabled img tags for admins.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
First of all, you will need to find out what the actual problem is. See this thread for some debugging hints.

bye, Dirk
 Quote

All times are EDT. The time is now 12:51 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content