
Search In
I was facing this issue of passing the array from php to the bash file. To pass array to bash file write the following lines of code.
Php Code:
$array= $countries_array; // Countries array from database
shell_exec('sh get_countries.sh '.join(' ',$
Cakephp's bake console is the fastest way to create models, view and controller. In order to create it first you need to create the table. In this case I am creating Users table:
CREATE TABLE users (
id INT UNSIGNED AU
We can generate all possible combinations of given string. Here I made a function get_string_combinations($str), this function will accept string as a parameter and will give you all possible combinations of that string. In this function, I have conv
mocha is a javascript test framework. It works well for both node.js and browser. It makes asynchronous testing simple and easy. Mocha test run serially. mocha is open source.
Installing mocha globally:
npm install -g mocha
With the above install
If we want to find the current coordinates of the element then we can easily do that with the help of jQuery. jQuery have offset() method which makes us to find the coordinates of the element which you want to find in respect to the document.
Create:
- Create method use for creating new record with given values of the record.
- Create method return created newly record with given values.
Syntax:
create(cr, uid, values, context=None)
Ex: Here method override for version 7.0:-
def c
Hello Reader's if you want to make the tracking system of your website, then the best way is to get the records of the IP address from user. Getting the IP of remote of PC can done on various ways. PHP let you do this by using $_S
First of all let us know what is symlink. Symlink creates a symbolic link to the existing target with the specified name link.
In PHP we passed Parameters in the following way:
target: Target of the link
link: The link name.
I want to make a symb
Hi,
To Create a Singleton class in swift follow steps below:
1- Add a Cocoa Class file subclass of NSObject named it as MySingleton and now write down the code as .
import UIKit
class MySingleton: NSObject {
static let sharedInstance
I want to stream .dat files from a file i created in python, i wrote the python code and it worked great but i can't write it in C++, i need help to write that code in C++, Thank you.
The python code is as following :
for ix in
