Page 2 of 2

Posted: Sat Dec 04, 2004 4:58 am
by Mr Tech
One last thing, I contacted my hsot about file_get_contents() and they said this:

If this is not enabled, you should be able to create a php.ini file that adds this functionality to your domain. You can place this in the directory of the .php file that is using it.

Woudl that be the same with all web hosts?

Cheers.

Posted: Sat Dec 04, 2004 12:58 pm
by rehfeld
no, your lucky to be able to do that

Posted: Sun Dec 05, 2004 4:42 pm
by Mr Tech
I just had a thought:

The client logs into the script.
The script redirects to my website with the key and domain (mtdomain.com/check.php?key=$key&domain=$domain)
If the key and domain are valid, it redirects them back to their script saying that it is valid.
Then the script sets a session() saying that it is valid and they can continue using the script and so that it doesn't keep checking if the key is valid.

It would do this once everytime they use the script. Would that work?

If yes, is it possible to sent to the clients script that it it is valid using a POST method? ($HTTP_POST_VARS['key_is_valid'] = yes) I've seen it done with ASP...

Thanks

Ben