Reading a file into javascript variable is a issue anyone can face while developing client side application.
The problem has different solution depending on platform/browser
Solution
1) Windows/IE : Use the available FileSystemObject. It allows one to read and write files from local machine.
2) Firefox: It does not have a object corresponding to FileSystemObject in IE. So [...]
Posted in PHP, javascript | Also tagged javascript |
Yesterday i was working on PHP’s file handling functions. Due to default permissions i was getting default warnings generated by PHP Engine. I decided to suppress the warning messages. Found out a very simple solution for this problem.
Just need to put a @ before calling file handling functions.
$handle = @ fwrite(”abc.txt”, “w”);
After this warning messages [...]
Posted in PHP | Tagged PHP |
I had a typical issue in my project where i had to pass request variables from one PHP to other with using FORM tag.
Example flow
a.php gets parameters from client passes it to b.php
b.php gets the params and had to pass those to c.php without people knowing.
It may seem easy but i had to scratch my [...]
Posted in PHP | Also tagged CURL, HTTP POST |