Log in

View Full Version : My Free webhosting service.



killerchutney
05-21-2007, 03:14 PM
I recently started up a free web hosting service. it offers Unlimited bandwidth and 200mb UK webspace. You can create an account here: http://www.home.killerchutney.co.uk/cgi-bin/easyhost.cgi?command=create

Please tell me what you think. (p.s. the design is nowhere near finished yet.)

boxxertrumps
05-22-2007, 02:28 AM
There isnt any way to create text files... (is php enabled? if it is, you should be carefull.)

djr33
05-22-2007, 02:35 AM
That's cool, but I would recommend you being very careful about security. Perhaps some sort of application that you can approve first? Nothing major, but can't hurt to check.

benslayton
05-22-2007, 03:28 AM
yes php is enabled.
http://www.home.killerchutney.co.uk/billybober/test.php

djr33
05-22-2007, 03:30 AM
That's nice for us, but also a security risk, as above.
Is localhost setup for mysql too?

killerchutney
05-22-2007, 02:31 PM
Thanks for your replys, I am going to restrict filetypes, and no, mysql is hosted on a different server.

EDIT: i have decided that it will just be file hosting.

boxxertrumps
05-22-2007, 11:56 PM
restricting file types wont do much unless you get rid of htaccess too, because you can serve any extention you want as any content type as long as you have the entry in your htaccess file...

benslayton
05-23-2007, 02:15 AM
restricting file types wont do much unless you get rid of htaccess too, because you can serve any extention you want as any content type as long as you have the entry in your htaccess file...

really, so does this mean that I can make a .php file a .any file? Because I was told that this is not possbile. If it is possible please point me in the right direction or let me know how this works..:eek:

thetestingsite
05-23-2007, 02:17 AM
Simply do the AddType directive in your htaccess file and do something like the following:



AddType application/x-httpd-php .any


Change .any to your file extension.

Hope this helps

benslayton
05-23-2007, 02:22 AM
ok i have a .htaccess file with this:

AddType application/x-httpd-php .ben

and a test.ben file with this:

<?php
phpinfo();
?>

and it returns this:

<?php
phpinfo();
?>

So that doesnt work...

EDit>
both files are in the same directory. My server is local and i have apache2 php5 and mysql

thetestingsite
05-23-2007, 04:04 PM
That's odd, then perhaps htaccess doesn't allow this. I know it is possible to do this in your Apache conf file, but now not sure about htaccess.

mwinter
05-23-2007, 04:19 PM
Simply do the AddType directive in your htaccess file and do something like the following:



AddType application/x-httpd-php .any


The AddType approach isn't the best, in my opinion as it imposes a certain inflexibility when it comes to content negotiation. Instead, I would recommend the AddHandler directive:

&#160;&#160;AddHandler php5-script .php

or for PHP 4:

&#160;&#160;AddHandler php4-script .php

Keep in mind that either directive requires that the FileInfo override is enabled for distributed configuration files (.htaccess). Recent version of Apache's Web server (certainly) don't enable this override by default, except for user directories - the kind that usually begins with a tilde (~). However, that can easily be disabled.

kosi
06-07-2007, 08:21 AM
That's odd, then perhaps htaccess doesn't allow this. I know it is possible to do this in your Apache conf file, but now not sure about htaccess.

.htaccess does indeed allow this; I used that exact same construction to render .jpeg files as php5 in one of my directories. Maybe it has something to do with the permissions on his server?