Right click on the easyphp icon –> configuration –> apache (this should open the httpd.conf in your easyphp apache directory)
Find the section labelled DocumentRootDirectory and overwrite with this:
# DocumentRootDirectory<Directory "C:/Users/your_username/Documents/GitHub/your_project/">
## Possible values for the Options directive are "None", "All",# or any combination of:# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews## Note that "MultiViews" must be named *explicitly* --- "Options All"# doesn't give it to you.## The Options directive is both complicated and important. Please see# http://httpd.apache.org/docs/2.4/mod/core.html#options# for more information.#OptionsIndexesFollowSymLinksIncludesExecCGI## AllowOverride controls what directives may be placed in .htaccess files.# It can be "All", "None", or any combination of the keywords:# Options FileInfo AuthConfig Limit#AllowOverrideAll## Controls who can get stuff from this server.#Requireall granted
</Directory>
$uploadfile='./'.basename($_FILES['file']['name']);if(move_uploaded_file($_FILES['file']['tmp_name'],$uploadfile)){echo"File was successfully uploaded.\n";}else{echo"There was an issue uploading the file.\n";}
If you’re looking for how to do a nested IFNULL, you probably need to be looking at how to use COALESCE instead. It returns the first non-null item in a list.