A
A
alexzpua2015-09-01 23:19:31
PHP
alexzpua, 2015-09-01 23:19:31

Who should be given write permissions?

Good day.
Who writes to the sqlite database file? Apache? Php? Or someone else? To whom to issue the rights to record? :) (OS: CentOS)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Yakushenko, 2019-03-20
@kshnkvn

Because intval returns 0.

N
Ninazu, 2019-03-20
@Ninazu

You are confusing something. Everything works as it should))
sandbox.onlinephpfunctions.com/code/70be2193249cd7...

foreach([ 4, 6, 12, 34 ] as $delivery_id ){
    echo "{$delivery_id}; ";
    
    echo $delivery_id !== 0 ? "не равно 0; " : "равно 0; "; 
    echo intval($delivery_id) <= 0 ? 'меньше чем 0; ' : 'больше чем 0; ';
    
    if($delivery_id !== 0 && intval($delivery_id) <= 0){
      echo "отрицательное\n";
    }else{
      echo "положительное\n";
    }
}

R
Ruslan Fedoseev, 2015-09-01
@martin74ua

Well, on whose behalf the script is launched - he writes. Apache is standard. And then how do you set it up?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question