366 solutions found in php-dev
Page 17 of 19votes
I have a simple AJAX call, and the server will return either a JSON string with useful data or an error message string produced by the PHP function `mysql_error...
votes
I have changed all the php.ini parameters I know: `upload_max_filesize`, and `post_max_size`. Why am I still seeing 2MB? I'm using Zend Server CE on...
votes
I have a table with the following columns in a MySQL database [id, url] And the URLs are like: http://domain1.example/images/img1.jpg I wan...
votes
I have installed both php5.6 and php7.0 from PPA on Ubuntu according to this manual [http://lornajane.net/posts/2016/php-7-0-and-5-6-on-ubuntu][1] But I d...
votes
I have noticed that there are strange requests to my website trying to find phpmyadmin, like /phpmyadmin/ /pma/ etc. Now I have installed PMA on...
votes
I am trying to get a cronjob to pipe output into a dated file in a specified (folder) location. My crontab entry looks something like this: * * * * *...
votes
How do I enable the colors for output of CLI? The below one is, running on Ubuntu. [![enter image description here][1]][1] [1]: https://i.sstatic.net/Tnd00...
votes
I'm using FPM tool to create .deb package. This tool create before/after remove package from supported files. Unfortunatly the bash script generated by...
votes
<?php $filename = "xx.gif"; $handle = fopen($filename, "r"); $data = fread($handle, filesize($filename)); // $d...
votes
Example: file="123 hello" How can I edit the string `file` such that it only contains the numbers and the text part is removed? So,...
votes
I get this error when I try to access localhost/phpmyadmin: *Wrong permissions on configuration file, should not be world writable!* I have already chmod...
votes
I need to make my Ubuntu 16.04. Is there a way using the GUI or is the simplest way to do this by using terminal? I have already installed PHP 7.1, MariaDB....
votes
I have a file containing the following lines: <parameter name="PortMappingEnabled" access="readWrite" type="xsd:boolean&quo...
votes
I'm trying to run a `bash script` on my Ubuntu machine and it is giving me an error: > function not found To test, I created the following scri...
votes
I am trying to pull some json data from a remote server using `fromJSON`: > server <- 'http://111.111.000.00:3000' > streams <-...
votes
Consider the curl command below, is it possible to allow newline in JSON (without the minify) and execute directly in bash (Mac/Ubuntu) curl -0 -v -X POS...
votes
I am trying to see a log file using `tail -f` and want to exclude all lines containing the following strings: `Nopaging the limit is` and `keyword to remove...
votes
I use Ubuntu 16.04. When I want to git push origin master I get: error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received....
votes
How can I set up "curl" to permanently use a proxy server in the terminal?
votes
Apache is logging `PHP Fatal error: Call to undefined function json_decode()`. After some googling, it seems this problem is a result of not having the latest...