Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


PHP Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Lyfa
The Lonely Man
Reputation: 12

Joined: 02 Nov 2008
Posts: 743

PostPosted: Sat Oct 31, 2009 8:51 pm    Post subject: PHP Help Reply with quote

I've always wondered, how could I get a link like http://forum.cheatengine.org/posting.php?mode=newtopic&f=38 with the http://forum.cheatengine.org/posting.php?mode=newtopic&f=38

I've never been able to figure it out :/

_________________
Back to top
View user's profile Send private message
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Sat Oct 31, 2009 10:29 pm    Post subject: Reply with quote

$_GET['x'];

Edit: Erm, a few topics below... http://forum.cheatengine.org/viewtopic.php?t=467631

_________________
Back to top
View user's profile Send private message MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Nov 01, 2009 6:35 am    Post subject: Reply with quote

localhost/test.php?Lang=EN;

<?php
echo $_GET['Lang'];
?>

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
deleted user 111213
Grandmaster Cheater
Reputation: 0

Joined: 09 Nov 2007
Posts: 714

PostPosted: Sun Nov 08, 2009 2:12 pm    Post subject: Reply with quote

here's a simple code I made a while back.

Code:
<?php
                  
                  $page = $_GET['p'];
                  if($page){
                  
                     $path = "./inc/" . $page . ".php";
                     
                     if(file_exists($path)){
                        include($path);
                     }else{
                        echo "Sorry, the page doesn't exist!";
                     }
                     
                     
                  }else{
                     echo "Welcome to my home page";
                  }
               
               ?>


The page will be the file name

so say if it was d.php

the path would be index.php?p=d

also you could do something like this

Code:
<?php

$l = $_GET['l'];
$_array = array('hi','hi2');

\* include whatever HTML/PHP you want in here as long as it doesn't include opening or closing the <html> tags. */

$l_array.=$l;

if($l == 'hi'){
   #include whatever file you want here
   include '';
}else{
   if($l == 'hi2'){
      include '';
   }
}

?>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites