PHP Tutorial : Application N°1

Depending on the method you just read in the last paragraph, could you draw the general structure of the program ...

PHP Tutorial : Introduction ( Part 2 )

You have a good knowledge of HTML and CSS, so you know these two languages ​​are not programming languages​​, but languages ​​simple static display.

PHP Tutorial : Introduction ( Part 1 )

To use this PHP tutorial for beginners, it must meet the following criteria...

This tutorial is designed for beginners.

Call it beginner who has never planned or taken any initiative on the general concepts of programming. So we aim to satisfy the public, if he is willing to work regularly and spend an intensive week, for example ...

Announcing : The launch of a tutorial PHP language

The First Tutorial PHP Language Announcement Welcome Dear visitors of the blogWe decided to offer a special tutorial in PHP...

Friday, February 3, 2012

Free Google Maps does not please the French justice, towards the end of the free API for developers?


The Commercial Court of Paris has just recognized Google guilty of abuse of dominant position and ordered to pay 500,000 euros in damages to a French company behind the complaint.
 The company in question, Bottin Cartographers, offers 19 years of paid services (for example, used or Intermarché Banque Postale) some of which are in direct competition with the Google Maps API. Especially in the geolocation and routes.
 Google API allows sites to integrate their cards for free if they are private, and for a fee if they are commercial.

 Cartographers boots, Google would use its dominant position clear - even monopolistic - market research online to impose its product, including via the free version of its maps.
 A view endorsed by the Commercial Court recognizes that, in its ruling, a demonstrated willingness to eliminate competition in the sector and to use free as a weapon of mass destruction. Clearly, Google would make the dumping to ensure a monopoly in the mapping, which then extends monopoly on online advertising (trade, contextual advertising, etc..) Related cards.

 For the record, Google Directory, and Mapmakers will provide with the same two companies: Navteq (Nokia) and Teleatlas (Tom Tom). This did not play in favor of Google, even leaving open a question of "selling at a loss" on the data but Google does not buy it.
 For its part Google France immediately called and said that other competitors alive, are on the market.

Eiffel Tower on the two services

If this decision were to be confirmed, Google will he give up his free version of its Maps (at least for the API)? If not entirely abandon the activity?
 Pending the outcome of the appeal, recall that for pure mapping (only some of the activities directory Cartographers), alternatives - more or less free - exist. Starting with Bing Maps and OpenStreetMap.

Source : AFP

Office 15: the first private testing program, the first public beta expected mid-2012

 

A first beta was expected in January, but it's actually a program of technical evaluation (and private) that Microsoft has just launched for Office 15, the official codename for the next generation of cloud services and products to its line Office (Office 14 was the code name Office 2010).



 "With this program the technical evaluation, we share for the first time Office 15 with a narrow group of customers, subject to a confidentiality agreement," Microsoft revealed. These customers will have the task of testing a draft and make their comments.
 Difficult however to know more about the new features. "I am not able to share with you a lot of information," said PJ and Hough, Vice President Corporate Development Division Office. "But I can tell you that Office 15 is by far the most ambitious project ever undertaken by our Division."



 For the first time, Microsoft will actually update - simultaneously - its cloud services, products and customers servers and mobile PCs for Office, Office 365, Exchange, SharePoint, Lync, Project and Visio.



 The current version of reform must be part of the continuity of the Ship Windows interface Metro 8 for tablets and touch screens. According to the leaked screenshots that throughout 2011, "Moorea" should be the biggest change in Office 15. "Moorea" is a new file manager that will centralize all office documents in a single place. It will be accessed directly via an interface from their insights, also declined to Metro. More tactile, more design, more convenient, the groom will also affect Outlook, too thoroughly reworked for mobile terminals.


The program evaluation technique is unfortunately full. The 'real' first public beta, it is expected later this summer.

Source : Microsoft

PHP Tutorial : Apostrophes or quotation marks ?


         II - D - Apostrophes or quotation marks ?

               II - D - 1 - What I do not advise :
If you are a little lazy, you will find handy to know that the quotes "" (as opposed to single quotes or apostrophes) allow this in PHP:


So you may find it a little twisted to use single quotes for PHP therefore, because the example above rule in a single shot ladle the problem of the direct interpretation of the variable and the problem of the apostrophe text "I have" ...

However, I think you will need more rigorous if you need to continue with PHP, so I beg you to adopt the following convention, at least for this tutorial:
          
               II - D - 2 - My advice :

In the future, you will frequently produce HTML with your PHP code, since it is its essential function. Thus by adopting the following convention, you'll always know if you are at PHP or HTML.


When you use a ' : it is in PHP.

When you use a " : it is in HTML.


For clarity of your ideas, so I advise this :


Of course, you still have the blow to the reflex:
Attention in the contents of my HTML, between two tags, if I have an apostrophe in my text (which is actually quite rare):

I must think of the escape character.
But it should not pose major problems, all sentences not containing as many quotes as in the example below ...


See You

Thursday, February 2, 2012

PHP Tutorial : echo



              II - C - echo :
Well now that we have defined the variables at the same time we have allocated their value, thanks to post the echo, in an HTML :


Comments on this echo statement:

 Here I have only two instructions 'show': An automatic and conditional.
You will notice that I went to the line in the display with the tag br /.
Notice that all the quotes that are just text were neutralized by putting \ in front of each one so they are not considered the end of the string.

 Notice that the display of the contents of the variable is done automatically, with the bare variable in the code.
Notice that the point is used to concatenate (or paste text butt).
You have to manage the display spaces within the quotes. Here syntax is vital.


 Finally you will notice that my condition (if it's a boy or a girl), although written to the line in my code and opening a second echo statement, appears nonetheless a continuation of my previous echo ...

 In other words, it is always at the HTML code that will run the line breaks of the display (tags br /, p tags, etc.).

The line breaks you do spontaneously in your PHP code after each statement are only line breaks intended for the programmer to improve readability of the code.

 Final note: Take good habit to know what level you are: at the meta-language PHP
 or at the HTML that results in a display.


See You

PHP Tutorial : The Variables


              II - B - The Variables
$ before a string means that we are talking about a variable, it is called as you want then, but never focus or space in a variable name.

A variable is typed: it may take 4 types (in order below):

The types of variables :

  1. string
  2. integer (whole number)
  3. bool (Boolean binary logic means such true or false)
  4. float (real number)


Study well every detail:
  • All instructions (all) end with a semicolon (;).
  • Only the variable string requires quotes (single or double quotes prefer for the moment, we will see why later) ...
  • The boolean is true, but without quotation marks, it has the opposite ... false.
  • The actual number is a point in Anglo-Saxon and not a comma ...
Feel free to customize these examples and the grind by changing the data to assimilate.
See You

Twitter Delicious Facebook Digg Stumbleupon Favorites More