Adrian C1437 Chaves

Adrian C1437 has not set their biography yet

Posted by on in Blogs
Locating Bottlenecks 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 perform...

Posted by on in Blogs
Breakpoints and Watches 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, th...

Posted by on in Blogs
Basic Debugging 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-s...

Posted by on in Blogs
Avoiding Simple Errors 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 error...

Posted by on in Blogs
Where It Was, Part Four 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 co...

Posted by on in Blogs
Where It Was, Part Three 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 a...

Posted by on in Blogs
Where It Was, Part Two 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 st...

Posted by on in Blogs
Where It Was, Part One 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 p...

Posted by on in Blogs
PHP Programming, New Frontiers 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 debugg...
Tags: Events

Posted by on in Blogs
Hello World! 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 hand...
Tags: Other
  • Page :
  • 1

Check out more tips and tricks in this development video: