1, December 2008

upload_class - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: upload_class
« previous next »
Pages: [1] Print

Author Topic: upload_class  (Read 1067 times)
Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« on: Apr 26, 2007, 01:37:39 PM »

This is maybe off-topic since this question is about the upload_class,-but here we go:
I have been trying many different php upload scripts, but I have only managed to make one such script work.
I have decided to try the upload class you wrote, but it will not upload any images. There are no error messages, but still it doesn't work. The only php script that works half way, is the <upload_db_example.php>
It creates the database table but failes to write the filename. Also, it does not upload the file to the server.
My question is this: -What are the possible factors that makes the upload_class not work?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8266
42583 credits
Members referred : 3



« Reply #1 on: Apr 26, 2007, 01:48:09 PM »

Maybe permissions? If no class is working then you should probably don't have permissions to write where you try to.

When you fopen() a file that doesn't exists, php creates it or nothing happens?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« Reply #2 on: Apr 26, 2007, 02:06:27 PM »

First of all: Thank you for all the quick replies on this forum. Give me a little time, and I'll give you more info and more questions later today.
Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« Reply #3 on: Apr 26, 2007, 03:27:09 PM »

This is the directory-structure and the path to the file <upload_class.php>:
http://mysite.com/httpdocs/community/upload_class/upload_class.php

This is the first line of the php scripts in the upload_class:
include ($_SERVER['DOCUMENT_ROOT']."/community/upload_class/upload_class.php");

My mistake was creating the directories: <files/new> in the <community>-directory.
Then I created the following directories: <files/new> in the <httpdocs>-directory, chmod 777,
(-one level up from the <community>-directory, and that made the upload_class work.
Now the upload_class uploads images to the <files/new>-directory,
and it also updates the database. 
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6479
39706 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Apr 26, 2007, 10:41:22 PM »

This is the directory-structure and the path to the file <upload_class.php>:
http://mysite.com/httpdocs/community/upload_class/upload_class.php

This is the first line of the php scripts in the upload_class:
include ($_SERVER['DOCUMENT_ROOT']."/community/upload_class/upload_class.php");

My mistake was creating the directories: <files/new> in the <community>-directory.
Then I created the following directories: <files/new> in the <httpdocs>-directory, chmod 777,
(-one level up from the <community>-directory, and that made the upload_class work.
Now the upload_class uploads images to the <files/new>-directory,
and it also updates the database. 

easy or not Cheesy


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6463
Tags : upload_class Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: upload_class
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 01, 2008, 09:11:51 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.937
Total Topics: 7.679
Total Members: 4.443
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: mayabiotech

25 Guests, 4 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.