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

PHP Unset Session Variable

You can unset session variable using: session_unset – Frees all session variables (It is equal to using: $_SESSION = array(); for older deprecated code) unset($_SESSION[‘Products’]); – Unset only Products index in session variable. (Remember: You have to use like a function, not as you used) session_destroy — Destroys all data registered to a session To know the difference between using session_unset and session_destroy, … Read more

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