Web Design Blog - February 2011

PHP and ajax easy with json and jquery

Getting data back and forth between a php script and your javascript may seem like a chore. Luckily php can talk json pretty easily ( with the appropriate functions enabled of course ). Lets build a simple call that submits a number to php for calculation.   <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript">     $(document).ready(function(){         $('#calc_btn').bind... read more!

Posted in php | Post Comment | 3

CSS Text Effects: Text Shadow

The CSS text shadow property has been around since the release of CSS2, but has not been supported by mainstream browsers until recently. The level of support is still limited, but with time we will start seeing it more and more.Basically text shadow allows you to render text with a blur, glow or off-set shadow without using an image. Benefits of this include: The ability to allow text to be searchable by popular search engines like Google or Yahoo. Reduce load time by eliminating image file... read more!

Posted in CSS, Google, Graphic Design, html, Microsoft Windows, snippets, tutorials, web design | Post Comment

php call_user_func_array and dynamic function calls

Sometimes when you are programming you want to call a specific function, but not directly as a hard coded call but instead using a string or variable for a class/function name. Here is an example. You have programmed a plugins system that has dynamic loading of your plugins. Each plugin has a static class with various functions. In your framework you want to call a specific function on all loaded plugins. You have an array with all the names of the plugins that are installed in the system. You ... read more!

Posted in php | Post Comment

php constants

Let's say you want to define a variable that cannot be changed after it is defined. You'd like to use this variable for a configuration option, message, or something else of this sort. You can do this using constants. Constants are a programming structure common in many programming languages. It is a scalar variable that cannot be changed once defined. In addition to not being changed, it is in the global scope automatically. Here is how you would define a php constant   define('MY_CO... read more!

Posted in php | Post Comment

Controlling spam submissions on your website

It is no news, spam is a big problem for everyone. There are many options to choose when controlling spam submissions on your website. If you have a forum, contact form, quote form, message form, blog comments, etc, then you need some way to deal with spam submissions on those collections sources. Many sites require you to register as a user before you can submit content to them, this can curtail some spam but as spam bots become more complicated they can get through many of the registration pro... read more!

Posted in technology, web projects | Post Comment

Postfix default message limit

By default postfix has a message limit size of 10 megabytes. In today's world you may want to change this amount to be much higher, and you may want to allow larger mailbox sizes in general as well. You can do this with a few commands on your server: postconf -d that command will show you what the defaults are, you can do a postconf -d | grep limit to see what all your limits are defaulted to postconf -n will show you what you've explicitly set postconf -e "message_size_limit = 102400000"... read more!

Posted in server administration | Post Comment


View All Posts
web design corner image