PHP 5.4 Call-time pass-by-reference - Easy fix available??

Is there any way to easily fix this issue or do I really need to rewrite all the legacy code? PHP Fatal error: ...

login success page is not loading after authentication facebook sdk?

i am trying to get get user details from facebook using facebook sdk 5. login page is loading and asking for login w...

What is unexpected T_VARIABLE in PHP??

I get this PHP error: Parse error: syntax error, unexpected T_VARIABLE From this line: $list[$i][$docinfo['...

Laravel check if collection is empty?

I've got this in my Laravel webapp: @foreach($mentors as $mentor) @foreach($mentor->intern as $intern) ...

PHP - undefined offset: 0?

print_r($p->attachments) produces: Array ( [0] => stdClass Object ( [id] => ... ...

php file not found error on goDaddy hosting?

So I have uploaded a php file on my goDaddy hosting the file is in the public_html folder but whenever I am trying ...

Creating default object from empty value in PHP??

I see this error only after upgrading my PHP environment to PHP 5.4 and beyond. The error points to this line of cod...

Why is ë percent encoded to %EB but also to %C3%AB??

When I enter ë into a form on my web application, this is percent encoded by Google Chrome to %C3%AB. When I use P...

How to convert string to boolean php?

How can I convert string to boolean? $string = 'false'; $test_mode_mail = settype($string, 'boolean'); var_dump($...

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac?

I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run php -v I get this error:...

No Application Encryption Key Has Been Specified?

I'm new to Laravel and I'm trying to use the Artisan command... php artisan serve It displays... Laravel deve...

Why does 2e3 return 2000? Isn't 2 to the 3rd power equal to 8??

This code: $g = 2e3; echo $g; echo <br>; echo "var_dump g gives:<br>"; Displays: 2000 float(2000...

How to use wget in php??

I have this parameters to download a XML file: wget --http-user=user --http-password=pass http://www.example.com/fi...

Is SAJAX dead? What to replace with??

We use Sajax for adding small Ajax code to sites. After running into a problem and doing some digging, it seems the...