I need a bunch code references for the new version of php, mainly for templates cuz the directories changed and such. can someone help me?
I need a bunch code references for the new version of php, mainly for templates cuz the directories changed and such. can someone help me?
Last edited by _Xero_; 06-27-2006 at 04:45 PM.
www.php.net
Not sure what you mean by "the directories changed and such"...
Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries
If I have helped you through one of my posts, please click the
blue checkbox on the right below my avatar to add to my reputation.
well i keep getting errors on templates. the directory for templates was something like "HTML/template/it.php" or something like that, cant remember, but it's not working anymore ever since that new version was installed.
That would be the files on your server directly, not the PHP verison installed. Chech the files and make sure they extist!!!
Warning: require_once(HTML/Template/IT.php) [function.require-once]: failed to open stream: No such file or directory in /home/classx/public_html/template.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'HTML/Template/IT.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/classx/public_html/template.php on line 3
that is the errors im getting. it's not finding the files. im a noob with this stuff, so i tried out a template tutorial, and it told me to include HTML/Template/IT.php to the files or w/e, and it worked until a month or so later when a new version of php was installed. I had version 4 previously.
What is this for, a custom site or a CMS???Originally Posted by _Xero_
your file shoud be located at "/home/classx/public_html/html/Template/IT.php" make sure that the capitols are the same way or else that could be a problem "It's case sensitive"
I tried that but it did not work. IT.php is the definition for templates correct? I did a tutorial from phpfreaks and it said to include that file from that directory. It worked until I saw that a new version of php was installed. Though im on a new shared server now, but before i was on a different and it worked. So is there a template definition on the server I could use? I'd make my own, but i know nothing about creating such classes:P
Last edited by _Xero_; 07-07-2006 at 01:07 PM.
we don't even know what script your talking of.
PHP is a scripting language, not a script.
LoL I am aware of it being a scripting language. I'm just a noob with some of this technical stuff. With the older version 4.*, that tutorial on phpfreaks told me to include this: "HTML/Template/IT.php"
That's all it said, and it worked. I have made a template before. But now it is not working. I found the path to PERL which should have the definition in there, but I'm not sure what the file is. would it be in the HTML namespace: HTML::Template?
that file is not standard... We can't help you if we don't know what we are helping you with.
PERL is something totally different..