Showing posts with label php. Show all posts
Sunday, December 11, 2011
A new JAVA framework with PHP leanings
Posted by
code pirate,
on
6:57 PM
Just came across a different kind of framework in JAVA. Usually when we talk about frameworks in JAVA they are always "full stack" with the kitchen sink thrown in for good measures. I am used to developing with PHP frameworks as they are not too complex and also i like the fact that there is no compilation involved. You just refresh the page and you can see the results. This is where PHP excels.
But what if you want the robustness of JAVA and instant results of PHP? May i suggest Play Framework to you? Not only is it a breeze to get it up and running but also it follows the "shared nothing" approach of PHP which i have always liked for quick web development.
From the Play Framework site:
But what if you want the robustness of JAVA and instant results of PHP? May i suggest Play Framework to you? Not only is it a breeze to get it up and running but also it follows the "shared nothing" approach of PHP which i have always liked for quick web development.
From the Play Framework site:
Play is a real "Share nothing" system. Ready for REST, it is easily scaled by running multiple instances of the same application on several servers.Also, the fact that it uses "Groovy" as the template language it makes it more appealing for me, cause XSLT is a big PITA and i never "got" JSP. I have to say the designers of this framework got it right. They took the Best of breed programming language(JAVA) and married it to the shared nothing model of the Most popular scripting language(PHP). I will take this framework for a spin soon. Only question running through my mind is, will it scale?
Tuesday, August 30, 2011
HybridAuth PHP authentication library
Posted by
code pirate,
on
7:07 PM
Came across this new Social sign-in library which goes by the name of HybridAuth. Seems like it is a good tool when you want to let your users sign-in to your website without registering to your site.
Will give a try sometime later. Check it out here!
Will give a try sometime later. Check it out here!
Thursday, August 21, 2008
I want "no training wheels" attached PHP 6
Posted by
code pirate,
on
3:22 PM
Yeah you read that right. With some time before PHP6 comes into the fore, i want PHP6 to be a real path breaker. That means effectively no backward compatibility. PHP5 was slow in adoption just because of this reason. People knew that their applications would work on PHP5, that is why they were in no real hurry to adopt it.
I want the core developers team of PHP to really do some nice things with PHP. For noobies PHP5 should be kept. But with PHP 6 i want them to break new grounds. Like APC (Alternative PHP Cache) should be part of the standard install. I want them to incorporate consistent naming schema for at least in-built functions. That means str_replace => natsort?? kind of naming schema should be made consistent.
I want PHP6 to be more serious about security. It should have features which would make incidence of user oversight things of past. I want the in-built functions in PHP6 to raise exceptions. I want PHP6 to have variable types. I mean i declare a variable to be of type INT and i want PHP6 to raise an error if it is used in string context.
With these changes i can see PHP6 gaining the respectability it deserves. It can move to the area called enterprise platform.
I want the core developers team of PHP to really do some nice things with PHP. For noobies PHP5 should be kept. But with PHP 6 i want them to break new grounds. Like APC (Alternative PHP Cache) should be part of the standard install. I want them to incorporate consistent naming schema for at least in-built functions. That means str_replace => natsort?? kind of naming schema should be made consistent.
I want PHP6 to be more serious about security. It should have features which would make incidence of user oversight things of past. I want the in-built functions in PHP6 to raise exceptions. I want PHP6 to have variable types. I mean i declare a variable to be of type INT and i want PHP6 to raise an error if it is used in string context.
With these changes i can see PHP6 gaining the respectability it deserves. It can move to the area called enterprise platform.
Thursday, December 14, 2006
Guide to application development with PHP
Posted by
code pirate,
on
3:56 PM
I know it sounds too ambitious but couldn't help but dig it ;) . Well if you have dipped your toes in PHP and you are comfortable working with PHP this guide is for you. If you are unsatisfied with the current way of structuring your application then this guide might help you.
So lets start with the folder structure. The way you structure your application is crucial. Here is what i have come up with. This structure is only suggestive, you are free to modify it to suit your taste.

http://yoursite.com/app/index.php?action=login
The index page catches the "action" parameter and loads the login.php file and depending upon the current state plus extra variables performs some action.
Lets get an overview of the index.php file
So lets start with the folder structure. The way you structure your application is crucial. Here is what i have come up with. This structure is only suggestive, you are free to modify it to suit your taste.

- Classes: Store all your classes and helper code here.
- Conf: This holds your configuration files needed for your application.
- Cron: Holds all files which needs to run as cron job.
- Includes: Store all your function files here.
- Js: Javascript code plus any helper code like WYSIWYG editor etc.
- Locale: Create folders for every language you plan to support and create language files which you can call depending upon the configuration settings.
- Pages: All the pages which perform some directly visible action are stored here. Rest can be stored in the helper sub-directory.
- Setup: Some scripts which can generate configuration files plus some SQL files needed for your application.
- Style: All CSS + Images, can be organised using themes folder.
- Templates: Divided in two sections. Forms stores all the form templates and layout stores what else layout templates.
- Tmp: Store temporary files or stuff which is not private. You can use this folder to store cached files in your site as well.
http://yoursite.com/app/index.php?action=login
The index page catches the "action" parameter and loads the login.php file and depending upon the current state plus extra variables performs some action.
Lets get an overview of the index.php file
require_once( DIRNAME(__FILE__) .'/includes/app_init.php');This line invokes the file which does all the initiation stuff, like loading the configuration file, loading the framework, loading the default template, defining some variables etc.
Friday, November 17, 2006
Creating stunning graphs in php using artichow library
Posted by
code pirate,
on
5:13 PM
Those of you who are looking for a good library package to create visually appealing graphs or charts using GD library and wish some package was there which was GPL'ed then look no far. Artichow graph library is the perfect candidate which fits this description. While i like Jpgraph but the fact that its not GPL'ed makes me crib.
Since the library is in French i suggest you use Google translator to navigate the site.
Since the library is in French i suggest you use Google translator to navigate the site.
Using GNU Netcat to access your POP3 mail account
Posted by
code pirate,
on
4:47 PM
This summary is not available. Please
click here to view the post.
Subscribe to:
Posts
(
Atom
)