Tagged: php

[SOLVED] Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

July 14th, 2011 Permalink

While trying to run a single-file php script in my Fedora 15 installation, I got a very strange error:

While trying to run a single-file php script in my Fedora 15 installation, I got a very strange error: Continue Reading

[HOWTO] Compile Facebook hiphop-php in Fedora 15

June 29th, 2011 Permalink

HipHop for PHP is a source code transformer which transforms PHP code to C++ and compiles it with gcc/g++. I wanted to experiment with it and tried to install in on my PC with Fedora 15. Here is how I did it and how you can do it ( hopefully ). Please note that this [...]

HipHop for PHP is a source code transformer which transforms PHP code to C++ and compiles it with gcc/g++. I wanted to experiment with it and tried to install in on my PC with Fedora 15. Here is how I did it and how you can do it ( hopefully icon smile [HOWTO] Compile Facebook hiphop php in Fedora 15 ). Please note that this did not work and I will update the article soon.

Continue Reading

[HOWTO] Setup MySQL, Apache and PHP in Fedora 15

May 29th, 2011 Permalink

This is a simple guide to setup LAMP (Linux, Apache, MySQL and PHP). I am assuming you have Linux (Fedora 15) installed. The following commands will install the necessary packages to run Apache, MySQL and PHP.

This is a simple guide to setup LAMP (Linux, Apache, MySQL and PHP). I am assuming you have Linux (Fedora 15) installed. The following commands will install the necessary packages to run Apache, MySQL and PHP. Continue Reading

[HOWTO] Setup step debugging PHP in Netbeans on Windows with XAMPP

April 26th, 2011 Permalink

I am using Netbeans 6.9.1 on Windows 7 with XAMPP 1.7.4 installed. I wanted to enable step debugging for PHP like I do in my PC with Fedora (see here for Netbeans PHP step debugging for Fedora). To do that, I had to follow the following steps:

I am using Netbeans 6.9.1 on Windows 7 with XAMPP 1.7.4 installed. I wanted to enable step debugging for PHP like I do in my PC with Fedora (see here for Netbeans PHP step debugging for Fedora). To do that, I had to follow the following steps:

Continue Reading

[HOWTO] Insert widget inside content of CJuiTabs widget in Yii Framework

April 25th, 2011 Permalink

UPDATE: See the comment from “Mario De Weerd” below. Although it works in the same way, his technique seems more elegant.

UPDATE: See the comment from “Mario De Weerd” below. Although it works in the same way, his technique seems more elegant.

Continue Reading

[SOLVED] Warning: imagettftext() [function.imagettftext]: Invalid font filename in path\to\php\file.php on line NN

April 23rd, 2011 Permalink

I am running XAMPP 1.7.4 with PHP 5.3.5 on Windows 7. When using any text related GD library functions such as imagettftext(), I get the following error:

I am running XAMPP 1.7.4 with PHP 5.3.5 on Windows 7. When using any text related GD library functions such as imagettftext(), I get the following error: Continue Reading

[SOLVED] “417 – Expectation Failed” in PHP curl while submitting multi-part forms

April 14th, 2011 Permalink

I am using PHP Curl extension for a project which requires uploading file to a server I had no control over. However, I was getting HTTP Status 417 with error message Expectation Failed. I don’t know what this is supposed to do and why curl sends it, so I tried removing it by overriding it [...]

I am using PHP Curl extension for a project which requires uploading file to a server I had no control over. However, I was getting HTTP Status 417 with error message Expectation Failed. I don’t know what this is supposed to do and why curl sends it, so I tried removing it by overriding it with the following code: Continue Reading

[SOLVED] Selenium server not working in Netbeans 6.9.1

March 1st, 2011 Permalink

I am using Fedora Core 14 and have installed Selenium Module for PHP. I was not able to run PHPUnit tests on Yii Framework. I tried running Selenium server 1.0.1 and upgrade to 1.0.3 solved the problem.

I am using Fedora Core 14 and have installed Selenium Module for PHP. I was not able to run PHPUnit tests on Yii Framework. I tried running Selenium server 1.0.1 and upgrade to 1.0.3 solved the problem.

Continue Reading

PHP Error while running newly created Yii Application

February 27th, 2011 Permalink

If you are using PHP 5.3 and have created a new Yii! Framework 1.1 application, you will get the following error:

If you are using PHP 5.3 and have created a new Yii! Framework 1.1 application, you will get the following error: Continue Reading

[HOWTO] Install Selenium Module for PHP in Netbeans 7.0 beta

February 27th, 2011 Permalink

If you are using Netbeans 7.0 beta, the plugin list may not show Selenium Module for PHP. To install it, navigate to Tools>Plugins>Settings and click on Add. Then, in the name field, enter something like “Netbeans 6.9 beta” and in the URL field, enter the following URL:

If you are using Netbeans 7.0 beta, the plugin list may not show Selenium Module for PHP. To install it, navigate to Tools>Plugins>Settings and click on Add. Then, in the name field, enter something like “Netbeans 6.9 beta” and in the URL field, enter the following URL: Continue Reading