Making a file do something remotly?
Posted: Wed Aug 06, 2003 6:32 pm
While I am on one page, I want to trigger another page to add info to a MySQL database.
If that makes sense(Please let me know if it doesn't), is this what I would do:
It just doesn't seem to work... I get no errors but nothing is added to the database.
If that makes sense(Please let me know if it doesn't), is this what I would do:
Code: Select all
<?php
echo "This is the first page!";
// Below is the page which adds the mysql data:
$handle = fopen ("http://www.mydomain.com/page.php?insert=true", "r");
?>