This topic is locked

PHPRunner 4.0 Cars Template Error

5/30/2008 12:24:06 AM
PHPRunner General questions
D
DouglasB author

Hi all,
I'm using phpRunner 4.0 and decided I finally start playing around with the included templates. So I'm playing with the included Cars template and after a couple of false starts I finally got it loaded onto my server at hrrp://www.dragon6.net/Cars3
So before I start messing with the pages I decide to test out all the features. Things work pretty well but I get this error when I try to add pictues to cars I've uploaded:
PHP error happened
Technical information

Error type 2

Error description move_uploaded_file(files/9005.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied

URL dragon6.net/Cars3/pictures_add.php?

Error file /home/dragon6/public_html/Cars3/pictures_add.php

Error line 220

SQL query insert into `pictures` (`pic1`, `pic2`, `pic3`, `pic4`, `pic5`, `pic6`, `pic7`, `pic8`, `pic9`, `CarID`) values ('9005.jpg', '', '', '', '', '', '', '', '', 1)
When I list a car it allows me to add a picture just fine, but I get this erroe whenever I try to add more picture to the listing. Does anyone know what this error means and how to fix it.
Thanks
douglasB

J
Jane 5/30/2008

Douglas,
you need to make sure directory where your images are stored is writable by the web server user.

Usually you can assign correct permissions using your control panel. Also you may ask your webshoting company to help you with this.

D
DouglasB author 6/1/2008

THanks, but unfortunately that is not the problem I think. all my permissions are set to 777.

Now I think these images are stored in the database if so then its a permission problem on the "Pictures" tabel in the database?

J
Jane 6/2/2008

Douglas,
for Unix-based servers set 766 mask for your upload directory.
If it doesn't help you can give me an access to your server and I'll help you to get the uploads working.

Send the info to support@xlinesoft.com