NextCode Forum Index NextCode
Open Source Software Creation
 

Harsh comments
Click here to go to the original topic

 
       NextCode Forum Index -> General (phpfinance)
View previous topic :: View next topic  
Author Message
ac2k5



Joined: 07 Feb 2006
Posts: 1

Posted: Tue Feb 07, 2006 10:44 pm    Post subject: Harsh comments  

Greetings,

In search of a book-keeping tool I ran into phpfinance. It's got great looks, but I found a lot of things wrong with it and thought it best to comment. I hope it's consumed constructively. Posted at...

http://www.confero24.com/nucleus/index.php?itemid=22

Thanks & regards
Ashant Chalasani
Back to top  
Vlad Alexa Mancini



Joined: 07 Jul 2003
Posts: 303

Posted: Fri Feb 17, 2006 12:54 am    Post subject:  

your opinions on my program are most welcome , i had no idea that the interface is more than a farcry from intuitivity , trust me when i say this i really apreciate your feedback , it is a bit late still , not sure if i will work on phpfinance any time soon or at least this year

and i am quite surprised people are using phpfinance given that i have never seen a finance related application in my life and wrote this for my specific needs only , in quite a hurry i might add violating some database design paradigms as you pointed out but in result having a blatantly simple database schema , and i have no idea about the accounting concepts you are mentioning for the record

as for php , php it is meant to be a cocktail with html , and for your information the paypal code is all isolated in a function , and it contains no html whatsoever
Code: function do_import_paypal ($fname,$ttype){
        $file = file($fname);
        array_shift($file);
        foreach ($file as $line) {
            preg_match("/\"(.*?)\",\".*?\",\".*?\",\"(.*?)\",\".*?\",\".*?\",\".*?\",\".*?\",\"(.*?)\",\"(.*?)\"/",$line,$m);
            $time = explode("/",$m[1]);
            $date = $time[2]."-".$time[0]."-".$time[1];
            mysql_query("INSERT INTO ".$ttype."_paypal (`date`,`data`,`type`,`note`) VALUES ('$date','".$m[4]."','OTHER','".mysql_real_escape_string($m[2])." (".$m[3]." fee)')");
            if(mysql_errno() != 0){
               $err .= mysql_errno(). ':' .mysql_error().'<BR>';
               $error = 1;
            }
        }
        if ($error == 1){ echo $err;}
}
besides the index file , the code is very organised and prety easy to work with , you should try modifying the source of any big open source php software like oscommerce

and for the management of distinct entries it was almost done but never had time to release it and i think someone posted some code for that too

finally , like a lot of open source sofware this program is just something i needed for myself , the fact that i share it is just a sideline , not it's purpose , and comes
GPL license wrote: without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose
Back to top  
 
       NextCode Forum Index -> General (phpfinance)
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group