Thursday, February 23, 2017

Problem:End to end testing for applications. What if any of your application's functionality relied on JavaScript, though? Can I write a test cases in PHP for my application which relies heavily on JavaScript application, A PHP test cases which will spins up the browser and run my test?Solution:-

Laravel released its 5.4 version recently with a new testing
library: Dusk.

Dusk is meant for end to end browser testing of modern JavaScript applications. When you write application tests, Dusk sends your commands to ChromeDriver, which then spins up Chrome to run your tests in the browser and then reports back the results.Very nice article where you can see some live example.

Monday, October 05, 2009

Posting after a two month break sorry busy with new addition to our family my daughter(Manha). Here we go:

There is an interesting article about the experience Sitepoint developers had with twitaway application while distributing Free PDF who followed them. How they found the importance of choosing right MYSQL engine is how important :) please go through the full article for more details.

Wednesday, July 22, 2009

While reading and article came across one of powerful feature REPLACE INTO,I had used INSERT ON DUPLICATE KEY UPDATE but never used REPLACE INTO.

REPLACE works in a way that if the ID column(Primary Column) doesn't have the given value it will create a new entry in the table, however, IF the value exists already then it updates the existing entry in the table.

Sunday, July 19, 2009

Was just reading twitts got the nice link about the exceptions handling the post basically explains about handling errors in PHP nice one check out the code how the fatal error are handled and customize message is displayed for user. I have not tested the code but looks ok :) . Click for post here

Wednesday, July 15, 2009

I am using PHP from past 4 year and used to debug my code using die and echo statement and will log the debug message in file if running backend job(Cron) while using PHP 4 and then we started using Zend Framework and use Zend_log. But for those who won't use Zend Framework here is the function which will be useful in debug debug_backtrace this function is available from PHP4 didn't know i just came to know while i was browsing php.net, This information is for user like me who didn't know about it :)

Good article written by Joel Reyes about PHP Security, Author has explained some of the security holes we have to take care also given link for security tool download. Go through the article worth reading.

About Me

I'm Ansar Ahmed from Bangalore, India and I run this blog full-time, with the basis of providing the tech news. Currently working in Logica(India/Bangalore) as Software Engineer. I am B.E in Information Science.
Apart from my tight schedule of work i spend my week end, holidays doing some thing new .. hmm I crack my head on everything that's interesting, like programming, computer games, design, and watching the web figuring out what it does to us and what we can do with it. Contact me for any Joomla/Mambo/PHP based work.