D
Dax

  • Jan 2, 2004
  • Joined Aug 10, 2003
  • i dont know...speaking of php settings...

    i just remembered somthing....
    in that website like 3 months ago i made a uploading admin type thing and it was wierd whenever i linked to the .php file it kept booting me back to index.htm

    i dunno what GD is..
    but i think PHP is disabled somehow in the server

    • now i did the same exact thing to another website, buit this time i have thumbnails

      after hours of wth is going on...

      i have the original script
      and when i press next
      it doesnt go next!!!!

      whY?

      none of it works...
      Click here for example

      the other one is the same but with 1 image in each page, and
      the thumbnails and the images folder is the same (becuase i didnt have thumbnails)

      now i do but the link above shows that it doesnt work

      • just incase u have time, can u please explain to me every line of what the Second part of your script means?? if u can please?

        • Thank you so much dude, that is an awesome script, i love it, i figured it out , i took out the second part because it was giving so many errors, but it works great i figured it out... THX you rock

          • thx for ur help but
            it doesnt work

            i just want the second part of ur script
            but it doesnt work

            i have a folder Christmas 2003/
            full of images named: 001.jpg, 002.jpg

            i editted ur script but i m not sure how to finish it...

            <?php 
            header("Content-type: image/jpeg");
            $i = 1;
            $filename = "00".$i.".jpg";/*it is starting with 1, and i want it to go till 63*\
            $i++;
            array($filename)\* i want to loop the image names till 63, and want them to just be displayed 1 by 1... *\
            
            $filename = str_replace(" ", "%20", $filename); 
            $filen = $_FILES[filename][name]; 
            $filet = $_FILES[filename][type]; 
            
            $imageInfo = getimagesize($filename); 
            $old_w = $imageInfo['0']; 
            $old_h = $imageInfo['1']; 
            
            if ($old_w>=$old_h)  
            {
            $width=$size;
            $height = ($width/$old_w)*$old_h;
            }
            else
            {
            $height=$size;
            $width = ($height/$old_h)*$old_w;
            }
            $img_src ="$filename"; $dst_img=ImageCreateTrueColor($width,$height); $src_img=ImageCreateFromJpeg("$filename"); imagecopyresampled($dst_img,$src_img,0,0,0,0,$width,$height,$old_w,$old_h); ImageJpeg($dst_img, '', 75);
            ?>

            i have no idea what the rest of ur script is used for

            • i would greatly appreciate it if i could have the script after i click on thumbnail on your site...
              thats exactly what i need

              • thx for your help... but how do I make a picture and make it 1 per page...
                and put back and next buttons

                wouldnt i need an array?
                and make every [1],[2] a different page?
                how would i do that?

                • and when i remove "/logfiles/"

                  it does
                  Warning: fopen(emailfriends.txt): failed to open stream: Permission denied in /home/designs/public_html/e-oped/emailit.php on line 27

                  but i want a frickin folder....

                  • Warning: fopen(/logfiles/emailfriends.txt): failed to open stream: No such file or directory in /home/designs/public_html/e-oped/emailit.php on line 27

                    • thx for your help
                      IT WORKED...

                      but i need more:

                      i updated my code so that it will create a log file so we get some statistics about how many people use this part of the page!!

                      So i made this:

                      
                      $errorlogname = "/logfiles/emailfriends.txt";
                      $errorlog = @fopen($errorlogname, "a+") or die("Error A5: Could not log in to master server Please try again later, the webmaster is probably doing maintanence on this part of the website. Sorry for the inconvinience.");
                      $curdate = date("l, F j, Y");
                      $i = 0;
                      $n = $i++;
                      $userip = $REMOTE_ADDR;
                      $time = date("h:i a");
                      $newlog = "Log #".$n.": ".$curdate.": Email sent from $email to $recipient: by ip: $userip @ $time";
                      @fwrite($errorlog, $newlog) or die("Error A4: Could not write into master log file Please try again later, the webmaster is probably doing maintanence on this part of the website. Sorry for the inconvinience.");
                      fclose($errorlog);
                      
                      

                      when i do it i get the die error (A5) why?

                      • $content = '<html><head><title>test page</title></head><body class="body"></body></html>';

                        just change this according:

                        $content = "<html><head><title>test page</title></head><body class=body></body></html>";

                        echo "$content";

                        this will work and it will be html...

                        • the scripts should work if its seperate from each other then you do
                          <?
                          include 'top.php';
                          ?>
                          //page content
                          <?
                          include 'bottom.php';
                          ?>

                          make sure to make these two files completely independent

                          • THe script below is suppose to make an array, in which a folder in a website has images that are named: 001.jpg, 002.jpg, 003.jpg, and all the way to 63....

                            so I want to make a script that will loop itself and display all these images and then make a back and forward button so that people can view them 1 by 1...

                            <html>
                            <head>
                            <title>Album</title>
                            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                            </head>
                            
                            <body>
                            <?
                            $data1 = "001.jpg";//Enter base image name here
                            $datalength = 63;//Enter the maximum # of the image name here (ex: 9.jpg = 9)
                            for ($i = 0; $i < $datalength; $i++){
                            $format = array("00" .$i. ".jpg");
                            echo "<img src='http://mysite.com/" .$format. "' border='0' height='400' width='600' alt='photos'>";//define image places
                            }
                            ?>
                            </body>
                            </html>
                            

                            i need help.... thx for your time

                            • I have a form! Where a person wants to email an article to his friends, sooooo... i put a text box called "recipients", where he will type in as many emails as he can with a comma (ex: myfriend@bla.com,mycousin@mysite.com,mybrother@uranus.com) and they seperate with commas, so that my script will get rid of the comma and send the same email ($message) to everyone of the people in the "recipients" box ($recipients)

                              $display = explode (",", $recipient);
                              $streturn = array($display);
                              for ($i=0; $i<$display; $i++) {
                              $streturn[$i];
                              }
                              return $streturn;
                              $mailheaders = "From: $email from * <$email> \n";
                              $mailheaders .= "Reply-To: $email\n";
                              $to = $streturn;
                              
                              mail($to, $subject, $message, $mailheaders); 
                               

                              and it doesnt send anyone any emails

                              • I want to send an email where the reactants are
                                the user enters their name ($name)
                                enters their email ($email)
                                the people they want to send to (seperated by a single comma): ($recipient)
                                their personal message ($message)

                                <?
                                $subject = "$name recommends you to visit mysite"; 
                                $message = "$name recommends you to visit my site blablabla
                                
                                
                                ---This is an automated response, please do not reply!---"; 
                                $display = explode (",", $recipient);
                                $streturn = array($display);
                                for ($i=0; $i<$display; $i++) {
                                $streturn[$i];
                                }
                                return $streturn;
                                $mailheaders = "From: $email from * <$email> \n";
                                $mailheaders .= "Reply-To: $email\n";
                                $to = $streturn;
                                
                                mail($to, $subject, $message, $mailheaders); 
                                
                                ?>
                                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                                <html>
                                <head>
                                
                                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                                <link rel="stylesheet" href="style.css" type="text/css">
                                </head>
                                
                                <body>
                                <table width="75%" border="0" align="center">
                                  <tr>
                                    <td><div align="center">
                                        <p>Thank you for submitting e-mail using <strong><em><font color="#FF0000" face="Georgia, Times New Roman, Times, serif">e</font></em></strong>-oped.com</p>
                                        <p>Your message has been submitted to your friend(s). <br>
                                          <a href="javascript:history.go(-2);">Go back to where you were.</a></p>
                                        <p><? echo"$to"; ?></p><div align="center">
                                        These are the following people that will recieve your 
                                          e-mail in a few minutes:</div><div align="left"><br>
                                          <? echo "$display[0]"; ?><br>
                                          <? echo "$display[1]"; ?> <br>
                                          <? echo "$display[2]"; ?> <br>
                                          <? echo "$display[3]"; ?> <br>
                                          <? echo "$display[4]"; ?> <br>
                                          <? echo "$display[5]"; ?> <br> </div>
                                      </div></td>
                                  </tr>
                                </table>
                                </body>
                                </html>
                                
                                • hehe... 😉

                                  good but i dunno what that means anyhoo

                                  • easy... cuz of ur icon

                                    • well i found myself a solution cuz no other ones work... so..

                                      if ($page == "order") {
                                      $filename = "order.txt";
                                      $thefile = @fopen($filename, "r") or die("where the hell is the file?");
                                      $contents = fread($thefile, filesize($filename));
                                      ereg_replace("\"","\\\"", $contents);
                                      echo $contents;
                                      fclose($thefile);
                                      }
                                      

                                      i put my html into a txt file, which pretty much eliminated the point of my proccess but, what the hey...

                                      • dude i dont like perl and i dont know perl, and whats wrong with dreamweaver, u can see the colors which help...

                                        now what else can i do to solve my problem?

                                        • drawmack: i type in my html
                                          it is a big ass thing, first i do it in dreamweaver then i add it into $that = " "; and paste it into the little space

                                          as for borntodie, i dunno wth u r talkin about..