betterphp
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 3-4 years
- Referred between 50 and 99 users
- Sold between 1 000 and 5 000 dollars
- United Kingdom
56
Purchases
Buyer Rating:
4.43 stars
4.43 average based on 7 ratings.
-
5 Star
571%
-
4 Star
114%
-
3 Star
00%
-
2 Star
114%
-
1 Star
00%
| Created | 20 August 10 |
| Last Update | 10 July 12 |
| Compatible Browsers | IE6, IE7, IE8, Opera |
| Software Version | PHP 5.x, MySQL 5.x, jQuery |
| Files Included | JavaScript JS, HTML, CSS, PHP, SQL |
© All Rights Reserved betterphp -
Contact Envato Support


Hey – I’m trying to use the password you supplied admin/admin and get the following:
You have supplied an incorrect username or password.
looks like I forgot to make it impossible to delete the admin user… bare with me
fixed it, thanks for pointing that out
Created a “ticket” and pasted the ticket link in another browser…
Notice: Undefined index: username in /www-urs/jk1/jacekk.co.uk/jacekk.co.uk/code/file_server/system/core/inc/user.class.inc.php on line 114fixed in the demo, ill get the it uploaded as soon as possible.
Nice job. Couple of suggestions: 1) When I clicked “manage tickets” it prompted me to log in. When i logged in it took me to the home page. It should continue going to whatever link was clicked.
2) If the file is an image, it would be nice if you can click it and view the image. There could be multiple images with a similar name, and you would have to download each one to figure out which one you need.
Good luck with sales.
I don’t think that would be too hard to do …
Ill look into it
thanks for the feedback
I have fixed the login problem, and added a direct link along with the forced download one, so the image can be hotlinked or viewed.
thanks again for the suggestions
Amazing file, would it be possible to have a thumbnail column, for example, lets say i want to upload a file and i would like to let it have a thumbnail, can you add a thumbnail field in the upload page so the user can browse for the pic and uploads it at once with the actual file and then it will be displayed in the directory listing.
Thanks
The thumbnails would make the list of files a lot longer than it needs to be without really adding anything. That’s not something I will be adding, thanks for the suggestion though.
Hello, i am having some trouble getting this to work using MAMP on my local machine.
I think I’ve narrowed it down to this block of code in the pre_include.inc.php file:// work out the path from the website root. $path = explode(DIRECTORY_SEPARATOR, $_SERVER['SCRIPT_NAME']); array_pop($path); if (isset($_GET['ajax'])){ array_pop($path); array_pop($path); array_pop($path); } $path = implode(DIRECTORY_SEPARATOR, $path); define('WEB_PATH', $path);If i change the last line of that code todefine('WEB_PATH', localhost/path/to/AFS_Folders/);then the interface loads correctly.
What i’m trying to accomplish to to have this file server interface exist at a sub-domain (i.e. files.website.com). I’ve placed the index.php and two folders from the download into a folder named “files” inside of the site’s main folder (which on my MAMP testing server exists at ”/Applications/MAMP/htdocs/website”
Am I missing something obvious here?
Thanks
well WEB _PATH should be the relative path from the domain root, so if the item is uploaded to http://domain.com/files_upload/files/folder WEB_PATH should have the value of /files_upload/files/folder So if you define it to something else that could be causing the problems.
The method I used of determining the path should work on all platforms, what was the original problem ? what did you see when you browsed to the index.php file after uploading the item ?
It might be worth tryingdefine('WEB_PATH', '/website');assuming that htdocs is what’s displayed as the root.I’ve just replaced all of the files on my site with the original documents I downloaded from here. Again, the full path to these files is
”/Applications/MAMP/htdocs/website/files/”
Now when I test the index.php page in Dreamweaver, I get “Error 404 The requested URL /website/files/index.html was not found on this server.”
I believe this URL is generated by this line of code in the pre_include.inc.php file
// make sure we are on a page. if (isset($_GET['page']) === false){ header('Location: ' . WEB_PATH . '/index.html'); die(); }as when I change ’/index.html’ to any other string, say ’/testthis.html’ browser tries to resolve “http://localhost/website/files/testthis.html”.
ah… That could be a bug with the .htaccess file generation. can you try browsing directly to index.php not index.html so it automatically updates the .htaccess file.
You will need to change testthis back to index.
attempting to navigate to index.php from the browser causes an immediate redirect to index.html.
Changing the string from index.html to index.php in the pre_include file “Make sure we are on a page” section causes an infinite loop and throws an error.
I’m still trying to figure this out, but as a side note, I found .htaccess files that had RewriteBase directives that I think may be left over from your dev server.
in the /system/core folder: “RewriteBase /sales/file_server/dev/system/core”
/system/core/pages folder “RewriteBase /sales/file_server/dev”
Removing these files hasn’t solved my issue, but I doubt they were doing any good there. Maybe that helps you out a bit?
index.php should set RewriteBase for you.
You can do it manually, which might solve the problem. it should be set to the full server path to the system root.
But if php can’t update the .htaccess file it suggests a more serious problem. try commenting out the linesini_set('display_errors', 'Off'); error_reporting(0);from the pre_include file and see if you are getting any php errors.You will need to change index.php back to index.html to prevent the redirect loop.
ini_set('display_errors', 'On'); error_reporting(E_ALL);Hi,
so everybody can download files or you can prevent some users to download some files ?
cheers
all downloads are visible on the home page and you don’t need to be logged in to get the download link, the users feature of the system was meant to be to allow other people to upload files and use the system with some optional restrictions for adding users and tickets.
The idea behind it was to allow you to share files with large numbers of people, for use on forums for example, not really to send files to a single user, as that can be done via email quite easily.
Adding this feature would mean quite extensive changes to the system and the user interface, so I’m a little reluctant to add it to be honest.
Obviously its up to you who you share the download links with, but they are in no way hidden or secured.
Sorry.
Hi,
Had some of the same problems and try to fix it with help of the postings, but sorry the script does not work for me.
Have no more ideas….
what exactly are the problems you are having ?
can i assume no reply means you fixed it ? :s
Hello,
please excuse my late answer, i have tried to fix again all the here described bugs – problems whatever, but after installation the problem with the redirection to the index.html is still the same.
also there seems to be a problem with the sql file in my database
i tried realy everything i could on all possible ways step by step
but sorry…the script don’t like me
damn
i really like to use this script …. but damn
i have slowly doubt in my mind
okay… what problem with redirection ? and what problem with the database. I’m happy to help, but you will have to describe the problem.
Hey,
i’m very glad to hear that,
ok, look at that – after install the sql file – i think there is something wrong
http://img.filekicks.com/tniiiS30.jpg
and here my installation
http://www.filekicks.com/index.php
Hey Mr wide_load,
sorry i solved the problems – it was my fault because i bought once again the wrong script.
sometimes i think i have to read the description two or more times
but thank you for your help
don’t worry about it
glad to hear its sorted, and that there is nothing wrong with my item.
Hi, I have the same problem like “joelhufford”. There is always the following message:
“The requested URL /fileserver/index.html was not found on this server.”
I tried all the suggestions you told “joelhufford”, but it doesn’t work. I don’t know hot “joelhufford” could get it to work. That would help me a lot.
Does anybody (specially “wide_load”) knows how to fix that problem ?
Thanks a lot for your help and have a nice day !
My configuration: - Linux Host - PHP Version 5.2.6-1+lenny9 - Apache/2 – API Version: 20051115
ini_set('display_errors', 'Off'); error_reporting(0);from the system/core/init/pre_include.inc/php file and browser directly to index.phpthe script should be creating a .htaccess file, but for some reason it seems not to be doing so.
If you email me your URL and ftp information I could take a look ?
Your php version is a little old, it could be somethign to do with that, a small tweak should fix it if that is the problem.
I tried that but if I browser directly to index.php it switches to the ending .html and shows a “404 Not found” error.
Where can I send you the account details ? Can you give me an e-mail address ?
Thanks a lot for your help !
you can email me via my profile page.
Hi, I just wanted to inform that “wide_load”, the author of the script, offered his help to get the script running on my host. There were some not optimal settings on the host side. With his help – THANKS A LOT ! – the script is running great now !
Thanks a lot for the good support and the great script !
PS: If you have problems running this script, check first if “mode_rewrite” is not only visible in the phpinfo() output but also activated and fully working on the host !
Hello,
I have everything set up but it won’t let me login.
admin/admin is not working. I looked in the database and the user name exists and it’s the correct password.
Any reason this would happen?
Are you sure you are on the correct page, ie if you go to the login page and login you will stay on the login page, because that was the initial page request.
Also are you sure that the database details are correct ?
Finally, you could try commending out the error_reporting(0) line in init.inc.php and see if php show up any errors.
I figured it out. There was no user associated with the database! duh!
Everything works now. Great project! Thanks for your hard work on this!
good good
I’m glad you like it.
When i test the live preview to log out but the link to log out not change the log in
I just tested and it does seem to log me out.
Are you sure you are logged in ? You do not need to be to view the file list page.
Great Code! Just what I was looking for…..except one issue:
$conf‘core’ = array();
I was trying to use the code above and removed ‘index’ in order to make the homepage require a login. This worked fine, however, now the files do not show up at all on the homepage, no tables, no nothing…..Any thoughts on this?
I would really appreciate the attention to this issue.
erm
well if you used that exact code it would have caused a syntax error
you may have meant
??
I actually just copied the code as and code canyon stripped it down…it is the same code you used but it still isnt working.
hmm, well you should have done
you may have removed some settings that are needed, you may also have caused a syntax error which would have been hidden.
If you email me via my profile page with FTP details I can take a look for you ?
Nice script !
how to change the maximum size of the file? how to filter the type of file? Best Regards
answered via email
Hi,
So, with this script, if the user uploads a video file, when they have the download link, will the file actually download or will it just show the video online?
I’ve been looking everywhere for a script that can do just this. I dont see any video files on the sample page for sample download. Could you post one so I can see if it downloads?
If it does, consider it a done deal!
thanks vannemic
any file that is uploaded will be downloaded, there is no way to have the file processed by the browser as normal. Also you can upload your own video.