28, May 2012

Access_user Error messages!!! - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Access_user Error messages!!!
« previous next »
Pages: [1] Print

Author Topic: Access_user Error messages!!!  (Read 4175 times)
I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« on: Aug 13, 2006, 01:21:18 pm »

Here it goes my firs threat!!!!

I'm a newbie on php. I found the access user class script a very good way for what I want to do.

I have my pc setted up as localhost to run my developing web site.

The php and html are under the folder called web in another words:
c:/web/test ( that's the name that I gave to my website.

Now, I downloaded the access_user script and unzipped the files and placed the access_user_class and Db_config into c:/web/test/classes/access_user

I Created the db tables from the sql files that I downloaded.

The name of the DB is "test"

Running the register.php file, it gives me the following errors:

Warning: main(C:/web//classes/access_user/access_user_class.php): failed to open stream: No such file or directory in C:\web\test\register.php on line 2

Warning: main(): Failed opening 'C:/web//classes/access_user/access_user_class.php' for inclusion (include_path='.;c:\php4\pear') in C:\web\test\register.php on line 2

Fatal error: Cannot instantiate non-existent class: access_user in C:\web\test\register.php on line 4

Also I changed the paramentrs at db_config as follows:

define("DB_SERVER", "localhost");
define("DB_NAME", "Test");
define ("DB_USER", "js");
define ("DB_PASSWORD", "js");




Can somebody explain me or teach me the right way to place the files, and what must I shoul have done?

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Aug 13, 2006, 01:24:35 pm »

The errors you get are because you haven't included the files right.

The problem is with the paths. Check the documentation for include here, and let us know if you have any other issues.

BTW thread moved to the correct category Wink

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #2 on: Aug 13, 2006, 01:34:15 pm »

The errors you get are because you haven't included the files right.

The problem is with the paths. Check the documentation for include here, and let us know if you have any other issues.

BTW thread moved to the correct category Wink

I did set a  include statment on a index.php file:

<? include("register.php"); ?>
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Aug 13, 2006, 01:40:23 pm »

Is register.php in the same directory with index.php?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #4 on: Aug 13, 2006, 01:43:36 pm »

I deleted an identical thread you posted.

Please don't post the same thing twice. It is better for all of us.

Thanks Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #5 on: Aug 13, 2006, 01:53:15 pm »

Is register.php in the same directory with index.php?

Yes IS both at root directory: c:/web/test/*.php
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #6 on: Aug 13, 2006, 01:55:06 pm »

Try this :

<? include("./register.php"); ?>

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #7 on: Aug 13, 2006, 01:58:57 pm »

Try this :

<? include("./register.php"); ?>


still gives same messages


Warning: main(C:/web//classes/access_user/access_user_class.php): failed to open stream: No such file or directory in C:\web\test\register.php on line 2

Warning: main(): Failed opening 'C:/web//classes/access_user/access_user_class.php' for inclusion (include_path='.;c:\php4\pear') in C:\web\test\register.php on line 2

Fatal error: Cannot instantiate non-existent class: access_user in C:\web\test\register.php on line 4

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #8 on: Aug 13, 2006, 02:03:08 pm »

The problem is in the register.php file.

If you see the error message, the intepreter is trying to include a file with wrong path (web/classes, instead of web/test/classes)

You should fix that first.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #9 on: Aug 13, 2006, 02:15:35 pm »

The problem is in the register.php file.

If you see the error message, the intepreter is trying to include a file with wrong path (web/classes, instead of web/test/classes)

You should fix that first.

I thought about that and I tried the several options on cjhanging on the register file

include($_SERVER['DOCUMENT_ROOT']."/classes/access_user/access_user_class.php");     

for:

include($_SERVER['DOCUMENT_ROOT']."c://web/test/classes/access_user/access_user_class.php");     

and

include($_SERVER['DOCUMENT_ROOT']."web/test/classes/access_user/access_user_class.php");   

gives-me the following messages:


Warning: main(C:/web/web/test/classes/access_user/access_user_class.php): failed to open stream: No such file or directory in C:\web\test\register.php on line 2

Warning: main(): Failed opening 'C:/web/web/test/classes/access_user/access_user_class.php' for inclusion (include_path='.;c:\php4\pear') in C:\web\test\register.php on line 2

Fatal error: Cannot instantiate non-existent class: access_user in C:\web\testregister.php on line 4

As you can see duplicates   'C:/web/web/
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #10 on: Aug 13, 2006, 02:19:46 pm »

I think this is the right one :

include($_SERVER['DOCUMENT_ROOT'] . "/test/classes/access_user/access_user_class.php"); 

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #11 on: Aug 13, 2006, 02:33:15 pm »

I think this is the right one :

include($_SERVER['DOCUMENT_ROOT'] . "/test/classes/access_user/access_user_class.php"); 

Now the message changed to:

Warning: main(C:/web//classes/access_user/db_config.php): failed to open stream: No such file or directory in C:\web\0Testes\classes\access_user\access_user_class.php on line 27

Fatal error: main(): Failed opening required 'C:/web//classes/access_user/db_config.php' (include_path='.;c:\php4\pear') in C:\web\test\classes\access_user\access_user_class.php on line 27


and on line 27 have:

</style> 


HuhHuh
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #12 on: Aug 13, 2006, 02:37:55 pm »

I am not sure about this. Maybe you should wait for Olaf's answer.

But anyway this is a problem witht the paths that you are using. You should search in that field.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #13 on: Aug 13, 2006, 02:41:11 pm »

Thank you for everuthing. i'll wait for olaf.
I have trying all path's possiblities.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #14 on: Aug 13, 2006, 08:05:01 pm »

Hello Josil,

I see you have already some posts with Nick Wink

I think your problem is your testing server, "localhost" is your path "c:/web" this is also the document root.

Because you're a PHP beginner I suggest to place the folder "classes" in this root folder

that will be: "c:/web/classes/access_user/" start you test installation first.
But I think you will have more problems because you need to setup php for sending mails...

Because Nick told you all the right things you have to double check the name of the folders you're using...

I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #15 on: Aug 14, 2006, 12:34:00 am »

Hello Josil,

I see you have already some posts with Nick Wink

I think your problem is your testing server, "localhost" is your path "c:/web" this is also the document root.

Because you're a PHP beginner I suggest to place the folder "classes" in this root folder

that will be: "c:/web/classes/access_user/" start you test installation first.
But I think you will have more problems because you need to setup php for sending mails...

Because Nick told you all the right things you have to double check the name of the folders you're using...

Hi Olaf

Thank you for your advices.
I suggest to start from beginning.

I have my php 4.0 setted up as c:/web due the fact I do same alterations of a site that was made for my company. agimoura.com

Instead do it online I'l do on localhost e after everything work I'll send trough fillezilla to the hosting server.

Because of that I'm became reaaly intersted on learning more about programing on php.

therefore I made a directory called test to start learning.

I created on my MySql MyAdmin a data base called "test" as wellwere I made the tables that I've download from access user classes.

In the c:/web directory I have a folder called "test" wich I can rename it to any name after a website project is done.

I did follow your advice placing the folder "classes" in the c:/web directory and start working but, here it is what I got:
Warning: mysql_connect(): Access denied for user 'js'@'localhost' (using password: YES) in C:\web\classes\access_user\access_user_class.php on line 118

Please register:
Please fill in the following fields (fields with a * are required).

Login:  * (min. 6 chars.)
Password:  * (min. 4 chars.)
Confirm password:  *
Real name: 
E-mail:  *
Extra info: 


Login


On line 118 has related for sure to a set up of db_config.

that I probably have not done right.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #16 on: Aug 14, 2006, 08:21:38 am »

your problem is inside you localhost configuration, start testing (and learning) in the document root.

test is not a website only a folder inside localhost!

I love Pokemon
*
Posts: 13
96 credits
Members referred : 0


« Reply #17 on: Aug 14, 2006, 09:29:38 am »

your problem is inside you localhost configuration, start testing (and learning) in the document root.

test is not a website only a folder inside localhost!

Hi Olaf

I follow your instructions and realiza that the call to the database is server:localhost, user: root and password : root

I changed the db_config and works well.

Thanks for your support. I'll be in touch.

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3650
Tags : php html mysql databases hosting Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Access_user Error messages!!!
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 03:04:20 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.