Jump to content

mystxx

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mystxx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can you post your  complete file structure in that folder? or pm me with it?
  2. I would find out what program he used to encrypt the files. This looks like source cop or sourceguardian. There are some sites that offer decoding of the files for small fees or even free. Maybe you could post how the directory structure looks like of the files he delivered. I.e. sourcecop can be recognized by the scopbin folder.
  3. [!--quoteo(post=363778:date=Apr 11 2006, 03:10 PM:name=Twentyoneth)--][div class=\'quotetop\']QUOTE(Twentyoneth @ Apr 11 2006, 03:10 PM) [snapback]363778[/snapback][/div][div class=\'quotemain\'][!--quotec--] I'm wanting to show the 5 most current upcoming events, the files will be labled 20060401.php, the year month and day in date(Ymd), and it will add a number to date, each time ect until it comes accross a date that is a file....the problem is, nothing shows up, I have echo'd out $file, and the other variables, and they all seem to work, but when it gets to my while and if statements it all stops.... [code]$dir = 'upcoming/'; $date = date('Ymd'); $number = 0; $file= ($dir . $date . ".php"); while($number > 6) {       if(is_file($file)) {          if($number >= 4) {             echo "<a href='index.php?file=" . $date . ".php'>" . $date . "</a><br>";             $number++;             $date++;            } else {             echo "<a href='index.php?file=" . $date . ".php'>" . $date . "</a>";             $number++;             $date++;            }         } else {          $date++;         }      } ?>[/code] [/quote] Hi. I have just scanned through the code quickly, and from it, it seems the while loop is never performed. You are setting $number=0 and then you have while condition to be $number>6 which is never since $number=0 therefore $number<6. It should either be $number <6 or if you want at least one iteration, you should use do...while loop.
  4. [!--quoteo(post=363818:date=Apr 11 2006, 05:12 PM:name=sheepz)--][div class=\'quotetop\']QUOTE(sheepz @ Apr 11 2006, 05:12 PM) [snapback]363818[/snapback][/div][div class=\'quotemain\'][!--quotec--] hi i have a simple site that has a drop down list of sites. this form points to a re-direction.php page. how do i make it where when it re-directs it will open in a brand new browser window? here's the html [code] <FORM METHOD="post" ACTION="do_redirect.php">     Popular downloads      <select name="locate">     <option value="http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.html/"> Macromedia FlashPlayer </option>     <option value="http://www.apple.com/quicktime/download/win.html/"> QuickTime </option>     <option value="http://adobe.com/support/downloads/"> Adobe downloads </option>     <INPUT TYPE="submit" NAME="submit" Value="Go"></p>     </form> [/code] here's the re-direction PHP page [code] <? if ($_POST[locate]=="") {   header("Location: redirect_form.html");   exit; } else {   header("Location: $_POST[locate]");   exit; } ?> [/code] can i use window.open ? for this event? thx =) [/quote] Hi. Probably a <FORM target="_blank" .... would do the trick. Or make a js function, that will be called onSubmit. It will check wich option in the dropdown is checked then pass it to window.open.
  5. [!--quoteo(post=363834:date=Apr 11 2006, 06:06 PM:name=angelherriv)--][div class=\'quotetop\']QUOTE(angelherriv @ Apr 11 2006, 06:06 PM) [snapback]363834[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hello, I would like to know if is possible to filter an image from a web page using PHP. For example, exist a web page that each time you go there, it generates an image, with a different name each time, but always in the same location etc., can i retrieve that image and show it on my php web site as I like or get the URL of that image?, if you know something, please tell me how, thanks. (sorry my english) [/quote] Hi. This is often doable using regexp. You connect to the site, download complete html, then via regexp extract only IMG tags. From there you can get the location and then download or display on your site. You should check for copyrights in these cases. Hope this helps.
  6. [!--quoteo(post=363122:date=Apr 9 2006, 04:43 PM:name=Grant Aasland)--][div class=\'quotetop\']QUOTE(Grant Aasland @ Apr 9 2006, 04:43 PM) [snapback]363122[/snapback][/div][div class=\'quotemain\'][!--quotec--] I'm quite new to php, and I'm currently trying to use PHP to process a form submitted by a user and display result (to the user) depending on the inputed data. I'm not sure how exactly to work with form processing, and my attempt didn't work. This is my code that I was using, if any could show me what I'm doing wrong and how to fix it, I would be most appreciative. [b]Html Form (cheeseform.php):[/b] [code]<Html> <Head>     <Title>SPC</Title> </Head> <Body bgcolor="8dcff4"> <Form action="http://www.--.com/cheesefp.php" method="get">     <B>Do you like cheese?</B><br>         <Input type="radio" name="q1" value="1">Yes<br>         <Input type="radio" name="q1" value="2">No<br>         <Input type="radio" name="q1" value="3">Maybe<br> <br>     <B>If you checked yes or maybe above, check all kinds that apply.</B><br>         <Input type="checkbox" name="q2a" value="1">Blue<br>         <Input type="checkbox" name="q2b" value="2">Cheddar<br>         <Input type="checkbox" name="q2c" value="3">Swiss<br> <br> <Input type="submit" value="Submit"> </Form>          </Body> </Html>[/code] [b]PHP code for processing (cheesefp.php):[/b] [code]<?php     if ($_GET[q1] == "1") {         echo "You like cheese!";     } else if ($_GET[q1] == "2") {         echo "You don't like cheese!";     } else if ($_GET[q1] == "3") {         echo "You might like cheese!";     } ?> <?php     if ($_GET[q2a] == "1") {         if ($_GET[q2b] == "2") {             if ($_GET[q2c] == "3") {                 echo "You like all the cheeses!";             } else {                 echo "You like Blue, and Cheddar cheese!";             }         } else if ($_GET[q2c] == "3") {             echo "You like Blue, and Swiss cheese!";         } else if ($_GET[q2a] == "1") {             echo "You like Blue cheese!";     } else if ($_GET[q2b] == "2") {         if ($_GET[q2c] == "3") {             echo "You like Cheddar, and Swiss cheese!";         } else if ($_GET[q2b] == "2") {             echo "You like Cheddar cheese!";         } else {             echo "Blah";         }     }     ?>[/code] This is the error I get when trying to submit the code: [/quote] You are just missing one more "}" before PHP closing tag -- ?> Just add that. G F D is right. (sorry mate, saw the post too late)
×
×
  • 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.