Home
Help
Login
Register
LATEST NEWS:
What Features Do You Want To See On Paid Hosting?
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Helping Webmasters - Website Support and Webmaster Forum
Web Design & Developement
Programming
works in xampp, not in t35
Pages: [
1
]
« previous
next »
Send this topic
|
Print
Topic: works in xampp, not in t35 (Read 1549 times)
works in xampp, not in t35
« on: January 23, 2005, 10:29:06 PM »
Junior Member
Neilzium
Junior Member
Newbie
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
works in xampp, not in t35
« 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
works in xampp, not in t35
« Reply #2 on: January 24, 2005, 02:04:54 AM »
Junior Member
Neilzium
Junior Member
Newbie
Posts: 3
thanks dude, that solved the problem
Report to moderator
Logged
Pages: [
1
]
Send this topic
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General and Business Discussion
=> Introductions
=> Web Hosting Forum
=> Website Reviews
=> How To's & Tutorials
=> Web Hosting Blog
-----------------------------
T35 Hosting Support
-----------------------------
=> Announcements
=> Pre-Sales Inquiries
=> Free Hosting General Support
=> Free Hosting Login Support
=> Free Hosting Domain Support
=> Paid Hosting General Support
=> Paid Hosting cPanel & Fantastico Support
=> T35 Hosting Testimonials
=> T35 Hosting Suggestions
-----------------------------
Web Design & Developement
-----------------------------
=> Web Design / HTML
=> Programming
=> Graphic Design
=> Useful Resources
-----------------------------
Revenue & Traffic
-----------------------------
=> Ad Revenue
=> Search Engine Optimization
-----------------------------
Market Place
-----------------------------
=> Sites & Domains for Sale
=> Trade Services / Employment
=> Contests
=> Site Promotion
Powered by SMF
|
SMF © 2006-2008, Simple Machines LLC