The official blog of Nelios.com the leading ebusiness company in Greece

Nelios.com Official Blog

Call us on
+30 211 10 89 990



Posts tagged ‘PHP’

September 16th, 2010

The L.A.M.P that illuminates Nelios.com

by George T.

Στη Nelios.com, στην προσπάθεια να μεταφέρουμε την καλύτερη δυνατή τεχνολογία στους πελάτες μας επιλέξαμε τη χρήση της τεχνολογίας L.A.M.P. Στην ουσία δεν είναι μία τεχνολογία, αλλά ένας πολύ δυνατός συνδυασμός τεχνολογιών ανοικτού λογισμικού (Open Source).

Στο παρακάτω άρθρο εξηγούνται οι σημαντικότεροι λόγοι που μας οδήγησαν στην επιλογή αυτή. read more »

Tags:
June 3rd, 2010

Minified URL | Κρατήστε τις GET μεταβλητές στο URL χωρίς να πιάνουν χώρο

by Giannis S.

Πολλές φορές κάνετε post μία φόρμα για να κάνετε κάποιο search σε ένα site και θέλετε οι μεταβλητές να υπάρχουν στο URL έτσι ώστε να μπορεί κάποιος να στείλει πχ. αυτό το URL σε ένα φίλο του και να εκτελέσει ξανά το search αυτό.

Κάποιοι από σας μέχρι τώρα κάνατε χρήση της GET πχ:

http://www.diakopesTravelSearch.gr/search.php?dest=Athens&checkin_monthday=1&checkin_year_month=2010-9&checkout_monthday=3&checkout_year_month=2010-9 (ψεύτικο URL)

Εδώ θα εξηγήσουμε τον τρόπο για να γίνει το παραπάνω URL όπως το παρακάτω και να έχουμε πάλι πρόσβαση στις παραπάνω μεταβλητές:

read more »

Tags:
May 27th, 2010

Replacing $_POST with an object

by George T.

Before I begin, please, allow me to introduce myself as a fan of the Object Oriented Programming (OOP). When PHP announced the release of the PHP5, I was keen on moving into PHP5 as soon as I realized all the benefits that it provides. It seems a bit awkward for a PHP developer also to be an OOP fan. Someone could easily tell me, “why bother with PHP and not programming with a full OOP language, such as Java or .NET Framework etc”. The answer might be obvious , to people who knows me well. I just like PHP!

But let’s cut to the chase, a few days ago I was checking some old projects, from the pre-MVC era, that were developed without the use of a sophisticated MVC Framework, such as Zend Framework, CakePHP, Codeigniter etc, which are providing a plethora of libraries that makes your life much easier. So, I had a revelation that I would like to share with you.

In such a project, I noticed that there was no checking for cross-site scripting attacks (XSS), making those sites vulnerable to malicious attackers. I had to figure out a solution without having to add a “check”, using a proper function, every time a posted variable was retrieved.

read more »

May 25th, 2010

ORM in Eclipse

by Alicia K.

Eclipse helps a lot of people to program quick and easy. However, with a quick Google search we saw that there isn’t any simple ORM to help you when you write PHP code. So, our web developer Johnny S. created a simple code that helps you synchronize with the database.

It’s really easy to implement… check the URL on this embed tweet ;)

ORM in Eclipse [simple code that helps you synchronize with database] http://ow.ly/1D1Bz #eclipse #mysql #php //via @scoumbourdisless than a minute ago via web

Embed tweet? Hey, that is something new. Remember this Nelios’ tweet? Well, I used the code given in order to create this embed tweet! I am sure that there will be an easier way implementing embed tweets in the near future…it depends on who will spare the time and write a more direct way.

Credits: Johnny’s personal blog [ORM in Eclipse] and Blackbird Pie [Embed tweet code generator]