Here is my story about that. I am not sure about the heap, but correct me if there is something wrong. My question was: Why the multithreaded process does not StackOverflow?...
Did you see any output with that code? If didn't, there are some possibilities which make your result blank. Such as: 1. Curl error. 2. Redirection without response body and ...
#x86_64 #GCC Good day, sorry for a bit trivial question. C code: extern void test(); void my_function() { test(); } Result: my_function: xorl %eax, %eax ...
<?php class X implements ArrayAccess { private $container = []; public function offsetSet($key, $val) { $this->container[$key] = $val; } public function &offsetG...
You can also use it to substitute more complicated if else conditional like this if ($cond1) { return $val1; } else if ($cond2) { return $val2; } else if ($cond3) { ret...
<?php //PHP FUNCTION RETURN THE LENGTH OF STRING function my_strlen($word){ $i = 0; while(isset($word[$i])){ $i++; } return $i; } echo my_strlen("P...
Btw, what is atd? I think it can be prevented by nohup and &. I did not have any timeout problem with long execution by this one https://github.com/TeaInside/tea-inside-bot-s...
There are so many possibilities in this case. Can you verify that port 8000 is accessible for public? Maybe use telnet after activate the php websocket. php server.php & nets...
<?php define("BASEPATH", __DIR__); require __DIR__."/config.php"; require __DIR__."/src/autoload.php";
Try to debug the request. Let's verify the $_POST["register"] is exists. Put var_dump($_POST) in top of your form.php file. Like this. <?php var_dump($_POST); die; if(isset($_...
Yeah, I know that story. But why can't I call heap to memory allocated by mmap? mmap does allocate memory in that story.
Oh I see, you want to get the browser user agent, right? I have never used the getenv to get the browser user agent, I do not know that is the right way or not. But, you can...
Is this correct? SUB A,A,B MPY D,D,E ADD C,C,D DIV A,A,C MPY Y,Y,0 ADD Y,Y,A
Maybe that is a different code. So you could try to debug by put var_dump($products); die; before the foreach. Like this <?php var_dump($products); die; foreach($products['p...
Hmm maybe your API endpoint does not provide json format perfectly. Therefore json decode will be return null value. Try to access your API endpoint from browser http://local...
Oh right, you can use $$_GET["param1"]. That is just for error prevention when you write something like this. <?php ${"aaa"} = 123; echo $aaa; <?php $"aaa" = 123; // synt...
Try debug your code by put var_dump($kendaraans);die; before foreach statement and what is the output then?
Is sizeof(char) always 1 on any system?
Maybe like this? <?php $arr = json_decode(file_get_contents("php://input"), true); foreach($arr as $key => $value) { $$key = $value; } echo "username : "; echo $uname; ech...
<?php var_dump($argv); // array ... <?php function fx() { var_dump($argv); // undefined variable argv } fx(); <?php function fx() { var_dump($_SERVER['argv']); // array...