Laravel 5 Class ‘Collective\Html\HtmlServiceProvider’ not found on AWS

When you update your composer it will check the providers. Because you haven’t installed laravelcollective/html yet he can’t find it and throws an error: So first require your packeges, then add them to the config file. You can also work with composer require laravelcollective/html, it will add it to the json file automatically. Then it doesn’t matter if … Read more

“Fatal error: Cannot redeclare function”

This errors says your function is already defined ; which can mean : you have the same function defined in two files or you have the same function defined in two places in the same file or the file in which your function is defined is included two times (so, it seems the function is … Read more

file_put_contents: Failed to open stream, no such file or directory

There is definitly a problem with the destination folder path. Your above error message says, it wants to put the contents to a file in the directory /files/grantapps/, which would be beyond your vhost, but somewhere in the system (see the leading absolute slash ) You should double check: Is the directory /home/username/public_html/files/grantapps/ really present. Contains your loop and … Read more

Fatal error: Call to undefined function money_format()

if you are using windows based system then you will not have this function available. The function money_format() is only defined if the system has strfmon capabilities. For example, Windows does not, so money_format() is undefined in Windows. (this has been pointed out by Mike W in comments as well) http://www.php.net/manual/en/function.money-format.php

Is Angularjs Clientside or Serverside or Both

It is purely client side. If server side how can we connect to databases. You either use a client side database or you get the data from the server using an appropriate protocol (typically this would be a web service accessed via Ajax). if not used in server side which one is better php or … Read more

Html encode in PHP

By encode, do you mean: Convert all applicable characters to HTML entities? htmlspecialchars or htmlentities You can also use strip_tags if you want to remove all HTML tags : strip_tags Note: this will NOT stop all XSS attacks

How to fix the session_register() deprecated issue?

Don’t use it. The description says: Register one or more global variables with the current session. Two things that came to my mind: Using global variables is not good anyway, find a way to avoid them. You can still set variables with $_SESSION[‘var’] = “value”. See also the warnings from the manual: If you want your script … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)