Two errors...[SOLVED]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Two errors...[SOLVED]

Post by raghavan20 »

I am writing a script to backup a database structure and data...
1. When there is a file that exists...I am not able to delete it using unlink()...why?
2. The script runs for more than 30s but it stops after that time....how do I make it run until it takes the backup of all necessary structure and data

Code: Select all

Warning: unlink(recoverDatabase.sql): Permission denied in j:\apache\apache\htdocs\backup\FileHandler.class.php on line 75

Fatal error: Maximum execution time of 30 seconds exceeded in j:\apache\apache\htdocs\backup\FileHandler.class.php on line 67
Last edited by raghavan20 on Mon Jan 30, 2006 4:30 pm, edited 1 time in total.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Code: Select all

set_time_limit(0);



chmod(0777, 'file')
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

it is a windows machine...
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Then check the directory/file is not read only (right click - properties)
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

thanks a lot jshpro2 that worked and solved two problems...
Post Reply