0

PHP for Android

Posted by Marcus Antonius - December 9, 2010. in android

PHP for Android! If you are not as excited as I was, then you is not developer icon smile PHP para Android Or does not like PHP. For me at least is fun to program in PHP Android. Simply because of the ease in programming and the interaction that PHP now has with Android.


php Android PHP para Android

Read more ...

tt twitter micro4 PHP para Android

Tags: ,

2

Installing Magento on Windows locally

Posted by Marcus Antonius - November 4, 2010. in ecommerce

easyphp Instalando o Magento localmente no Windows
magento Instalando o Magento localmente no Windows

I looked in several places how to install Magento on machines with this specific configuration (Windows 7 64-bit + EasyPHP 3.5), but always did various types of errors. However, I found the blog of Aetius Son a great post showing how we can install correctly.

This post is nothing more than a summary of his post. So lets get down to. icon smile Instalando o Magento localmente no Windows
Read more ...

tt twitter micro4 Instalando o Magento localmente no Windows

Tags: , , ,

3

Calculation of the CRE

Posted by Marcus Antonius - December 15, 2009. in projects

Almost always want to know how our CRE (Coefficient of Educational Achievement), both to verify our income, and to see if he is able to get on that research project we want to participate. However every period the number of disciplines increases, which becomes tiresome the calculation of a manual way. And that is why I decided to create a more automated way to calculate CRE.

Basically the CRE is determined by following expression:
cre Cálculo do CRE

Note: I took as a basis for calculating a document from the institution where they study, IFPB (formerly CEFET-PB), who interested, click here .

Click here to calculate your CRE

tt twitter micro4 Cálculo do CRE

Tags: ,

0

GOPHP Conference 2009

Posted by Marcus Antonius - November 8, 2009. in events

gphp conf banner04 GOPHP Conference 2009

The GOPHP Conference 2009 is an event designed for PHP professionals who want to improve their knowledge base and increase your network of relationships.

The event will feature the participation of renowned speakers and will have 12 lectures on various topics related to PHP. The GOPHP Conference 2009 has a specific target audience, serving both the professional with extensive experience on the professional and beginner student.

In addition to lectures there will be four short courses of 4 hours each, which aim to explain the issues so that the participant quit minicourse able to apply the technique / technology in practice. Initially the themes of the short courses are Orientation to Objects, Frameworks, Security and Methodologies.

Another strong point of the event is the networking among the participants, who will have the opportunity to meet and make business contacts during the two cofee breaks offered by the event.

The event will also include 4 Invited Speakers.

Thus, the event aims to show that Goias is a pole of Web development with PHP, with good professional and international renown.

tt twitter micro4 GOPHP Conference 2009

Tags: , ,

0

Meeting III PHP-PB

Posted by Marcus Antonius - October 19, 2009. in events

The third meeting of the group of PHP developers Paraíba aims to bring together the group members, students and IT professionals to exchange knowledge in PHP and related technology. The meeting will feature talks and moments of networking among the participants.

We will also have a time of challenge, where there will be a competition problem solving using PHP gifts worth. To do so, if you have a laptop, bring to the event. If otherwise combine with a friend, because the competition will be in pairs.

The event will take place on October 31, 2009 in the Auditorium of Sebrae in João Pessoa - PB.

Registration is free and you can do here .

See how it was our last meeting:

Source: php-bp

tt twitter micro4 III Encontro PHP PB

Tags: , ,

0

Avoiding frustration with PHP Sessions

Posted by Marcus Antonius - September 13, 2009. in php

PHP Web applications can add the state in their applications very easily, because the illusion of state is maintained through the ID of a session and it can carry information from one page and another without losing it along the way. Perhaps you've lost a potential productivity due to bugs or even bizarre security breaches because of these little beauties. Here are four tips to keep you from getting lost time and ensure your site.

1. Do not use underscores in hostnames

Unless you have memorized the RFC of characters allowed in the host name, you may not be aware that it is not allowed to put underscores in hostnames. In some browsers, like firefox, this prohibition does not apply, but Internet Explorer will refuse to set a cookie / session which has hostname underscores. The IE will make on each page load is generated a new session ID. But the user will never accept it. Source: documentation set_cookie .

2. Update your sessions after redirects

You must call the function session_write_close (or alias session_commit) to write the data in the session before any HTTP Location redirects are issued. This command also "liberates" the user's session so he can do other things in your application. See comments by the upper chamber and bkatz .

3. Preventing session fixation

Fixing session or session fixation, allows any malicious user receives the id of a valid session through a simple link. Without predict it or steal it from the cookie-user, or through a $ _GET common. The victim is caught using the session id generated by the "hacker" and not through the server. You can prevent this type of attack by calling the function session_regenerate_id (), particularly after storing important information such as name of a login or a flag. This will show the "hacker" a session id useless. Chris Shifflet did a more thorough discussion on Session Fixation .

4 - Do not expose the session id's.

Cookies may be, relatively, the safest place to store the id of your sessions if comparing to incorporate it directly into your url (via PHPSESSID). Here are two settings (via php.ini) to control this behavior, each of which are very important, so you must either set. You must set the session.use_trans_sid to (off) and if you are using PHP 4.3.0 or higher you can also set session.use_only_cookies to "1 '.

Source: Invision Power

tt twitter micro4 Evitando frustrações com sessões no PHP

Tags: ,

0

Tekuna, Microframework MVC for PHP

Posted by Marcus Antonius - Aug 18, 2009. in php

Tekuna is small, just 3000 lines of source code, it Improves reusability with a component-oriented definition of the application and intuitive routing. Its small footprint will not pollute your codebase with Unnecessary stuff.

Tekuna thumb Tekuna, MVC Microframework for PHP

Below a more detailed feature list for Tekuna:

  • Component-oriented Definition of the Application
  • Intuitive Routing of Actions to Controllers
  • Friendly URLs (RESTful API)
  • MVC Architecture
  • PHP Error handling with Exceptions (and Thus catchable)
  • Separate Request and Response Objects
  • Strict Input Filtering
  • Full UTF-8 Support
  • Support for multiple Template Engines
  • Simple Multilanguage Support
  • Fully unit-tested
  • 100% Compliant E_STRICT
  • Other Combinable with many frameworks (templating, ORM, Unit-testing ...)
  • Geared to java programming and naming style
  • Open Source under an MIT License

Current Tekuna the 0.1.189 version requires PHP 5.2.1 with Apache mod_rewrite enabled on your webserver. The quick start is available to Understand Tekuna Principles, architecture and features. The project is excellant at early stage and not ready for production, but you might check the project's roadmap to have a better idea about what's coming next.

source: PHP Magazine

tt twitter micro4 Tekuna, MVC Microframework for PHP

Tags: , ,

0

PHP.net manual in your hands

Posted by Marcus Antonius - August 4, 2009. in php
Learn how to add documentation on PHP.net search progress bar of Mozilla Firefox and get fast and accurate documentation of the function or feature you are looking for.
Today I will give a basic tip for everyone who likes to work with PHP and need to constantly access the PHP.net to ask questions about the functions / arguments / parameters / classes, etc. ... It is a wonderful documentation that everyone should visit at least once daily.
Most developers use the Mozilla Firefox plugins for the huge advantage of development and I really like FF because of that little bar that is on the search side of the "wonderfull bar" ... And I'll show you how to put the PHP.net there , for you to type the function name and drop it directly in the documentation.
First go to PHP.net and note that the íconezinho the search bar will be blue:
figure 1
Now just click on the arrow and click Add "Add PHP.net search", as shown in the picture:

Read more ...

tt twitter micro4 Manual do PHP.net nas suas mãos

Tags: , ,

0

Twitto: Framework that fits in a tweet

Posted by Marcus Antonius - August 1, 2009. in php

If you - at this stage of the game - no idea what a "tweet", to put up here www.twitter.com !

Now! We can talk as equals. Think of a framework. One big thing. With several options, modules, plugin support, MVC, perhaps a Data Mapper, etc, etc, etc.. Now think of a tweet: 140 characters. Things like oil and water, cat and dog, are Pauline and women (I'll still listen for it).

Well, trying to show feminine beauty to St. Pauline - or a framework need not be a great thing, for those who did not understand the joke - the founder of Symphony (the framework) created Twitto: a framework the size of a tweet , ie 140 characters. In fact - and logical - and he did not much, simply acts as a Front Controller pretty basic. But it is a proof of concept and uses new features of PHP 5.3, so ... the someone follows.

A <? Php

2 __ DIR__ require. '/ C.php';

3 if (! Is_callable ($ c = @ $ _GET ['c']?: Function () {echo 'Woah!';}))

4 throw new Exception ('Error');

$ 5 c ();

Now you can parguntar, what are the "new" things that twitto are using, simply:

Constant __ DIR__

Operator?:

Anonymous Functions

In the end, Twitto exists only as a joke, and to show some new features of PHP 5.3, but if he really is accepted as a framework it is the fastest existing. More forward some benchmarks show what I'm doing and twitto is already in them.

The site is Twitto: www.twitto.org

Source: PHPSP.og.br

tt twitter micro4 Twitto: Framework que cabe em um tweet

Tags: , ,

2

Frameworks for PHP

Posted by Marcus Antonius - July 30, 2009. in php

In this post I will make a sínstese a series of posts on the use of frameworks in php and also the fact that a framework is not.

PHP is the programming language world's most famous for several reasons: flexibility, ease of use and various other factors. But sometimes the programming becomes monotonous and / or repetitive, and that is where a framework can help.

What is a PHP framework?

In summary the framework is a structure, you create a foundation for its application. In other words, the framework will allow rapid application development (RAD), which saves time, helps create stronger, more secure and reduce the amount of repeated code. The frameworks also allow beginners to create applications more stable ensuring a good relationship between the database and the outer display. This all allows you to spend more time developing the application itself than repeating the code that all applications have.

The idea behind the standard of work of a framework in PHP is linked to the model MVC (Model View Controller). MVC is a form of programming that isolates the business logic (as the application works) layer display (the visual part). The Model takes care of the database, the View layer handles the display and the Controller handles the business logic. This all makes you work faster and in a sectorized.

Why use a PHP framework?

Developers use frameworks for various reasons, the largest of which is to streamline the development process. The re-use of code in several projects will save much time and work? This is guaranteed because the framework already has a number of modules pre-configured (and working) to make the most varied and common tasks like sending emails, connecting to the database, sanitation (cleaning) and data protection attacks.

Stability is another major advantage of the frameworks. The simplicity, which is a major "achievements" of PHP, also enabling countless failures and errors by novices? Not every code that works is necessarily correct and well developed.

Read more ...

tt twitter micro4 Frameworks em PHP

Tags: ,

Copyright © 2012 Marcus Antonius All rights reserved.
Portfolio | Resume | Contact | Twitter | RSS