Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

About akaikiwi and stuff

>> Monday, March 28, 2011

As I've now started University I have less time for hobby coding, I'm working on some Java stuff now, as that's what I use at university, I'm working with slick and making some game development, not a full game though, just things like GUI and stuff, once I put together some stuff I'll finish a RPG I was working on :)
About akaikiwi, it's development has drastically stopped, but I plan on finishing it, not now, but soon, I have to do some PHP for work but all Joomla! related (which to be honest I pretty much hate Joomla! awful implementation of MVC but oh well...).
I'd really love to have more time and see more RoR and Django but right now I can't, I want to finish akaikiwi first, although I do take some ideas from those frameworks, I'm really interested in Django on Appengine, I think I'll deploy my next web app there, which is probably gonna be a designer's resource site.
Once I have more free time I'll work on some nice stuff I have on hiatus :)

Read more...

NoSQL Request Injection Attacks with PHP Magic Variables

>> Monday, March 7, 2011

A "new" and interesting injection in PHP has been pointed out, and although very easy to defend against, it's pretty interesting. You can read more about it on the php website.

Read more...

How To Install PostgreSQL And phpPgAdmin Support In XAMPP

>> Friday, February 25, 2011

I'm working on akaikiwi and I want to test some stuff on Postgre, as the databases I'm aiming to support are SQLite, MySQL and Postgre, the latter is the only one XAMPP doesn't support natively.

I found a great post on How To Install PostgreSQL And phpPgAdmin Support In XAMPP that worked nicely, except in the last part, I had to add

Alias /phppgadmin "D:/xampplite/phpPgAdmin/"

 AllowOverride AuthConfig
 Order allow,deny
 Allow from all

Inside alias_module instead of mime_module, but other than that, it works like a charm :)

Read more...

Sending mails from localhost with XAMPP Lite

>> Monday, February 21, 2011

One of the most common tasks of web development is sending emails, whether from a registration process, password recovery or if they suscribed to an update, you will need to send emails. The problem is that XAMPP doesn't have a default configuration for sending mails, and developing without this ability is pretty dull, you need to test your mails!
But don't worry, you won't have to install anything, and you wont need a hosting, you just need a Gmail or Hotmail account.

  1. Edit your php.ini file located inside the php folder of your XAMPP installation path.
  2. Search for the line ';sendmail_path = "\"YOUR_XAMPP_PATH\sendmail\sendmail.exe\" -t"'
  3. If it has a ';' in the beggining, remove it
  4. Edit sendmail.ini file inside the sendmail folder
  5. Add the following lines
  6. account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from [your-email]@gmail.com
    auth on
    user [your-email]@gmail.com
    password [your-password]
  7. Finally edit the account default line, it should look like this
    account default : Gmail
  8. That's it! Now restart apache and you can now send mails.
If you want to use Hotmail instead of Gmail just change the host to 'smtp.live.com', the email adresses, and if you want, the account name (Hotmail instead of Gmail).

Read more...

Creating Anonymous PHP Objects

>> Saturday, February 19, 2011

So I'm working on akaikiwi and found out a very nice thing, which doesn't really help me right now, but I really feel like sharing it, as I'm sure it'll be useful for somebody.

$obj = (object) array('foo' => 'bar', 'property' => 'value');
echo $obj->foo; // prints 'bar'
echo $obj->property; // prints 'value'

That's it! That will cast the associative array to stdObject. Useful to save some code.
In PHP 5.3 you could actually also use closures to make some nasty stuff, it's a pity PHP 5.3 is still not widely used.

Source: http://www.php.net/manual/en/language.oop5.php#84292

Read more...

More on YUI and akaikiwi

>> Tuesday, February 15, 2011

So far, I've been working on a personal site, forum-like, and I've been playing with YUI more, I'm very satisfied, it feels way nicer and more like Javascript than other frameworks. I like the organization of widgets, plugins and extensions. It's really nice so far.
About akaikiwi, I'm adding little fixes here and there, thanks to my project, I always try to follow YAGNI (You Ain't Gonna Need It) so basically add functionality when I need it, instead of when I think I will, this makes the libraries simple and tight.
The site should be finished by febrary but I think it might take until the end of march to get it up and running online.
About akaikiwi, I don't know when the first release is comming, but I think it will be released after this site is finished and tested.

Read more...

More on akaikiwi

>> Thursday, February 3, 2011

I'm mostly working on fixing bugs right now, not much on adding functionality, as I'm not at home right now.
I'm working on my new netbook with linux mint, so I'm testing how everything works on linux. Once I finish seeking and repairing bugs I'll work on some more new features.
Akaikiwi is going very nice so far :)

Read more...

akaikiwi

>> Monday, January 31, 2011

So I've been working on akaikiwi a lot lately, I took a little break now as I'm not home for a week, but I'm working on documentation and adding issues now :)
akaikiwi is a PHP MVC framework, focused on beeing lightweight and fast. It's going really nicely so far.
You can see the repo here: http://code.google.com/p/akaikiwi/
I'm working on the wiki right now, it's still kind of far from first release, but it might not take that long, it just needs some fixes, a bit new features and a lot of testing.
Once that's done, I'll consider the first release :)
For now, I'll work on the wiki, you can check it to see the nice features and how to use it so far, you can also pull it from the repo if you wanna test it. I'll list some features here.


Features

  • Very easy to learn
  • Lightweight
  • ORM
  • Very good compatibility with limited hosting accounts, works with PHP 5.2
  • Awesome performance
  • Command-line CRUD generator
  • Easy to extend
  • Debugging tools (profiling)
  • Cache
  • Simple :)

Read more...

CodeIgniter

>> Monday, March 29, 2010

CodeIgniter is a PHP framework, which is pretty fast and easy to learn.
Not many years ago I didnt really care much about frameworks, i had my little nice set of functions I collected during the years, and I didn't have much problems editting and creating new sites, but for some reason I decided to try frameworks.
I have always liked open source, so I really liked the idea of people sharing their awesome functionality, and if you dont have much experience with MVC starting with CodeIgniter is a great option! It takes like 30 minutes to read the begginer documentation, and then you have awesome reference, you may develop a bit slower first, but later you will do it faster! And in a very scalable way!
What is nice about using frameworks is that if it's a project where more than one person works (Including MVC advantages already) you know what to edit, you know what to do already, no need to lose time reading what other programmer structure is!
It has many many advantages, I will just say, i recommend it!
I have used for my last projects and it works flawlessly! I also like sharing my own libraries :) I made an excel plugin, to export an xls file.
Anyways! If you develop on PHP, i would say this is a very nice tool!

Read more...

  © Blogger template Simple n' Sweet by Ourblogtemplates.com 2009

Back to TOP