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:
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:
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)
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:
Posts: 5799
46391 credits Members referred : 3
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>
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
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.
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:
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
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
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:
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