plz help in dis code

Started on the old forum in April 2012 · view the original in the archive · old links redirect here

5 replies · 482 views · started 14 years ago · 1 min read

3 participants
something else Fellow · 2,296 posts #2

if they using full urls in there script if so do a string replacement on the full address to change it to ?page= so then the outcome would look like: ?page=2.html

then at the top of the page use a $page = $_GET['page']; and a if statement eg: if($page){ $url = "http://xyz.com/$page"; }else{ $url = "http://xyz.com"; }

slowy Senior · 357 posts #3

something else wrote: if they using full urls in there script if so do a string replacement on the full address to change it to ?page= so then the outcome would look like: ?page=2.html

then at the top of the page use a $page = $_GET['page']; and a if statement eg: if($page){ $url = "http://xyz.com/$page"; }else{ $url = "http://xyz.com"; }

bro i m very good in coding, plz o it briefly. here is the my index.php

<?php
$file=file_get_contents('http://abc.com/index.php'?'.$_SERVER['QUERY_STRING']);
echo $file;
echo '</body>
</html>';
icedroplet1987 Senior · 258 posts #4

hey slowly, as we met before too. you are good. but i dont think, you need to prove that friend:) hope you remember me.

something else Fellow · 2,296 posts #5
$page = $_GET['page'];
if($page){
 $url = "http://xyz.com/$page";
 }else{
 $url = "http://xyz.com";
 }
$file=file_get_contents($url);

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close