PHP Call to undefined function

This was a developer mistake – a misplaced ending brace, which made the above function a nested function. I see a lot of questions related to the undefined function error in SO. Let me note down this as an answer, in case someone else have the same issue with function scope. Things I tried to … Read more

PHP & Case Sensitivity 

Why is PHP partially case senstive? I can only speculate that this stems from very early versions, probably PHP/FI 2.0. The manual explicitely states: Keep in mind that PHP/FI function names are not case sensitive. Most user input, such as GET and POST parameters, has always been registered as global variables, back then. Treating these as case … Read more

In where shall I use isset() and !empty()

isset vs. !empty FTA: “isset() checks if a variable has a value including (False, 0 or empty string), but not NULL. Returns TRUE if var exists; FALSE otherwise. On the other hand the empty() function checks if the variable has an empty value empty string, 0, NULL or False. Returns FALSE if var has a … Read more

Back to previous page with header( “Location: ” ); in PHP

try: Note that this may not work with secure pages (HTTPS) and it’s a pretty bad idea overall as the header can be hijacked, sending the user to some other destination. The header may not even be sent by the browser. Ideally, you will want to either: Append the return address to the request as … Read more

Categories php

WordPress visual composer not loading

try this step You can upgrade Visual Composer by performing following steps: Please make sure main theme is activated while performing other steps Go to Plugins page in your WordPress Dashboard, locate Visual Composer in the list, deactivate it and delete it You will see message that required plugin is missing at the top of … Read more

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