PHP - Moved: Site Auditing Scripts
This topic has been moved to Miscellaneous.
http://www.phpfreaks.com/forums/index.php?topic=310577.0 Similar Tutorialswell I was wanting to make scripts to put on my site and then only let a few people use the site by the ip address, what would be the best way to allow only certain people to use the script on the site, based on the ip? Thanks This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=317963.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=330946.0 I had to move hosters recently and I have a couple of scripts run using CRON to backup my MySql database and manage the number of backups that I keep. I can ask the hosters to deprecate the version of PHO backwards but I don't want to lose the opportunity of features that may be available in the new version. The main script essentially performs a MySqlDump to a specified directory and then emails me to tell me that it completed successfully. The second script just deletes any files in the backup folder more than x days old. I know mysqldump is a valid call so I should need to use anything other than that but I'm lost when it comes to seeing what is wrong with my scripts. backup.php
<?
/* CONFIGURE THE FOLLOWING SEVEN VARIABLES TO MATCH YOUR SETUP */
//$dbuser = $db_user, $conection ; // Database username
$command = "mysqldump -u $db_user --password=$db_password $db_name | gzip > $filename"; copy ($filename, $backdir.$newfile);
unlink($filename); //delete the backup file from the server
and delold.php
<?php
//echo "script is running";
if (is_dir("$path") )
}
This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=321119.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=318858.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=353404.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=354819.0 This topic has been moved to Beta Test Your Stuff!. http://www.phpfreaks.com/forums/index.php?topic=317260.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=346043.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=349090.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=347622.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=345549.0 This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=320387.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=346529.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=307287.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=308359.0 This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=307175.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=346271.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=332275.0 |