Implementation of the SOAP server - server.php
:
<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");
// model, which uses in web service functions as parameter
<?php | |
function tinker(...$args) { | |
// Because there is no way of knowing what variable names | |
// the caller of this function used with the php run-time, | |
// we have to get clever. My solution is to peek at the | |
// stack trace, open up the file that called "tinker()" | |
// and parse out any variable names, so I can load | |
// them in the tinker shell and preserve their names. |
<?php | |
function chain($object) | |
{ | |
return new class ($object) { | |
protected $lastReturn = null; | |
public function __construct($object) | |
{ | |
$this->wrapped = $object; |
<template> | |
<div> | |
<whoops-message v-if="failed"></whoops-message> | |
<div v-else> | |
<component :is="fetchedComponent" v-bind="$props" v-if="loadedHtml"/> | |
<slot v-else></slot> | |
</div> | |
</div> |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" | |
/> | |
<title> |
#API for single page app use
###addthis.layers.refresh()
I can see someone with a single page app doing one of two scenarios:
//always refresh on URL change
/* | |
Copyright (C) 2021 Pascal de Vink (Tweakers.net) | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
This library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
/** | |
* Continents and Countries MySQL Tables compiled from Wikipedia, Braintree Payments documentation | |
* and a couple other places I don't recall at the moment. This data is compatible with the Braintree | |
* Payment API as of Dec 2011 | |
* | |
* Compiled by Steve Kamerman, 2011 | |
*/ | |
SET FOREIGN_KEY_CHECKS=0; | |
-- ---------------------------- |