Skip to content

Tag: php

PDO connect to .accdb on network

I have an access database which I would like to CRUD with PDO. When My database is stored on C:\wamp\www\test.accdb I can connect. However, the database I am interested in is stored on our office server, at \server1abc123test.accdb . server1 is mapped to drive z: on my computer. My code looks like this (verba…

PHP cURL error 58

Need some help understanding the ubiquitous cURL 58 error, which is due to, in this case, including a PEM file with the cURL request. My code can successfully open the .pem file (see fopen() call) but cURL complains that it cannot set the private key file. Trying to better understand if this something on the …

Converting KML to GeoJson

I’m having huge issues doing this so once again i come for help. I have this massive file which contains all the DMA’s for Nielson what i need to do with php somehow is parse through each and get the data from and the coordinates but they have to be outputted in this format anyone have any idea ho…

Message: cache_dir must be a directory

Hello people I have some problems with Zend Framework. I first got the following message: Message: Could not determine temp directory, please specify a cache_dir manually. I searched google and found this post: Zend Framework : Could not determine temp directory, please specify a cache_dir manually I read it …

Export CSV for Excel

I’m writing a CSV file in PHP using fputcsv($file, $data). It all works, however I can’t just open it in Excel but have to import it and specify the encoding and which delimiter to use (in a wizard). …

Why don’t large files download easily in Laravel?

My file (126 MB size, .exe) is giving me issues. I’m using the standard laravel download method. I tried increasing the memory but it still either says I have run out of memory, or I download a 0 KB size file. The documentation doesn’t mention anything about large file sizes. My code is Anything I…