Jump to content

phpmillion

Members
  • Content Count

    88
  • Joined

  • Last visited

  • Days Won

    2

phpmillion last won the day on January 24 2018

phpmillion had the most liked content!

Community Reputation

8 Neutral

About phpmillion

  • Rank
    Regular Member

Contact Methods

  • Website URL
    https://www.phpmillion.com

Profile Information

  • Gender
    Not Telling
  • Location
    Lithuania
  1. OP, if I understand right, if credentials are submitted to website from other place (let's say you manually submit them via browser), it won't work in your situation?
  2. Yes, it's on website, as per original OP's message - the script takes info from the database and sends it to a website It's the main reason I suggested him curl.
  3. In short, you can (and should) use PHP templating system. Since you are new to PHP, it might look difficult first, but once you see some examples and try to create your own code, you will see it's not that difficult... Plus, such a method will enable you to maintain your code easier and faster (which is very important if you decide to create more advanced scripts in future). There are many PHP templating systems around, but I think Twig is one of the easiest systems to learn. Other developers might have a different opinion on this, so take your time to review different templating systems and choose the one you like most.
  4. You can easily do this using curl, it will work on all platforms where PHP is installed.
  5. What is nothing here? You don't see any output? You see incorrect output? You get any error? Page is empty and has nothing on it?
  6. Well, that's because your $string variable is this text - "/home/PhoneFirmware/100/md5.txt" If you want to get content of file (not the location of file), use file_get_contents function. Your first line of code should be: $string=file_get_contents("/home/PhoneFirmware/100/md5.txt");
  7. Which version of xpath do you use? Such a comparison ( >a ) was only added in v2.0. I guess it also applies to your 2nd attempt ( @lastUpdate > '2018-03-07' ) because it's actually a string comparison too.
  8. I don't think PHP has more other options to check file security. However, you can always send file (before it's stored on your server) to Vrus Total using their API - https://developers.virustotal.com/v2.0/reference If your server has something like ClamAV installed, it also helps. ClamAV has a PHP extension too, but I think it only works with PHP 5.x
  9. You may also want to do the same checks (extension, mime type) before outputting content of files stored on server. It will add a bit extra of security in case files that were validated previously (and stored on your server now) were somehow modified/replaced by 3rd parties later.
  10. You are doing it almost right, and the only issue is the mixed order of arguments in your code. I'm sure you will solve it in 5 seconds after taking a quick look at the documentation.
  11. They use mod_rewrite. I see requinix explained it with more details and posted his explanation a second before my post, so you should really be able to get it done now.
  12. In this case, your only choice is to hire a coder, I think. Or learn to code yourself, but it will take some time...
  13. This forum is surely for getting help and helping others, but I believe it should be a common sense to ask a question clearly at least. In this case, the question was very general, which can be solved by searching PayPal forums or PayPal knowledgebase, and it was not related to coding itself. I hope you were able to find a link to PayPal forums where this question is answered for you. Hint - the topic in PayPal forums is marked as "solved".
  14. Took me 5 seconds to enter your question into search engine, 1 more second to click a link (which leads to PayPal forums) and several more seconds to find the answer.
×
×
  • 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.