Serena-chan Posted October 2, 2003 Posted October 2, 2003 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? Thanks Serena-chan Quote
DarqFlare Posted October 2, 2003 Posted October 2, 2003 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! Quote
TCH-Don Posted October 2, 2003 Posted October 2, 2003 Hi Serena-chan, Welcome to the family Yes you can use php anywhere on your site. if your page has an .php extension, as in index.php you can jump in and out of php coding in the page. If you need it there are some basic php tutorials in code central > scripting & programming if you need any help just post, thats what family is for. Quote
Serena-chan Posted October 2, 2003 Author Posted October 2, 2003 Thanks for the welcome... 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. 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... ~Serena-chan Quote
surefire Posted October 3, 2003 Posted October 3, 2003 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? Quote
Serena-chan Posted October 3, 2003 Author Posted October 3, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.