Skip to content

Instantly share code, notes, and snippets.

View cholthi's full-sized avatar

cholthipaul cholthi

View GitHub Profile
@cholthi
cholthi / playsms-web-api.md
Last active November 15, 2024 11:06 — forked from tomysmile/playsms-web-api.md
JunubSMS: WebServices API

WEBSERVICES

This document explains about junubSMS webservices protocol.

junubSMS API version 1.4.5

Access

Webservices URL:

@cholthi
cholthi / update.sh
Created December 11, 2023 10:44 — forked from UbuntuEvangelist/update.sh
Kannel 1.4.5 with OpenSMPP and SQLBox Installation Script for Ubuntu 18.04
#!/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
@cholthi
cholthi / update.sh
Last active December 11, 2023 10:44 — forked from UbuntuEvangelist/update.sh
Kannel 1.4.5 with OpenSMPP and SQLBox Installation Script for Ubuntu 18.04
#!/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
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.'));