Jump to content

xphoid

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xphoid's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Why not show your "registration successful" text on the registration page with a link (or timed meta-redirect, or both) to the login page? As for passing data server-side from page to page you can use sessions. session_start(); if($registration_successful) { $_SESSION['new_registration'] = true; } session_start(); if(isset($_SESSION['new_registration'])) { // delete so message isn't repeated unset($_SESSION['new_registration']); // show message }
  2. To skip a single row you can use continue. quick example: while($row=mysql_fetch_array($result)) { if($row['whatever']==1) { continue; } // non-skipped code } To skip X amount of rows you could build an array and then loop through the keys numerically. $array = array(); while($row=mysql_fetch_array($result)) { $array[] = $row; } for($i=0; $i<count($array); $i++) { $row = $array[$i]; if($row['whatever'] == 1) { // skip this row plus 5 more $i += 5; continue; } // non-skipped code }
  3. A simple loop would work well for this: <select name='tax'> <?php for($i=0; $i<51; $i++): ?> <option value='<?php echo $i; ?>'<?php if($i == $gang['tax']) { echo ' selected'; } ?>><?php echo $i; ?>%</option> <?php endfor; ?> </select>
  4. Have you tried printing out $line to see if the full line is even there? Also you could try using file() instead of fopen()/fgets().
  5. They appear to be using a fairly restrictive proxy server. (header shows Server:proxyshield-proxy4) I did manage to get the page contents using curl mimicking Firefox. $header = array(); $header[] = 'Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'; $header[] = 'Cache-Control: max-age=0'; $header[] = 'Connection: keep-alive'; $header[] = 'Keep-Alive: 300'; $header[] = 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7'; $header[] = 'Accept-Language: en-us,en;q=0.5'; $header[] = 'Pragma: '; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.neobux.com/rel/bl/?o=D4B44A9F3179942FCED0E440FF71F64F828DC2990AD18F9E'); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)'); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_TIMEOUT, 20); $result = curl_exec($ch); curl_close ($ch); echo $result;
  6. You won't be able to get the image's file extension from that URL simply because it's not there. If the script is on your server you could somehow find the source image the same way the script does and get the file extension/type that way. As a lazy/bad alternative you could use getimagesize() on the URL along with image_type_to_extension() to find the image's extension/type.
×
×
  • 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.