• Hey all, due to some issues with false DMCA takedown requests, we've had to remove and censor a few things until the situation is resolved. Sorry for any inconvenience.
  • Be sure to join the discussion on our discord at: Discord.gg/serebii
  • If you're still waiting for the e-mail, be sure to check your junk/spam e-mail folders

Problems with PHP!

pika2000 said:
Please don't double post, it's against the rules.

Do you mean this link?
!!!Clique aqui para visualizar todas as fanfics disponíveis no MistyShrine!!!

All the pages open fine for me.
However it might cause confusion if you use frames and PHP includes at the same time...

Yes!!! Is this page, hehehehe... Is a little hard understand portuguese, no? But now, I change every links and the problems gone... IUPIIIIIIIIIIIIIII!!!

Thanks one more time guys ^^ !!! You help me very much... thanks thanks thanks thanks thanks thanks hehehehe!

My site is in php now!

PS: sorry for no aswering every posts... I don´t understand some words hehehehehe xP
 
Last edited:
Magma Leader Maxie said:
I would like to note that using $_GET to receive an id number probably isn't a good idea unless it's really necessary (pages from MySQL databases, in which case the request string at the end of the URL holds a parameter for a query).

People often get annoyed in my experience because of confusing and often hard to remeber URLs.

[noparse]http://www.something.com/index.php?item=42&bannertype=pink&atotallyrandomnumber=32472347209[/noparse]

^ This is terrible ;_;

However, if there's a necessary value to be taken into consideration...

[noparse]http://www.something.com/articles.php?id=67[/noparse]

^ This is ok, if for example "articles.php" is a script which allows users to post their articles and read others.
Sometimes those long URLs can work to our advantage as well. ;p

Can keep away some leechers.
 
Is it possible to make it so instead of having a link lead to a page that is in the same folder as the index and that the link could be called from many other folders(to keep things origanized for sites with many pages)?
 
RPG Maker said:
Is it possible to make it so instead of having a link lead to a page that is in the same folder as the index and that the link could be called from many other folders(to keep things origanized for sites with many pages)?

Would you mind rephrasing that? I'm not sure what you mean exactly.
 
I want to know how to make it so it looks for a page in a different folder rather then having to have that page in the same folder as the index page.
 
Last edited:
RPG Maker said:
The php below, I want to know how to make it so it looks for a page in a different folder rather then having to have that page in the same folder as the index page.

PHP:
<?php

$news = "noticias.php";
$error = "error.htm CHANGE THIS I GUESS";
$ext = ".htm";

if(!isset($_GET['page'])){
include $news;
}
elseif($_GET['page'] == "main") {
include $news;
}
elseif(isset($_GET['page']) && file_exists($_GET['page'].$ext)){
include $_GET['page'].$ext;
}
else{
include $error;
}

?>
?page=foldername/filename should work.
 
Yeah, it will.

<a href="?page=path/to/the/folder/and/then/the/file">This will learn to "file.$ext" in path/to/the/folder/and/then/the/</a>
 
Back
Top