Blitz Posted January 18, 2007 Report Share Posted January 18, 2007 (edited) kods šāds. $handle_local=@ibase_connect("127.0.0.1:D:/pasutijumi.gdb","aaaa","aaaa"); ibase_close($handle_local); unlink("D:\\pasutijumi.gdb"); unlink izmet ka access denied. Liekas ka ibase_close neaizver konekciju, un tapec nevaru izdzēst. Protams ja visu sadalu atsevišķos skriptos(qveriju izpildi, un dzesanu), strādā ok. Miegināju arī likt sleep(10) pirms unlink, lai pāspēj izdarīt to kas jaizdara, bet rezultāts tas pats. Kapēc tā, un kā izdarīt pareizi? Edited January 18, 2007 by Blitz Link to comment Share on other sites More sharing options...
andrisp Posted January 18, 2007 Report Share Posted January 18, 2007 Palasi komentārus pie php.net/ibase_connect Link to comment Share on other sites More sharing options...
Blitz Posted January 18, 2007 Author Report Share Posted January 18, 2007 ja tu domaa... ibase_close; // worksibase_close(); // fails ibase_close($db); // fails tad pie ibase_close; man met "undefined constant", otrais nestrada, tresais protams ari nee. Link to comment Share on other sites More sharing options...
andrisp Posted January 18, 2007 Report Share Posted January 18, 2007 Nē, es domāju to otru komentāru. Link to comment Share on other sites More sharing options...
Blitz Posted January 18, 2007 Author Report Share Posted January 18, 2007 No parejiem komentariem vienigais kas attiektos uz mani ir shis: ibase_free_result($cursor); ibase_close($db); bet ari nestradaa. Link to comment Share on other sites More sharing options...
andrisp Posted January 18, 2007 Report Share Posted January 18, 2007 Hm.. ja nebūtu pieminējis, ka sadalot atsevišķos skriptos, viss strādā, tad būtu pārliecināts, ka kaut kas cits izmanto šo datubāzi. Bet varbūt tā arī ir ? Iespējams, ka ibase_close datubāzi aizver, bet ibase server softs tāpat vēl tur šo db atvērtu. Link to comment Share on other sites More sharing options...
Blitz Posted January 18, 2007 Author Report Share Posted January 18, 2007 (edited) Nu neviens cits tocna ar vinu nestrada kaa tikai mans skripts, un tas ari izkataas taa ka ibase serveris konekciju tur atvertu lidz skripta beigam neskatoties uz ibase_close. Japamegina varbut apstadinat serveri (processu) un tad dzeest. win32_stop_service un pec tam atsākt. Edited January 18, 2007 by Blitz Link to comment Share on other sites More sharing options...
andrisp Posted January 18, 2007 Report Share Posted January 18, 2007 hmm.. vieglāk un reālāk nebūtu tās darbības vienkārši veikt atsevišķos failos ? Link to comment Share on other sites More sharing options...
Blitz Posted January 18, 2007 Author Report Share Posted January 18, 2007 (edited) vieglak ir stiepts jedziens. Darbibas atseviskos failos sacakaretu man visu ideju. Protams tas butu pareizaak. Iznaca viss normali. Apstadinu- izdzeshu-piestarteju. paldies par uzmanibu. Edited January 18, 2007 by Blitz Link to comment Share on other sites More sharing options...
Recommended Posts