This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = mysqli_connect("localhost", "xxxx", "xxxx", "test"); | |
Header("Content-Tye: application/json; charset=UTF-8"); | |
if (mysqli_connect_errno()) { | |
echo json_encode(array("data"=>"Connection failed")); | |
exit(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = mysqli_connect("localhost", "xxxx", "xxxx", "test"); | |
Header("Content-Tye: application/json; charset=UTF-8"); | |
if (mysqli_connect_errno()) { | |
echo json_encode(array("data"=>"Connection failed")); | |
exit(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = mysqli_connect("localhost", "xxxx", "xxxx", "test"); | |
Header("Content-Tye: application/json; charset=UTF-8"); | |
if (mysqli_connect_errno()) { | |
echo json_encode(array("data"=>"Connection failed")); | |
exit(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib2 import urlopen | |
def send_alert(): | |
from smtplib import SMTP | |
from email.mime.text import MIMEText | |
msg = MIMEText('nuf said') | |
msg['Subject'] = 'inventi.lt is unreachable' | |
msg['From'] = '[email protected]' |
OlderNewer