Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. Make sure that everything is speaking utf8. Connection to your database, database/tables collation, apache headers, a form accept-charset attribute. That's your problem.
  2. Good for you I completely forgot about it, because the browser reads the content from Top to Bottom and Left to Right ( in normal languages)
  3. Try to place a html base tag inside a html head. <head> <title>TSPV-Websites - Offer</title> <link rel="stylesheet" href="css/main_styles.css" /> <link rel="stylesheet" href="css/fonts.css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <base href="http://www.tspv-websites.co.uk/"> </head> Also, when you rewrite links don't use relative paths inside rewriting directory. For example: You want to rewrite a link, like <a href="./Contact"> to index.php?page=$1 and in this index directory try to set up a relative path like <a href="./Home"> the browser should display the link as - <a href="./Contact/Home", not just ./Home, but that's wrong. Be careful and use absolute paths.
  4. I don't believe that to cause the problem. Do you have a .htaccess file placed inside the web tree? EDIT: ops....this { id : "0", c : l } is a small "L" not just a number one "1". Then, what charset encoding are you using?
  5. Don't duplicate posts and waste our time, please!
  6. The right syntax when you're creating is: function FuncName() { }
  7. Can I see the output this data? $(function () { l=$("#text_edit").val(); $.get("save.php", { id : "0", c : l },function(data) { console.log(data); }); });
  8. Alias directive provides mapping to different parts of the host filesystem in the document tree.
  9. Did you call a $( document ).ready() block ? Try, <script type="text/javascript"> $( document ).ready(function() { l=$("#text_edit").val(); $.get("save.php", { id : "0", c : l },function(data) { alert(data.id); alert(data.c); }); }); </script> Or shortHand: <script type="text/javascript"> $(function () { l=$("#text_edit").val(); $.get("save.php", { id : "0", c : l },function(data) { alert(data.id); alert(data.c); }); }); </script> Also, you should have to know that "0" is not equal to 0 in this comparison: if("0" === 0)
  10. No, actually it doesn't really matter what type of connection you're using. I do care! I'm not talking about the queue in sendmail here. You want to run the same program twice or more on the same time - this is a problem!
  11. No, even the mail server is being down, the mail can be queued and it will addressed those outgoing email messages when it is UP again. Yes, it's my fault. I know what daemon does.You perfectly understand what I wanted to say
  12. Php can execute a shell script commands.
  13. I mean, the queue is a mechanism providing by sendmail to address outgoing email messages. The queue is not a part of the server. When you call two or more times sendmail, this daemon is being terminated twice or more. I'll check that.
  14. One more reason to avoid looping the mail function. The sleep function prevent the loop Are you sure that swiftmailer provides a mechanism to check if the mail server is down? I'll check that later at home.
  15. @vinny42, I think you are little confused, what a mail function it is and what it does. The big problem is, that this function as you said above, it contacts the local delivery service by default it's sendmail. So, the mail function doesn't care and doesn't know what delivery report comes back to the mail server. But in fact that sendmail is a complex software. It provides and supports many kinds of mail-transfer and delivery methods. Sometimes, we're sending a lot of body content, binary data, html email templates and so on, so on and it's always good practice to give sendmail a little time, when we call it twice or more times. Everyone, who had a touch with mail servers. No, I have to disagree with you. Even the mail server is stopped, the mail function would be return true! It depends of the size of the message. I don't want to say that Love2c0de will have a problem here......but I would not say that my suggest is silly!
  16. Why do you call my answer as silly I mean to pause the script for a few seconds. It's always a good way to ensure that mail has completely terminated before calling next one.
  17. In this particular case, I would suggest you to call the mail function twice using some sleep functions between sending_to_user and sending_to_admin.
  18. Because the remote machine is already encoded these unicode characters as utf8! Everything you should have to do is to set a proper charset to the file. Why do you want to output this JSON object as a Content-Type: text/html?
  19. You should consider using some javascript multiple file uploading API to do that. I recommend plupload.
  20. @stegers72, using a "http://" prefix inside a "href" attribute tells the browser, that this searchable file/directory is outside of this server. It's not good for performance, but there is no problem if you want to use it, of course. @cataiin, Abra is correct by saying to use meaningful variable names.
  21. +1 mac File/directory permissions should be our essential part of building any web app. Then, we can apply the rules which were already mentioned above.
  22. Fetch the data from the database dynamically and push the content in an array. Then, just foreach that array as in the example above.
  23. jazzman1

    FTP

    It is a multiple uploading javascript API which will allow you "chunking" large files and saving them to the fileserver, without pretty much understanding of javascript and php. All tests I did last night with it. For better understanding, read at docs, it's very simple. @off: We spoke previously about this cat. Do you remember? That's mine PS: If you don't understand something about this API, don't hesitate to ask the people in this forum.
  24. Try to set up apache headers using a php header function. So put it on the top of this page where you're running a cURL script. header('Content-Type: application/json; charset=utf-8'); There is no problem for me with this URL, running the script into a linux terminal using a curl library.
×
×
  • 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.