Jump to content

ImranP

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by ImranP

  1. Thanks for the example . Sadly PHP doesn't seem to work on my system. I have tried PHP on google chrome, Firefox and IE with no luck. Is there a program I need to download for my system to run PHP ? Im running WIN 7, 32 BIT I have this simple test code <?php echo "hello"; ?> I save that in notepad and a .php file and try run it with no luck. Thanks...
  2. Thanks for the reply. Would you have any example code for me ?
  3. How would I go about sending a string to the server computer to be put into a .txt file ?
  4. Hello all, I am very new to HTML and PHP coding so could you please bear with me. All I am trying to do is write a string to a text file, and I have tried many examples. Alot of them seem to be similar to this code and it doesn't seem to want to work... <HTML> <HEAD> <SCRIPT language="JavaScript"> function WriteFile() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var fh = fso.CreateTextFile("c:\\MyFile.txt", true); fh.WriteLine("Some text goes here..."); fh.Close(); } </SCRIPT> </HEAD> <BODY> <P> <SCRIPT language="JavaScript"> WriteFile(); </SCRIPT> </P> </BODY> </HTML> What I do is I put this code in Notepad, save it has hello.html and I then open it in firefox. I then check the file and its still empty, then I open in it Internet Explorer and the same thing happens. Any help appreciated.
×
×
  • 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.