×
Jinxia Li
Is return-by-reference in PHP more efficient than the return statement to return a value in JavaScript?

My guess: In the use case of returning a value/reference from a function, I do feel return-by-reference in PHP is more efficient than return a value in JavaScript. […]

Read More
Using PHP Class

I found the class are convenient to use in the following way  : 1) It simplified building the Model Logical Component of our CMS application (which is designed […]

Read More
How to securely upload files with PHP?

Reference: https://docs.php.earth/security/uploading/

Read More
Heredoc Syntax Error

Typing a WHITE SPACE and then RETURN after a PHP heredoc will cause syntax error like below: You have to enter ‘return’ immediately after a PHP heredoc. Although […]

Read More
What to know to understand the behavior of PHP code?

1) PHP code runs in the server side machine by the web server invoking the PHP interpreter, which will translate PHP code to HTML code. 2) The web […]

Read More
How Apache communicate with PHP

Reference: How does PHP interface with Apache? https://stackoverflow.com/questions/2772400/how-does-php-interface-with-apache/2772929 How Apache communicate with PHP? https://stackoverflow.com/questions/53039948/how-apache-communicate-with-php/53040298 Run PHP in MAC https://stackoverflow.com/questions/19951457/double-click-and-run-the-php-script-on-mac/19951643

Read More