Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Hi.

I've downloaded the wwwthreads PHP demo and am having problems getting it to work.

Firstly, the 'install' file tells me I need to edit $thispath to the location of my wwwthreads install, whilst 'main.inc.php' tells me I need to change it to the location of my PHP. Well, whatever, I tried both and it still didn't work smile What format should I be putting this in? For example, I set this to "/c:/program files/apache group/apache/htdocs/wwwthreads". Is that right?

When I run createtable.php (I've created a table, etc), I get the following errors:

Warning: Failed opening '/c:/progra~1/apache~1/apache/htdocs/wwwthreads/config.inc.php' for inclusion (include_path='') in main.inc.php on line 13

etc...

Looking at 'main.inc.php' again, line 13 is:

include("$thispath/config.inc.php");

Which suggests to me that my path is wrong. Well, it doesn't suggest, it's there in black and white :)

So, my question is: What format should my path be in, and what other variables do I absolutely have to change to make wwwthreads work?

Cheers!


Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
The $thispath variable needs to be set to whatever directory your *.inc.php files are in. So, if you are on a Windows machine and your inc files like config.inc.php files are in the path c:/program files/apache group/apache/htdocs/wwwthreads, then that is what you would put in there. Basically, whatever directory main.inc.php is in, that is what you would put in that variable.

As for other variables that are necessary, these would be the upper portion of the config.inc.php file. The variables dealign with the URL, database name/password, etc.


UBB.threads Developer
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Nice one. That initial '/' was messing things up.. doh!

Ok, so it's working now. I changed $config['userpass'] to '1', so that I could specify a password rather than have it emailed to me. As I don't have any sort of email sending facility setup on this box, emailing a password would be bad :)

This didn't work. Not a huge problem. I connected to the database manually and added a password, but anyone who doesn't know how to do this is going to be stuck before they even start.

Thanks for the help.


Joined: May 1999
Posts: 242
Coder
Coder
Offline
Joined: May 1999
Posts: 242
Change "1" to "on" and see if that helps. []/w3timages/icons/wink.gif[/]



- Six
[email protected]
mYth productions

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
That fixed it. Cheers!

BUT... why oh why oh why have on/off and 1/0? And in the same configuration file?! Madness!

<grumble>


Sponsored Links
Joined: Mar 2000
Posts: 84
Member
Member
Offline
Joined: Mar 2000
Posts: 84
Don't fret, we're looking at a uniform configuration file where all the trigger for on and off will be identical acros all variables =)

---------
Shalazar
www.charisma-carpenter.com

Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
After screwing up with the PERL install, I tried PHP....

What would this error message(s) mean on running createtable.php:
(what would a good installation script help a newbie like me :)

Thanks. Carl

-----

Warning: Failed opening '/usr/local/mysql/config.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/21/d24400447/htdocs/php/wwwthreads/main.inc.php on line 13

Warning: Failed opening '/usr/local/mysql/.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/21/d24400447/htdocs/php/wwwthreads/main.inc.php on line 14

Warning: Failed opening '/usr/local/mysql/theme.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/21/d24400447/htdocs/php/wwwthreads/main.inc.php on line 15

Warning: Failed opening '/usr/local/mysql/languages//generic.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/21/d24400447/htdocs/php/wwwthreads/main.inc.php on line 41

Fatal error: Cannot instantiate non-existent class: sql in /homepages/21/d24400447/htdocs/php/wwwthreads/main.inc.php on line 43

------------
Maybe this info also helps: http://www.colour-ize.de/admin22/php.info.php3

Edited by caymuc on 02/10/01 04:32 PM.


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Sounds like maybe you don't have the $thispath variable set right in main.inc.php. This variable needs to be set to the directory that main.inc.php resides in order for all of the other include files to be found.

-------------------
Scream
WWWThreads


UBB.threads Developer
Sally #208131 02/11/2001 11:18 AM
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
thanks, great support.
I got a simple error right there.
I could fix it and it works now.
Thanks very much!
As I said, as soon as I get it running, I'll buy it. That's what I did today.



Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)