View Full Version : where would this dir go on 4.0 platform

03-04-2010, 02:47 PM
my 3.0 site used this directory

1) where would I put it now on the 4.0 platform?
2) will I need to tell php to look for it there. if so, where do I set that?
3) where are the main php files located.


03-04-2010, 02:59 PM
What are you trying to do? Do you want to add something to $PATH? Remember in 4.0 you share the installation of PHP with all the other users. That being said look at if you have added any Pear Packages via the cool interface in cPanel then you should have a directory in your home that is called php and you can put files in there if you want to be able to call them with include or require.

03-04-2010, 03:14 PM
i'm trying to recover from my 3.0 site. didn't I share the php installation on 3.0 site as well?
okay, so I did the pear thing and now have a php directory.
So I'm going to try to put my lib php stuff in there. For example, we used
we use smarty.

03-04-2010, 05:32 PM
No you had your own installation of PHP running on 3.0 :) totally independent of others accounts. Putting your Smarty files should work in the php directory. I am a bit foggy on smarty but I think you include/require the main file for it then have access to it's functions, classes ect.

If you have any issues and I'll help you out.