Forum Moderators: coopster

Message Too Old, No Replies

indirect execute php file

         

yllai

2:43 am on May 5, 2005 (gmt 0)

10+ Year Member



Hi,
In my update record page, I need the date and time of the updated record to be display at the bottom. I have a update time script which can open a txt file and write in the current date and time while user update the record to the database. But, my update time script can work well if I run it manually (means I use the directory of the update time script to run it~make it write in the current date and time to the txt file).

Do have any way for me to make the update time script to be run automatically once user add record? I tried to use "include" to include the update time script but it din't work for me.

Any ideas?

yllai

3:06 am on May 5, 2005 (gmt 0)

10+ Year Member



i tried as below

<?php
header("Location: update.php");

/**some code here****/

?>

update.php is the script of my update time. This will work well for the time update but the following script can't be executed.

How to solve these?

badone

3:30 am on May 5, 2005 (gmt 0)

10+ Year Member



include_once( './update.php' );

Should be what you're looking for.

Cheers,
BAD