This document explains about junubSMS webservices protocol.
junubSMS API version 1.4.5
Webservices URL:
#!/bin/sh | |
apt-get update | |
apt-get install mysql-server | |
wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz | |
tar -xvf bison-1.28.tar.gz | |
rm bison-1.28.tar.gz | |
cd bison-1.28 | |
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/ | |
make |
#!/bin/sh | |
apt-get update | |
apt-get install mysql-server | |
wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz | |
tar -xvf bison-1.28.tar.gz | |
rm bison-1.28.tar.gz | |
cd bison-1.28 | |
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/ | |
make |
//Hello Jiep, | |
// Your code in the email is not looking ok, first you're mixing the APIs. | |
// There are two types of php Mysql apis ;1- the old `mysql_*` functions, 2- the `Mysqli` extension. is OOP api. | |
## Mysql_* functions | |
$db = mysql_connect($host ,$username , $password); // returns a database resource type | |
# example | |
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); // password is optional |
Getting started:
Related tutorials:
public function delete($id = null) | |
{ | |
use \Cake\Filesystem\File; | |
$this->request->allowMethod(['post', 'delete']); | |
$website = $this->Websites->get($id); | |
debug($website->image); | |
if ($this->Websites->delete($website)) { | |
$image = new File($website)->delete(); | |
$this->Flash->success(__('The website has been deleted.')); | |