Is there a way to track Shoutcast streams in Google Analytics? So for example, each time someone listens to the stream, it records that as a pageview in Google Analytics? I suspect it might result in modifying the Shoutcast server code, but I’m wondering if anyone has done this before, or could point me…
Default to Laravel File cache if redis is down
In the spirit of “chaos monkey” I’m trying to ensure that a laravel application keeps going even when the services it depends on are down. It uses a DB for primary storage, and a redis cache. What I’d like to do is have it automatically fall back to the file cache if and when redis fai…
Warning: Shipping method required – OpenCart
Ran into this problem a while back. Been scouring the web, OpenCart forums, StackOverflow for weeks now trying to get this sorted. Basically I took Flat Shipping module and made a copy of it. Renamed …
Blade: escaping text and allowing new lines
I have a user-input text displayed on one of the pages. I want to allow new lines, though. How do I display the text, so it is escaped AND allows new lines? I used nl2br() and Blade’s tripple …
Laravel, how to ignore an accessor
I have a model with a custom accessor so I get that custom attribute, But now, in one case, I need to get only some fields, without this OrderContents one. But doing it this way, it returns me the OrderContents as well.. is there a way to not get that field? Thanks! Answer There’s no way to do it in
Exit PHP from the CLI OSX
First of all, I am an EXTREMELY newbie in the PHP world. So I wanted to run a PHP web site in OSX installing php liip. After that, I went to my terminal and I just type php (just to see what happends)…
Laravel PHP: multiple project run at the same time [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last month. Improve this question I want…
Difference between call flush() inside foreach loop or outside it, which one to use?
I’m having this doubt for a while but now is time to ask around it. See the code below and having a huge items in $someVar, for example 200 items: Both calls will do the same? meaning delete records from the DB? At performance level, which one is best to use? (Doctrine behaves as a memory killer sometim…
Dynamic variables binding in mysqli bind_param
When I try to below code it give me a warning I really don’t know why its happening I read a lot of same title questions in Stack Overflow but some has comma separated types or need more type but in my case I think its proper but why I am keep getting warnings? Answer
file_exists() not working codeigniter
I am working with codeigniter. I want to display images but if some image is not exist it should show image-not-found-medium.jpg which is dummy image.. below is my code <?php $…