Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Send this topic | Print
Topic: works in xampp, not in t35  (Read 1549 times)
« on: January 23, 2005, 10:29:06 PM »
Junior Member
Neilzium Offline
Junior Member
Newbie

View Profile
*
Posts: 3



Ive got the following php script in my index.php:

                  if ($content != "")
                     { include("content/content".$content.".txt"); }
                else { include("content/content0.txt"); }    
          ?>

this is so that I can use index.php for my whole site, by just changing the content file. i have files named content0.txt to content6.txt, content0.txt being the default home page. One of these files will be displayed depending on the variable i put in the url which looks something like this:
 /index.php?content=(value from 0 to 6)
Ive tested this out on xampp, which runs an apache server, and it all works fine, but when I have uploaded it onto t35, it ignores the variable in the URL and shows content0.txt for every link.
My conclusion is that it doesnt read the variables in the URL, but i cant fugure out why. anyone know?
Report to moderator   Logged

 
« Reply #1 on: January 23, 2005, 11:15:49 PM »
CravenBW
Guest

Use $_GET to grab the variables. If you need more information visit the php manual at www.php.net
Report to moderator   Logged
« Reply #2 on: January 24, 2005, 02:04:54 AM »
Junior Member
Neilzium Offline
Junior Member
Newbie

View Profile
*
Posts: 3



thanks dude, that solved the problem
Report to moderator   Logged
 
Pages: [1]
Send this topic | Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC