Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-22-2009, 09:30 PM   #1
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
quick php code help...

I want to put alot of urls into the php file, and once php file gets executed it will redirect to those urls one by one... like if I have 100 urls, once php file loads it will go to first url, then once php file get executed again it will load second url, and so on, then once it reaches the end it will start from the begging ... can someone hook me up please
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2009, 09:33 PM   #2
Basic_man
Programming King Pin
 
Basic_man's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: Montreal
Posts: 27,360
Quote:
Originally Posted by qwe View Post
I want to put alot of urls into the php file, and once php file gets executed it will redirect to those urls one by one... like if I have 100 urls, once php file loads it will go to first url, then once php file get executed again it will load second url, and so on, then once it reaches the end it will start from the begging ... can someone hook me up please
Can get you up & running in no time with this. Get a hold on me on ICQ : 349-164-75
__________________
UUGallery Builder - automated photo/video gallery plugin for Wordpress!
Stop looking! Checkout Naked Hosting, online since 1999 !
Basic_man is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2009, 09:57 PM   #3
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
still looking
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2009, 10:57 PM   #4
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
bump bump
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2009, 11:03 PM   #5
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
If you are looking to invest a few bucks, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2009, 11:09 PM   #6
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Here's help. Otherwise, I could make it for you but $$ talks.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 04:04 AM   #7
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quick and dirty way to do it:
Code:
<?
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)
$url = array_shift($urls);
array_push($urls,$url);
file_put_contents('URLS.txt',implode("\r\n",$urls));

header('Location:'.$url);
?>
Will work. Untested, don't ask for me to fix it if it doesn't kick - pay woj instead.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 04:03 PM   #8
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by quantum-x View Post
Quick and dirty way to do it:
Code:
<?
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)
$url = array_shift($urls);
array_push($urls,$url);
file_put_contents('URLS.txt',implode("\r\n",$urls));

header('Location:'.$url);
?>
Will work. Untested, don't ask for me to fix it if it doesn't kick - pay woj instead.
It helps to completely read what he was looking for.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 04:24 PM   #9
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
array + array_rand - and it's all done...

read the manual...
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 04:58 PM   #10
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by Nookster View Post
It helps to completely read what he was looking for.
Care to point out what it doesn't do?
Takes a list of URLS. Each time the script is loaded, it redirects to the next, and so forth.
What did I miss?
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 05:08 PM   #11
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by Nookster View Post
It helps to completely read what he was looking for.
I hope you don't call yourself a programmer.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 05:33 PM   #12
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Quote:
Originally Posted by quantum-x View Post
Quick and dirty way to do it:
Code:
<?
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)
$url = array_shift($urls);
array_push($urls,$url);
file_put_contents('URLS.txt',implode("\r\n",$urls));

header('Location:'.$url);
?>
Will work. Untested, don't ask for me to fix it if it doesn't kick - pay woj instead.
Yup, that would work.
A real solution would be to use a db or even xml file, but quantum-x has a solution that will work quite well
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 05:40 PM   #13
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
q-x's solution will truncate the url file if the HD runs out of space.

(I know it's a quick and dirty free solution, just pointing out one potential issue.)
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:09 PM   #14
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,053
Quote:
Originally Posted by rowan View Post
q-x's solution will truncate the url file if the HD runs out of space.

(I know it's a quick and dirty free solution, just pointing out one potential issue.)
Hmm. I don't think so. If the file had XX number of urls and took up XX amount of space at the beginning of the program it would still have xx number of urls and take up xx amount of space at the end. So, if the file fit on the HD before it still does after.

just
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:38 PM   #15
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by quantum-x View Post
Quick and dirty way to do it:
Code:
<?
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)
$url = array_shift($urls);
array_push($urls,$url);
file_put_contents('URLS.txt',implode("\r\n",$urls));

header('Location:'.$url);
?>
Will work. Untested, don't ask for me to fix it if it doesn't kick - pay woj instead.
gives me this error

Parse error: syntax error, unexpected T_VARIABLE in /www/users/for/multiurl.php on line 3
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:49 PM   #16
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:53 PM   #17
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by Killswitch View Post
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
now i get this:

Fatal error: Call to undefined function: file_put_contents() in /www/users/for/multiurl.php on line 5
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:55 PM   #18
XD2
Confirmed User
 
XD2's Avatar
 
Industry Role:
Join Date: Sep 2007
Location: Cheshire, UK
Posts: 454
Quote:
Originally Posted by qwe View Post
gives me this error

Parse error: syntax error, unexpected T_VARIABLE in /www/users/for/multiurl.php on line 3
Second Line which is the first line of code needs a ; on the end.

Code:
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
EDIT: Didn't refresh page and see it had been answered
__________________
David • 421-179-116 • support [@] adultnetworkuk [.] com

Website DevelopmentWebsite HostingModel Index SoftwareWebsite Reviews and Links
Hit me up for more information on everything I do.
XD2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:56 PM   #19
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by qwe View Post
now i get this:

Fatal error: Call to undefined function: file_put_contents() in /www/users/for/multiurl.php on line 5
file_put_contents() is a php5 function.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:57 PM   #20
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by sarettah View Post
Hmm. I don't think so. If the file had XX number of urls and took up XX amount of space at the beginning of the program it would still have xx number of urls and take up xx amount of space at the end. So, if the file fit on the HD before it still does after.

just
It's happened to me. ;) When you open a file for write it's first truncated, so if there's something else writing at that time, or the file system allows a truncate but not write when it's chock full, you'll end up with a 0 byte file. For a rotating buffer like this it's probably better to use a pointer and save that in a separate file - at least if that gets trashed then it just starts at 0 again...
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:57 PM   #21
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
... pay woj ...
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 06:59 PM   #22
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Replace the file_put_contents(...) line with this

$fp = fopen('URLS.txt', 'r+');
fwrite($fp, implode("\r\n",$urls))
fclose($fp);
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:00 PM   #23
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by Killswitch View Post
file_put_contents() is a php5 function.
Code:
<?php
  if(!function_exists('file_put_contents')) {
    function file_put_contents($filename, $data, $file_append = false) {
      $fp = fopen($filename, (!$file_append ? 'w+' : 'a+'));
        if(!$fp) {
          trigger_error('file_put_contents cannot write in file.', E_USER_ERROR);
          return;
        }
      fputs($fp, $data);
      fclose($fp);
    }
  }
?>
That should fix your problem. I highly suggest upgrading PHP to 5.x
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:05 PM   #24
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Hey Killswitch, is the chick in your avatar some random_unverifiable_one_off_chick or from a program?
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:08 PM   #25
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by rowan View Post
Replace the file_put_contents(...) line with this

$fp = fopen('URLS.txt', 'r+');
fwrite($fp, implode("\r\n",$urls))
fclose($fp);
after few runs i get this

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes) in /www/users/for/multiurl.php on line 6
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:09 PM   #26
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by Killswitch View Post
Code:
<?php
  if(!function_exists('file_put_contents')) {
    function file_put_contents($filename, $data, $file_append = false) {
      $fp = fopen($filename, (!$file_append ? 'w+' : 'a+'));
        if(!$fp) {
          trigger_error('file_put_contents cannot write in file.', E_USER_ERROR);
          return;
        }
      fputs($fp, $data);
      fclose($fp);
    }
  }
?>
That should fix your problem. I highly suggest upgrading PHP to 5.x
hey switch, where do I put that ? instead of file_put_contents line?
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:10 PM   #27
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by qwe View Post
after few runs i get this

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes) in /www/users/for/multiurl.php on line 6
lol... so it's a BIG list? I think it's time to call on woj. This isn't so simple any more.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:12 PM   #28
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by rowan View Post
lol... so it's a BIG list? I think it's time to call on woj. This isn't so simple any more.
nope, urls.txt has 10 urls in it, thats it
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:16 PM   #29
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by qwe View Post
nope, urls.txt has 10 urls in it, thats it
Has it grown? I can't think why else PHP would be complaining it's out of memory.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:17 PM   #30
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
And you can see that free help isn't always so quick... by now you probably could have paid to get a working solution that you didn't have to worry about...
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:18 PM   #31
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by rowan View Post
Has it grown? I can't think why else PHP would be complaining it's out of memory.
yap, used to be 1kb file, now it's 137kb file with only 1 url in it instead of 10... hrmm
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:30 PM   #32
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Why the fuck are you running PHP4 - In one month's time it will have been discontinued for THREE YEARS.

No wonder shit is breaking ;)
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:30 PM   #33
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Does each redirect NEED to be sequential? If you do it randomly and there's enough loads (ie enough of a sample) then each URL will receive the same average amount of traffic anyway.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:30 PM   #34
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by Killswitch View Post
Code:
<?php
  if(!function_exists('file_put_contents')) {
    function file_put_contents($filename, $data, $file_append = false) {
      $fp = fopen($filename, (!$file_append ? 'w+' : 'a+'));
        if(!$fp) {
          trigger_error('file_put_contents cannot write in file.', E_USER_ERROR);
          return;
        }
      fputs($fp, $data);
      fclose($fp);
    }
  }
?>
That should fix your problem. I highly suggest upgrading PHP to 5.x
ok I put that before file_put_contents line and it works, but after it redirects to the site it deletes that site from urls.txt file for some reason ?
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:30 PM   #35
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by rowan View Post
It's happened to me. ;) When you open a file for write it's first truncated, so if there's something else writing at that time, or the file system allows a truncate but not write when it's chock full, you'll end up with a 0 byte file. For a rotating buffer like this it's probably better to use a pointer and save that in a separate file - at least if that gets trashed then it just starts at 0 again...
As with anything when you write to the filesystem. You should be / your host should be monitoring disc space anyhow.

If you're out of space PHP will probaby grind itself to death when attempting to even run
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:32 PM   #36
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by rowan View Post
Does each redirect NEED to be sequential? If you do it randomly and there's enough loads (ie enough of a sample) then each URL will receive the same average amount of traffic anyway.
it doesn't have to be, can be random too if it's easier
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:34 PM   #37
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by qwe View Post
it doesn't have to be, can be random too if it's easier
Far easier.

<?php
$urls = file("URLS.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
header("HTTP/1.0 302 redirect");
header("Location: " . $urls[(rand(0, count($urls) - 1))]);
?>
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:38 PM   #38
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by rowan View Post
Far easier.

<?php
$urls = file("URLS.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
header("HTTP/1.0 302 redirect");
header("Location: " . $urls[(rand(0, count($urls) - 1))]);
?>
works like a charm, thanks bro
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:40 PM   #39
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Damn, I should have left out a semicolon or two and extorted $3.82 from you.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:41 PM   #40
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Sweet fucking Christ.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:43 PM   #41
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by rowan View Post
Damn, I should have left out a semicolon or two and extorted $3.82 from you.
btw, it should not have any issues with big files? or it's limited to like 1-100 urls or so ?
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 07:57 PM   #42
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by qwe View Post
btw, it should not have any issues with big files? or it's limited to like 1-100 urls or so ?
The answer will cost $3.82.

So long as your URL list isn't megs in size it should be fine. If it gets too big then PHP will die with an out of memory error.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 08:03 PM   #43
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by rowan View Post
Hey Killswitch, is the chick in your avatar some random_unverifiable_one_off_chick or from a program?
I found it on some site, I think it's one of those ex girlfriend site pics that are on every ex gf site.

Quote:
Originally Posted by qwe View Post
yap, used to be 1kb file, now it's 137kb file with only 1 url in it instead of 10... hrmm
I put the code on my dev server and ran it, by the looks of it, when putting the first url to the bottom, it's putting enters in there somewhere..
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 08:13 PM   #44
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by Killswitch View Post
I found it on some site, I think it's one of those ex girlfriend site pics that are on every ex gf site.



I put the code on my dev server and ran it, by the looks of it, when putting the first url to the bottom, it's putting enters in there somewhere..
That was my attempt to extort him, shhhh
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 08:16 PM   #45
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by quantum-x View Post
That was my attempt to extort him, shhhh
I told him the problem, I didn't give him the fix.

Please send $1.28 to me when he pays you, for keeping my mouth shut. Thanks.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 08:24 PM   #46
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by Killswitch View Post
I told him the problem, I didn't give him the fix.

Please send $1.28 to me when he pays you, for keeping my mouth shut. Thanks.
egold ?
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 08:29 PM   #47
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by quantum-x View Post
egold ?
WU please.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2009, 09:19 PM   #48
Doctor Feelgood
Confirmed User
 
Doctor Feelgood's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
Quote:
Originally Posted by qwe View Post
I want to put alot of urls into the php file, and once php file gets executed it will redirect to those urls one by one... like if I have 100 urls, once php file loads it will go to first url, then once php file get executed again it will load second url, and so on, then once it reaches the end it will start from the begging ... can someone hook me up please
something like this javascript popup

Code:
<!--
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {url="http://www.url1.com/";}
if (ad==2) {url="http://www.url2.com/";}
if (ad==3) {url="http://www.url3.com/";}
rotpop=window.open('','rotpop','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,top=1,left=1,width=790,height=570'); 
rotpop.blur();
rotpop.location=url;
-->
Doctor Feelgood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.