Jump to content

freddykhalid

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

freddykhalid's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks// Can you at least tell me how to learn this trechnique?? Or can you show direct me to a link that teaches this ...
  2. Hi guyz.... long time no read what you're writing... However, I have a real head turner this time so listen up... Is there anyway I can demonstrate a Malware activity the infect's a visitor's computer like for example rebooting his pc. Believe me, this is for educational purposes only. I've always hated Malware, seems this time I have to understand and develop it... Much Help is needed, Even if the malware does not reboot the machine any other ideas will be welcomed... Thanxx....
  3. Talking about the preg_grep topic... I cannot seem to understand the examples about this command.. Can I ask that someone write a simple code to search (grep) a string within a text file and print it out on the screen pls???? Help is needed!
  4. When I try size, Mozilla Firefox shows both textfields wth differrent sizes while IE shows them as close as possible but not exact. Looks like a compromise situation etween IE and Mozilla!
  5. Hey guys, I am having a problem getting the textfields for both the Login and the Password Fields the same width. Using Firefox, I have no problem. But using IE, it can be clearly seen that the Password field is shorter than the Login field. Here is my code: [code] <form action="index1.php" method="post">   <table width="70%" cellpadding="1" cellspacing="0" border="0">     <tr>         <td>         <table width="100%" height="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="white">         <tr><td align="center">         <table width="78%" height="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="white">         <tr align="center"></tr>         <tr>             <td>Login ID</td><td>:</td><td align="left"><input type="text" name="login_id" maxlength="40"></td>         </tr>         <tr>             <td class="label">Password</td><td>:</td><td class="label" align="left"><input type="password" name="pass" maxlength="40"></td>         </tr>         <tr><td><? if($_POST['submitForm'] == "Login") {echo "Login/Pwd Incorrect!";}?></td></tr><tr><td colspan="3" class="copyright"><div align="center">           <input type="submit" name="submitForm"  value="Login" />&nbsp;&nbsp;&nbsp;&nbsp;           <input name="reset" type="reset" value="Clear">            &nbsp;</div></td>         </tr>         </table>         </td>         </tr>         <tr><td>&nbsp;</td></tr>         </table>         </td>     </tr> </table> </form> [/code]
  6. Hey guys, does anyone know where I can find a php Digital Library? The same idea as a Photo Gallery, but instead it shows the file listings inside a directory on the server and if you want to download them. kinda like an interface to a directory but in php.
  7. I managed to get the BMP working, That should be enough. But 1 more thing, when I try this for a TIF picture this error comes up: Warning: imagecopyresized(): supplied argument is not a valid Image resource in c:\wamp\www\Test\Admin\Uploads\upload.php on line 178 Does anyone know how to solve this problem for TIF?
  8. Hi again.... I'm trying to use phpThumbs downloaded from: [a href=\"http://phpthumb.sourceforge.net/\" target=\"_blank\"]http://phpthumb.sourceforge.net/[/a] Still no result but still didn't lose hope !!! Anyone has an answer for this? [code] <? function thumb($filename, $destination, $th_width, $th_height, $forcefill) {      list($width, $height) = getimagesize($filename);    if (!($source = @imagecreatefromjpeg($filename))) {     if (!($source = @imagecreatefrompng($filename))) {         if (!($source = @imagecreatefromgif($filename))) {                 if (!include_once('phpthumbs.bmp.php')) { oops("You do not appear to have phpthumbs.bmp.php installed in the same path as upload.php. Please add this file, or don't try to upload .bmp files into your image directory!"); }      $phpThumbBMP = new phpthumb_bmp(); $source = @imagecreatefromgd2($phpThumbBMP->phpthumb_bmpfile2gd($filename));              }          }                          }       if($width > $th_width || $height > $th_height){      $a = $th_width/$th_height;      $b = $width/$height;      if(($a > $b)^$forcefill)      {          $src_rect_width  = $a * $height;          $src_rect_height = $height;          if(!$forcefill)          {            $src_rect_width = $width;            $th_width = $th_height/$height*$width;          }      }      else      {          $src_rect_height = $width/$a;          $src_rect_width  = $width;          if(!$forcefill)          {            $src_rect_height = $height;            $th_height = $th_width/$width*$height;          }      }      $src_rect_xoffset = ($width - $src_rect_width)/2*intval($forcefill);      $src_rect_yoffset = ($height - $src_rect_height)/2*intval($forcefill);      $thumb  = imagecreatetruecolor($th_width, $th_height);      imagecopyresized($thumb, $source, 0, 0, $src_rect_xoffset, $src_rect_yoffset, $th_width, $th_height, $src_rect_width, $src_rect_height);      imagejpeg($thumb,$destination);    } } ?>[/code]
  9. I was able to successfully do what I intended to do using the following function for JPEG, PNG, GIF But I wasn't able to do so for BMP and TIF. The code is the following: [code] <? function thumb($filename, $destination, $th_width, $th_height, $forcefill) {      list($width, $height) = getimagesize($filename);    if (!($source = @imagecreatefromjpeg($filename))) {     if (!($source = @imagecreatefrompng($filename))) {         if (!($source = @imagecreatefromgif($filename))) {                 if (!($source = @imagecreatefromwbmp($filename))) {                 $source = @imagecreate($filename); } } } }    if($width > $th_width || $height > $th_height){      $a = $th_width/$th_height;      $b = $width/$height;      if(($a > $b)^$forcefill)      {          $src_rect_width  = $a * $height;          $src_rect_height = $height;          if(!$forcefill)          {            $src_rect_width = $width;            $th_width = $th_height/$height*$width;          }      }      else      {          $src_rect_height = $width/$a;          $src_rect_width  = $width;          if(!$forcefill)          {            $src_rect_height = $height;            $th_height = $th_width/$width*$height;          }      }      $src_rect_xoffset = ($width - $src_rect_width)/2*intval($forcefill);      $src_rect_yoffset = ($height - $src_rect_height)/2*intval($forcefill);      $thumb  = imagecreatetruecolor($th_width, $th_height);      imagecopyresized($thumb, $source, 0, 0, $src_rect_xoffset, $src_rect_yoffset, $th_width, $th_height, $src_rect_width, $src_rect_height);      imagejpeg($thumb,$destination);    } } ?>[/code] An error occurs in the line when I try to apply the function for bmp or tif. The function then outputs a black picture. imagecopyresized($thumb, $source, 0, 0, $src_rect_xoffset, $src_rect_yoffset, $th_width, $th_height, $src_rect_width, $src_rect_height); Warning: imagecopyresized(): supplied argument is not a valid Image resource in c:\wamp\www\Test\Admin\Uploads\upload.php on line 185
  10. Hey guys, is there an easy way to copy and convert all the images within a directory to thumbnails and save them? Scenario: Images Directory: 1.jpg , 2.jpg I want to have thumbnails with lower quality as well in the same directory and eventually: Images Directory: 1.jpg , _thb_1.jpg , 2.jpg , _thb_2.jpg where _thb_*.jpg are the thumbnails. Please help.
  11. [!--quoteo(post=364521:date=Apr 13 2006, 11:01 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Apr 13 2006, 11:01 PM) [snapback]364521[/snapback][/div][div class=\'quotemain\'][!--quotec--] Umm... so do you have any ideas? Have you tried anything yet, or do you expect us to sit here and just spit code back at you? I'm not going to write code for you, but I can tell you how to do it: 1) PHP can't display a timer live on the page, but you can log the time they showed up on the site in a database and everytime they access another page, do a simple subtraction. 2) You can get some browser information from the headers, and send them to specific portions of the site depending on the browser, but you should really be able to develop a website that works across all browsers, except for maybe a few features that might use something like ActiveX, which would require IE. 3) Everytime someone access a page, update a record with their IP with a timestamp. Then you just run a query that grabs everyone that has been active in the past 15 minutes. 4) When someone logs on, update your table that contains the IP, but check to make sure that they haven't been active within X amount of time. 5) Use the mail() function for email, I'm not sure how to do SMS. 6) Track pages used by each IP in another table. Showing how long they were on the site is tricky, since it will have to be based off of their last action, unless you fire off an AJAX event in the background that will run as long as the user has the browser open. You sound like you're in over your head. You might want to get a book on MySQL and PHP. [/quote] I really thank you for your reply. I'm sorry if I offended but you can't imagine the huge amount of work that I have, that's why I'm asking over the internet which is the first time. I am currently developing a php website so I do know what I'm doing. The things I mentioned are the issues I don't know how to do only. In other words, this is a small part of a very big website my friend so I am trying my best. About the mail function, do you have a URL where I can configure this function? Because it doesn't seem to be working for me.
  12. Hi everyone, I'm new to the PHP language but I love it and it's becoming quite an addiction to me. I'm supposed to build a website with many features with some that I haven't understood. So help is required please. The features I don't know how to create are the following: 1)Display a stopwatch time counter for the time elapsed since the visitor accessed the site. 2) Switch the visitor automatically to the relevant version of the Web site according to his browser type (IE or Mozilla) 3) Display how many visitors are currently on the website 4) Display the visit number for recurring visitors 5) Notify the webmaster via Email or SMS everytime someone accesses the secure area of the website using authentication 6)Show a simple log of the user surfing habits. The log should include the pages visited by this user and the duration of his stay on each page I am using Wamp web server currently until moving this onto the server. Help required ASAP.
×
×
  • 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.