Manual of PHP

 
 
 

Web map

 
rim   rim
Carriedarrow frequent Questions

 

FAQ To print E-mail
  1. What is PHP? [answer]
  2. How does it work? [answer]
  3. What difference is there between Asp and PHP? [answer]
  4. Is the Asp language the same that that of PHP? [answer]
  5. How is PHP used? [answer]
  6. How much costs PHP? [answer]
  7. How is the code PHP included on a page html? [answer]
  8. How can I know if my servant supports the language PHP? [answer]
  9. How can I know all the functions that PHP puts at disposal? [answer]
  10. How does PHP settle? [answer]
  11. How does the PHP configuration change? [answer]
  12. Does PHP work in Windows? [answer]
  13. I have installed PHP, but not me cdompila the pages: why? [answer]
  14. In case of error: How can I come to the cause? [answer]
  15. Can I gain access to a database Access with PHP? [answer]
  16. To what databases can I gain access with PHP? [answer]
  17. Do versions precompiled for Linux/Unix exist? [answer]
  18. Why does he say to me that it does not manage to get connected with MySql? [answer]
  19. Me the query does not work: why? [answer]
  20. When I do a query in my database, it gives me an error of this type: "Warning: 0 is not to MySQL result index in myfile. PHP3 on line 12". In what have I been wrong? [answer]
  21. Does a document exist with all the standard errors distinguished by the users? [answer]
  22. When I try to load a page, it shows me the code PHP: what happens? [answer]
  23. Can be used the Session (variables of meeting) as in Asp? [answer]
  24. Is it possible to send an e-mail across a page in PHP? [answer]
  25. Can informations be filed in a disk file? [answer]
  26. How is it possible to write the content of a file on a page html? [answer]
  27. How is it possible to see the date on my pages? [answer]
  28. How can I know the value of a variable gone on from a FORM? [answer]
  29. How can be known the type of navigator and other informations about the users of my place? [answer]
  30. Do they exist scripts in PHP already prepared to be used? [answer]
1) PHP is a language HTML-embeeded that allows you to include a programming code on the pages html to produce a dynamic output as regards the requirements of the users.

2) The code in PHP included on a page html is executed in the servant before the page is sent to the user who asks for it. To do this it is necessary that in the servant he installs to himself the bundle PHP that proceeds to the compilation of the code.

3) From the point of view of the functioning, none. Both are server-script engine that they process the pages html that they contain a specific programming code.

4) No. While Asp uses an extension of Visual Basic (VBScript), the PHP computer language is a set of instructions and functions that have been invented by the developers. Nevertheless, some key functions / words have a syntax similar to many of the most used languages of last years (C, Perl, etc.).

5) To start, it is necessary to unload the bundle software of the place http://www.php.net and to install it later in the servant in whom he wants to occur, following the attached instructions.

6) PHP does not cost anything. Anyone can use it for his places, after General Public License (http://www.gnu.org) has read.

7) Is it sufficient to introduce the code in the tag: "<? PHP" and "?>". The code will be executed by the servant when the page is loaded.

8) It is enough to create a file that contains the line:

<? PHPinfo ();?>

Loading the page with the proper navigator they would have to do a series of informations about PHP. If it is not like that, it means that PHP is not present in the servant.

9) Available manuals exist free in the url http://www.php.net/docs.PHP3. Unfortunately, for the time being there do not exist yet translations of the manuals to Italian.

10) Following the instructions indicated in the files Readme or Readme.txt of the distribution of the program. The instructions are very simple, although the installation in ambience Windows needs that some files are copied manually.

11) All the PHP options they can settar across the file "PHP.ini" of the distribution of the program.

12) Of course. PHP works both with Windows and with Linux/Unix, unless the servant of installed web is not formed correctly, so that I compiled the code PHP.

13) Probably your web servant is not formed correctly to execute the code PHP. With Apache it is enough to include the line:

AddType application/x-httpd-PHP3.PHP3

in the gile httpd.conf, being careful of that the pages that contain the code have extension ".PHP3".
With the web servants of Windows there are several possibilities, for which we advise that to be executed well the notes of installation delivered with her and, in any case, the manual http.//www.php.net/manual.

14) To start, it tries to quarrel what is the line that has generated the error. Later, it consults the manual to know if the syntax that you have used is correct.
Finally, if it seems to you that you have discovered a bug in the program, you can compare your impression with the bugs distinguished by the users in the place http://bugs.PHP.net.

15) Yes. Normally the driver ODBC is used across the functions ODBC put at disposal by PHP. The important thing is to form the driver ODBC from the control panel, so that he gains access to the databases that want to be used.

16) It exists a series of functions put at disposal for the most important databases that exist on the market. PHP allows the interface to Oracle, MS Access, MySql, PostgreSql, Informix, Sybase and some more.

17) The binary versions are distributed in addition to the sources that have to be compiled. Also, in some places the rpm are at disposal also.

18) Care: if PHP wants to be used with MySql it is necessary to form PHP including the option:

- with-mysql

and it is necessary to form Apache again with the option:

--activate-module=src/modules/PHP3/libPHP3.a

for other problems of installation, the manual is quite precise.

19) Very probably it is a question of an error. To avoid annoying disadvantages, it is preferable to use the syntax:

mysql_query ($texto_query_sql) or die ("Error:". mysql_error ());

This way, in case of error, the query is suspended and the specific error is visualized.

20) In most of the cases, one is trying to gain access to the result of a query that, for any motive, is not fine. Control the query and possible errors of syntax in the SQL.

21) In the url http://www.php.net/manual available manuals are continuously updated and in that the comments of the users are included. If not, it is possible to leaf http://bugs.PHP.net.

22) Very probably the web servant has not been formed correctly to do that the pages that contain codes in PHP are compiled correctly.

23) Yes, PHP supports meetings of native form. http://www.php.net/manual/en/ref.session.PHP

24) Of course. In PHP exiete the order mail () that allows this operation.

25) PHP allows the files manipulation on the disc at all the levels: reading, writing, execution, etc. There are specific functions for every demand.

26) With the instruction "it includes ("/path/nomefile.txt");"

27) With the instruction: date ("d / m / and");

28) If a form spends the variable <unputt yam = "field" type = "text"> to another file, 'field' will be available in the variable $_GET [] or $_POST ['field] according to the form uncle.

29) With the system variables put at disposal by PHP, which: "PHPinfo (they can see with the instruction);"

30) Skylight at that yes, it looks here.

 

 
Front
Chapters of the Manual of PHP
Introduction to PHP
Variables
My First Script PHP
Operators in PHP
Structures of Control
Functions in PHP
Code inclusion
Counterfoils (array)
Chains of Characters
Classes
Dates
Entry and Exit
Operations with Files
The language SQL and PHP
Connection with MySQL
Meetings
Forms with PHP
To practise in line
List of practices in line
FAQ
Frequent questions
Codes PHP
List of Codes PHP
Forums
Forums PHP
Other Manuals
Manuals of other languages
 
   
 
 
MySpaceScripts.info - Sitemap - Contact us - Sitemap - Contact us - Sitemap - Contact us

Chasse Pologne aux cerfs , Holzhaus , used cars , Traffic Exchange , Repliche di Orologi , auschwitz tour , BlackBerry Software