(Services/Website Hosting)
Thursday, 12 January 2012
(PHP/Debugging)
Here is how to watch a log file for changes in a Linux command shell.
tail -f log/development.log
This command will let you watch a log file for changes as soon as they happen.
Monday, 20 June 2011
(General/LOL)
Here are some snippets of PHP
code which were found deep in the SVN source tree...
$shipping_amount=$shipping_amount;
Friday, 17 June 2011
(PHP/RapidPHP)
... need to check external link if it is an mp3 file. You will be able to do this:
$sniffer = new Smarty
code_Http_Mime();
$contentType = $sniffer->getMime($url);
if('audio/mpeg3' == $contentType) ...
Friday, 09 April 2010
(PHP/Gotchas)
I've started working on PHP
Code Check online tool, you can test early version of it here. Internally, it's based on
CodeSniffer parser. I am looking forward on to providing more options like uploadin
Friday, 12 March 2010
(PHP/Gotchas)
Here is a quick tip on enabling
code auto-completion on array of objects (i.e. when you fetch array of objects from a database table adapter).Imagine you have a Users model which extends Zend_Db_Table
Saturday, 06 February 2010
(PHP/Gotchas)
Ever looked through the Zend Framework
code and saw header comments like this? <?php
/**
* @version $Id: Exception.php 16200 2009-06-21 18:50:06Z thomas $
**/
Here is a quick tip on how th
Thursday, 05 November 2009
(PHP/Performance)
Here is a quick list of practices for faster PHP
code. Use single quotes instead of double quotes While this can be trivial, it might save some time especially if you
code handles lot
Wednesday, 21 October 2009
(PHP/Performance)
Running a MySQL server one should think of performance. In this article I will list several approaches to making your queries run faster, and overall MySQL server performance optimization to speed up
Thursday, 01 October 2009
(Services/Project Hosting)
Smarty
code has built its own platform for hosting web development projects. It’s built up on a stack of open source applications, configured for ultimate development experience. Your team will b
Saturday, 05 September 2009
(Services/Project Hosting)
Smarty
code has partnered with Assembla to provide you with a platform for development of your websites. Assembla has everything a distributed team of professionals may need: a Subversion repository, i
Saturday, 05 September 2009
(PHP/Gotchas)
... number of components (HTML elements) which use similar CSS rule.
Solution:Instead of fixing the CSS
code which isn't made by me anyway (I'm more of a backend developer than designer, but I think b...
Friday, 21 August 2009
(Improve/Website Optimization Techniques)
... faster page response times because JavaScript and CSS files are cached by browsers. JavaScript and CSS
code that is inlined in webpages gets downloaded every time the HTML document is requested. This...
Monday, 29 June 2009
(Services/Website Hosting)
Running a corporate and/or high traffic website and tired of users complaining about bad website performance?
Get your site optimized for ultimate performance in every possible aspect.
For a short
Monday, 29 June 2009
(PHP/Performance)
...ed modules (i.e., database access - PDO_Mysql), we need a PHP optimizer extension which would provide op
code cache allowing to speed up execution and save time by compiling all scripts just once. Reme...
Wednesday, 13 May 2009
(PHP/Performance)
... others) which are introduced as the Internet evolves its standards.
This front controller plugin's
code mostly takes concepts from the excellent article by Keystone Websites, but implements in Ze...
Wednesday, 22 April 2009
(PHP/Performance)
In this article I'll show you a simple approach to enable your Zend Framework application saving lots of precious bandwidth, and thus, making it more end-users friendly, and save on bandwidth costs.
Tuesday, 10 February 2009
(PHP/RapidPHP)
...base table.
We want to be able to easily fill select elements from database table with less repetitive
code. It's already easy to fill select elements with database data out of the box:
$db = Z...
Monday, 09 February 2009
(PHP/Debugging)
...
Next, create the following directory structure under library/ :
library /
- Zend
- Smarty
code
- Controller
- Action
- Helper
- Logger.php
Add th...
Sunday, 08 February 2009
(Improve/Website Optimization Techniques)
... whitespaces. This allows to save even more on bandwidth and produce faster webpages than before. Smarty
Code's professionals are using industry standard tools to minify Javascript and CSS files. Not o...
Sunday, 23 March 2008
(Improve/Website Optimization Techniques)
It is important for a website to have GZIP compression enabled. It is able to make your pages smaller up to 7 times (!).
The GZIP compression is an Apache server's feature.
Our professionals are
Sunday, 23 March 2008
(General/Frontpage)
...fast website that both looks professional and is designed for faster reposnse times.
Here, at Smarty
Code we know that noone likes sluggsih websites. Smarty
Code has been created specifically to ful...
Sunday, 13 January 2008
(News/Features)
Here, at Smarty
Code, we are concerned about deploying W3C standards for the new websites. Our sites take advantages of valid XHTML, CSS, HTML 4.01
code.
HTML 4.01 is the baseline for building website
Thursday, 27 December 2007
(News/Features)
...o reduce any site's loading times.
There are many best practices of reducing page's load times. Smarty
Code's professionals know more than other guys know.
We use:
HTTP Conditional GET - enables ...
Wednesday, 26 December 2007
(Static Content)
Collection of online tools for general and PHP website development:
PHP
Code Check
Parses your PHP
code and analyses it for matching rules of common programming conventiones (correct positioning
Friday, 12 March 2010
(Static Content)
Introducing the Smarty
code team - great people evolving the web
Thursday, 30 July 2009
(Static Content)
...of features like PHP5, MySQL, SVN!
Get your hosting at Dreamhost now! And don't forget to use promo
codes from Smarty
Code. They'll save you amazing $50. So you get your hosting for a great value o...
Friday, 31 October 2008
(Static Content)
Collection of online tools for general and PHP website development:
PHP
Code Check
Parses your PHP
code and analyses it for matching rules of common programming conventiones (correct positioning
Friday, 12 March 2010
(Static Content)
Introducing the Smarty
code team - great people evolving the web
Thursday, 30 July 2009
(Static Content)
...of features like PHP5, MySQL, SVN!
Get your hosting at Dreamhost now! And don't forget to use promo
codes from Smarty
Code. They'll save you amazing $50. So you get your hosting for a great value o...
Friday, 31 October 2008
(Category Blog)
...aster for your visitors. Your site's visitors will enjoy the benefits of faster browsing. Contact Smarty
Code's representative now to get a free quote for your website.
Below are the features deplo...
(Section Blog)
Smarty
code provides services for website development and optimization. We have created a number of websites using Zend Framework PHP library as well as optimized existing websites.
(Section List)
Demonstration of
code and performance techniques. Check out the exciting demos of optimized website solutions!
(Comments)
Thanks a lot! A good example of Action Helper too! Actually your
code needs some debugging... but this is our work, no? I think that changing the name of the private logger from $logger to $_logger (a
Thursday, 23 April 2009
(Comments)
... function named "direct" by function "logger" to make it works because you named your helper as: "Smarty
code_Controller_Action_Helper_Logger". I can't make your second method _call works. I'm getting ...
Saturday, 04 April 2009
(Comments)
Hello Andrew, I have updated the
code and usage example.
Sunday, 29 March 2009
(Comments)
I like your approach to this. However, I was unable to get it to work. I think you have a bug in your
code since I copied from your tutorial. I keep getting "bad log priority". Let me know when you ha
Friday, 27 March 2009
(Comments)
Thanks a lot! I find this
code very usefull! But it's not easy to understand it first time.
Monday, 12 October 2009
(Comments)
Hello Christine, You might have already found the solution by this time :) I think you need to use setValue method for pre-selecting value, i.e. $form->getElement('someDbSelect')->setValue('yourvalue'
Tuesday, 02 June 2009
(Comments)
...r your feedback. I guess thought you should put the 2xx or 304 check in such a way that, in case of any
code different from 2xx or 304, it actually exits and does not add any additional cache header. ...
Saturday, 27 February 2010
(Comments)
...o article. I've taken the todo's text from W3C specs :) What is means here, is that "if we set response
code somewhere in the application to i.e. 404 or 500, these should not be handled by conditional...
Friday, 26 February 2010
(Comments)
...l chars stripped off. Here it is, to be placed at the beginning of the shudownloop function: $response_
code = $this->getResponse()->getHttpResponse
Code(); if (! (($response_
code [GREATER THAN] 200 AN...
Tuesday, 23 February 2010
(Comments)
...is be a correct implementation for your TODO block ? public function dispatchLoopShutdown() { $response_
code = $this->getResponse()->getHttpResponse
Code(); if (! (($response_
code >= 200 && $response_c...
Tuesday, 23 February 2010
(Comments)
@Jon: what are using to check headers? I use Firefox's addon "Live HTTP Headers" @Malte, thanks, the
code corrected. I also updated the
code to get rid of no-cache directive (see update description in
Saturday, 28 March 2009
(Comments)
very interesting! but is the
code after foreach needed when we send
code 304? also Etag gets set a second time in the else part of if($send_body)
Friday, 27 March 2009
(Comments)
...che's trunk, I figured there is no problem and that -gzip should be stripped in etag check. Updated the
code, ETag handling now works also with recent apache versions on gzipped content....
Friday, 27 March 2009
(Comments)
Cool stuff. I think you mean: $frontController->registerPlugin(new Smarty
code_Http_Conditional(), 101);
Thursday, 26 March 2009
(Comments)
Thanks, I have corrected the
code. The
code worked fine with Opera and Chrome for me. Make sure that your layout file looks like this: <head> ... </head> <body> <span>Some tex
Friday, 24 April 2009
(Comments)
...ce: Undefined property: Zend_Controller_Response_Http::$getBody in /var/www/htdocs/immogo/library/Smarty
code/Controller/Plugin/XhtmlServe.php on line 61...
Thursday, 23 April 2009
(Comments)
I've been looking for the past hour for that little snip of lighttpd.conf
code that uses index.php as a request handler. Thank you so much for having it here! It's always the simplest things that are
Friday, 26 June 2009