|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
deleting the saved db the one before???
I made a script that backups the database as sql file in the server. I mean script writes it into the harddrive, but everytime when i execute the script the harddrive loss another 3 mb. How can i modify the script to delete the one before when i execute it to write the new one???
|
|
#2
|
|||
|
|||
|
Hi,
Just use fopen and the "w" method for write, which will reset the file pointer and overwrite the old file: $fp = fopen("path/to/file/statement.sql", "w"); etc... |
|
#3
|
|||
|
|||
|
not working either???
i have a backup.php and is like:
<? exec('mysqldump -u username -p password db_name > /www/users/www.mysite.com/db_name.sql'); ?> and not working either... |
|
#4
|
|||
|
|||
|
you will need to open the file (fopen) and write nothing to it and save it, before you backup the server.
|
|
#5
|
|||
|
|||
|
ok i did it...
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > deleting the saved db the one before??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|