What are you trying to do, there are templates out there for most things that you can start with until
you get good at it.
You really are learning three things.
1. MySql
2. PHP
3. HTML in PHP throw in a little Java too.
Don't forget to set up an index.html file blank file in each folder and make your calls via a config.php file for security. So your logon and password are not in each page the calls the DB.
Tell us about your project and you might get a little shortcut help.
Thanks, griff and Bluzeman. This is for a course in digital libraries. I probably will build the actual library using a template, but for now, I need to get past this assignment, and since it is basic stuff, it is important.
I noticed that the Index.php file will not run in IE either -- all I get is the code -- and since I didn't write this file, I am guessing that I have a computer problem to fix, not a code-writing one. However, I am getting the WAMP5 logo when I go to http://localhost/
I downloaded and installed the Sourceforge WAMP distro. By default, apache installs to c:\program files\apache group\e\Apache2. The "wwwroot" is actually an htdocs folder. But when you install php, it want's to look for the httpd.conf in a folder off of the root directory, instead of program files. It actually ends up being in c:\program files\apache group\apache2\conf. I'm wondering if she just accepted the "suggested" location instead of browsing to the right one?
There is a folder that the install script creates called phpadmin which is under the ..~htdocs folder. That is where the test.php is placed.(C:\program files\apache group\apache2\htdocs\phpadmin). So if all goes well, you should be able to type http://localhost/phpadmin/test.php and see a page that looks like THIS
Recommended Posts
Bluzeman
OK, first question. After you downloaded the file, did you run it? And after you ran it, did you run setup for php, mysql, apache, and phpmyadmin?
If so, when you open IE and type in http://localhost, what happens?
Rick
Link to comment
Share on other sites
griffp
What are you trying to do, there are templates out there for most things that you can start with until
you get good at it.
You really are learning three things.
1. MySql
2. PHP
3. HTML in PHP throw in a little Java too.
Don't forget to set up an index.html file blank file in each folder and make your calls via a config.php file for security. So your logon and password are not in each page the calls the DB.
Tell us about your project and you might get a little shortcut help.
Link to comment
Share on other sites
shazdancer
Thanks, griff and Bluzeman. This is for a course in digital libraries. I probably will build the actual library using a template, but for now, I need to get past this assignment, and since it is basic stuff, it is important.
I noticed that the Index.php file will not run in IE either -- all I get is the code -- and since I didn't write this file, I am guessing that I have a computer problem to fix, not a code-writing one. However, I am getting the WAMP5 logo when I go to http://localhost/
Suggestions?
Thanks,
Shaz
Link to comment
Share on other sites
GT
I believe WAMP5 makes the Apache document root to be at c:\wamp\www.
If you put your PHP file in this directory, you should be able to execute it by pointing your browser at:
http://localhost/myfile.php
Link to comment
Share on other sites
Bluzeman
I downloaded and installed the Sourceforge WAMP distro. By default, apache installs to c:\program files\apache group\e\Apache2. The "wwwroot" is actually an htdocs folder. But when you install php, it want's to look for the httpd.conf in a folder off of the root directory, instead of program files. It actually ends up being in c:\program files\apache group\apache2\conf. I'm wondering if she just accepted the "suggested" location instead of browsing to the right one?
There is a folder that the install script creates called phpadmin which is under the ..~htdocs folder. That is where the test.php is placed.(C:\program files\apache group\apache2\htdocs\phpadmin). So if all goes well, you should be able to type http://localhost/phpadmin/test.php and see a page that looks like THIS
Rick
Link to comment
Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.