An Object-Relational Mapping and Data Persistence Solution for PHP
You are not logged in.
Hi (I'm french so sorry for my english),
I'm new to ezpdo but I just want to say that's it's really awesome !
Ok, so I've developed everything in local (easy-php), and everything works fine, but my problem is that I want to copy everything I've done online.
So I open my favorite ftp program, and just drag & drop all my project on a server that uses php5 (here are the info of php5 on the server http://php5info.celeonet.fr/).
I have, of course, edit the config.ini :
default_dsn = mysql://login:pass@mysql8.celeonet.fr/myDB
And online, nothing seems to work...I have just an error :
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in ezpdo_runtime.php on line 43.
Line 43 is : epManager::instance()->autoload($class_name);
I really don't understand what is going on. If someone can explain me or trying to help me it will be appreciable.
Thanks a lot !
Offline
my guess is that you need to remove the compiled file (by default, it is compiled.ezpdo) so ezpdo can recompile all the classes and generate the proper or mapping. also you may want to make sure your the source dir for the classes in your config file is also correct. -o
Offline
Thanks a lot for your answer.
I did what you told me but nothings changes. I have always the same error.
I delete the compiled file, and try to chmod 777 the rep.
If you have another idea it would be great :)
Thanks !
Offline
I had exactly the same problem until I realized I was using PHP 4...
"EZPDO requires PHP 5.0.4 or up with extensions tokenizer, xml, sipmlexml, sqlite, and mysql (optional) enabled. Except mysql (optional), all the extensions are enabled by default in PHP 5."
Offline
Yes,maybe it has something to do with jroumagnac idea and checking.Try to check if you are also using the require PHP 5.0.4 for EZPDO.
Offline