Store Front Contact Us Projects Blog PHP Tutorials Community Forums Support Downloads Client Area Homepage Charlie Page - Home to the blog of myself! Dynasty Wizard - Free game dynasties, period. Software Reviews - Software News, Reviews and more Coming Soon... Adapt Software Rock Reviews
Insane Visions
Insane Visions
Insane Visions - Navigation

Favorites

PHP

MySQL

Friends

Solitude is Bliss

OneCMS



Scripts.com

MaxTutorial.com - Best photoshop, flash and php tutorials


Your Link Here

Insane Visions - Top Navigation


Insane Visions - Homepage :: Premium PHP Scripts - AdaptCMS, AdaptBB

Insane Visions is your PHP resource from a content management system to forum software. Starting it all in 2004 with OneCMS, a gaming CMS to 2006 with BlogPHP a simple blog script, over 35,000 downloads combined. A year later AdaptCMS Pro, a premium paid script and AdaptCMS Lite, an open source multi-use CMS up to the very latest, a nifty open source AdaptBB forum script and released very shortly ago - AdaptCMS 2.0.!

We strive to simply provide great products and great support to make webmastering an easier and fun experience. Vote for us



AdaptCMS 2.0.2 Released
@ May 14, 12 - 10:49 pm

Insane Visions is excited to announce the next release, AdaptCMS 2.0.2 now available for download.

While being another "minor version", 2.0.2 fixes numerous bugs and improves the stability of the Social set of features.

The big new feature is phpBB Integration. While it is not a fully integrated plugin, users can still login currently. Numerous bugs were also fixed - plugin area had numerous issues fixed, ACP Content Sorting, social status update and the Help ACP feature links up correctly.

A reported security hole was also fixed in this version as well as a new setup for the plugin file/folder setup.

While the list of new features isn't huge, the bugs helped stabilize AdaptCMS even more and most importantly, 2.0.2 is the last release until the rewrite of Adapt into the cakePHP framework.

Download AdaptCMS 2.0.2

Post to Digg Post to Facebook Post to Furl Post to Netscape Post to Newsvine Post to Reddit Post to Simpy Post to Spurl Post to StumbleUpon
By: admin | Full Story | Comments (0) | News | 87 hits


PHP File Uploads and Max Size
@ May 08, 12 - 10:14 pm

As a new series to update Insane Visions and keep our readers informed, I'll be posting various things related mainly to cakePHP, PHP in general and jQuery. It may be little tidbits like this one, or may be small scripts to say work a slideshow or show/hide div's. With this one, it's a problem that I had never heard of or encountered, but was one that stumped me and a co-worker, yet the answer was a simple odd way that PHP behaves.

Uploading a file with PHP

All PHP developers at one point or another have handled file uploads. Mostly simple stuff, perhaps some in CMS's, but at one time or another all decently experienced programmers have dealth with aspects of file uploading such as max size, setting specific file types to allow and the like. There are different ways to deal with validation of both things, in a framework such as cakePHP validation is easily done in a model allowing you to deal with numerous options and conditions.

In this scenario the site was using cakePHP and my issue was that I uploaded a 3.8MB zip file (zip is not allowed) and got a flash message printed out, telling me that the format was incorrect - great. I proceeded to upload a 36MB zip file which was way over the limit set in the model of around 5.8ish MB and the result expected was a message, which was set (in two areas, actually...in the model as well as the controller) but instead, received the same exact page.

I'll ignore the boring debugging details and cut to the chase, there was no form data. I clicked submit and printing out any variation of $this->data, $_POST I received nothing. Which is odd, because the normal response should be an error or perhaps maybe the same form data (there were many other fields than the 5 uploads) but the invalid file upload containing something, instead the arrays were empty.

After looking into possibly an Apache issue and in futility, trying HTML MAX_FILE_SIZE, which does nothing productive, the root of the problem was PHP. There seems to be, not a bug, but a purposeful function in PHP that if that file like the one I had of 36MB is bigger than the server limit set in php.ini (8 MB in my case), PHP doesn't spit out an error and cancel the upload process, it actually empites out the $_POST and $_FILES array and goes along with it's business.

I'm not one to critiscize a programming language when I haven't mastered it by any means, but it seems like an odd conclusion. One would assume PHP would do about anything else then delete the form data and not say anything, at all. Luckily there is a working workaround posted on PHP.net

PHP.net Post

And here is the code below, adjusted a bit for the use I had in a cakePHP application:

   if (empty($_FILES) && empty($_POST) && 
isset(
$_SERVER['REQUEST_METHOD'])  &&
strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
      
$this->_successFlash('File uploaded was too big. 
Please re-fill in form and re-upload files under '
.ini_get('post_max_size').'B');
   }
?>

Basically the codebit checks to see if the $_FILES variable was empty, along with post and assuming the SERVER - REQUEST_METHOD function has a value and that it is POST, then you can assume correctly that the user uploaded a file too big and can put in whatever message or action you wish inbetween the if statement.

Well I hope this is useful for someone. It's one of those random PHP things you may not ever encounter, but luckily is a simple thing to fix.

Post to Digg Post to Facebook Post to Furl Post to Netscape Post to Newsvine Post to Reddit Post to Simpy Post to Spurl Post to StumbleUpon
By: admin | Full Story | Comments (0) | Post | 109 hits


Insane Visions Update
@ Mar 19, 12 - 11:11 pm

I've posted this words countless times, but sorry again for a long break in updates though in good news have a very good excuse. Starting back actually about a month ago I was contacted by someone I knew when first starting Insane Visions out and was asked about a job possibilitiy in the programming area. Long story short after conversations and a few tests, I am now officially a web developer at Airtight Design.

While that sounds like doom for AdaptCMS and this site, I largely think of it as good news. Not only will I be using my PHP knowledge 5 days of the week, every week, but be learning new technologies and codes all the time that will help me with AdaptCMS. The bad side of it is of course time, right now my free time is little but once I get used to the job and live closer I should get work done on the script.

It's also quite possible AdaptCMS makes the switch to the cakePHP framework, it's the main framework I use currently at Airtight and it's extremely impressive. Anyways some news on adapt should be known in the next few weeks after I've moved into an apartment. Until next time.

Post to Digg Post to Facebook Post to Furl Post to Netscape Post to Newsvine Post to Reddit Post to Simpy Post to Spurl Post to StumbleUpon
By: admin | Full Story | Comments (0) | News | 203 hits


Solitude Is Bliss - AdaptCMS 2.0 Powered
@ Feb 18, 12 - 7:00 pm

A site thats been under work for some time now and powered by AdaptCMS has just been launched, the Tame Impala fan site - Solitude Is Bliss. The newly launched website is a database of sorts of a very underrated young band "Tame Impala", a psychedelic rock band with just one full length album but already so many fans.

From a bio, gallery of many pictures from live performances to random pics, videos of many of there songs, discography with info and references on all there stuff and a community running phpBB and newly created phpBB-AdaptCMS bridge running, a lot to see.

Once again - Solitude Is Bliss

Other News

Rather than create a seperate post I should note that our sister site Rock Reviews has had a lot of content go live recently. It is currently still an insanevisions website but in the future definitely a possibility of an expansion.

A review of the psychedelic Black Angels album "Passover" went live and a few older reviews will be up soon as well as reviews of brand new albums such as the Heartless Bastards "Arrow" and Band of Skulls "Sweet Sour".

Post to Digg Post to Facebook Post to Furl Post to Netscape Post to Newsvine Post to Reddit Post to Simpy Post to Spurl Post to StumbleUpon
By: admin | Full Story | Comments (0) | News | 328 hits


AdaptCMS Update
@ Jan 16, 12 - 10:16 pm

It's been a while since the last update, with some progress on 2.0.2 but mainly have let 2.0.1 settle. Work has been started back up, there will be a slight delay with needing some initial brainstorming and the next version of AdaptCMS will be a minor update with a more major version coming soon after that.

As of now the most significant aspects of 2.0.2 is the phpBB integration and tagging. Even though tagging has been in the system, more importance will be put into it other than simply being a field you can use when adding content in the ACP. As well the social features of AdaptCMS will get some work, mainly in the bug fixing area but also some additions such as group images and an enhanced template.

Stay tuned for a blog to detail the changes/additions in the next version.

Post to Digg Post to Facebook Post to Furl Post to Netscape Post to Newsvine Post to Reddit Post to Simpy Post to Spurl Post to StumbleUpon
By: admin | Full Story | Comments (0) | News | 398 hits



Page processed in 0.171 seconds.

Username:
Password:
Insane Visions - Login Register

AdaptCMS

AdaptBB

Latest Posts

PHP File Uploads and Max Size

Latest Tutorials

- Basic PHP Security
- Bot Detection with PHP
- PHP and Forms

Latest Blogs

- AdaptCMS 2.0.1 - September 10th
- AdaptCMS 2.0 - March 26th
- AdaptCMS 2.0 - January 31st


Poll of the Month

Have you used a PHP Framework?

No, not a programmer
No, not yet
CakePHP
Zend
Symfony
CodeIgniter
Other


Results


Rock Reviews



Passover Review

"The 60's and 70's rock music is dead but Passover makes you ignore that and feel that atmosphere of music again."


Testimonials

I tried five different content management systems before I settled on OneCMS. OneCMS has proved itself to be very powerful, capable and easily customizable. The support has been fantastic; any little problems or questions I had were answered in one day. This software comes with my highest recommendations.

- George Lester, Founder/Webmaster, NintendoFocus.com  




Your Ad Here
Powered by AdaptCMS
Insane Visions - Footer