"when you first run it wants to save the file as makeins.phtml " what wants
to save the file? IE ? your editor ? sounds like a browser issue, the
browser has assoiated .ins as something else in the mime-types. Msg back so
I could possibly help more.


--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120



""Martin"" <[EMAIL PROTECTED]> wrote in message
9704d0$mje$[EMAIL PROTECTED]">news:9704d0$mje$[EMAIL PROTECTED]...
> Has anyone got any experience with creating windows .ins file from PHP.
The
> following coding appears to be working sort of, but when you first run it
> wants to save the file as makeins.phtml (the same name as the file). If
you
> cancel, it then will save it as .ins file. It's very annoying and kinda
> confusing. Any advice?
>
> <?php
>
> // Required VARS include
>
> // $firstname $lastname $username $password
>
> if (strlen($username)>1)
>
> {
>
> header("Content-type: application/x-internet-signup");
>
> header("Content-disposition: attachment; filename=vispa.ins");
>
> echo "[Internet_Mail]\n";
>
> echo "Default_Client=Yes\n";
>
> echo "Domain=vispa.com\n";
>
> echo "Email_Address=" . $firstname . "@" . $username . ".vispa.com\n";
>
> echo "Email_Name=" . $firstname . " " . $lastname . "\n";
>
> echo "Install_Mail=1\n";
>
> echo "Install_Mail_16=0\n";
>
> echo "Logon_Using_SPA=No\n";
>
> echo "POP_Logon_Name=vis-" . $username . "\n";
>
> echo "POP_Logon_Password=" . $password . "\n";
>
> echo "POP_Server=pop.vispa.com\n";
>
> echo "SMTP_Server=smtp.vispa.com\n";
>
> echo "Logon_Using_SPA=No\n";
>
> echo "Use_MS_Exchange=No\n";
>
> echo "Use_IMAP=No\n";
>
> echo "Window_Title=Outlook Express provided by Vispa Internet\n";
>
> echo "Junk_Mail_Filtering=1\n";
>
> echo "\n";
>
> echo "[Branding]\n";
>
> echo "CompanyName=Vispa Internet Limited\n";
>
> echo "Wizard_Version=3.0.0.561\n";
>
> echo "Custom_Key=E135056\n";
>
> echo "Window_Title=Vispa Internet Explorer\n";
>
> echo "\n";
>
> echo "[Favorites]\n";
>
> echo "Tucows.url=http://tucows.enta.net\n";
>
> echo "\n";
>
> echo "[Internet_News]\n";
>
> echo "NNTP_Server=news.vispa.com\n";
>
> echo "Logon_Required=0\n";
>
> echo "Default_Client=Yes\n";
>
> echo "\n";
>
> echo "[URL]\n";
>
> echo "Home_Page=http://www.vispa.net\n";
>
> echo "Search_Page=http://home.microsoft.com/access/allinone.asp\n";
>
> echo "NoWelcome=1\n";
>
> echo "[Entry]\n";
>
> echo "Entry_Name=Vispa Dialup\n";
>
> echo "\n";
>
> echo "[Phone]\n";
>
> echo "Phone_Number=0500028\n";
>
> echo "Area_Code=0845\n";
>
> echo "Country_Code=44\n";
>
> echo "Country_ID=44\n";
>
> echo "Dial_As_Is=No\n";
>
> echo "\n";
>
> echo "[User]\n";
>
> echo "Requires_Logon=Yes\n";
>
> echo "Name=vis-$username\n";
>
> echo "Password=$password\n";
>
> echo "Display_Password=Yes\n";
>
> echo "\n";
>
> echo "[Device]\n";
>
> echo "Type=modem\n";
>
> echo "\n";
>
> echo "[Server]\n";
>
> echo "SW_Compress=Yes\n";
>
> echo "PW_Encrypt=No\n";
>
> echo "Network_Logon=no\n";
>
> echo "SW_Encrypt=no\n";
>
> echo "Type=PPP\n";
>
> echo "Negotiate_TCP/IP=Yes\n";
>
> echo "Negotiate_IPX/SPX=No\n";
>
> echo "Negotiate_NetBEUI=No\n";
>
> echo "\n";
>
> echo "[TCP/IP]\n";
>
> echo "Specify_Server_Address=No\n";
>
> echo "DNS_Address=\n";
>
> echo "DNS_Alt_Address=\n";
>
> echo "IP_Header_Compress=Yes\n";
>
> echo "Gateway_On_Remote=Yes\n";
>
> echo "\n";
>
> echo "[Outlook_Express_Global]\n";
>
> echo "Read_Only=1\n";
>
> echo "Hide_MSN=1\n";
>
> } else {
>
> ?>
>
> <HTML><HEAD><TITLE>Generate Automatic Configuration File</TITLE></HEAD>
>
> <FONT FACE=Arial size=2 color=black>
>
> <form action="<?php echo $PHP_SELF; ?>" method="POST">
>
> <table border=0>
>
> <tr><td><font face=arial size=2 color=black><b>Username:</b></font></td>
>
> <td><input type=text name=username size=12></td></tr>
>
> <tr><td><font face=arial size=2 color=black><b>Password:</b></font></td>
>
> <td><input type=password name=password size=16></td></tr>
>
> <tr><td><font face=arial size=2 color=black><b>Firstname:</b></font></td>
>
> <td><input type=text name=firstname size=32></td></tr>
>
> <tr><td><font face=arial size=2 color=black><b>Surname:</b></font></td>
>
> <td><input type=text name=lastname size=32></td></tr>
>
> <tr><td colspan=2 align=center><input type=submit
> value="Generate!"></td></tr>
>
> </table>
>
> </form>
>
> </font>
>
> </html>
>
> <?php // continue...
>
> }
>
> ?>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to