functions - how to tell one to 'go' - 2007/03/21 10:13here's a question that's really going to display my ignorance. i'm putting together this little module for a cms. occassionally i'ld like to clean up the database. if something meets a certain case, delete that row. so i make a function, 'cleanup', and put it in it's own file called cleanup.php. now, when people view index.php, and my data is displayed to them, i would like to call cleanup.php to get rid of any crap they don't desire to see. what's the easiest way to do this?
thanks for the handholding. -eric.
| | The administrator has disabled public write access.
eric235u
User Junior Boarder
Posts: 5
Karma: 0
Re:functions - how to tell one to 'go' - 2007/03/26 06:10mmmnnn... it seems the easiest and cleanest looking way for me to do this is with an object,
$cleandb = new clean_xpstorrent; $cleandb->cleanup();
i just didn't want to use an 'if' or something as my index.php page is looking kind of scraggly.
| | The administrator has disabled public write access.
eric235u
User Junior Boarder
Posts: 5
Karma: 0
Re:functions - how to tell one to 'go' - 2007/04/05 10:47ohhhh. i can use include. now that works. damn this is hard to figure out on your own.
and i've read where some folks consider php easy!
| | The administrator has disabled public write access.
phpmysqlfreelancer
User Fresh Boarder
Posts: 1
Karma: 0
Re:functions - how to tell one to 'go' - 2007/05/10 07:35i am a php freelancer my home page is http://www.phpmysqlfreelancer.com. I want to know is any converter is avilable for converting previous version of php coding to new version that is php3 to php5. Is any help will be appreciated
| | The administrator has disabled public write access.