PHP | <alebal web Blog> | Appunti di PHP, MySql, javascript, Css, HTML, HTML5 e altro...

Home PHP MySql Server Javascript GTA 5 Tristi storie Varie Open menu

PHP

First, Onesignal: https://onesignal.com, sign up and start building an app. You will also need Firebase https://firebase.google.com, OneSignal will tell you when to use it. The configuration of Onesignal with Firebase is easy, the mess begins when you get to having to put your hand on AndroidStudio, because as usual, in all the guides they always tell you things halfway. (On OneSignal DO NOT ACTIVATE that crap of external_id and e-mail verification, or

Innanzitutto, Onesignal: https://onesignal.com, iscriviti e inizia a creare un app. Ti servirà anche Firebase https://firebase.google.com, ti dirà OneSignal quando usarlo. La configurazione di Onesignal con Firebase è facile, il casino inizia quando arrivi a dover metter mano su AndroidStudio, perchè come al solito, in tutte le guide ti dicono sempre le cose a meta. (Su OneSignal NON ATTIVARE quella cagata della verifica

Questo affarino qui invia dei dati a un file php via ajax, e restituisce un risultato in un elemento (un div, uno span, un p, quello che vuoi...). function AjaxPhp(id_elemento, filephp, query, output_type='text') { document.getElementById(id_elemento).innerHTML="Wait..."; var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if

Already some time ago I had tried to load some links of my sites on reddit automatically with api, but they are breakers, they take you for spam and they ban you all the time. They ban you because as soon as you register you don't have your own subreddit, you have to publish it on someone else's subreddits (also because otherwise nobody would see your link, as soon as you register you don't have followers),

Già qualche tempo fa avevo provato a caricare alcuni link dei miei siti su reddit in automatico con le api, ma sono dei rompiballe, ti prendono per spam e ti bannano di continuo. Ti bannano perche appena registrato non hai una tua subreddit, devi pubblicare su quella di qualcun'altro (anche perché altrimenti il tuo link non lo vede nessuno, appena registrato non hai followers) e nelle subreddit

I struggled a bit, so I'll write it down before I forget. All the mess starts with an app and a token. To create the app, go here:

Ci ho bestemmiato un pò, quindi me lo scrivo prima di dimenticare. Tutto il casino comincia con un app e un token. Per creare l'app, vai qui: https://vk.com/apps?act=manage, creala STANDALONE. Per avere il

Come posso verificare se una richiesta (da un modulo, un altra pagina, un modulo contatti, ecc) proviene da una pagina interna al mio sito? Cosi: //verifico se la richiesta proviene da una pagina interna al mio sito if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != "") { if (strpos($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']) === false) { // Qualcosa non quadra: uscire dal programma, creare file di log, etc etc. echo "Sono accettai solo invii

This did not remember having done so ... Count the days of your life It is a game that counts the days from your date of birth and tells you when you do 10000, 2000 etc. At the time it was served to understand how it worked the

Questo non mi ricordavo proprio di averlo fatto... Count the days of your life è un giochino che conta i giorni dalla tua data di nascita e ti dice quando ne farai 10000, 2000 ecc. All'epoca mi era servito per