Suspended website because of a .php file :(

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andreysc7
Forum Newbie
Posts: 4
Joined: Fri Nov 18, 2011 1:11 pm

Suspended website because of a .php file :(

Post by andreysc7 »

Hi,

Recently my website was suspended because of a file called thumb.php . They said that this file have many requests on their server and it cause huge waste of bandwidth (even if they said that the bandwidth is unlimited - lies) . Can anyone help me to modify this file ? Please.

The website with this file is http://www.hainutze.com

here you have the php file http://pastebin.com/vBnNNb24

If this cannot be made from that file ? what should I do ? I need to use some images with a lower resolution ?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Suspended website because of a .php file :(

Post by Benjamin »

It's likely the cache directory doesn't exist or isn't writable. In this case the script would have been resizing every image requested on every page request. So, that's probably the problem.
andreysc7
Forum Newbie
Posts: 4
Joined: Fri Nov 18, 2011 1:11 pm

Re: Suspended website because of a .php file :(

Post by andreysc7 »

so, is there anything that I can do :-/ ?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Suspended website because of a .php file :(

Post by Benjamin »

Fix it.
andreysc7
Forum Newbie
Posts: 4
Joined: Fri Nov 18, 2011 1:11 pm

Re: Suspended website because of a .php file :(

Post by andreysc7 »

how? I am a 3D designer, not a coder :( . If you know how to fix it , can you help me? I will pay you if its necessary
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Suspended website because of a .php file :(

Post by Benjamin »

In the same directory as the script, create a directory called cache, then use your FTP client to chmod the permissions to 777.
andreysc7
Forum Newbie
Posts: 4
Joined: Fri Nov 18, 2011 1:11 pm

Re: Suspended website because of a .php file :(

Post by andreysc7 »

there already is a directory called "cache" and the permission already was 777 :( . Do you have another solution ?
Post Reply