UltraMega Blog
29Sep/092

PHP File Downloads

PHP can be used to securely control access to file downloads. This tutorial will show how you can send file through a PHP script and limit the download rate. The function we will write accepts the path to the file to send and optionally a rate in kB/s to limit the transfer speed. The function should also be able to handle range headers from clients that allow stopping and resuming downloads.

 
21Sep/092

Basic Overview of Loops in PHP

PHP comes with several control structures for creating loops. A loop is basically code that executes repeatedly for as long as it needs to. The control structures I'll discuss here are: while, do-while, for, foreach, break & continue. Each of these are similar, and some can pretty much be interchangeable, but some are better suited for certain tasks than others.

 
17Sep/090

What’s New in TempServers.com Beta 2.1?

Yesterday, we announced on Twitter that TempServers Beta 2.1 is ready for public testing. The main attraction to this release is full FTP access to reserved servers. This means that you can upload your own configuration files and addons to fully customize your server. This is in addition to the convenient access the Server CP provides to the main config and mapcycle.

Once you reserve your server, you'll immediately have access to the server via FTP. This allows you to prepare your server before it goes live.

There were some significant back-end changes to make this possible. Each server is now installed to a separate directory with its own FTP account. In order to keep things fast during installs and game switches, most of the standard files are linked to a shared location to keep file size down.

The system is still not perfect, so we are continuing the free public testing to find any bugs or limitations. Feel free to try out the service and let us know what you think! TempServers.com

 
1Sep/093

Degradable Tabs With jQuery UI

Creating tabbed content is easy with jQuery UI. Using a simple HTML layout and calling the tabs function is all it takes. Here, I'll show you how to make a degradable tabbed interface. That is, we'll make it so the page is still readable when JavaScript is disabled. This involves hiding and showing elements using JavaScript before enabling tabs.

See the live demo. Try turning off JavaScript to see how it degrades.

 
   

Page optimized by WP Minify WordPress Plugin