Adrian C1437 Chaves

Adrian C1437 has not set their biography yet

Posted by on in Blogs
Profiler in action.
There are several techniques you can use when working with PHP applications to improve performance. These are probably some of the most fundamental ones: Upgrade PHP. Newest PHP versions will include lots of changes, not just additional features, but also performance improvements. Use cache for database results and rendered pages. Disable PHP extensions you are not using when you deploy your application to a web server. Those tasks, specially caching, will greatly increase the performance of your application. But once you have followed those advises, it is time to have a closer look to the code of your application. Bottlenecks Bottlenecks are those parts of an application wh...

Posted by on in Blogs
On this post we are going to have a quick look at breakpoints and watches, features we can use during debug to locate code errors. Breakpoints You can attach a breakpoint to a line of code to stop script execution at that point. When you go to Run > Run, the application will stop at the first breakpoint, if you go to Run > Run again, it will jump to the second breakpoint, and so on. With breakpoints, you can take execution flow control through the key parts of your application, those that are relevant to the error you are trying to fix, avoiding unnecessary steps in the middle. Imagine you have a PHP script with 10,000 lines of code (it happens…), and need to check only whe...

Posted by on in Blogs
The Debugger is the perfect tool to locate the source of any logic error in your application. You can use it to get control of the execution flow of your scripts while you watch the value of variables and expressions, allowing you to track the data until the point when something unexpected happens. Now, lets see some code: <?php define('YES', 0); // What strcmp() returns for a string match. $pet = $_GET['pet']; $pet = strtolower($pet); // strcmp() is case-sensitive. $isCat = strcmp($pet, 'cat'); // Save the return value of strcmp(). if($isCat = YES) { // Check if given pet is a cat. echo "You have a cat!"; } else { echo "Yo...

Posted by on in Blogs
On this post, we will have a look at two kinds of PHP errors, and learn how we can save time using RadPHP to avoid them. Syntax Errors Syntax errors are the most fundamental errors, those produced by a PHP code that cannot be understood by the PHP interpreter, which reports them as “Parse error”.  Common examples of syntax errors are a missing semi-colon at the end of a line of code, not escaping quotes inside a string, forgetting to write an initial or final parenthesis… To avoid these errors you have Error Insight, a syntax checking tool that reviews the code as you write it, warning you about these errors by underlining them in red on the Code Editor, and listing them on the Structure ...

Posted by on in Blogs
MIFrame component on the second page
This article is a follow up of Where It Was, Part Three. In the previous post, we made it possible to open places on an individual page, and to delete them. It is time now to add the only missing feature for our application: geolocation. We will store the geolocation data of the mobile device when a place is added to the list on the main page, and show it on a map on the individual page of each place. Database Structure First thing we need to change is the database structure. Currently, it contains for each place an identifier (id) and a name (name). We will need to add two additional columns to that table: latitude and longitude. These are the decimal values used to indicate a location o...

Posted by on in Blogs
Second page of our application on the Designer.
This article is a follow up of Where It Was, Part Two. In the last post, we got our application to keep a database of places, and made it possible to add new places to the list. Now we will make it possible to open places on a second page, and to delete them from there. Second Page Design Currently, our database is only storing two fields for each place: an identifier, just for logical purposes, and a name, which is the way users can identify the different places on the list. But we plan to add geolocation to the database later, and we have to be prepared to add even more data in the future: images, videos… We cannot include any of those on the list, it would be too cluttered, so we will...

Posted by on in Blogs
Added an MDB component to the application, and filled its properties.
This article is a follow up of Where It Was, Part One. In the previous post, we got a basic user interface to work on. Now it is time to make it actually do something. We will get the “Remember” button to add whatever we write on the MEdit field to the MList, and the list should persist between sessions, that is, it should be still there when user closes and reopens our application. JavaScript In this part of the tutorial, we are going to use some RadPHP mobile components, but we will also start writing code. When programming for mobile devices, using PHP is possible, but it has its cons. Whenever we can, we will rely on JavaScript programming language, and its jQuery library toguether w...

Posted by on in Blogs
RadPHP Mobile Application Design View
In this tutorial, we are going to develop a simple mobile application from scratch using RadPHP. An Idea Is Born I am new in the city, I’ve just moved, and everything is new to me. I don’t know where things are, and most times I just follow my workmates to wherever they go for lunch. The other day I found a great place to order home-made food, but I was in a hurry so I just got the name. Now I can’t remember it, or where the place was. So I decided I would need an application for my phone so I could just write down the name or something else about a place where I am, like “Nice Restaurant” or “Baby Stuff”, and my phone should be able to tell me later where I was when I wrote that ...

Posted by on in Blogs
Next Thursday, November 24th, a technical seminar will be held in Madrid to talk about the new challenges of programmers, namely mobile devices, the web and social networks. Through practical lessons, attendees will learn how to take advantage of RadPHP to face these challenges. We will have Antonio Alonso with us, who is responsible of mobile application components integration with RadPHP. First session will cover Facebook applications development with RadPHP, including topics like debugging, database management, and some advanced components. After a coffee, Mobile session will begin, covering mobile applications development, including controls and components to access hardware featur...
Tags: Events

Posted by on in Blogs
I am sorry I could not come with an original name for my first blog post. And I’ll pretend this apology was enough to break the ice *wink wink*. My name is Adrián Chaves Fernández (“Adrian” is OK). I am Documentation Writer for RadPHP. In short, I am responsible for making possible for RadPHP users to spend less time to figure out how to spend less time to do things. (I bet you had to read that twice at least!) There will always be something you don’t know. I’ll do everything in my hands for you to find your answer as soon as possible. To achieve this goal, I am going to: Update and complete RadPHP Wiki. Users should be able to find there anything they are looking for related to...
Tags: Other
  • Page :
  • 1