phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 need help please Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374417 Share on other sites More sharing options...
MadTechie Posted October 21, 2007 Share Posted October 21, 2007 you need to update the links.., what code you having problems with..? Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374425 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 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. Thanks alot MadTechie... for your help, and the rest of you with big thanks. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374436 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 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! Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374440 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374442 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 It is my site, so no one is advertising... You said you are building your proxy so people can Spam forums, right? Well my projuct cataluegs forum Spammer domains on the list... Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374453 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374454 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374458 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 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... Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374461 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374474 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 thank you so much man, it worked. Uploading it. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374485 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 No problem we are all here to help each other. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374493 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 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; ?> Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374527 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374535 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 Maybe you can parse output and add the relative path of the url you curled for the images to show up. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374536 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 How would you go about saving the url's content given from the form? I dont understand how these Proxy sites work with the urls Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374537 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 Can you post an example? Or try it with my script? Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374539 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 try this html hack <head> <base href="http://www.w3schools.com/images/" /> </head> replace this http://www.w3schools.com/images/ with the site path you curling. to save an output to a text file check php.net search for curl_init the script should still be there...try the hack first... Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374541 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 It doesnt work, I want the user to be able to view all the images without me putting that /images/ there... This is going to work for one site isnt it? www.flash-portal.org? I will try to search for it. Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374543 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 <?php // save the output buffer to a file $doc_root = $_SERVER['DOCUMENT_ROOT']; $fp = fopen("$doc_root/vccpmp3/dwgs/dwg$ID.html", "w"); $buffer = ob_get_contents(); fwrite($fp, $buffer); ob_end_flush(); ?> What do i do with this? Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374544 Share on other sites More sharing options...
phpSensei Posted October 21, 2007 Author Share Posted October 21, 2007 the hack worked! Thankyou Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374558 Share on other sites More sharing options...
igor berger Posted October 21, 2007 Share Posted October 21, 2007 I will send you my bill. Link to phsdl... Quote Link to comment https://forums.phpfreaks.com/topic/74114-the-basics-and-functions-of-a/page/2/#findComment-374573 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.