Posts by salvimateus • 57 points
4 posts
-
1
votes1
answer249
viewsQ: Using a PHP class without instantiating it into a variable is the same thing as calling a function?
Declare the class this way without instantiating it into a variable: new ExampleNameClass( 'arg1', 'arg2' ); It would be the same as wearing a function? ExampleFunction('arg1', 'arg2'); Since I did…
-
1
votes0
answers40
viewsQ: Doubt about declaring a class with if(!class_exists) in PHP
I would like a help to better understand the logic of this situation below. A main file makes a include of another file that contains only one class. /main-file.php: require_once('/other-file.php');…
phpasked salvimateus 57 -
2
votes1
answer155
viewsQ: How to develop an Auto Text Expander with Javascript or jQuery?
I want to create multiple keywords to work as a shortcut to auto complete. "oi." daria "Olá Amigo" "ate." daria "Abraço e até mais" For example, I type in a textarea of my website the word "test."…
-
1
votes2
answers293
viewsQ: Does Zend Framework work with Nginx (without apache)?
I have a project developed in zf2 and currently use a shared hosting with Apache, but I will migrate to the VPS of Digital Ocean and I will configure the server with Nginx as it has better…