Log In · Register

 
directories?
miszxjojo
post Mar 28 2009, 11:34 PM
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..
 
 
Start new topic
Replies (1 - 5)
schizo
post Mar 28 2009, 11:40 PM
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. :)
 
Mikeplyts
post Mar 29 2009, 09:24 AM
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. _smile.gif
 
synatribe
post Mar 29 2009, 10:50 AM
Post #4


AIDS at RAVES.
******

Group: Official Designer
Posts: 2,386
Joined: Dec 2007
Member No: 598,878



QUOTE(Mikeplyts @ Mar 29 2009, 09:24 AM) *
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. _smile.gif

yea the first PHP include should work, but you do not need http://www.mysite.com
you can just start from the /path :]
 
miszxjojo
post Mar 30 2009, 04:18 PM
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
 
manny-the-dino
post Mar 30 2009, 09:22 PM
Post #6


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Topic Closed & Moved
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: