I’m using laravel and thus require the command line to run artisan commands. When doing so, php gives me the following errors: When checking “which php” it points to the right version (of zend server) as I’ve added that to my path variable. Any idea what can be done to solve this? Answ…
Tag: php
Laravel templates/controllers not updating on save
I’m running a Laravel 4 for a simple app on OS X. Basically, changes to controllers and templates don’t take effect for a long time after I save changes to those files. For example, I add a word to /app/views/index.blade.php, and don’t see any change when constantly refreshing my browser for…
How would I only update one composer dependency?
I expected that would only update one dependency, but instead of that it updates all. What am I missing? PS: this dependency is defined as “videlalvaro/php-amqplib”: “2.2.0” in composer.json PPS: the composer version used is 3da05c68f9561fa822c522b1815435ff990493ff 2013-10-02 14:25:06 …
MySQL syntax ERROR, I simply don’t see where
I am having a syntax error with an sql statement I am executing but for the life of me I can’t find any error. I have created my own database class with functionality to make prepared statements and execute them, I don’t think there is a problem with my implementation as I have never had any issue…
Error running script.php: Port 9000 is busy
I set php.ini and Debug config in phpstorm. Trying to debug php script outputs in phpstorm Event log with: end of php.ini: Debug port in pStorm is also set on 9000. netstat -na outputs with: What if I set to other port. eg setting it to 10001 seems to do the job. Or just how to make it work properly.
how to send image mailer using php mail function
i am trying to send html image mailer using php mail function on linux platform. There is one issue when i am trying to send simple html content then it successfully get delivered to its subscriber. …
PHP Check if date is past to a certain date given in a certain format
I have a php event’s calender which queries the database to get the dates. I display the event date using: and this display’s in this format: 2013-07-31 for example. Now, what I need to do is to check if this date is a past date to the current date. How can I do this? Answer You can compare the da…
Force WordPress to ignore the w url parameter
Say, I have a WordPress installation running at example.com and have the following url http://example.com/blah?w=100 Now, I want WordPress to ignore the w=100 part because, every time I pass a numeric argument to w, WordPress redirects me to the single page, I assume this has something to do with Attachments.…
PHP page is working locally, but not on the server
My PHP page is blank when I upload it to my server and navigate to it in a browser. On the welcome.php page: SOLVED. Permissions issue. The PHP file needed to be 644, not 666. Answer The problem: This is a silly Bluehost error. Typically related to file permissions. See here: http://www.bluehostforum.com/show…
correct way of saving dropdown in php
I am using 2 kinds of dropdowns. The Yes/No and one with multiple values. Either way I use this: or The value of the Yes/No I store as a bit (before as tinyint) in my mysql-db. The multiple-choice I store as int. I get the values out of my object $member and try to select the right value: This works