Monday, 28 September 2020

winscp commands and tricks

 https://superuser.com/questions/239860/how-do-i-send-a-file-with-filezilla-from-the-command-line/787868


"space bar trick"

https://stackoverflow.com/questions/6376113/how-do-i-use-spaces-in-the-command-prompt


https://winscp.net/eng/docs/guide_automation

Tuesday, 18 June 2019

Friday, 24 May 2019

Print_r Beautify

print("<pre>".print_r($id_product_rule_group,true)."</pre>");
exit;

Wednesday, 17 April 2019

Passing php array into javascript variable


<?php
// php array
$fruits = array('apple', 'orange', 'mango', 'banana', 'strawberry');
?>

<script type="text/javascript">
// use php implode function to build string for JavaScript array literal
var fruits = <?php echo '["' . implode('", "', $fruits) . '"]' ?>;
// ["apple", "orange", "mango", "banana", "strawberry"]
</script>
source : 

https://www.dyn-web.com/tutorials/php-js/array.php