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 Rewriting

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Mon Jan 07, 2008 4:19 pm    Post subject: PHP Rewriting Reply with quote

Ok, before any one say" OMG this is a programming section", know that PHP IS a PROGRAMMING language, used for Web Development. Smile.

Anywho, i need a tiny bit of help with PHP Url Rewriting.

What I mean by this is shown as an example below.

Code:

http://www.somewebsitename.com/index.php?action=1

would go to the following link without the user knowing the real link

http://www.somewebsitehere.com/ReamMeFile.php


The person browsing the page would never know the link was
"http://www.somewebsitehere.com/ReamMeFile.php" without viewing the file source.

Well, Thanks, and let me know if any one can point me in the correct direction.


P.S. New to PHP, I knoew some basics.
Thx in advance. + Rep for the those who help.

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine


Last edited by ZenX on Mon Jan 07, 2008 4:39 pm; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Mon Jan 07, 2008 4:29 pm    Post subject: Reply with quote

it doesnt go far from the lines of...
Code:
<html>
<head>
<?php
if($_GET["action"]=="1")
   {echo("<meta http-equiv='refresh' content='5;url=" + "http://www.somewebsitehere.com/ReamMeFile.php" + "' />")}
else... blah
?>
</head>
</html>


sorry, the last time i touched php was a year ago. you get the idea, though, right

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Mon Jan 07, 2008 4:37 pm    Post subject: Reply with quote

blland wrote:
it doesnt go far from the lines of...
Code:
<html>
<head>
<?php
if($_GET["action"]=="1")
   {echo("<meta http-equiv='refresh' content='5;url=" + "http://www.somewebsitehere.com/ReamMeFile.php" + "' />")}
else... blah
?>
</head>
</html>


sorry, the last time i touched php was a year ago. you get the idea, though, right


Hmm, there seems to be a syntax error.

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 4:38 pm    Post subject: Reply with quote

Well it's a long time ago I played around with Website-programming Very Happy

Well here's the way which I used:

First: Make a index.php and add this into it:
Code:
<?
switch ($_GET[YOURTITLE]) {   
 
case index:
@include("index.php");
break;

test:
@include("ReamMeFile.php");
break; 

}
?>


Then add this hyperlink:
Code:
<a href="index.php?YOURTITLE=test"> Click here, bitch :D</a>


Then it should show the ReamMeFile.php in the place where you put the php-code.

If it doesn't work. Tell me...it's a long time ago Very Happy
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Mon Jan 07, 2008 4:47 pm    Post subject: Reply with quote

rEakW0n wrote:
Well it's a long time ago I played around with Website-programming Very Happy

Well here's the way which I used:

First: Make a index.php and add this into it:
Code:
<?
switch ($_GET[YOURTITLE]) {   
 
case index:
@include("index.php");
break;

test:
@include("ReamMeFile.php");
break; 

}
?>


Then add this hyperlink:
Code:
<a href="index.php?YOURTITLE=test"> Click here, bitch :D</a>


Then it should show the ReamMeFile.php in the place where you put the php-code.

If it doesn't work. Tell me...it's a long time ago Very Happy


Well, I get no errors, however, when i load the page, it is showing as page can not be fund.

Oh yeah, you forgot the casein front of test: .

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Mon Jan 07, 2008 4:47 pm    Post subject: Reply with quote

ZenX wrote:
blland wrote:
it doesnt go far from the lines of...
Code:
<html>
<head>
<?php
if($_GET["action"]=="1")
   {echo("<meta http-equiv='refresh' content='5;url=" + "http://www.somewebsitehere.com/ReamMeFile.php" + "' />")}
else... blah
?>
</head>
</html>


sorry, the last time i touched php was a year ago. you get the idea, though, right


Hmm, there seems to be a syntax error.


exactly what I meant - haven't touched php since 2006! Very Happy
my concept is done by writing a meta refresh tag in the client html head. Now you can write your own version without a syntax error...

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 4:54 pm    Post subject: Reply with quote

Sorry I forgot something.
Here's the complete code:
http://download.lima-city.de/crackcheck/php-thing.rar

Well have fun D:


Last edited by Reak on Mon Jan 07, 2008 4:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Mon Jan 07, 2008 5:05 pm    Post subject: Reply with quote

rEakW0n wrote:
Sorry I forgot something.
Here's the complete code:
http://download.lima-city.de/crackcheck/php-thing.rar

Well have fun D:


Hmmm.
Ok, a minor issue.

When i click home and something else, all it does is remove the [welcome] board from the top of the page, and it just shows

Code:

home
something else


solution?

P.S. I didn't alter the file either.

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 5:17 pm    Post subject: Reply with quote

Well I uploaded the files there:
http://funnyx.fu.funpic.de/tesssst/
If I click "Home" it goes to the default page (where it's already is).
If I click on "Something else" it goes to "index.php?YOURTITLE=test" which will show "Hello this is MEEE" in the table.
Just remember it will show the file where the php-code is. And the code is in the table here.

Or do you mean something like this: ?
http://funnyx.fu.funpic.de/tesssssst/
Download:
http://download.lima-city.de/crackcheck/php-thing2.rar
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Mon Jan 07, 2008 5:21 pm    Post subject: Reply with quote

rEakW0n wrote:
Well I uploaded the files there:
http://funnyx.fu.funpic.de/tesssst/
If I click "Home" it goes to the default page (where it's already is).
If I click on "Something else" it goes to "index.php?YOURTITLE=test" which will show "Hello this is MEEE" in the table.
Just remember it will show the file where the php-code is. And the code is in the table here.

Or do you mean something like this: ?
http://funnyx.fu.funpic.de/tesssssst/
Download:
http://download.lima-city.de/crackcheck/php-thing2.rar


Lol, sorry.
My apologies.
It turns out my Visual php software was the issue (On the fixed files).

Thanks for the help you guys.
+rep

P.S.Works like a charm!

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
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