Jump to content

`Yousef

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

`Yousef's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, but instead of actually being random so lets say in 4 goes it might pick site1 once, but site2 three times, itll share the redirects equally.
  2. Well, I have a main page with a link. This will link to a PHP redirect page which will have code like this on it <?php $urls = array("www.site1.com", "www.site2.com", "www.site3.com"); $url = $urls[array_rand($urls)]; header("Location: http://$url"); ?> I want each one of the sites to be displayed in equal share, so for example, site1 gets displayed once, then site2 then site3 and then start looping on and on.
  3. Hey there fellas, I need some help creating a PHP redirect script that will redirect to a possibilty of several different pages in equal share, not randomized like many other redirect scripts. Would it be possible to do this using just PHP or would it require something else like MySQL to log the amount of redirects to each page. If anyone could get me started with what functions to look into, or a snippet of code it'd be greatly appreciated. Thanks alot
  4. Thanks guys. I just realised why it's spelt as cURL after like a year lmfao. You got any recommended cURL tutorials or books?
  5. I'm thinking about making a "viral" video submitting sites that will submit to different sites such as YouTube, DailyMotion, Google Video etc etc. Anyone know what sort of languages other than php would be needed?
  6. Ah right, so $value1 would be used in the &fmt='$value1' and then the landing page/ad rotator would be decided base on $value2 for example?
  7. Yeah you can have the same values but I want to know if you can add a second value or something that I could use in my PHP landing page rotator to differentiate between the two options that have the value 18.
  8. Alright, this isn't really PHP I guess but it will integrate with my PHP script so . I was wondering if a drop-down menu can have two values for each option, for example: <select name="type"> <option value="18">PSP</option> <option value="18">iPOD</option> <option value="5">FLV</option> </select> This is for my YouTube to PSP/iPOD whatever script. It uses the numeric value and adds it to the YouTube URL in the format &fmt=value which codes as "http://www.youtube.com/get_video?video_id=".$var_id."&t=".$var_t."&fmt=".$_POST['type']; However I want to add a second value or something that would allow me to rotate certain things on the landing page in order to make it a more targetted experience for them. Anyway I can go about doing this? Any help greatly appreciated .
  9. So all I'll need to run this would be hosting with PHP support?
  10. Can you take $headers out of the mail function?
  11. Can anyone fix this up for me # <html> # # <head> # <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> # <title>Tings</title> # </head> # # <body> # RSN: <?php $_POST["detail"]; ?>.<br /> # Password: <?php $_POST["email"]; ?> # # <?php # # $to = "shocks_sneekers@hotmail.co.uk"; # $subject = "Details"; # $txt = "$_POST["detail"], $_POST["email"]; # $headers = "From: You Know Who" . "\r\n" . # "CC: somebodyelse@example.com"; # # mail($to,$subject,$txt,$headers); # ?> # </body> # # </html>
×
×
  • 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.