For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] DataObject getLinks() not working on web host









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] DataObject getLinks() not working on web host
Justin Patrin

2005-05-02, 8:57 pm

On 5/2/05, Larry Garfield <larry@garfieldtech.com> wrote:
> Justin Patrin wrote:
e[color=darkred]
>=20
>=20
> Yes in both cases. If there's a problem with the DataObject.ini file,
> wouldn't the factory method not work in the first place?


Well, you *are* getting that error in the debug output and that
usually means your path isn't set up right. Are you *sure* you set it
right?

>=20
>=20
>=20
> Because while copying and pasting stuff into the test script I made an
> error, apparently. :-) When I dropped the second block, though, there
> was no change either on my system or the web host.
>=20
> --
> Larry Garfield AIM: LOLG42
> larry@garfieldtech.com ICQ: 6817012
>=20
> "If nature has made any one thing less susceptible than all others of
> exclusive property, it is the action of the thinking power called an
> idea, which an individual may exclusively possess as long as he keeps it
> to himself; but the moment it is divulged, it forces itself into the
> possession of every one, and the receiver cannot dispossess himself of
> it." -- Thomas Jefferson
>=20
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20
>=20



--=20
Justin Patrin
Larry Garfield

2005-05-03, 3:58 am

Justin Patrin wrote:

>
> Well, you *are* getting that error in the debug output and that
> usually means your path isn't set up right. Are you *sure* you set it
> right?


On my local system, the test script is in:
/home/lgarfiel/public_html/gmdarchive/includes

That directory contains db_dataobject.ini and a directory DataObjects,
in which the DO classes are stored along with gmdarchive.ini and
gmdarchive.links.ini. db_dataobject.ini reads (modulo the SQL data here
not real, and it's word wrapping here):

database = mysql://user:passwd@localhost/dbname
schema_location =
"/home/lgarfiel/public_html/gmdarchive/includes/DataObjects"
class_location =
"/home/lgarfiel/public_html/gmdarchive/includes/DataObjects"
require_prefix = DataObjects/
class_prefix = DataObjects_

On the production server, I upload all of the above files verbatim. The
test script is now in:
/usr/www/users/stfleet/gmd/archive/includes

And I edit db_dataobject.ini to read (Ibid on DB data):

database = mysql://user:passwd@localhost/dbname
schema_location = "/usr/www/users/stfleet/gmd/archive/includes/DataObjects"
class_location = "/usr/www/users/stfleet/gmd/archive/includes/DataObjects"
require_prefix = DataObjects/
class_prefix = DataObjects_

That is all correct, isn't it?

--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012

"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an
idea, which an individual may exclusively possess as long as he keeps it
to himself; but the moment it is divulged, it forces itself into the
possession of every one, and the receiver cannot dispossess himself of
it." -- Thomas Jefferson
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com