PHP | Andreano Lanusse | Technology and Software Development Where Andreano Lanusse talk about technology, software development, programming techniques, databases, games and more through articles, tutorials and videos Tue, 31 Jul 2012 20:19:14 +0000 en hourly 1 https://wordpress.org/?v=6.3.4 Update 4 for RadPHP XE2 is now available http://www.andreanolanusse.com/en/update-4-for-radphp-xe2-is-now-available/ http://www.andreanolanusse.com/en/update-4-for-radphp-xe2-is-now-available/#respond Tue, 28 Feb 2012 22:13:42 +0000 http://www.andreanolanusse.com/en/?p=814 Update 4 for RadPHP XE2 is also available for download. List of fixes and changes in this update here Update 4 download for RadPHP XE2 available here  

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
Update 4 for RadPHP XE2 is also available for download.

  • List of fixes and changes in this update here
  • Update 4 download for RadPHP XE2 available here

 

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
http://www.andreanolanusse.com/en/update-4-for-radphp-xe2-is-now-available/feed/ 0
RAD Studio XE2 a new era for Delphi and C++Builder Developers http://www.andreanolanusse.com/en/rad-studio-xe2-a-new-era-for-delphi-and-cbuilder-developers/ http://www.andreanolanusse.com/en/rad-studio-xe2-a-new-era-for-delphi-and-cbuilder-developers/#comments Tue, 02 Aug 2011 08:32:40 +0000 http://www.andreanolanusse.com/en/?p=668 RAD Studio XE2 is coming and together comes the XE2 release for Delphi, C++Builder, RadPHP and Prism, in order to show all of the great features coming, this week we are starting the RAD Studio XE2 World Tour, you can check the list of countries part of the World Tour and make your registration. This […]

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
RAD Studio XE2 is coming and together comes the XE2 release for Delphi, C++Builder, RadPHP and Prism, in order to show all of the great features coming, this week we are starting the RAD Studio XE2 World Tour, you can check the list of countries part of the World Tour and make your registration.

This release represents a new era for Delphi and C++Builder developers, there are lot of new stuffs on this release and we will show all of them during the RAD Studio XE Tour, in the mean time I would like to highlight some of them:

[ilink style=”tick”]New Delphi for 64-bit Windows and full VCL/RTL support[/ilink]
[ilink style=”tick”]Full monitoring and controlling of DataSnap connections[/ilink]
[ilink style=”tick”]LiveBinding, the new mechanism for binding any type of data[/ilink]
[ilink style=”tick”]dbExpress ODBC driver[/ilink]
[ilink style=”tick”]Cloud API support for Amazon S3[/ilink]
[ilink style=”tick”]VCL Styles to modernize the look and feel of VCL applications[/ilink]
[ilink style=”tick”]FireMonkey the new platform for NATIVE software development[/ilink]

FireMonkey is a big step forward, it opens a whole new market for Delphi and C++Builder developers, allowing to offer their current applications on Mac, develop new products and at the end deploy their applications through App Store reaching millions of end users. The power of FireMonkey will distinguish your applications from any other.

Much more to come, stay tuned to this blog, other Embarcadero blogs and our Embarcadero website throughout this month for more information.

[button link=”http://www.embarcadero.com/world-tour” size=”large” style=”note” color=”red” border=”white” text=”light” window=”yes”]Register today for the RAD Studio XE2 World Tour[/button]

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
http://www.andreanolanusse.com/en/rad-studio-xe2-a-new-era-for-delphi-and-cbuilder-developers/feed/ 7
Handling DataSnap (REST) server methods through PHP http://www.andreanolanusse.com/en/handling-datasnap-rest-server-methods-through-php/ http://www.andreanolanusse.com/en/handling-datasnap-rest-server-methods-through-php/#comments Tue, 18 Jan 2011 08:42:55 +0000 http://www.andreanolanusse.com/en/?p=446 Create PHP applications to connect to DataSnap REST servers is relatively simple since the RadPHP includes a wizard that generates the proxy classes in PHP, but as PHP is a dynamic language and is not strongly typed, it opens the possibility for errors when we execute the server methods, in addition to that REST calls […]

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
Create PHP applications to connect to DataSnap REST servers is relatively simple since the RadPHP includes a wizard that generates the proxy classes in PHP, but as PHP is a dynamic language and is not strongly typed, it opens the possibility for errors when we execute the server methods, in addition to that REST calls always returns a JSON object, but if you are aware how REST, JSON and DataSnap works it became easy to manage.

Consider the following scenario where you have an authentication method that returns TRUE or FALSE, of course you must be thinking that in case of error the method will always return false, this is not necessarily true and I’ll explain next.

Assuming you have generated the proxy class in PHP through RadPHP IDE, you have what you need to execute the DataSnap business logic from PHP code, when the server method is executed from REST server it will always return an JSON object.

The RadPHP proxy generator wizard will create a datamodule which containing the DSRestConnection component, this component has the necessarily information to connect to the server, like: Host, Port, Username and Password.

The following code execute the server method TUser.isValidUser having username and password as parameter, if the server method returns an instance of DSObject it means the method was executed successfully and it will have a DSObject->result property, in this case TRUE or FALSE, in case the method fails for some reason or raise an EXCEPTION DSObject will not be returned and you will have to check the property ERROR to get the error message.

type
   global $ClientModuleDataModule1;
   $conninfo = $ClientModuleDataModule1->DSRestConnection1->ConnectionInfo;

   $user = new TUser($conninfo);

   $valid = $user->IsValidUser($this->edUserName->Text, $this->edPassword->Text);

   if($valid instanceof DSObject)
   {
      if($valid->result)
      {
         setcookie('loginid', $this->edUserName->Text);
         redirect("Main.php");
      }
      else
      {
         $this->Button1->Caption = "Username/Password invalid";
      }
   }
   else
   {
      $this->Button1->Caption = $valid->error;
   }

In the examples of RAD Studio XE available at sourceforge you can download the full PHP code used on this post, as well the Delphi DataSnap server, download here.

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
http://www.andreanolanusse.com/en/handling-datasnap-rest-server-methods-through-php/feed/ 1
RadPHP in Action a lot of material about developing PHP and Facebook Apps http://www.andreanolanusse.com/en/radphp-in-action-a-lot-of-material-about-developing-php-and-facebook-apps/ http://www.andreanolanusse.com/en/radphp-in-action-a-lot-of-material-about-developing-php-and-facebook-apps/#comments Tue, 14 Dec 2010 01:06:02 +0000 http://www.andreanolanusse.com/en/?p=415 Take sometime tomorrow for the webinar “Simple solutions for developing PHP web and Facebook applications”, where you’ll learn: The basics of creating PHP applications When to use an IDE instead of a code editor Using class libraries like the RadPHP Component Library (RPCL) How to connect and work with databases with PHP Using drag-and-drop components […]

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
Take sometime tomorrow for the webinar “Simple solutions for developing PHP web and Facebook applications”, where you’ll learn:

  • The basics of creating PHP applications
  • When to use an IDE instead of a code editor
  • Using class libraries like the RadPHP Component Library (RPCL)
  • How to connect and work with databases with PHP
  • Using drag-and-drop components to speed development
  • How to quickly build a Facebook application with RadPHP

These are the available sessions and registration links:

6AM PST / 2PM GMT (Dec 14, 2010)
11AM PST / 7PM GMT (Dec 14, 2010)
7PM PST / 3AM GMT (Dec 15, 2010)

Visit the RadPHP in Action page and starting reading some of the follow articles:

  • Creating Your First Facebook Application
  • DataSnap Client Development with RadPHP
  • Using RadPHP XE with Existing PHP Applications

Also, you can watch some of the PHP videos:

  • Facebook Development with PHP – Getting Started
  • Facebook Development Part 2 – User logins and getting user information
  • DataSnap with RadPHP #1 – Client and Server
  • RadPHP Database Application Development – Connecting to InterBase
  • RadPHP Components #1 – Frame and Frameset
  • RadPHP Components #2 – MainMenu and PopupMenu
  • RadPHP Components #3 – QMainMenu and QPopupMenu

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
http://www.andreanolanusse.com/en/radphp-in-action-a-lot-of-material-about-developing-php-and-facebook-apps/feed/ 1
Available now the new Delphi XE, C++Builder XE, Delphi Prism XE and RadPHP XE http://www.andreanolanusse.com/en/available-now-the-new-delphi-xe-cbuilder-xe-delphi-prism-xe-and-radphp-xe/ http://www.andreanolanusse.com/en/available-now-the-new-delphi-xe-cbuilder-xe-delphi-prism-xe-and-radphp-xe/#respond Tue, 31 Aug 2010 05:19:51 +0000 http://www.andreanolanusse.com/en/?p=338 It is time to start looking the new RAD Studio XE which includes Delphi XE, C++Builder XE, Delphi Prism XE and the new RadPHP EXE. All products information are now available, as well the trial editions. Take a look on the Ultimate RAD Studio XE Upgrade, you can get all Embarcadero products and improve your […]

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>

It is time to start looking the new RAD Studio XE which includes Delphi XE, C++Builder XE, Delphi Prism XE and the new RadPHP EXE.

All products information are now available, as well the trial editions. Take a look on the Ultimate RAD Studio XE Upgrade, you can get all Embarcadero products and improve your software and database development.

All Embarcadero Evangelist will be travelling around the world to show you the best RAD Studio release, save some time to attend the events.

Personally during the next 2 weeks I will be in USA and Latin America. I will be in the follow cities:

  • September 1- 7:00pm-9:00pm – Orange Co., CA
  • September 2 – 7:00pm-9:00pm – Los Angeles, CA
  • September 7 8:30am – 1:00pm – Mexico D.F., MX
  • September 9 – 8:30am – 1:00pm – Guadalajara, MX
  • September 21 – 5:00pm – 7:00pm – Denver, CO
  • September 22 – 6:00pm – 8:00pm – Salt Lake City, UT

In the mean time, download the trial and start looking the great new features for Delphi, C++Builder, Delphi Prism and RadPHP.

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
http://www.andreanolanusse.com/en/available-now-the-new-delphi-xe-cbuilder-xe-delphi-prism-xe-and-radphp-xe/feed/ 0
DataSnap XE and Windows Azure – RAD Studio XE Preview #3 http://www.andreanolanusse.com/en/datasnap-xe-and-windows-azure-rad-studio-xe-preview-3/ http://www.andreanolanusse.com/en/datasnap-xe-and-windows-azure-rad-studio-xe-preview-3/#respond Tue, 24 Aug 2010 22:39:30 +0000 http://www.andreanolanusse.com/en/?p=336 One of the great news around RAD Studio XE is the Cloud support, in this video we show how to access Microsoft Azure through the DataSnap Server XE, as well some of the new features in DataSnap like authentication and authorization to execute the server methods. Now take some time and visit the  RAD Studio XE […]

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
One of the great news around RAD Studio XE is the Cloud support, in this video we show how to access Microsoft Azure through the DataSnap Server XE, as well some of the new features in DataSnap like authentication and authorization to execute the server methods.

Now take some time and visit the  RAD Studio XE Preview to learn more about the new Delphi XE, C++Builder XE, Delphi Prism XE and RadPHP XE.

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
http://www.andreanolanusse.com/en/datasnap-xe-and-windows-azure-rad-studio-xe-preview-3/feed/ 0
RAD Studio XE = Delphi XE, C++Builder XE, Delphi Prism XE and RadPHP XE http://www.andreanolanusse.com/en/rad-studio-xe-delphi-xe-cbuilder-xe-delphi-prism-xe-and-radphp-xe/ http://www.andreanolanusse.com/en/rad-studio-xe-delphi-xe-cbuilder-xe-delphi-prism-xe-and-radphp-xe/#comments Tue, 10 Aug 2010 08:47:58 +0000 http://www.andreanolanusse.com/en/?p=321 Developer community today we start the RAD Studio XE Sneak Previews, which includes Delphi XE, C++Builder XE, Delphi Prism XE and RadPHP XE, new names, new tools, new features, and a lot of high productivity in RAD Studio XE. XE in few words means: Heterogeneous database support with no additional cost ToolCloud enable which will […]

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>

Developer community today we start the RAD Studio XE Sneak Previews, which includes Delphi XE, C++Builder XE, Delphi Prism XE and RadPHP XE, new names, new tools, new features, and a lot of high productivity in RAD Studio XE.

XE in few words means:

  • Heterogeneous database support with no additional cost
  • ToolCloud enable which will help you to management and distribute our Tools in your organization
  • Easy way to upgrade do All-Access XE and get access for all Embarcadero database and developer Tools

But, now let’s talk about some of the great features in RAD Studio XE.

  • Powerful integration with Subversion in Delphi XE, C++Builder XE and Delphi Prism XE.
  • Beyond Compare integrated into the RAD Studio environment is that it really gives you a rich interface for comparing files and understanding the differences that happen between versions of files
  • RadPHP (formerly Delphi for PHP) completed redesigned including a lot of new features in the IDE, debugger, source code editor, new VCL components and more. Also RadPHP enable developers to create a Facebook Application in a very easy way, you will see some videos soon about that.
  • Generate Sequence Diagrams helping you understand your Delphi code

There are much more, watch the first RAD Studio XE Sneak Preview.

Visit the RAD Studio Sneak Preview page and stay tuned!!!

Andreano Lanusse | Technology and Software Development Follow me on Twitter: @andreanolanusse

]]>
http://www.andreanolanusse.com/en/rad-studio-xe-delphi-xe-cbuilder-xe-delphi-prism-xe-and-radphp-xe/feed/ 21