file_get_contents( ) not working

Login to your server via ssh and type in the file, simply press “ctrl + w” and type “allow_url_fopen” and Return, most probably you will come to the explanation first, so repeat the search a couple of times. Now you can change the entry from allow_url_fopen=0 to allow_url_fopen=1 press “ctrl + x” and confirm the … Read more

Just to state the obvious for anyone viewing this discussion…. if you give any of your folders 777 permissions, you are allowing ANYONE to read, write and execute any file in that directory…. what this means is you have given ANYONE (any hacker or malicious person in the entire world) permission to upload ANY file, … Read more

Undefined variable: $_SESSION

Turned out there was some extra code in the AppModel that was messing things up: in beforeFind and afterFind: I don’t know why, but that was what the problem was. Removing those lines fixed the issue I was having.

CodeIgniter removing index.php from url

Try the following Open config.php and do following replaces to In some cases the default setting for uri_protocol does not work properly. Just replace by .htaccess Note: .htaccess code vary depending on hosting server. In some hosting server (e.g.: Godaddy) need to use an extra ? in the last line of above code. The following line will … Read more

How to output JavaScript with PHP

You should escape the JavaScript string delimiters inside the PHP string. You’re using double quotes for both PHP and JavaScript strings. Try like this instead: You have to escape quotes on both JavaScript and PHP when the string delimiter are the same as the quotes: Same in JavaScript: But because it’s very hard to read … Read more

Composer: Command Not Found

Your composer.phar command lacks the flag for executable, or it is not inside the path. The first problem can be fixed with chmod +x composer.phar, the second by calling it as ./composer.phar -v. You have to prefix executables that are not in the path with an explicit reference to the current path in Unix, in order to avoid going … Read more

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