Skip to main content

Posts

Programming languages or PHP Interview Questions

Programming languages that are popular by businesses ·         What’s the difference between the include () and require () functions? They both include a specific file but on require the process exits with a fatal error if the file can’t be included, while include statement may still pass and jump to the next step in the execution. ·         How can we get the IP address of the client? This question might show you how playful and creative the candidate is because there are many options.  $_SERVER["REMOTE_ADDR"];  is the easiest solution ·         What’s the difference between  unset()  and  unlink() unset()  sets a variable to “ undefined ” while  unlink()  deletes a file we pass to it from the file system. ·         What are the main error types in PHP and how...

Learn New Programming Languages Groovy, Rust, Elixir, Go

Groovy Groovy  is an  object-oriented scripting language  that was created by Apache  for the Java platform . It appeared first in 2003, however the first stable release (Groovy 1.0) came out only in 2007. Since then, it has been used by companies such as  Netflix, Linkedin, Airbus, and Mastercard . Groovy is  dynamically compiled to Java bytecode , therefore it  seamlessly integrates with any Java library . If you’ve already programmed in Java or any other language that  uses the curly-bracket syntax  you can  learn Groovy relatively quickly . As Groovy is  open-source , you can find the  source code on Github , or you can contribute to the project yourself if you want. Although Groovy is usually praised because it  increases developers’ productivity ,  access to the Grails Web Application Framework  can also be a good reason to give a closer look to it. Grails was initially called  “...

Advanced PHP

Advanced PHP This segment will concentrate on some progressed PHP points, which will engage the per user to make dynamic web pages. Superglobals  A  global variable  is a variable declared at the top of the script outside the function. This variable is available to the complete script. Superglobal variables are arrays built into PHP. These superglobal variables are populated automatically with useful elements, and they are available in any scope. A superglobal array can be accessed within a function or a method without using the global keyword. PHP Superglobals $_COOKIE – It contains values provided to the script via HTTP cookies. $_GET – It contains variables submitted to the script using HTTP get method.  $_POST – It contains variables submitted to the script using HTTP post method.  $_REQUEST – It is a combined array containing values from the $_GET, $_POST, and $_COOKIES superglobal arrays.  $...