Skip to content
Advertisement

How to reset indexes in array_diff result?

I have two arrays: Array ( [0] => 2 [1] => 3 ) and Array ( [0] => 2 ). I want to get the value, which is not in second array. So I have used the array_diff function but my result will get …

Fatal error: Call to undefined function: imagecreate()

I’m trying to put some graphics on a web page and at my prototype at the computer it’s all working fine at the localhost. But now I uploaded the files to a server and I’m having a problem to plot some graphics. In my computer they are plotted, but on the server they are not. I’m getting this error Fatal

Convert PostgreSQL array to PHP array

I have trouble reading Postgresql arrays in PHP. I have tried explode(), but this breaks arrays containing commas in strings, and str_getcsv() but it’s also no good as PostgreSQL doesn’t quote the Japanese strings. Not working: Example: Answer If you have PostgreSQL 9.2 you can do something like this: The result will return the array as JSON Then on the

XDebug not working with xampp

I’m using (or trying to anyway) use the bundled XDebug with XAMPP 1.7.2. It comes bundled with Apache 2.2.12, PHP 5.3.0, XDebug 2.0.5 and Zend (not sure on version) This is a totally fresh install of XAMPP, the only thing I’ve added to php.ini (at xampp/php/php.ini) is: (this is only one of many different configs I’ve tried) But try as

Advertisement