Archive for the ‘PHP’ Category

Tip: How to detect with PHP if iPhone visits your site

Saturday, January 30, 2010 2:17 1 Comment

Currently I’m developing some websites which “can be visited from iPhone” [the customer say that], the big thing is: there are some javascripts functions to detect it but when you use it with jQuery this “lock” the effects.
The solution is so easy, you just need to use this PHP script:
PHP<5.3.0

if (ereg('iPhone',$_SERVER['HTTP_USER_AGENT']))
{
header("Location:/iphone.html");
}

PHP>=5.3.0

if (preg_match("/iPhone/",$_SERVER['HTTP_USER_AGENT']))
{
header("Location:iPhone.php");
}

Take Care: Is Important [...]

This was posted under category: Cómo, Mozilla, PHP, Programación, Tips, iPhone

Virtual Host con Apache y Windows 7

Tuesday, November 24, 2009 21:48 No Comments

Muchos saben que soy un AMANTE de PHP, que es mi lenguaje preferido para programar (sí, y eso que soy MSP). Hoy quisé puse a jugar con WordPress en local, pero no quiero mover la carpeta de mi servidor actual [tengo Apache e IIS andando en el PC]. El tema es que tengo que levantar [...]

This was posted under category: Apache, IIS, PHP, Windows 7

Fail en ShipmentOfFail.com

Tuesday, November 3, 2009 21:09 No Comments

FAIIILL!!!

This was posted under category: Fallos, PHP, web

INCREÍBLE: Sitio Infantil tiene el Área Admin sin protección

Tuesday, October 13, 2009 3:48 No Comments

[Actualizado, ya sacaron el sitio del aire... ]
Leí en un twitteo que cierto sitio web tenía a entera disposición del mundo el listado de correos de sus usuarios. Pero había algo peor, el sitio tiene TODA su área de administración disponible para acceder y modificarla…
Al principio no creí que esto podía suceder, pero simplemente cambié [...]

This was posted under category: Fallos, PHP, web