Connecting to a remote website?

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

User avatar
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Post 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.
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

no, your lucky to be able to do that
User avatar
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Post 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
Post Reply