Monthly Archives: April 2012

Increase phpMyAdmin file import size

Description: phpMyAdmin allows by default a maximum upload size of 8Mb for importing a sql file.This can be sometimes too small. Solution: The maximum import size is stored in the php.ini file located in the PHP directory. Look for the … Continue reading

Posted in System | Tagged , , , | Leave a comment

XAMPP cannot start Apache server

Description: Cannot start Apache server from XAMPP Control Panel. Solution: First source of the problem is usually that the port 80 is in use by other applications. We can run “netstat” on command prompt line, to view which applications use … Continue reading

Posted in System | Tagged , , | Leave a comment

Save an array into database table

Description: How to save an Array variable as a regular database value? Solution: PHP offers the serialize() function, that creates a representation of the variable that can be stored everywhere. This can be used for other types of variables as … Continue reading

Posted in PhP, SQL | Tagged , , | Leave a comment

Ajax call forces redirect from HTTPS to HTTP return 302

Description: Calling an Ajax request from a HTTPS server redirects to the HTTP server causing a 302 redirect return message if the HTTP and HTTPS servers are on different IPs. Solution: Ajax calls through JavaScript will always redirect to HTTP. … Continue reading

Posted in PhP, Script | Tagged , | Leave a comment

Send emails with attachment in PHP

Description: How to send e-mails with attachments from a PHP script? Solution: The mail function of PHP supports also attachments. So, in creating the mail object we can add the attachment like this: $to = ‘’; $subject = ‘Hello world … Continue reading

Posted in PhP, Tools | Tagged , , , | Leave a comment

Transfer Outlook e-mails to another computer

Description: Microsoft Outlook stores all e-mails on the local hard-disk thus using the account on another computer involves also transferring the content data. Solution: Exporting from old account: File > Import and Export > Export to a file Importing to … Continue reading

Posted in System | Tagged | Leave a comment