Jump to content

gw1500se

Members
  • Posts

    1,041
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Do you mean a properly formatted email address ([email protected]) or an email address that exists? The former is trivial with filter_var but the latter will require sending a confirmation and getting a reply.
  2. It is a bit hard to understand what you want but I think you are looking for str_replace.
  3. How about posting an image of the page you get and then explain what is wrong and what you want. To me this sounds like an HTML question not a PHP question.
  4. Then you are using a database (MySQL) to store the data? When you store the data, encrypt it.
  5. Define "capture." Are you talking about a way to store the info or to obtain it from a web page?
  6. The regular PHP hash is a one way encryption. I cannot be decrypted except via brute force.
  7. Now uid exists but you have not made its value an array (it is just a string) so there is no element named 'username'.
  8. Do you have session_start on each page?
  9. Did you echo $_SESSION['uid']['username']; to make sure it contains what you expect? Better yet: echo "<pre>"; var_dump($_SESSION); echo "</pre>";
  10. That is not double work. That is how uploads are intended to be handled. I'm not sure what you are asking of mac_gyver so I won't presume to answer for him but you do need a row for each file.
  11. PHP handles upload conflicts. Until you move the uploaded file it is not an issue. The moves can be done sequentially so simply keep a file with the current number and increment each time you move a file.
  12. Exactly what are you asking us to do? This is not a free programming forum. You are expected to do the work and if you have problems then we can help. You need to understand what the code you posted is doing then make the appropriate modifications. For example, there are 5 columns in your array. Change that to 9 and set the appropriate ranges for each.
  13. You will need to show all your code related to setting and retrieving session data.
  14. With no code showing how you set up the session variable on each page, we can't be much help. Also I don't understand why you are using 3 pages instead of one.
  15. That is why I suggested specifying the enclosure parameter. I don't know how but perhaps the default is different on the OP's server.
  16. The enclosure parameter (4th argument) should default to double quotes. You might try specifying it anyway to see what happens.
  17. First do not use * in your query. Only ask for the columns you intend to use. As for your question, you need to make sure the query is returning what you expect. Do this to verify it: echo "<pre>"; print_r($user); echo "</pre>";
  18. Up to now, based on your OP, the implication was that script 2 was independent. Now you need to explain what that script does and how it interacts with 1 and 3.
  19. When the script starts check for a specific file in, say, \temp. If it is there, exit. If it is not then create the file and proceed. You will need to remove the file when the script exits and manage the file if the script or machine crashes. With Kicken's suggestion, set up your schedule for the script to be executed every 5 minutes.
  20. Can you not have the script check itself? If there is already a copy running, just exit. The PHP script won't know or care either way.
  21. I'm not sure I understand what you are trying to do. Why would you take a perfectly fine associative array and convert it to such a weird format?
  22. First please use the code icon (<>) and select PHP for your code. It makes it much easier to read. Once you convert dates to 'strtotime' date calculations are easy. You can simply subtract the 2 dates and convert the result back to a date format.
  23. If I understand correctly, simply search $csv_2 for $unique_row and if found highlight that row.
  24. Exactly, thus the only answer possible.
×
×
  • 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.