Uhh, it shouldn't give you a 404 error.....that's kind of weird. Jaded is right about your downloads error though.
Login |
Tutorial: page.php?page=blah / query strings / easy template tutorial (UPDATED)Tutorial: page.php?page=blah / query strings / easy template tutorial (UPDATED)Currently viewing this thread: 1 (0 members and 1 guests) Uhh, it shouldn't give you a 404 error.....that's kind of weird. Jaded is right about your downloads error though. opening in a dir above your current one may give basedir errors depending on server config, so watch out for that. ___________________ http://www.philbrodeur.com - Expert PHP Development and Tutorials MorpheusStatus: Offline!
I also bumped into a similar error even though the directory and the file all exist. If i type in the URL for the gallery directly (http://www.my-site.com/gallery) on the address bar, the gallery loads perfectly. But since I want it included in the site layout, the error comes up. By the way, the gallery is its own sub-folder I then tried putting in the direct URL (http://www.my-site.com/gallery) into the switch statement and even tried the direct linking from the host ( /home/my-site/public_html/gallery) but nothing seemed to work. The last resort I thought would do the trick was to have the gallery load inside an I-Frame but that didnt work either The error was: Warning: main(): stream does not support seeking in /home/mysite/public_html/index2.php on line 72
include ('./gallery/index.php'); ___________________ Travis Farrell m3thStatus: Offline!
just do this
___________________ <?php
I hoped you typed that on the fly because it was full of errors. Plus if you're checking the variable if it's a file, it's got an extension already, so you don't need to add it again.' EDIT: The way I was looking at it made it look like it was full of errors, un-neatness has weird effects on the eye. ___________________ Travis Farrell Last edited by Motorspin, September 21st, 2003 01:54 AM (Edited 1 times) Re: Tutorial: page.php?page=blah / query strings / easy template tutorial (UPDATED) Hi Ares, I'm using the method listed below here.
If a user types ../revised/ I would like it to go to --> ../revised/?studio ...which is the entrance home page. Q: Do I have to use else method? Thankx in advance, You mean if one goes with no query string? do something like if(!isset($_SERVER['QUERY_STRING'])) { on the page that revised/ goes to. You should use switch; its faster. I think I got a example in topic post. ___________________ http://www.philbrodeur.com - Expert PHP Development and Tutorials Hi Ares, No. I don't have studio.php file.
However, if you go here, without query string, partial page is displayed (since the query string includes the content). Regards, |
Copyright ©1999-2009 Neverside. All rights reserved.
Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach
NeverAPI generated this page in 0.0122 seconds.