by Muneer Shaheed 25 Feb
1 Comment
Good Day !!!
I am just keeping my leg in to Zend Framework.
Extending the art & spirit of PHP, Zend Framework is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase.
At the first step I faced several problems. Mainly the one was
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in C:\wamp\library\Zend\Controller\Dispatcher\Standard.php:241 Stack trace: #0 C:\wamp\library\Zend\Controller\Front.php(934):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #1 C:\wamp\www\test\zendTest3\html\index.php(6): Zend_Controller_Front->dispatch() #2 {main} thrown in C:\wamp\library\Zend\Controller\Dispatcher\Standard.php on line 241
This is what made me fedup on earlier step.
But with my trustful effort I managed to find out the reason why I am getting this error. It was mainly because of Path. The path to controllers directory. I guess it is because of the OS what I was using is Windows. Linux users might not get this problem. To overcome this problem, it is best practice to specify the path by calling current directory using the script as follows.
<?php
defined('APPLICATION_PATH')
or define('APPLICATION_PATH', dirname(__FILE__));
$frontController = Zend_Controller_Front::getInstance();
$frontController->setControllerDirectory(APPLICATION_PATH.'/controllers');
This is the best coding practice given by Zend.
Never forget the standards.
by Muneer Shaheed 28 Jan
22 Comments
Hi friends, tonight is the first day I am installing WAMP 2.0 in my fresh installation of Windows 7 beta. Installation of WAMP was normal and fine. No any problem detected.
OOOOoops!
WAMP server is not starting.. MySQL has been started. Apache got sucked. I was searching throught the whole web including WAMP forum. No benifit. I am putting my all inspection lens into my OS to find the person who is blocking my Apache from start. First I checked in services for any IIS instance. No services like that. Then firewall. No. It is completely open for inbound and outbound for my localhost.
I checked the event lot. I could find the following message in event log.
The Apache service named reported the following error:
>>> (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 .
Then who was it?
It was Skype which I installed first. There is a compatibility issue between Windows7 and Skype. I am getting the warning message while startup of skype each time. So my guess was ok.

Windows 7 warning over Skype
Just closed it. Everything works fine ! Thanks friends!!
Update :
Please read the 5th comment of me to find the final solution for running skype & wamp 2.0 on windows7 parallely.
http://www.qtf.com.qa
by Muneer Shaheed 27 Oct
3 Comments
If you are interested in this topic, I am sure you know about the vbulletin and tfSEO plugin. It is the famouse VBulletin forum software what I have installed. For the SEO part I had installed the tfSEO which was performing well and gave me a good result in a short term.
Recently, I was facing a terrible bandwidth problem with my forum hosting provider. It was shared hosting which is built on Apache 2. You know, rewriting url work with the help of Apache RewriteEngine which is built on mod_rewrite module. Eventually, I had to change my hosting to a VPS solution. Also I prefered the lighthttpd server as my webserver as it is not heavy and taking less server resourses. Unfortunately I found tfSEO is not supporting lighthttpd as lighthttpd url-rewrite is different and it doesnt have htaccess file support. Ran around several forums. There were no solutions. At the end I refer to lighthttpd documentation and had to built my own url-rewrite. I like to share what I did tfSEO get back into work and it might be useful for some one who can face this in future.
The replaced code of tfSEO from htaccess to lighthttpd url-rewrite
1
2
3
4
5
6
7
8
9
10
| url.rewrite-once = (
"^/forum/([^/]+)/([^/]+)-([0-9]+)\/newpost.html$" => "/forum/showthread.php?t=$3&goto=newpost",
"^/forum/([^/]+)/([^/]+)-([0-9]+)\/$" => "/forum/showthread.php?t=$3",
"^/forum/f([0-9]+)\/$" => "/forum/forumdisplay.php?f=$1",
"^/forum/f([0-9]+)\/([a-z]+)([0-9]+).html$" => "/forum/forumdisplay.php?f=$1&page=$3",
"^/forum/([^/]+)/([^/]+)-t([0-9]+)/page([0-9]+).html$" => "/forum/showthread.php?t=$3&page=$4",
"^/forum/([^/]+)/([^/]+)-t([0-9]+)/page([0-9]+).html(&page)=([0-9]+)$" => "/forum/showthread.php?t=$3&page=$4",
"^/forum/([^/]+)/([^/]+)-t([0-9]+)/$" => "/forum/showthread.php?t=$3",
"^/forum/f([^/]+)/([^/]+)-([0-9]+)\/post([0-9]+).html$" => "/forum/showpost.php?p=$4"
) |
so on. This will work to VBulletin version 3.6.x and tfSEO version 1.1.3 in httpd webserver running on LXAdmin under Hyper VM.