This blog is NOFOLLOW Free!

The magic space of the IT find what you seek or get lost

19Apr/103

Howto disable easy-adsenser if wptouch is active

WpTouch is a great plugin, if you want to optimize your wordpress blog for mobile content. It also comes with an integrated adsense option for the mobile content.
This is of course much better then the normal google ads.

But now comes the problem: In my blogs i often use easy-adsenser as the adsense mangement software. But if this is active, and you also activate the adsense option in WpTouch you will see ALL ads in the mobile view (the one from WpTouch and the one(s) from easy-adsenser). This can also be perhaps against the terms of google, depending how you setup easy-adsenser.

I looked a bit around in the code and found an easy we how to solve this problem.

11Mar/101

Php mysql connect ignores port for localhost

I just tried to connect with php to an other mysql server which runs on my localhost on an other port then the standard 3306. I used this syntax:

mysql_connect('localhost:3307', 'mysql_user', 'mysql_password');

But the damn php always connected to the default mysql server with port 3306.
After a lot of google searching I found the solution.

Tagged as: , Continue reading
26Jan/109

Fix propel-gen error: Error reading project file build-propel.xml

I had just installed propel-gen and phing with the pear method onto a new system. But after running the propel-gen I only get this error:

$ propel-gen $PWD
Buildfile: /usr/lib/php/data/propel_generator/pear-build.xml
[resolvepath] Resolved /devel/build/propel

propel-project-builder > projdircheckExists:

propel-project-builder > projdircheck:

propel-project-builder > configure:

 [echo] Loading project-specific props from /devel/build/propel/build.properties
 [property] Loading /devel/build/propel/build.properties

propel-project-builder > main:

 [phing] Calling Buildfile '/devel/build/propel/build-propel.xml' with target 'main'
 [phing] Error reading project file [wrapped: Unable to open /devel/build/propel/build-propel.xml for reading: ]

BUILD FINISHED

Total time: 0.1085 seconds

My Installed software versions:

propel-gen -> 1.4.1
phing      -> 2.4

And exactly this was the problem. It seems that the phing version 2.4 breaks some stuff. Because of this I have installed the old version, and now it works perfect.

$ pear uninstall -n phing/phing
$ pear install phing/phing-2.3.3
Tagged as: , 9 Comments