Laravel nested relationships?

I'm having trouble getting a very-nested relationship to work correctly in laravel. The wanted behaviour is as foll...

How to remove %EF%BB%BF in a PHP string?

I am trying to use the Microsoft Bing API. $data = file_get_contents("http://api.microsofttranslator.com/V2/Ajax.sv...

CakePHP redirect with status code 404?

For CakePHP errors I know that there exists CakeError and AppError solutions. But I need to make a redirection withi...

How to configure and send mail with Postfix using a PHPmailer??

I have a PHPmailer class, downloaded from an example. I configured and installed Postfix and mailutils, but I don't ...

How do I fix facebook circular redirect??

I did 4 landing pages on a website http://www.getyogi.fr/ and a php script randomize the differents landing pages. ...

Why is %E2%80%8F being added to my Youtube embed code??

I have a bunch of videos on Youtube which I embed using the same code. All of the videos worked fine until I upload...

Should I use a text file or a database for a PHP visitor counter??

I need to create a visitor counter for my websites and I'm wondering if it is better to store and read the informati...

how to solve your php server doesn't have mysql module loaded?

i am trying to connect my hosting php server to dreamweaver application but it says "solve your php server doesn't ...

Combining orWhere and where in Laravel?

I have an SQL query as follows: SELECT * FROM AS T INNER JOIN TABLE2 AS T2 ON T1.id =T2.tid WHERE (t1.userid= $user...

How to change the default Netbeans 8.0.2 project directory??

I installed XAMPP and then Netbeans and noticed that new PHP projects default to XAMPP's htdocs folder. Does anyone ...

How do I use fsockopen() to open a Telnet connection with a password??

I'd like to access a camera through it's Telnet capability. The problem is, it has Password-protection. This is no p...

Laravel Eloquent, assert that collection contains item?

How to assert (in PHPUnit test) that Eloquent collection contains an item? Something like this: $expected = factor...

How to programmatically start/stop FFMPEG stream transcoding?

I have an ip webcam which provides an MJPEG stream. I can successfully transcode and save that stream with ffmpeg un...

PHP::GD -> imagepng() don't save the file?

I got trouble by using GD Imagepng() on my server. My code work well on my local computer, create the file correctly...

Incorrect string encodings?

Note: I have read all of the related PHP, UTF-8, character encoding articles that are usually suggested, but my ques...