Jump to content

poirot

Members
  • Posts

    646
  • Joined

  • Last visited

    Never

Everything posted by poirot

  1. A good way to know what it holds is: [code=php:0]var_dump($_POST[$i."1"]);[/code]
  2. That is correct. I plan though to use it for remote retrieving, not for proxy...
  3. To accept credit/debit cards you would need a Payment Gateway, for PayPal you can visit their site as they offer sample integration scripts...
  4. I want it to simulate browser behavior, so it can visit sites and also I should be able to use POST and Cookies, and send headers (for example, User-Agent, Accept...)
  5. I need some help... I want to make a reasonably capable "PHP browser" with cookie/POST support. So far, I managed to do it with fsockopen(). But as you know, some hosting services will disable fsockopen or even allow_url_fopen, making life difficult. Is there any way around? I just want a general direction, maybe a function name... Thanks  ;)
  6. You could check active sessions every 15 minutes (this would require a db with the active sessions) and delete the inactives.
  7. That snippet does *almost* nothing; you will still be able to access it through css.php
  8. If you plan to let browsers to see / use the CSS you can't protect it, no matter what you do. At [b]least[/b] these people will be able to download it by looking at the source or somehow.
  9. What do you mean with "the array is not saved"?
  10. An easier way: [code=php:0]$num = sprintf("%08d", rand(0,99999999));[/code]
  11. [quote author=Orio link=topic=103621.msg412723#msg412723 date=1155158551] Cracking his user's passes? Sounds pretty unsafe to register to his site... Orio. [/quote] The same is true for any site. If the admin were unscrupulous though, why have MD5 at all? Just store the plain pass. I am just pointing that it IS possible to "convert" md5 hashes back to plaintext (when you are working with short strings as passwords, obviously).
  12. No, you can't. Only checked checkboxes are submitted, so if you want to know which were left unchecked, your script must know what checkboxes exist.
  13. You should check what $_SESSION['EumodUK'] really is set to, using something like: [code=php:0]var_dump($_SESSION['EumodUK']);[/code]
  14. Where are you trying to insert that? From what I see, it will display the images as it retrieves them from the folder contents. You cannot use sort() because there is no array to sort. If you are planning to use sort you store them (the images) in an array and THEN use sort().
  15. No, actually that is where the error begins. If you erase this line, the next one throw you an error as well. What is the point of all this? $variable = $variable has no practical use. And what do you want with the Name: $visitor and the subsequent lines? Adding this right before that line should fix the error though: [code=php:0]$somevariable = "[/code]
  16. Obviously you still can "reverse" the MD5 hash by using Rainbow (which is known for being a very effective method) or a MD5 hash database like these: http://gdataonline.com/ http://md5.rednoize.com/
  17. It involves modifying the headers. Try to Google for "PHP MAIL ATTACHMENTS" Or try PHP-Mailer or SWIFT - ready made PHP mailers
  18. [code]function echotitle($b){       global $check;    if (sizeof($arr_to_searchin) == 0 || !in_array($value, $arr_to_searchin)) {       if (in_array($b, $check)) {          echo " - ". ($check[$b]) . " Building";          } else {          echo "Overview";}    } }[/code] I've also added global $check because it was not in the scope. [a href=\"http://www.php.net/static\" target=\"_blank\"]http://www.php.net/static[/a]
  19. That cannot be done with PHP, but you can use javascript. If I am not wrong, you can refer to it as: parent.framename.location
  20. If this random code is generated BEFORE the user sends the files, and is sent along with them, you can refer to it as $_POST['field']. If it is generated after th eupload (as what it seems to be), simply prepend it to the directory name: $uploadir = $num . '/items/images/'; You might have to use: [a href=\"http://www.php.net/mkdir\" target=\"_blank\"]http://www.php.net/mkdir[/a]
  21. [!--quoteo(post=388688:date=Jun 27 2006, 05:35 PM:name=lazytiger)--][div class=\'quotetop\']QUOTE(lazytiger @ Jun 27 2006, 05:35 PM) [snapback]388688[/snapback][/div][div class=\'quotemain\'][!--quotec--]I have not been able to find a tutorial DOESN'T use a database to do what I described above. [/quote] You know, I had this problem before, and most of people just love MySQL for some reason and will resort to it for the simplest of the scripts. But anyway, it's not hard to use flat files. I am used to: 1. Put these files in a folder, and have it secured with .htaccess (denying public access) 2. Use a combination of serializer and file handling functions to handle them. [a href=\"http://www.php.net/serialize\" target=\"_blank\"]http://www.php.net/serialize[/a] [a href=\"http://www.php.net/fopen\" target=\"_blank\"]http://www.php.net/fopen[/a] I am a bit lazy to tell you the details; but I hope you can figure it out.
  22. Try to change this: [code]$sql = mysql_query("INSERT INTO users (loginname, username, password, vpassword, email) VALUES('$loginname', '$username', '$password', '$vpassword', '$email'") or die (mysql_error());[/code] To: [code]$sql = mysql_query("INSERT INTO users (loginname, username, password, vpassword, email) VALUES('$loginname', '$username', '$password', '$vpassword', '$email')") or die (mysql_error());[/code]
×
×
  • 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.