Skip to content

Instantly share code, notes, and snippets.

@ilessy
ilessy / Basic connection to SAP HANA from PHP
Created February 27, 2022 06:23 — forked from vdespa/Basic connection to SAP HANA from PHP
Basic connection to SAP HANA from PHP. This is a sample connection to a SAP HANA system. It includes a proper error messaging so if the connection will fail you should be able to get a proper error message.
<?php
/**
* Basic connection to SAP HANA from PHP
*
* This is a sample connection to a SAP HANA system. It includes a proper error messaging so if the connection will fail
* you should be able to get a proper error message.
*
* @license The MIT License (MIT)
* @author Valentin Despa <info[at]vdespa[dot]de>
* @version 1.0 / 04.12.2013
#phantomjs万达员工歌唱比赛刷票程序 by Lessy@镇江万达百货
var page = require('webpage').create();
setInterval(function() {
page.open('http://k.dagexing.com/music/a82352841555', function (status) {
page.open('http://k.dagexing.com/songaction?siid=a82352841555&version=1&action=5', function (status) {
page.clearCookies();
});