Ok, last question regarding search engine on my website - php

I have read the intro to the zend manual, and as far as I understand I have to install the framework on my server... And my webhosting provider says they don't support that, so it's not possible...
It must be installed in order for me to use it and implement a search function of my mysql records, right?
Thanks

The Zend Framework itself does not require any specific server side extensions or additional binaries other than PHP 5. You don't need your provider to install it, you should not have any problems just uploading the thing - or even just the Lucene related parts of it - and getting started. The ZF can be used in other PHP applications without it "taking over".
Zend Framework Requirements
Zend Framework installation

No, you can simply use the MySQL LIKE operator to perform a basic search (e.g. title contains "stackoverflow", etc...), or more preferably use the MyISAM storage engine that has fulltext search capabilities.
See the manual for more information about fulltext index and searches : http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html
But AFAIK, nothing prevents you from uploading the Zend Framework yourself, and use it as usual. The only thing is that you may not be able to write files out of your apache directory (which is required for a standard zend framework folder structure), so check this article on how to set ZF up on a shared hosting.

Yes but you dont need to install the entire framework, just the tedpendencies of Zend_Search_Lucene. But all you have to do to install is upload the files and make some include path adjustments, then require the nessecary files.

Related

How to check Zend_Http_Client is available on server

Sorry I'm not familiar with php and I have to send something via Zend_Http_Client. How I can check that feature is available on server, because at the moment I've only got error 500.
You need to check if ZF is available in your project libraries.
For Ubuntu, ZF should be in one of those:
/usr/share/zend/
/usr/share/php/
/usr/local/zend/
or in your project directory.
In ZF "Zend_Http_Client", means that in your library directory you should have this folder structure: (...)/Zend/Http/Client/
Zend_Http_Client is not a "feature", but a class from the Zend Framework library. In short is a set of classes that you can use as a whole or in parts to help you speed the development of your project. It offers solutions in a lot of common scenarios, and Zend_Http_Client is actually part of an interface that will help you work with HTTP requests.
Check the requirements for it here and how to install it here. The most common way is to add the library to the PHP include_path or to add it via composer to your project.

Drupal modules be used without Drupal

Problem, can I use Drupal modules in my own PHP application? ( without setting up Drupal ). I searched a bit, there seems to be .zip file for the module, init where there are .inc files.
Is it possible to use this without setting up Drupal ?
I need to configure Solr search, Drupal seems to have a search API and thought I could use it.
You can use the PHP solr library, instead of trying to hitting your brain on drupal modules files. With few extra code you can able to do indexing, searching ,etc. There is a good library https://code.google.com/p/solr-php-client/ .
There is a good tutorial on Solr installation and usage in PHP. http://www.ibm.com/developerworks/library/os-php-apachesolr/
You can not use Drupal modules anywhere outside from Drupal.
But, you can download the modules, and extract the main php functionality to make it work with your business requirements.
Some modules have also open frameworks that can help you.
Hope that this helps.

Is it possible to use Zend Framework on a platform other than ZendServer/Cloud

Title says it all really. The only thing I'd like to add is to say that after initial look at the paid versions of Zend Server, it looks like in terms of cost, I would be losing the advantages of not developing a web/cloud application on Microsoft's expensive Azure platform if I did choose to go with Zend. I like the look of the Zend Framework though and am considering using it on an open source LAMP stack. Or should I go with Symfony / CakePHP on LAMP to keep costs down?
The answer to your (actual, answerable) question is: Yes.
The framework is just a bunch of libraries (just like all frameworks); and you do the following:
Go to the download page.
Register (its free), and then download "Zend Framework Full Package".
Make sure the files are available to your application, by placing them in a directory to which the user that will execute your scripts (it is normally the same user that run the webserver, for example www-data).
Follow the get starting guide.
If you like build tools, you can also use composer to automatically download ZF2 for you, by following the instructions on this page.

Why Zend Framework has to be configured through include_path

Why do I have to configure an include_path when installing Zend Framework instead of just manually including? I've never done this before and can't really see the point, also I've spent some time trying to figure this out with no luck hence why I ask.
Actually I add Zend framework to the include path to be able to use Zend tool.
If you want to create a project structure and add controllers or models or even scripts using Zend Tool you will have to have Zend framework added to your include path.
Another reason you may want to ship your project without the library itself so that the end user doesn't update the framework version himself and break your code.
Also if you are working on different project at a time you may want to keep only one version of the framework shared between different projects. This is handy when you need to update your version of the framework without going through all projects every time.
You don't have to set your php include_path to include the ZF library you could just copy the whole ZEND directory into your applications Library directory and continue on.
But a lot of us are working on more then one project or don't want to have the library in our application so we add it to the php include_path so php and our application can find it.
Now if you are refering to the windows or linux path, those are required to use the ZF cli components ZF.bat and ZF.sh
When modifying the Include Path you can use Zend Framework without knowing the Full-Path of it. You can simply use require('Zend/Loader/Autoloader.php') and PHP will search in every include path.
For more information have a look at: http://php.net/manual/en/ini.core.php#ini.include-path

Zend framework installation - need clarification

I've seen lots of videos and instructions on how to install zend framework on wamp and other similiar local host environments. I've also seen lots of references, including here, that mention you don't need to 'install' zend, it just needs to be included in the php files to work.
As I think I understand it, installing zend on localhost environments will allow you to utilize certain tools that for example automate the creation of projects and gets the most out of the framework. I'm assuming that to then use these projects in a web host environment, you simply need to upload a specific project's files and ensure the zend files are in place and included in the directories.
Are my assumptions correct? I'm still trying to grasp the basics of this one and haven't found clarifications in my google searches.
Everything you wrote is correct. It helped me to think of Zend Framework as a library of components rather than as a program you need to install. As long as your application has access to that library of components, Zend Framework is installed. This doesn't address any of the configuration tasks you'll need in Bootstrap and/or application.ini, but should clear up installation.
Regarding the automated creation of projects and project elements (controllers, actions, etc.) this feature is available via Zend_Tool and is typically used only during development, so it shouldn't come into play once you've ported from your localhost.
Automated creation of the projects is far not the main feature of Zend.
The majority of the php frameworks are about providing the best infrastructure for complying to MVC design pattern, about object relational mapping, security enhancements etc.
And yes, the whole project tree is what you'd need to carry around for deployments.

Categories