Verificarea unui request daca este Ajax

postat acum 9 luni de Stefanescu Mihai in categorie Snippets
if ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' )
{
    //request-ul este ajax
}

 

Sunt un tanar programator din Bucuresti ce lucreaza in PHP/Mysql (MySqli/PDO), Laravel, CodeIgniter, MySQL, PostgreSQL, Wordpress, HTML5/CSS3, Sass, Photoshop si multe altele.
Google+ Community Facebook Group

Comentariu postate de download minecraft for free la data de 15.05.2019
I used to be able to find good information from your blog articles.
Comentariu postate de download minecraft la data de 16.05.2019
Fantastic goods from you, man. I've understand your stuff previous to and you're just extremely excellent. I really like what you have acquired here, really like what you are saying and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read much more from you. This is actually a wonderful site.