Jump to content

The basics and functions of a....


phpSensei

Recommended Posts

Oh I found the problem...

 

Other Proxy sites put the url in a "?url=http://google.com", and they use a iframe or something i think to browse every section of the site that is used by the proxy server.

 

the code i have just goes to one page, and when you click a link on that page from my proxy server, it exits my site and the proxy is gone.

 

How do i make it so when the user is on the proxy at all times.

 

;D

 

Thanks alot MadTechie... for your help, and the rest of you with big thanks.

Link to comment
Share on other sites

Man, forget about it before you proxy gets on my list!

www.phsdl.net

 

I will be waiting for your email to remove it...

 

Ha, Ha, Ha!

 

I will contact Administrators of this site that you have threatened me, and going to put a harmless flash website on a black list of bad websites.

 

Stop advertising in your posts.

Link to comment
Share on other sites

What I am saying, be careful what you build, maybe put some sort of check and balance mechanizem so people do not abuse your domain...

 

You are the owner right?

 

When did i say it was for spamming other forums?

 

I said we are not responsible for any dammage you cause on other sites...etc

 

It is a tool made to protect yourself against dangerous sites who record your ip...etc

 

Read the whole thread and you'll understand. Thankyou for your concern, and ya your right, people will abuse this but I will come up with something.

Link to comment
Share on other sites

Exactly be responcible coder...

 

And I did read the thread.

 

Just put a time out mechanisem not more that 3 times an hour or something.

Dnsstuff.com does that...

 

If you want to take care of the broken pictures, you will have to get the absolute url and join the domain name and path to it.

 

Check out how my url extracter on phsdl works, it uses TLD table to parse the url...

Link to comment
Share on other sites

Actually you may not need touse TLD, just use parse_url() to get the host name, take a look will need to test.

 

I needed the TLD url parser script because I needed to seperate the subdomain from domain, but in your case you just need to find out the hostname and the path, so parse_url should work for you...just check for sheme and www before parsing or you will have bad results.

Link to comment
Share on other sites

The images are still broken... :(

 

<?php
$url = parse_url("http://www.flash-portal.org");

$url = $url['host'];

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_VERBOSE, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($curl);
// check for errors
if (curl_errno($curl))
{
trigger_error('<span class="style5">Sorry, the url you entered was not valid.</span>');
}
curl_close($curl);

echo $output;

?>

 

Even with the EXACT URL

<?php
$url = "http://www.flash-portal.org";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_VERBOSE, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($curl);
// check for errors
if (curl_errno($curl))
{
trigger_error('<span class="style5">Sorry, the url you entered was not valid.</span>');
}
curl_close($curl);

echo $output;

?>

Link to comment
Share on other sites

Whose images are you trying to show?

 

http://flash-portal.org/fpslay/codedfp/po/tempimages/layout.jpg

 

This image is not on your server.

 

Are you trying to load curl_init url right? you need to save the content to a temporary file, than add the path to the images in that file, then display it in a frame as html file, otherwise it will display the page without the relative path. You micht be able to manipulate the buffer adding the path to it and then displaying it on your origanal path without frames.

 

Try it out, and refer to php.net for reference, I will give it a look later.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.