Skip to content

Tag: php

Laravel 5 Send Errors to Email

I am trying to figure out how I can send errors to my email in Laravel 5. I haven’t had much luck finding any good resources. There used to be good packages like: https://github.com/TheMonkeys/laravel-error-emailer That did this for you in Laravel 4. They have yet to release a Laravel5 update because of…

Get request domain using php

I have problem with getting domain name using HTTP_REFERER. The condition is like this: http://www.example.com send a curl post to my server. The things is, example.com does not send their url in curl_setopt(CURLOPT_REFERER). So is it possible on my server side to get their domain name ? Thanks a lot for help…

Issues creating / setting up Laravel Project (Laravel Newbie)

I’ve started playing around with Laravel and have run into problems almost immediately and wondered if anyone had the same issues. I’ve installed composer and tried setting up a new laravel project using composer create-project laravel/laravel –prefer-dist It looks like it starts to work the…

Netbeans PHPDoc local variable not working

I am trying to document my code more often and now I’m writing a class and want it to be fully documented. However, for some strange reason, local variable documentation (with PHPDoc of course) doesn’t work.. I got this: So when I type ‘the’ and press space, and go to my function in Ne…

heroku local does not find pdo_postgres driver

I am trying to use heroku local on mac to run a Symfony project. But unfortunately it does not find the postgresql driver… which is found when I run php app/console server:run Here is the resulting output. How can I solve this? Answer Did you see these ? http://www.somacon.com/p520.php http://www.unixme…

strtotime to get first start of this hour

I am using strtotime(“first day of this month”, time()); to get the start of the current month, strtotime(“midnight”, time()); to get the start of the current day. Now I want to get the start of the current hour. strtotime(“last hour”, time()); gives me the current hour, mi…

� character from ldap

i am getting some strange characters form ldap server when i search some user info.if value contains turkish characters like ‘ç’ it replaces to ‘�’.in this situatian i convert string to utf-8 than str_replace to fix it.My function is that; But sometimes that causes some problem , so i …