Alex, have you use Zend framework on your Godaddy hosted website? From what I read you have and I have one big question about it. What I want to know is how do you setup the include_path? Where does it go and what do you put on the right side of the equals sign?
Hello, I usually use the
Hello, I usually use the following construction for including ZendFramework:
<?php
set_include_path('.' . PATH_SEPARATOR . dirname(__FILE__) . '/relative/path/to/zf');
require_once 'Zend/Loader.php';
spl_autoload_register(array('Zend_Loader', 'autoload'));
If ZF is in the same folder the above example may contain something like:
set_include_path('.' . PATH_SEPARATOR . dirname(__FILE__) . '/ZendFramework-1.0.0/library');
I usually avoid include_path in PHP.ini because of portability issues.
BTW, this topic is moved to PHP group.
Sincerely,
Alex
Thank you that really
Thank you that really helped! I am very knew to PHP and it is taking me a while to understanding every. Now if I could just find a really good MVC for PHP tutorial I would be set!
PHP MVC
May I recommend this one to you:
http://weierophinney.net/matthew/archives/137-BostonPHP-Framework-Presen...
This is a very good presentation from Matthew Weier O'Phinney, PHP MVC lead. Read the PDF file from his post. You can also listen the podcast.
Please help a newbie.
I used the construction shown on earlier posts on this thread to try to run an enclosed demo to ZF v1.0.0. I keep getting syntax errors, I wonder if I my server is running the wrong version of PHP.
Do you have any suggestions?
You can see the program output here.
This is the code:
--
David Said
PHP Version
It looks like you are using PHP4 instead of PHP5. Please check the version by calling phpinfo(); function from your code.
Sincerely,
Alex