PDA

View Full Version : Submit to Web: Post / Get functions.. .


tsunami
07-19-2004, 11:54 AM
Just need some help with the post / get functions php script.

I have the post function working with this php script

<?
$guiban = fopen("guiban.txt", "a+");
fwrite($guiban,"$guibanvalue\r\n");
fclose($guiban);
?>


but, how do i create a get function script in php.. I need the php to find a text stored in %variable% on setupfactory and get the line number and return it to setup factory in %linenumbervariable%... how would this be done?

so it will look up let's say "thisword" on "guiban.txt" and return whatever line number that "thisword" is on. please.. help.

JimS
07-19-2004, 02:59 PM
Are you completely set on using PHP for this? The reason that I ask, is because you should be able to do it completely within Setup Factory if you want to, and skip the whole PHP idea.

tsunami
07-19-2004, 03:14 PM
well the reason for this is so i can manage the serial numbers that have been used. therefore only 1 person can use the serial number. on top of the idea of using a serial number, i also have a randomly generated gui number that goes on the same line number as the serial number but on a different text file. the gui number is hidden in the users registry. so that only one computer can use the serial number. confusing.. yes but.. i really am trying to get some sort of secure way of handling serial numbers online..