Jump to content

Recommended Posts

Posted

Okay I was wondering can you use PHP on your subdomains withouth having to like do anything. I'm new to this whole database, php, of well I'm pretty much new to all of it, never owned my own webspace before. Very different, so yeah I'm a little confused in general. :) But anyways back to my original question.

 

If I wanted to use php on a subdomain but not my actual domain do I need to do anything special? Or just use the code and it will work? :dance:

 

 

Thanks

Serena-chan

Posted

For an example:

http://forum.eclipseprime.com/

 

Yes, indeed you can do everything on a subdomain that you can do on a regular one. A subdomain is actually just a folder under the root directory, then when the subdomain is accessed, the server knows that it is a folder under the root.

 

Enjoy PHPing in subdirectories!

Posted

Thanks for the welcome... :D

 

The rest of this most likely goes somewhere but I'm kind of new so yeah... ;)

 

Of course I'm like majorly stuck and I haven't found anything anywhere on any tutorials that will help me with this issue. Cause I was testing out using PHP for the first time and well it generally worked... except I lost my div layers on my index, which was essentailly my design for my main page. And I'm not sure why it happened or how to fix it? I haven't seen any tutorials that really talk about using Div layers with PHP... or maybe I'm just kind of dense. :lol:

 

If that isn't very clear um here are the links between the original and what I was trying for with the php...

 

Original: http://mywords.bitofhappiness.com/index2.html

 

PHP Attempt: http://mywords.bitofhappiness.com/index2test.php

 

The background and everything works fine, I just lost my div layers... So yeah I have no clue what I did wrong... :blink:

 

~Serena-chan

Posted

I must be missing something because I don't see any difference between the two pages. I'm using Mozilla Firebird.

 

Anyhow, php does the magic on the server side. The server reads the code and outputs html.

 

So if your code isn't messed up, there is no difference in the output your browser receives. If your page is different that the one you started with, then you've missed something in your code.

 

Maybe you already knew that, but a lot of people new to PHP think that the browser reads the php... it doesn't.

 

What were you trying to do... include() header and footer html?

Posted

Actually I think I might know what had happened... of course later I realized with the way my main page is designed right now I don't really need PHP on it. All the other pages of course having PHP would make my life so much easier. So in the I think I decided not to put the PHP on the main page and just use it on all the other pages. Since main will always be static execpt where I put the updates so there really isn't a reason for it...

 

But thanks for the reply, one of my had pointed out that I might have put the wrong number for the style sheet which is entirely something that I might have done. ;)

 

Thanks again though for the reply Thumbs Up

 

~Serena-chan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...