Friday, June 5, 2015

WEB PHP: How to know if I have php on my web server

Now I'm starting in web development world, I've just purchased the domain www.good-to-share.com and my first question was what language to use? Thanks to my friend Daniel Durand (almost the venezuelan GOD of php) I'm thinking seriously in use it to make some developments, so here my first question: Do I have php?

Here the code that answers this question:

<html>
  <head>
    <title>Check php Version on this server</title>
  </head>
  <body>

<?php

phpinfo();

?>
  </body>
</html>

Just create a file you can call version.php, place it on your website and type it on the url field: www.yourdomain.com/version.php

You'll know if you have it!

---------------------------------------

Ahora que estoy empezando en el mundo del desarrollo web, acabo de comprar el dominio www.good-to-share.com y mi primera pregunta era qué lenguaje usar? Gracias a mi amigo Daniel Durand (casi el DIOS venezolano de php) Estoy pensando seriamente en usarlo para desarrollar, asi que aquí mi primera pregunta: ¿Tengo php?

Aquí el código que responde a esta pregunta:

<html>
  <head>
    <title>Check php Version on this server</title>
  </head>
  <body>

<?php

phpinfo();

?>
  </body>
</html>

Basta con crear un archivo que puede llamarse version.php, colocarlo en su sitio web y escríba en el  url: www.yourdomain.com/version.php

Asi  sabrás si lo tienes!

By Jose Antonio Lagonell

No comments:

Post a Comment

Python - borrar lineas extra de archivos .txt en un directorio

 Aqui el codigo Python para borrar lineas extra en un archivo plano: import os path = "c:\\temp" path_new='c:\\temp\\CleanFile...