quick php ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poe
    Confirmed User
    • Mar 2004
    • 455

    #1

    quick php ?

    Code:
    <? if( basename( $_SERVER['PHP_SELF'] ) hahahaha 'index.php' ) { ?>
    How do I set this line to work both index.php and index2.php?

    'index.php, index2.php' didn't work
  • poe
    Confirmed User
    • Mar 2004
    • 455

    #2
    hahhaah is = =

    Comment

    • Linguist
      Confirmed User
      • Apr 2004
      • 1706

      #3
      Do an or:
      if ((basename = index.php) || (basename = index2.php)) { blabla}

      replace = with = =
      315-310

      Comment

      • poe
        Confirmed User
        • Mar 2004
        • 455

        #4
        thanks, but that didn't work.

        Comment

        • poe
          Confirmed User
          • Mar 2004
          • 455

          #5
          anyone have any ideas?

          Comment

          • Linguist
            Confirmed User
            • Apr 2004
            • 1706

            #6
            Shoot me the relevant code to jeka at jeka.org, i'll fix it up for ya... or you can hit me up on ICQ
            315-310

            Comment

            • poe
              Confirmed User
              • Mar 2004
              • 455

              #7
              Originally posted by Sjelefall
              Shoot me the relevant code to jeka at jeka.org, i'll fix it up for ya... or you can hit me up on ICQ
              thanks! emailing you now!

              Comment

              • Baker Rd
                Confirmed User
                • Nov 2005
                • 647

                #8
                if (basename($_SERVER['PHP_SELF']) = 'index.php' || basename($_SERVER['PHP_SELF']) = 'index2.php') { }
                money talks and bullshit walks.

                Comment

                • ddfGandalf
                  Confirmed User
                  • Feb 2005
                  • 534

                  #9
                  still = =

                  Comment

                  Working...