Jump to content

hisoka

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by hisoka

  1. hisoka

    mysql ditching

    yes that is what I meant what does it mean "they're ditching MySQL in favor of some other database" ? the word ditching confuses me
  2. document.getElementById('form_field').value = 40 * 2; document.getElementById('form').submit(); what if there is no id ? how it will be submitted ?
  3. hisoka

    mysql ditching

    I would like to know what is the exact meaning of " MySQL ditching " ?? as the word ditching , when used with MySQL confuses me .
  4. I misunderstood the word delay and thanks to what you wrote Foxy Mod I understood what it means . It is like a bomb . You set a time for it after which it will automatically explode . You can set a time of 30 seconds or 10 seconds or 5 seconds .
  5. like Firebug for JavaScript (though JavaScript is not compiled) , is there a good instructive , uncomplicated and simple compiler that can help me compile a java code and show me the error I do
  6. that is a very good idea . However I do not want to have a delay before a function runs . I would like to submit a form in a specific time without putting a delay . Is it possible ? if yes how ? if not why ?
  7. understand . You really save my life back references confused me a lot and now after your explanation I get it
  8. I did not want to know about that code in its whole but only about the meaning of pages/$page and the explanation of Foxy Mod was perfect . Thank you to let me know that the code is incorrectly written
  9. I am still confused concerning this: After some researches , I find that the parentheses are used to group the . and * together , I find , too, that .* does the same thing as (.*) . So I deleted the parentheses and run the code again like this : <?php $string = "this is my lower sting"; print preg_replace('/.*/e', 'strtoupper("\\1")', '$string'); ?> but nothing happened . If (.*) does the same thing as .* so why I got a blank page and nothing happened ?
  10. Yes read it from top to bottom but I understood some and some I did not understand at all Thank you very much I understood you explanation very well . Now I am not confused about that code
  11. OK suppose I have a webpage with a submit form and using JavaScript , I must do the following : 1) multiple 40 with 2 2) put the result in the submit form box 3)click submit to send the result to the server . The result that is 80 should be returned in one second manually , I cannot send the form in one second . So I would like to know How to do it in one second using JavaScript ? and/or what is the tool to do it ?
  12. hisoka

    php curl

    very good so as Foxy Mod wrote I should use JavaScript . So I will ask the question in JavaScript section
  13. in this code : <?php $file = $_GET['page']; if(isset($page)) { include("pages/$page"); } else { include("index.php"); } ?> I do not get what does the thing in red mean : include("pages/$page"); two files one is a variable and the other is not ??
  14. No my friend the first block , I provided , outputs THIS IS MY LOWER STING and not $STRING . Try to run it yourself and you will see that it outputs THIS IS MY LOWER STING
  15. If I did not understand wrongly , According to what you wrote , eval() cannot not execute the code inside it otherwise it prints it literally . This implies two things : 1)eval() is not a function 2)the closing tag is used first , in the left side , so that eval() deal with the code literally because it cannot execute it . If I am wrong please correct me let's say this eval's mechanism . There is something still unknown to me . If eval deal with code literally why it does not print it as it is instead it get executed ?? for example in : <?php eval('<?' phpinfo(); '<?php'); ?> why the result is not '<?' phpinfo(); '<?php' instead the phpinfo() get "executed"?
  16. hisoka

    php curl

    Why you think it is pointless ? is not it possible to submit a form from windows or Linux prompt command in a specific period of time that you specifies using cURL ?? I know it is outside the subject of web development . However , concerning this thread , I do not want to know how to submit a form in a specific period of time using cURL in windows or Linux command prompt . I want only to know if it is possible to set a time limit for the submitted form when using cURL from windows or Linux command prompt and if it is not possible then why ?
  17. hisoka

    php curl

    I understand very well what you mean and I congratulate you for this wonderful and simple explanation . What if I download cURL and try to submit the form from windows or Linux command prompt ? like for example in these sites : http://superuser.com/questions/149329/what-is-the-curl-command-line-syntax-to-do-a-post-request or this : https://davidwalsh.name/curl-post-file or this : http://linux.byexamples.com/archives/311/sending-http-post-using-curl-command/ ? is it still possible ? and if not why ?
  18. I still do not get your meaning
  19. but this code : <?php $string = "this is my lower sting"; print preg_replace('/(.*)/e', 'strtoupper("\\1")', '$string'); ?> gives exactly the same result as this code : <?php $string = "this is my lower sting"; print preg_replace('/(.*)/e', 'strtoupper("\\1")', $string); ?> which is : THIS IS MY LOWER STING So if '$string' is wrong why it did not engender any error and gave a normal result as $string without quotation marks ? that is what I wanted to know
  20. I understood it very well What I could not understand is here : "/".$string."/" Why we use 4 green double quotes instead of two green double quotes ? or what is the role of the 4 green double quotes ?
  21. hisoka

    php curl

    So you mean that we cannot submit a form using cURL ? What about this : http://www.html-form-guide.com/php-form/php-form-submit.html http://stackoverflow.com/questions/12204915/submit-form-using-curl ??
  22. Sorry but I am not convinced by the answer and I have been looking for hours , in Google , to an explanation but I could not get any explanation about why the closing tag is used first . May be eval() evaluates the code from right to left and this is why the opening tag is used in the right side and the closing tag in the left side .
  23. you mean this "/".$string."/" is wrong ? or the whole code ? if the whole code is wrong , why it run, normally , without showing any error ??
×
×
  • Create New...