Page 1 of 1

server restrictions, work around? [solved-ish]

Posted: Tue Sep 13, 2005 6:46 pm
by asi0917
i have free hosting at t35.com and it has dissallowed the use of certain functions in php
i can't say im suprised, its free!
but, what im trying to do is work around the restriction of the file() and get_file_contents() functions
i need to do this because im making a random user profile lookup script for a forum based website
each user on the site has an 6-7 digit number that is used for eveything ont he site (PMs, profiles, posting)
and i have successfully generated the random number script and a link to the random user profile
but
alot of accounts on the forum are dead (0 posts)
i was planning to use file() or get_file_contents() to snoop ahead and loop back
so that if a random user's profile was for a dead user then it would generate a new random user number
but
as i said above, fil() and get_file_contents() would seem to be disabled on my free hosting
any ideas about how to look ahead for dead accounts without using file() or get_file_contents()?

Posted: Tue Sep 13, 2005 9:29 pm
by m3mn0n
I recommend just finding a new host instead of breaking their TOS.

If they don't want you to work with files then you should respect their wishes and take your site else where if you need that sort of functionality.

http://free.hostrocket.com allows the use of the above mentioned functions.

Posted: Tue Sep 13, 2005 9:41 pm
by asi0917
thanks for the hosting tip