Skip to content
⌘ NSIS Forum Archive

Reading PHP into TXT

2 posts

gclass#

Reading PHP into TXT

Hi,
I want to read 2 lines from my server while running an installer.
there is a PHP file on my server that output 2 lines, like:
LINE1
LINE2
(a <br> is breaking the lines).

but when I use:
inetc::get /NOPROXY "http://site.com/samplefile.php" "$PLUGINSDIR\samplefile.txt"
FileOpen $4 "$PLUGINSDIR\samplefile.txt"
FileRead $4 $LINEONE
FileRead $4 $LINETWO
FileClose $4
$LINEONE is set to be "LINE1<br>LINE2", and
$LINETWO is empty.

how can I make FileRead to "understand" the <br> tag?

Thx