Jump to content
GreaseSpot Cafe

I am going to need some serious help writing PHP


shazdancer
 Share

Recommended Posts

I am taking a class in writing "dynamic" web pages in PHP, when I can barely write in HTML! (I went from writing beginner's Basic back in the '70s, and now this...aargh!)

Here's my first big problem.

I have a WAMP server downloaded, so I am trying to open my code in Windows in order to read what I made. I cannot get my code to read, so I am assuming I am saving it to the wrong place. Can anyone explain where I need to save the file? And can you explain it in "click on this, you will see that" mode, instead of describing the location?

Oy, I am determined to get this....

Link to comment
Share on other sites

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

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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...