need help with linking php on my site and some more :)

  • puKKa
  • Proficient
  • Proficient
  • User avatar
  • Posts: 274
  • Loc: Sweden

Post 3+ Months Ago

ok, so here is the code for my site:

http://keso.shacknet.nu/leekis/index2.php
Code: [ Select ]
<HTML>
<HEAD>
<TITLE>design2b</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="leekis.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (design2b.psd) -->
<TABLE BORDER=0 align="left" CELLPADDING=0 CELLSPACING=0>
    <TR>
        <TD COLSPAN=2 background="images/DesignHuppeOan2.jpg"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="234">
     <param name="movie" value="Other/LEEKIStoplogo.swf">
     <param name="quality" value="high">
     <embed src="Other/LEEKIStoplogo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="234"></embed>
   </object></TD>
        <TD width="100%" background="images/DesignHuppeOan.jpg"><img src="images/DesignHuppeOan.jpg" width="100%" height="234"></TD>
    </TR>
    <TR>
        
  <TD width="166" height="100%" align="left" valign="top" background="images/Designmeny.jpg"><p align="left"><img src="images/navigation.jpg" width="164" height="55" align="top"></p>
<p> - <a href="index.php?id=nyheter">Nyheter</a><br>
 - <a href="index.php?id=info">Info</a><br>
 - <a href="index.php?id=arkiv">Arkiv</a><br>
 - <a href="index.php?id=galleri">Galleri</a><br>
 - <a href="index.php?id=gb">G&auml;stbok</a><br>
 - <a href="index.php?id=medlemmar">Medlemmar</a><br>
 - <a href="index.php?id=krig">Krig/Kupper</a><br>
 - <a href="index.php?id=kontakt">Kontakt</a><br>
 - <a href="index.php?id=filer">Filer</a><br>
 - <a href="index.php?id=lanlan">lan.lan</a></p>
   <p align="left">
    <?php include "poll/polls.php";?>
   </p>
   <p align="left">- <a href="index.php?id=admin">Admin</a></p>
  </TD>
        
  <TD width="607" height="100%" background="images/Designbakgrund.jpg" style="background-repeat:no-repeat;background-color:#000">
   <br>
  <?php if ($_GET['id'] == "nyheter") {
    include "news.php";
    } elseif ($_GET['id'] == "info") {
    include "info.php";
    } elseif ($_GET['id'] == "arkiv") {
    include "arkiv.php";
    } elseif ($_GET['id'] == "galleri") {
    include "galleri.php";
    } elseif ($_GET['id'] == "gb") {
    include "gastbok.php";
    } elseif ($_GET['id'] == "medlemmar") {
    include "medlemmar.php";
    } elseif ($_GET['id'] == "krig") {
    include "krig.php";
    } elseif ($_GET['id'] == "kontakt") {
    include "kontakt.php";
    } elseif ($_GET['id'] == "filer") {
    include "filer.php";
    } elseif ($_GET['id'] == "lanlan") {
    include "lanlan.php";
    } elseif ($_GET['id'] == "admin") {
    include "login.php";
    }
    ?>
   </TD>
        <TD width="100%" height"100%">
            <IMG SRC="images/DesignHOan.gif" WIDTH=100% HEIGHT=100% ALT=""></TD>
    </TR>
    <TR>
        <TD COLSPAN=2>
            <IMG SRC="images/Designendofpage.jpg" WIDTH=773 HEIGHT=25 ALT=""></TD>
        <TD width="100%" background="images/DesignHNerOan.jpg"><img src="images/DesignHNerOan.jpg" width="100%" height="25"></TD>
    </TR>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
  1. <HTML>
  2. <HEAD>
  3. <TITLE>design2b</TITLE>
  4. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
  5. <link href="leekis.css" rel="stylesheet" type="text/css">
  6. </HEAD>
  7. <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
  8. <!-- ImageReady Slices (design2b.psd) -->
  9. <TABLE BORDER=0 align="left" CELLPADDING=0 CELLSPACING=0>
  10.     <TR>
  11.         <TD COLSPAN=2 background="images/DesignHuppeOan2.jpg"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="234">
  12.      <param name="movie" value="Other/LEEKIStoplogo.swf">
  13.      <param name="quality" value="high">
  14.      <embed src="Other/LEEKIStoplogo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="234"></embed>
  15.    </object></TD>
  16.         <TD width="100%" background="images/DesignHuppeOan.jpg"><img src="images/DesignHuppeOan.jpg" width="100%" height="234"></TD>
  17.     </TR>
  18.     <TR>
  19.         
  20.   <TD width="166" height="100%" align="left" valign="top" background="images/Designmeny.jpg"><p align="left"><img src="images/navigation.jpg" width="164" height="55" align="top"></p>
  21. <p> - <a href="index.php?id=nyheter">Nyheter</a><br>
  22.  - <a href="index.php?id=info">Info</a><br>
  23.  - <a href="index.php?id=arkiv">Arkiv</a><br>
  24.  - <a href="index.php?id=galleri">Galleri</a><br>
  25.  - <a href="index.php?id=gb">G&auml;stbok</a><br>
  26.  - <a href="index.php?id=medlemmar">Medlemmar</a><br>
  27.  - <a href="index.php?id=krig">Krig/Kupper</a><br>
  28.  - <a href="index.php?id=kontakt">Kontakt</a><br>
  29.  - <a href="index.php?id=filer">Filer</a><br>
  30.  - <a href="index.php?id=lanlan">lan.lan</a></p>
  31.    <p align="left">
  32.     <?php include "poll/polls.php";?>
  33.    </p>
  34.    <p align="left">- <a href="index.php?id=admin">Admin</a></p>
  35.   </TD>
  36.         
  37.   <TD width="607" height="100%" background="images/Designbakgrund.jpg" style="background-repeat:no-repeat;background-color:#000">
  38.    <br>
  39.   <?php if ($_GET['id'] == "nyheter") {
  40.     include "news.php";
  41.     } elseif ($_GET['id'] == "info") {
  42.     include "info.php";
  43.     } elseif ($_GET['id'] == "arkiv") {
  44.     include "arkiv.php";
  45.     } elseif ($_GET['id'] == "galleri") {
  46.     include "galleri.php";
  47.     } elseif ($_GET['id'] == "gb") {
  48.     include "gastbok.php";
  49.     } elseif ($_GET['id'] == "medlemmar") {
  50.     include "medlemmar.php";
  51.     } elseif ($_GET['id'] == "krig") {
  52.     include "krig.php";
  53.     } elseif ($_GET['id'] == "kontakt") {
  54.     include "kontakt.php";
  55.     } elseif ($_GET['id'] == "filer") {
  56.     include "filer.php";
  57.     } elseif ($_GET['id'] == "lanlan") {
  58.     include "lanlan.php";
  59.     } elseif ($_GET['id'] == "admin") {
  60.     include "login.php";
  61.     }
  62.     ?>
  63.    </TD>
  64.         <TD width="100%" height"100%">
  65.             <IMG SRC="images/DesignHOan.gif" WIDTH=100% HEIGHT=100% ALT=""></TD>
  66.     </TR>
  67.     <TR>
  68.         <TD COLSPAN=2>
  69.             <IMG SRC="images/Designendofpage.jpg" WIDTH=773 HEIGHT=25 ALT=""></TD>
  70.         <TD width="100%" background="images/DesignHNerOan.jpg"><img src="images/DesignHNerOan.jpg" width="100%" height="25"></TD>
  71.     </TR>
  72. </TABLE>
  73. <!-- End ImageReady Slices -->
  74. </BODY>
  75. </HTML>


1. I cant get the change page to work, It only jumps to the pages of my newscript even if some of the veriables like "medlemmar" for example isnt used but it still goes there, anyone who knows some about php and can help me?

2. Any good suggestions?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • puKKa
  • Proficient
  • Proficient
  • User avatar
  • Posts: 274
  • Loc: Sweden

Post 3+ Months Ago

updated wat iƤve fixed and what I need help with, I still cant get the linking to work, help here please..
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

404 Error - where is the page?
  • puKKa
  • Proficient
  • Proficient
  • User avatar
  • Posts: 274
  • Loc: Sweden

Post 3+ Months Ago

doh!
I moved it down a folder, sorry :O

http://keso.shacknet.nu/leekis/index2.php
  • puKKa
  • Proficient
  • Proficient
  • User avatar
  • Posts: 274
  • Loc: Sweden

Post 3+ Months Ago

ok, now I got most of the things to work. One problem left, how do I give permissions etc to files?

Code: [ Select ]
   2.  CHMOD FusionPoll's files to the specified permissions.


      CHMOD the following files to their corresponding CHMOD
      permissions:

      +------+
      | 0777 |
      +------+-----------+
      |-> All Folders
      |-> polls.php
      |-> config.php
      +------------------>
      +------+
      | 0755 |
      +------+-----------+
      |-> index.php
      |-> functions.php
      |-> installer.php
      |-> db.php
      +------------------>

      +------+
      | 0666 |
      +------+-----------+
      |-> banned.php
      |
      |  ALSO TO 0666
      |-> All the files inside the following folders:
      |
      |->/polls
      |->/ip
      |->/templates
      +------------------>
  1.    2.  CHMOD FusionPoll's files to the specified permissions.
  2.       CHMOD the following files to their corresponding CHMOD
  3.       permissions:
  4.       +------+
  5.       | 0777 |
  6.       +------+-----------+
  7.       |-> All Folders
  8.       |-> polls.php
  9.       |-> config.php
  10.       +------------------>
  11.       +------+
  12.       | 0755 |
  13.       +------+-----------+
  14.       |-> index.php
  15.       |-> functions.php
  16.       |-> installer.php
  17.       |-> db.php
  18.       +------------------>
  19.       +------+
  20.       | 0666 |
  21.       +------+-----------+
  22.       |-> banned.php
  23.       |
  24.       |  ALSO TO 0666
  25.       |-> All the files inside the following folders:
  26.       |
  27.       |->/polls
  28.       |->/ip
  29.       |->/templates
  30.       +------------------>
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

good for you! sorry i haven't been too much help here. but it's better you got most of it yourself. :D

use an ftp client for chmod command. it's the best/easiest way to set permissions.
  • puKKa
  • Proficient
  • Proficient
  • User avatar
  • Posts: 274
  • Loc: Sweden

Post 3+ Months Ago

huh? I use FTP_LEE_95, have had it since 6 years or so :)

I also have FileZilla and FlashFXP, how do i change the CHMOD?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Ive never used those FTP clients, but typically if you right click a file or directory on the server, most ftp programs give you some kind of option for CHMOD.

You could probably TELNET in if you have a shell account, and do it from there, but it's been so long since I've done that, I'd have to do some research to remember how.
  • Neo_Matrix
  • Newbie
  • Newbie
  • User avatar
  • Posts: 9

Post 3+ Months Ago

I use total commander for FTP, and If you got this perfect program, just open the folder where the files, or folder which you need to change ftp are, and tupe :
Quote:
chmod 777 filename


Tip : do not type chmod 0777, just 777 or 755, or what ever you need...

Poz.
  • puKKa
  • Proficient
  • Proficient
  • User avatar
  • Posts: 274
  • Loc: Sweden

Post 3+ Months Ago

thgaks, ill try that out when i get home again.
  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Posts: 774
  • Loc: Brisbane, Australia

Post 3+ Months Ago

with filezilla if you right-click on a file and choos properties you can set it.

If you are using windows's crappy FTP command, you can type "literal site chmod 755 file.cgi" or whatever.

(As you can probably guess from that, the FTP way to chmod something is through the SITE CHMOD instruction)

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 39 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.