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…
Tag: php
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…
Laravel – Form validation error – argument 2 must be array
I’m working with Laravel and every time I submit my form it gives me this error: ErrorException in Factory.php line 91: Argument 2 passed to IlluminateValidationFactory::make() must be of the type array, null given, called in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/FormRequest.p…
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…
Can I merge two different wordpress themes and use it as one website?
Problem We are planning to create a small community directory website with our community business listings, events and some useful articles. No single WordPress theme is offering all 3 features in one theme. Thoughtful Solution We thought to buy one theme for listing, one for events and one for articles and s…
Warning: mysql_query(): Access denied for user ‘admin’@’localhost’ (using password: NO) [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 6 years ago. Improve this question It seems as though my PHP is trying to log in to the MySQL database w…
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 …