Jump to content

gw1500se

Members
  • Posts

    1,033
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Do you have session_start on each page?
  2. Did you echo $_SESSION['uid']['username']; to make sure it contains what you expect? Better yet: echo "<pre>"; var_dump($_SESSION); echo "</pre>";
  3. 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.
  4. 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.
  5. 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.
  6. You will need to show all your code related to setting and retrieving session data.
  7. 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.
  8. 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.
  9. The enclosure parameter (4th argument) should default to double quotes. You might try specifying it anyway to see what happens.
  10. 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>";
  11. 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.
  12. 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.
  13. 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.
  14. 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?
  15. 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.
  16. If I understand correctly, simply search $csv_2 for $unique_row and if found highlight that row.
  17. Exactly, thus the only answer possible.
  18. but it ??????
  19. You asked what the problem may be. That is my answer based on the code, details and error messages you posted.
  20. Postfix configuration.
  21. The successful download acknowledgement can trigger the delete on the server.
  22. How can you know the download was successful before the download completes?
  23. My bad. It has been a while since I did this. Your previous code is correct as is the image you posted of the result. Sorry. So where are you stuck now?
  24. I'm not sure why what I gave you is not working. I'd have to see all the code. What you posted looks correct. So what is the problem with that?
  25. Did you initialize the array like I showed? $send=[]; And did you use +=?
×
×
  • 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.