php and VisualNeo win - Forum

Forum Navigation
You need to log in to create posts and topics.

php and VisualNeo win

1.

Trying to get the content of a text file into Visualweb variable
using

FileToVar "http://xxxxxx.com/000TEST UPLOAD.txt" [saved]
AlertBox "" "[saved]" ""

Nothing happens ????
How d0 I appraoch to resolve this problem ?

 

2, Trying to get a specific line from text file by this php script

<?php
$file = fopen("000TEST UPLOAD.txt", "r");
$line_number = 6;
for ($i = 1; $i < $line_number; $i++) {
fgets($file);
}
$specific_line = fgets($file);
echo $specific_line;
fclose($file);
?>

it works ! , While it is executed from the server and displays with the echo .

The question is how do i Retrive the Echo result to Visualweb Variable ?

@caro, as you are trying to download an Internet file you should use DownloadFile command.
Please check it here:
https://winhelp.visualneo.com/Internet.html

Regards.

alangonzalez91 has reacted to this post.
alangonzalez91