Jump to content


Photo

Hello, I am New, And I have Some Q's


  • Please log in to reply
5 replies to this topic

#1 dowg.nate@gmail.com

dowg.nate@gmail.com
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 March 2006 - 04:26 AM

Okay, as the title said, I am new. I just have a couple of questions.

My main purpose for PHP with be for people being able to sign up for accounts on my website.

I am using www.addyour.net as a server. And [a href=\"http://www.freewebs.com\" target=\"_blank\"]www.freewebs.com[/a] as a web host. I see some sites sometimes end with .php. How do I make this happen, or do I need to.

With the server I am using, I am unsure about how to enable my pages on the server. (Mine is [a href=\"http://www.wettire.itsmyland.com\" target=\"_blank\"]www.wettire.itsmyland.com[/a]) What I am trying to figure out, how do I get the php codes to go to that certian page with the php codes on it.

For Example
<html><head>
<title>Login</title>
</head><body>
<h1>Please log in below:</h1>
<p><form action="login.php" method="post">Username: <input type="text" name="user" size="20"><br />
Password: <input type="password" name="pass" size="20"></form></p>
</body></html>

How do I get login.php to go to that certian page. Is it as easy as putting in the website URL?

I was also confused on what pages of to be of php format. And for [a href=\"http://www.freewebs.com\" target=\"_blank\"]freewebs.com[/a], how do I make those pages .php.

Thank-you
--Nate
[a href=\"mailto:dowg.nate@gmail.com\"]dowg.nate@gmail.com[/a]

#2 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 11 March 2006 - 04:33 AM

Question 1:

Do you know if you webserver is PHP enabled?

If not, you don't run PHP. Period.



#3 .-INSANE-.

.-INSANE-.
  • Members
  • PipPip
  • Member
  • 29 posts

Posted 11 March 2006 - 04:46 AM

and if your server can run PHP then you ok and i dont really understand you question but what i think you want is where do u put the login script well all you need to do is search on this site and youll find it trust me

#4 dowg.nate@gmail.com

dowg.nate@gmail.com
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 March 2006 - 05:38 AM

What file do I put my pages in. eg = Shell, HTML, Text?


And 1 more question, how do I know that my page is a php? such as www.example.com/join/php

#5 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 11 March 2006 - 06:05 AM

Whoa!
Back the truck up!

Let me do some 'splaining for you...

First,

Your webserver should have a default document name that it will display automatically whenever someone goes to your site... Actually, usually several name.

For example,

my server looks for index.html
if it does not find it then
index.php
then
whatever....

If it doesn't find one on the list, you get page not found... even if you have other files there...

So...

You need to find out what your default doc name/names are...

Then, if it's not a PHP name, and you wish to run PHP (assuming you're on a PHP enabled server), then you will have to forward the user to your .PHP page.

Now you are ready to start building your script...

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 11 March 2006 - 05:18 PM

Wants to Learn are you hosted at freewebs.com? If you are then you cannot use php as it not available to you quotef from freewebs.com's FAQ's:

What about MySQL, MSACCESS, and PHP?
Unfortunately, Freewebs does not offer these functions.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users