Closed Thread Icon

Topic awaiting preservation: PHPLIB Pages that link to <a href="https://ozoneasylum.com/backlink?for=12119" title="Pages that link to Topic awaiting preservation: PHPLIB" rel="nofollow" >Topic awaiting preservation: PHPLIB\

 
Author Thread
Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

posted posted 03-16-2002 17:26

I read Mr. Peachy's tutorial on the guru's network about database abstraction using a library for PHP called PHPLIB,
http://www.gurusnetwork.com/tutorials/php/database_abstraction.html)


I downloaded PHPLIB and tried to install it, dispite my knowlege of windows instead of linux which I happen to be using I managed to unzip it

I was trying to followthe directions Mr. Peachy gave me in the tutorial until I realized that I don't really know where alot of this stuff is....


* Create a directory somewhere in your webroot and name it something appropriate. ?test? ?da test? ?testerino? whatever. I?ll leave the naming to your artistic abilities. Beneath this, create another directory, again name it what you will, I?d suggest ?phplib?
* Now, from the location you extracted PHPLIB to, go into the php sub-directory and copy the following files to your new phplib directory in your webroot. files: query_sql.inc, db_sybase.inc, db_usql.inc, db_pgsql.inc, db_oracle.inc, db_odbc.inc, db_oci8.inc, db_mysql.inc, db_mssql.inc, be_sql.inc, db_msql.inc, ct_sql.inc.


where's the php sub-directory? In linux I can't figure it out

Thanks,
Maskkkk

Maskkkk

Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

posted posted 03-16-2002 18:39

Ok I think I figured out where my PHP includes directory is.....

I was looking at a page with the phpinfo() function in it, and I came across a thing that said Include_path duh there it is, but on the other hand now that I've tried the tutorial it gives me the error

Fatal error: Failed opening required 'db_mysql.inc' (include_path='') in /var/www/html/mrpeachy/test1.php4 on line 3

So does this mean my include_path is not actually set?

-Mask



Maskkkk

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 03-17-2002 08:22

You should modify php.ini configuration file (it's located in the same folder as all other apahce configuration files - I've answered this question in your other post), and add folder where you extracted PHPLIB to include_path directive...


InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-18-2002 17:27

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 03-18-2002 17:47

I've started using this lib a while ago (pretty handy) There is also the prepend.php3 file in which there are some global vars that you must set to point to where you installed the php files. (I think the default is like /var/home/nathan/phplib or something like that.

PHPLIB recommends (rightfully so) putting the lib files outside your webroot and accessing them from their absolute server path in other words you should have your root directory something like this

cgi-bin
htdocs (or html sometimes these days)
php (in the same directory as your htdocs directory)

That way no one can browse your php files.

ie



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

[This message has been edited by bitdamaged (edited 03-18-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu