server restrictions, work around? [solved-ish]

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
User avatar
asi0917
Forum Commoner
Posts: 41
Joined: Thu Nov 25, 2004 10:37 am
Location: Shoreline, Washington
Contact:

server restrictions, work around? [solved-ish]

Post 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()?
Last edited by asi0917 on Tue Sep 13, 2005 11:31 pm, edited 1 time in total.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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.
User avatar
asi0917
Forum Commoner
Posts: 41
Joined: Thu Nov 25, 2004 10:37 am
Location: Shoreline, Washington
Contact:

Post by asi0917 »

thanks for the hosting tip
Post Reply