dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Convert a php-script to asp

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    57

    Convert a php-script to asp

    Hi,

    I've got a php-script that saves a XML-file on the server. It works fine but... my site has to move to a new server and now I need a ASP-script. Can anyone help me to convert my PHP-script? It looks like this...

    PHP Code:
    <?php
        $filename 
    $_POST['filename'];
        
    $data $_POST['data'];

        
    $data stripslashes($_POST['data']);

        
        if ((
    $handle fopen($filename"w")) == false)
        {
            echo(
    "&status=Error: can't open file");
            exit;
        }
        else if (
    fwrite($handle$data) === false)
        {
            echo(
    "&status=Error: can't write to file");
            exit;
        }
        else
        {
            echo(
    "&status=Success");
        }

        
    fclose($handle);    

    ?>
    Thanks,
    Paul

  2. #2
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Not a ASP junkie, but can you use this?
    NuCleuZ :: PHPVolcano :: Blog

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    57
    I'll take a look.

    Thanks,
    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center