directories? |
directories? |
![]()
Post
#1
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 354 Joined: May 2007 Member No: 526,982 ![]() |
how do i do links like these?
example: www.mysite.com/tutorials/photoshop/kerning.php how do i do the /tutorials/photoshop thing? i know they're folders you make on your ftp program (i use filezilla btw) but then when its uploaded to my site, my layout doesnt show? and i use php includes.. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 2,435 Joined: Feb 2007 Member No: 506,205 ![]() |
I had that same problem. I'm not sure if it's the best way to go around it, but I just copied the header and footer into the folder.
I think that worked. If it doesn't, try changing the "header.php" in your includes codes to /foldername/header.php Then if that doesn't work...I don't remember how I did that at all so just forgive me and wait for someone else. :) |
|
|
![]()
Post
#3
|
|
![]() Mel Blanc was allergic to carrots. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 6,371 Joined: Aug 2008 Member No: 676,291 ![]() |
If you're having problems with your includes, you could also try using the full URL to that include page. Like this:
CODE <?php include("http://www.mysite.com/path/to/header.php");?> If you're using a .CSS file for your stylesheet of your layout then you should also use the full URL to your .CSS file. Like this: CODE <link rel="stylesheet" href="http://www.mysite.com/path/to/stylesheet.css" type="text/css"> Try those and see if it works. ![]() |
|
|
![]()
Post
#4
|
|
![]() AIDS at RAVES. ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,386 Joined: Dec 2007 Member No: 598,878 ![]() |
If you're having problems with your includes, you could also try using the full URL to that include page. Like this: CODE <?php include("http://www.mysite.com/path/to/header.php");?> If you're using a .CSS file for your stylesheet of your layout then you should also use the full URL to your .CSS file. Like this: CODE <link rel="stylesheet" href="http://www.mysite.com/path/to/stylesheet.css" type="text/css"> Try those and see if it works. ![]() yea the first PHP include should work, but you do not need http://www.mysite.com you can just start from the /path :] |
|
|
![]()
Post
#5
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 354 Joined: May 2007 Member No: 526,982 ![]() |
didnt work. but i decided to try it like
<?php include("http://www.mysite.com/header.php");?> and that worked :D |
|
|
![]()
Post
#6
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 8,629 Joined: Jan 2007 Member No: 498,468 ![]() |
Topic Closed & Moved
|
|
|
![]() ![]() |