Jump to content

Hypermx

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Hypermx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okay, I've installed PHProxy and i get these errors: Warning: fwrite(): supplied argument is not a valid stream resource in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 682 Warning: fgets(): supplied argument is not a valid stream resource in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 690 Warning: fclose(): supplied argument is not a valid stream resource in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 862 Warning: Cannot modify header information - headers already sent by (output started at /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php:682) in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 1169 Warning: Cannot modify header information - headers already sent by (output started at /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php:682) in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 1176 Warning: Cannot modify header information - headers already sent by (output started at /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php:682) in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 1176 So i looked it up and found something about permissions. So i set the permissions for the proxy folder to 777 and each file to 666 But this didn't help it.
  2. Hey. Ive started a project, Where you can type something in a textbox, and then press a button. What you've typed in the textbox should be saved to the php. And the php proxy will visit a site, ex google: Sketch: <?php $textbox = $_GET['textbox']; phpproxy_goto('http://www.Google.com/search?hl=en&q=' $textbox); ?> So the my website shows the site: http://www.google.dk/search?hl=en&q={the textbox} and google whould think it was showed from the servers IP instead of the real clients IP But i think its hard just to code something like that, thats why i wanted some help in here.
  3. Well, Ive just tested it and came up with the result that the adsense displayses now, But now also the other picture displays at the same time in a procent of 50%.
  4. Sorry, I can't understand Dutch, I just made a fast search on good, and posted this Its a amazing how much help you can find on google, just by typing in the magic words and pressing the big button! :b
  5. Don't be shy, I won't bite No seriously, Help me..
  6. NOT TESTED! <?php $ip = $_SERVER['REMOTE_ADDR']; $pagina = $_SERVER['REQUEST_URI']; $datum = date("d-m-y / H:i:s"); $invoegen = $datum . " - " . $ip . " - " . $pagina . "<br />"; $fopen = fopen("ips.html", "a"); fwrite($fopen, $invoegen); fclose($fopen); ?>
  7. Hey. I have made a code, so that everytime you load the page, it randomly selects wether it sould be an ad or a picture to be there. I think Im allmost finished with the code, But it have some errors. Example, that when it sould show an ad it shows nothing. I will list 2 files in here, The functions.php and the Index.php. Functions.php <?php function display_adsense() { echo " <script type='text/javascript'><!-- google_ad_client = 'pub-7631840574101908'; /* 300x250, oprettet 21-08-09 */ google_ad_slot = '1626493265'; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'> </script>"; } function random_ad() { echo " <script language='JavaScript'> images = new Array(2); images[0] = '<?php display_adsense() ?>'; images[1] = '<img src=wp-content/themes/wp-symisun/images/ad_test_1.PNG></img>'; index = Math.floor(Math.random() * images.length); document.write(images[index]); </script>"; } ?> Index.php <?php random_ad() ?> I have not posted the Fully index.php or the fully functions.php, But this is the only thing that haves an error. Can anybody tell me what the problem is?
×
×
  • 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.