Jump to content

Recommended Posts

first off the bat, it looks quite good but your top banner area is far too big, considering the logo is so small. you could shave off at least half the height which would bring the main part of the site more into view.

 

also, for the lazy ones amongst us, make the logo a link to the homepage. I kinda expect it these days as to many others who are too lazy to motion the mouse towards the 'home' link ;D

 

otherwise, looks pretty good from first view.

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-225412
Share on other sites

i get an error when trying to upload:

 

Warning: main(************) [function.main]: failed to open stream: No such file or directory in **********************/upload.php on line 18

 

Fatal error: main() [function.require]: Failed opening required '***************' (include_path='.**********') in ******************upload.php on line 18

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-225416
Share on other sites

you'll need to do plenty of work in terms of verifying what gets uploaded, and you could do much worse than lock down the directory where the uploaded files go so that files cannot be accessed directly. one of the biggest exploits with these type of sites is the uploading of a PHP script only to then run it from where it gets placed. a custom PHP script on someone elses server = bad news.

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-225429
Share on other sites

nope. whilst the directory is off limits, i still know the filename of the file I uploaded so can therefore run it if I call the file directly from the URL. On upload, you don't provide a direct link to to the file anyway, so I assume you're using some sort of script to pass the file back to the user?

 

If so, then move the whole upload directory to OUTSIDE the web root. move_uploaded_file is good in the respect that it can move a file anywhere on the server, not just to somewhere inside your web root. this way the files cant be accessed directly.

 

/httpdocs/

  index.php

  /css/

      stylesheet.css

  ... etc etc - all other site files here ...

/uploads/

  ... uploaded files here ...

 

on other notes:

1, your page fires a javascript error when it loads (FF2 at least)

2, why such a long delay to download a file?

3, you need to sort out some of your HTML into valid code. Most of them are your use of closing tags on IMG/LINK - so use <img src="filename.gif" alt="example" /> instead of <img src="">. There are a few empty <tr></tr> in there too.

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-225638
Share on other sites

I tested your file upload.

 

I upload an icon file (php.ico). Nothing special just an icon i use for my php files.

 

Upload went fine. I noticed an area called description. I did not get an option to add a description. Is this a feature for registered users only? If its for registered user then perhaps display message saying "this is only available to registered users only" in red/bold text. Rather than just description.

 

Went to download the file, reported size off the file is supposed to be 29.22KB however when I download it I only get 350bytes :o

 

Then I tried a simple text file. About 2KB in size. Just had a few sentances in.

 

Filled out the upload form. Submited. Uploaded and I get unexpected results (see attached screenshot). I tried twice and got the same result. The generated url for the file to be downloaded is this:

http://www.ukfilehost.com/v/7624802/.html

 

Are text files disallowed? If they are wouldn't it be better to display a warning message saying what file extensions are not allowed.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-225964
Share on other sites

Upload went fine. However still having problems with downloads. I Upload the screenshot that I attached in my last post when to download and only got 350bytes :o reported size on your site is 52.52 KBytes

 

I can download fine at other places, such as imageshack.

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-226000
Share on other sites

Still same problems as before. I get a corrupted file

 

Uploaded file:

http://www.ukfilehost.com/v/4371943/php.ico.html

 

The correct size for the file is around 29KB, your site confirms this on the download page.

When I download the file I only get 350Bytes

 

 

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-226663
Share on other sites

Looks like you have a bug in your code for file download. Uploaded a text file that was 7bytes in size

 

downloaded the file got a 326bytes back! Opened the file and got this:

<br />

<b>Warning</b>:  readfile(http://www.ukfilehost.com/home/steviez/YC9R5F01/ukfilehost_uploads/files/test.txt) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

in <b>/home/steviez/YC9R5F01/htdocs/ukfilehost/download.php</b> on line <b>37</b><br />

 

I get the same result when I open the icon file into notepad too.

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-226665
Share on other sites

steviez, your other post regarding the same site was about 0.005mm down the page, not on a different planet (or page, even) that warranted a new topic - please do not double post...

 

Topics merged.

 

Your banner "area" is too big and pushes the content too far down the page on my 1024x768. That'd be ok if there wasn't so much whitespace in the banner area, but there is - that can be drastically shrunk to bring everything up into view abit.

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/46330-please-review/#findComment-232718
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.