0

hi, am getting the following error:
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\pro\Copy of procreate.php on line 268
but i am unable to find the error. here is my code
<?php

// Get values sent to page from user form input
$space=$_POST;
$exten=$_POST;


Echo "Writing file...";

$myFile = "$exten.cfg";
$fileHandle = fopen($myFile, 'w') or die("Problem creating file");
fwrite($fileHandle, "<<VOIP CONFIG FILE>>Version:2.0030\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<GLOBAL CONFIG MODULE>\r\n");
fwrite($fileHandle, "Static IP :\r\n");
fwrite($fileHandle, "Static NetMask :\r\n");
fwrite($fileHandle, "Static GateWay :\r\n");
fwrite($fileHandle, "Default Protocol :\r\n");
fwrite($fileHandle, "Primary DNS :\r\n");
fwrite($fileHandle, "Alter DNS :\r\n");
fwrite($fileHandle, "DHCP Mode :\r\n");
fwrite($fileHandle, "DHCP Dns :1\r\n");
fwrite($fileHandle, "Domain Name :\r\n");
fwrite($fileHandle, "Host Name :$exten\r\n");
fwrite($fileHandle, "Pppoe Mode :0\r\n");
fwrite($fileHandle, "HTL Start Port :10000\r\n");
fwrite($fileHandle, "HTL Port Number :20000\r\n");
fwrite($fileHandle, "SNTP Server :10.0.0.101\r\n");
fwrite($fileHandle, "Enable SNTP :1\r\n");
fwrite($fileHandle, "Time Zone :43\r\n");
fwrite($fileHandle, "Enable Daylight :0\r\n");
fwrite($fileHandle, "SNTP Time Out :60\r\n");
fwrite($fileHandle, "DayLight Shift Min :60\r\n");
fwrite($fileHandle, "DayLight Start Mon :3\r\n");
fwrite($fileHandle, "DayLight Start Week:5\r\n");
fwrite($fileHandle, "DayLight Start Wday:0\r\n");
fwrite($fileHandle, "DayLight Start Hour:2\r\n");
fwrite($fileHandle, "DayLight Start Min :0\r\n");
fwrite($fileHandle, "DayLight End Mon :10\r\n");
fwrite($fileHandle, "DayLight End Week :5\r\n");
fwrite($fileHandle, "DayLight End Wday :0\r\n");
fwrite($fileHandle, "DayLight End Hour :\r\n");
fwrite($fileHandle, "DayLight End Min :\r\n");
fwrite($fileHandle, "MMI Set :\r\n");
fwrite($fileHandle, "MTU Length :\r\n");
fwrite($fileHandle, "Net Traffic Timeout:\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<LAN CONFIG MODULE>\r\n");
fwrite($fileHandle, "Lan Ip :\r\n");
fwrite($fileHandle, "Lan NetMask :\r\n");
fwrite($fileHandle, "Bridge Mode :\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<TELE CONFIG MODULE>\r\n");
fwrite($fileHandle, "Dial End With # :1\r\n");
fwrite($fileHandle, "Dial Fixed Length :0\r\n");
fwrite($fileHandle, "Fixed Length :11\r\n");
fwrite($fileHandle, "Dial With Timeout :0\r\n");
fwrite($fileHandle, "Dial Timeout value :3\r\n");
fwrite($fileHandle, "Dialpeer With Line :0\r\n");
fwrite($fileHandle, "Poll Sequence :0\r\n");
fwrite($fileHandle, "Accept Any Call :1\r\n");
fwrite($fileHandle, "Phone Prefix :\r\n");
fwrite($fileHandle, "Local Area Code :\r\n");
fwrite($fileHandle, "IP call network :.\r\n");
fwrite($fileHandle, "--Port Config-- :\r\n");
fwrite($fileHandle, "P1 No Disturb :0\r\n");
fwrite($fileHandle, "P1 Mute :0\r\n");
fwrite($fileHandle, "P1 No Dial Out :0\r\n");
fwrite($fileHandle, "P1 No Empty Calling:0\r\n");
fwrite($fileHandle, "P1 Enable CallerId :1\r\n");
fwrite($fileHandle, "P1 Forward Service :0\r\n");
fwrite($fileHandle, "P1 SIP TransNum :\r\n");
fwrite($fileHandle, "P1 SIP TransAddr :\r\n");
fwrite($fileHandle, "P1 SIP TransPort :\r\n");
fwrite($fileHandle, "P1 CallWaiting :1\r\n");
fwrite($fileHandle, "P1 CallTransfer :1\r\n");
fwrite($fileHandle, "P1 Call3Way :1\r\n");
fwrite($fileHandle, "P1 AutoAnswer :0\r\n");
fwrite($fileHandle, "P1 No Answer Time :20\r\n");
fwrite($fileHandle, "P1 Extention No. :\r\n");
fwrite($fileHandle, "P1 Auto HandDown :0\r\n");
fwrite($fileHandle, "P1 Auto Handdown Ti:3\r\n");
fwrite($fileHandle, "P1 Hotline Num :\r\n");
fwrite($fileHandle, "P1 Record Server :\r\n");
fwrite($fileHandle, "P1 Enable Record :0\r\n");
fwrite($fileHandle, "P1 Busy N/A Line :0\r\n");
fwrite($fileHandle, "--Digital List-- :\r\n");
fwrite($fileHandle, "Item1 rule :\r\n");
fwrite($fileHandle, "Item2 rule :\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<DSP CONFIG MODULE>\r\n");
fwrite($fileHandle, "Signal Standard :13\r\n");
fwrite($fileHandle, "Handdown Time :200\r\n");
fwrite($fileHandle, "G729 Payload Length:1\r\n");
fwrite($fileHandle, "G723 Bit Rate :1\r\n");
fwrite($fileHandle, "G722 Timestamps :0\r\n");
fwrite($fileHandle, "VAD :0\r\n");
fwrite($fileHandle, "Ring Type :1\r\n");
fwrite($fileHandle, "Dtmf Payload Type :101\r\n");
fwrite($fileHandle, "Disable Handfree :0\r\n");
fwrite($fileHandle, "RTP PROBE :0\r\n");
fwrite($fileHandle, "--Port Config-- :\r\n");
fwrite($fileHandle, "P1 Output Vol :9\r\n");
fwrite($fileHandle, "P1 Input Vol :9\r\n");
fwrite($fileHandle, "P1 Headset Vol :5\r\n");
fwrite($fileHandle, "P1 HandFree Vol :9\r\n");
fwrite($fileHandle, "P1 RingTone Vol :9\r\n");
fwrite($fileHandle, "P1 Codec :-1\r\n");
fwrite($fileHandle, "P1 Voice Record :0\r\n");
fwrite($fileHandle, "P1 Record Playing :1\r\n");
fwrite($fileHandle, "P1 UserDef Voice :0\r\n");
fwrite($fileHandle, "P1 First Codec :0\r\n");
fwrite($fileHandle, "P1 Second Codec :17\r\n");
fwrite($fileHandle, "P1 Third Codec :-1\r\n");
fwrite($fileHandle, "P1 Forth Codec :-1\r\n");
fwrite($fileHandle, "P1 Fifth Codec :-1\r\n");
fwrite($fileHandle, "P1 Sixth Codec :-1\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<SIP CONFIG MODULE>\r\n");
fwrite($fileHandle, "SIP Port :5060\r\n");
fwrite($fileHandle, "Stun Address :\r\n");
fwrite($fileHandle, "Stun Port :3478\r\n");
fwrite($fileHandle, "Stun Effect Time :50\r\n");
fwrite($fileHandle, "SIP Differv :0\r\n");
fwrite($fileHandle, "Extern Address :\r\n");
fwrite($fileHandle, "Url Convert :1\r\n");
fwrite($fileHandle, "Reg Retry Time :30\r\n");
fwrite($fileHandle, "Strict BranchPrefix:1\r\n");
fwrite($fileHandle, "--SIP Line List-- :\r\n");
fwrite($fileHandle, "SIP1 Phone Number :$exten\r\n");
fwrite($fileHandle, "SIP1 Display Name :$exten\r\n");
fwrite($fileHandle, "SIP1 Sip Name :\r\n");
fwrite($fileHandle, "SIP1 Register Addr :\r\n");
fwrite($fileHandle, "SIP1 Register Port :5060\r\n");
fwrite($fileHandle, "SIP1 Register User :$exten\r\n");
fwrite($fileHandle, "SIP1 Register Pwd :$exten\r\n");
fwrite($fileHandle, "SIP1 Register TTL :3600\r\n");
fwrite($fileHandle, "SIP1 Enable Reg :1\r\n");
fwrite($fileHandle, "SIP1 Proxy Addr :\r\n");
fwrite($fileHandle, "SIP1 Proxy Port :5\r\n");
fwrite($fileHandle, "SIP1 Proxy User :5\r\n");
fwrite($fileHandle, "SIP1 Proxy Pwd :5\r\n");
fwrite($fileHandle, "SIP1 Signal Enc :0\r\n");
fwrite($fileHandle, "SIP1 Signal Key :\r\n");
fwrite($fileHandle, "SIP1 Media Enc :0\r\n");
fwrite($fileHandle, "SIP1 Media Key :\r\n");
fwrite($fileHandle, "SIP1 Local Domain :1\r\n");
fwrite($fileHandle, "SIP1 Fwd Service :0\r\n");
fwrite($fileHandle, "SIP1 Ring Type :0\r\n");
fwrite($fileHandle, "SIP1 Fwd Number :\r\n");
fwrite($fileHandle, "SIP1 Hotline Number:\r\n");
fwrite($fileHandle, "SIP1 Enable Detect :0\r\n");
fwrite($fileHandle, "SIP1 Detect TTL :3600\r\n");
fwrite($fileHandle, "SIP1 Server Type :0\r\n");
fwrite($fileHandle, "SIP1 User Agent :Voip Phone 1.0\r\n");
fwrite($fileHandle, "SIP1 PRACK :0\r\n");
fwrite($fileHandle, "SIP1 KEEP AUTH :0\r\n");
fwrite($fileHandle, "SIP1 Session Timer :0\r\n");
fwrite($fileHandle, "SIP1 Gruu :0\r\n");
fwrite($fileHandle, "SIP1 DTMF Mode :2\r\n");
fwrite($fileHandle, "SIP1 DTMF SIP-INFO :0\r\n");
fwrite($fileHandle, "SIP1 Use Stun :0\r\n");
fwrite($fileHandle, "SIP1 Via Port :1\r\n");
fwrite($fileHandle, "SIP1 Subscribe :0\r\n");
fwrite($fileHandle, "SIP1 Sub Expire :3600\r\n");
fwrite($fileHandle, "SIP1 Single Codec :0\r\n");
fwrite($fileHandle, "SIP1 CLIR :0\r\n");
fwrite($fileHandle, "SIP1 Strict Proxy :0\r\n");
fwrite($fileHandle, "SIP1 Direct Contact:0\r\n");
fwrite($fileHandle, "SIP1 History Info :0\r\n");
fwrite($fileHandle, "SIP1 DNS SRV :0\r\n");
fwrite($fileHandle, "SIP1 Transfer Expir:0\r\n");
fwrite($fileHandle, "SIP1 Ban Anonymous :0\r\n");
fwrite($fileHandle, "SIP1 Dial Without R:0\r\n");
fwrite($fileHandle, "SIP1 DisplayName Qu:0\r\n");
fwrite($fileHandle, "SIP1 Presence Mode :0\r\n");
fwrite($fileHandle, "SIP1 RFC Ver :1\r\n");
fwrite($fileHandle, "SIP1 Signal Port :5060\r\n");
fwrite($fileHandle, "SIP1 Transport :0\r\n");
fwrite($fileHandle, "SIP1 Use Mixer :0\r\n");
fwrite($fileHandle, "SIP1 Mixer Uri :\r\n");
fwrite($fileHandle, "SIP1 Long Contact :0\r\n");
fwrite($fileHandle, "SIP1 Auto TCP :0\r\n");
fwrite($fileHandle, "SIP1 Click to Talk :0\r\n");
fwrite($fileHandle, "SIP1 Mwi No. :8500\r\n");
fwrite($fileHandle, "SIP1 Park No. :\r\n");
fwrite($fileHandle, "SIP1 Help No. :\r\n");
fwrite($fileHandle, "SIP2 Phone Number :\r\n");
fwrite($fileHandle, "SIP2 Display Name :\r\n");
fwrite($fileHandle, "SIP2 Sip Name :\r\n");
fwrite($fileHandle, "SIP2 Register Addr :\r\n");
fwrite($fileHandle, "SIP2 Register Port :5060\r\n");
fwrite($fileHandle, "SIP2 Register User :\r\n");
fwrite($fileHandle, "SIP2 Register Pwd :\r\n");
fwrite($fileHandle, "SIP2 Register TTL :60\r\n");
fwrite($fileHandle, "SIP2 Enable Reg :0\r\n");
fwrite($fileHandle, "SIP2 Proxy Addr :\r\n");
fwrite($fileHandle, "SIP2 Proxy Port :5060\r\n");
fwrite($fileHandle, "SIP2 Proxy User :\r\n");
fwrite($fileHandle, "SIP2 Proxy Pwd :\r\n");
fwrite($fileHandle, "SIP2 Signal Enc :0\r\n");
fwrite($fileHandle, "SIP2 Signal Key :\r\n");
fwrite($fileHandle, "SIP2 Media Enc :0\r\n");
fwrite($fileHandle, "SIP2 Media Key :\r\n");
fwrite($fileHandle, "SIP2 Local Domain :\r\n");
fwrite($fileHandle, "SIP2 Fwd Service :0\r\n");
fwrite($fileHandle, "SIP2 Ring Type :0\r\n");
fwrite($fileHandle, "SIP2 Fwd Number :\r\n");
fwrite($fileHandle, "SIP2 Hotline Number:\r\n");
fwrite($fileHandle, "SIP2 Enable Detect :0\r\n");
fwrite($fileHandle, "SIP2 Detect TTL :60\r\n");
fwrite($fileHandle, "SIP2 Server Type :0\r\n");
fwrite($fileHandle, "SIP2 User Agent :Voip Phone 1.0\r\n");
fwrite($fileHandle, "SIP2 PRACK :0\r\n");
fwrite($fileHandle, "SIP2 KEEP AUTH :0\r\n");
fwrite($fileHandle, "SIP2 Session Timer :0\r\n");
fwrite($fileHandle, "SIP2 Gruu :0\r\n");
fwrite($fileHandle, "SIP2 DTMF Mode :1\r\n");
fwrite($fileHandle, "SIP2 DTMF SIP-INFO :0\r\n");
fwrite($fileHandle, "SIP2 Use Stun :0\r\n");
fwrite($fileHandle, "SIP2 Via Port :1\r\n");
fwrite($fileHandle, "SIP2 Subscribe :0\r\n");
fwrite($fileHandle, "SIP2 Sub Expire :300\r\n");
fwrite($fileHandle, "SIP2 Single Codec :0\r\n");
fwrite($fileHandle, "SIP2 CLIR :0\r\n");
fwrite($fileHandle, "SIP2 Strict Proxy :0\r\n");
fwrite($fileHandle, "SIP2 Direct Contact:0\r\n");
fwrite($fileHandle, "SIP2 History Info :0\r\n");
fwrite($fileHandle, "SIP2 DNS SRV :0\r\n");
fwrite($fileHandle, "SIP2 Transfer Expir:0\r\n");
fwrite($fileHandle, "SIP2 Ban Anonymous :0\r\n");
fwrite($fileHandle, "SIP2 Dial Without R:0\r\n");
fwrite($fileHandle, "SIP2 DisplayName Qu:0\r\n");
fwrite($fileHandle, "SIP2 Presence Mode :0\r\n");
fwrite($fileHandle, "SIP2 RFC Ver :1\r\n");
fwrite($fileHandle, "SIP2 Signal Port :0\r\n");
fwrite($fileHandle, "SIP2 Transport :0\r\n");
fwrite($fileHandle, "SIP2 Use Mixer :0\r\n");
fwrite($fileHandle, "SIP2 Mixer Uri :\r\n");
fwrite($fileHandle, "SIP2 Long Contact :0\r\n");
fwrite($fileHandle, "SIP2 Auto TCP :0\r\n");
fwrite($fileHandle, "SIP2 Click to Talk :0\r\n");
fwrite($fileHandle, "SIP2 Mwi No. :\r\n");
fwrite($fileHandle, "SIP2 Park No. :\r\n");
fwrite($fileHandle, "SIP2 Help No. :\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<IAX2 CONFIG MODULE>\r\n");
fwrite($fileHandle, "Server Address :\r\n");
fwrite($fileHandle, "Server Port :4569\r\n");
fwrite($fileHandle, "User Name :\r\n");
fwrite($fileHandle, "User Password :\r\n");
fwrite($fileHandle, "User Number :\r\n");
fwrite($fileHandle, "Voice Number :0\r\n");
fwrite($fileHandle, "Voice Text :mail\r\n");
fwrite($fileHandle, "EchoTest Number :1\r\n");
fwrite($fileHandle, "EchoTest Text :echo\r\n");
fwrite($fileHandle, "Local Port :4569\r\n");
fwrite($fileHandle, "Enable Register :0\r\n");
fwrite($fileHandle, "Refresh Time :60\r\n");
fwrite($fileHandle, "Enable G.729 :0\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<PPPoE CONFIG MODULE>\r\n");
fwrite($fileHandle, "Pppoe User :\r\n");
fwrite($fileHandle, "Pppoe Password :\r\n");
fwrite($fileHandle, "Pppoe Service :ANY\r\n");
fwrite($fileHandle, "Pppoe Ip Address :\r\n");
fwrite($fileHandle, "$space\r\n")
fwrite($fileHandle, "<MMI CONFIG MODULE>\r\n");
fwrite($fileHandle, "Telnet Port :23\r\n");
fwrite($fileHandle, "Web Port :80\r\n");
fwrite($fileHandle, "Remote Control :1\r\n");
fwrite($fileHandle, "Enable MMI Filter :0\r\n");
fwrite($fileHandle, "Telnet Prompt :\r\n");
fwrite($fileHandle, "--MMI Account-- :\r\n");
fwrite($fileHandle, "Account1 Name :\r\n");
fwrite($fileHandle, "Account1 Pass :\r\n");
fwrite($fileHandle, "Account1 Level :10\r\n");
fwrite($fileHandle, "Account2 Name :\r\n");
fwrite($fileHandle, "Account2 Pass :\r\n");
fwrite($fileHandle, "Account2 Level :5\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<QOS CONFIG MODULE>\r\n");
fwrite($fileHandle, "Enable VLAN :0\r\n");
fwrite($fileHandle, "Enable diffServ :1\r\n");
fwrite($fileHandle, "DiffServ Value :1\r\n");
fwrite($fileHandle, "VLAN ID :2\r\n");
fwrite($fileHandle, "802.1P Value :7\r\n");
fwrite($fileHandle, "VLAN Recv Check :1\r\n");
fwrite($fileHandle, "Data VLAN ID :2\r\n");
fwrite($fileHandle, "Data 802.1P Value :0\r\n");
fwrite($fileHandle, "Diff Data Voice :0\r\n");
fwrite($fileHandle, "Enable PVID :0\r\n");
fwrite($fileHandle, "PVID Value :0\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<DEBUG CONFIG MODULE>\r\n");
fwrite($fileHandle, "MGR Trace Level :0\r\n");
fwrite($fileHandle, "SIP Trace Level :0\r\n");
fwrite($fileHandle, "IAX Trace Level :0\r\n");
fwrite($fileHandle, "Trace File Info :0\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<AAA CONFIG MODULE>\r\n");
fwrite($fileHandle, "Enable Syslog :0\r\n");
fwrite($fileHandle, "Syslog address :\r\n");
fwrite($fileHandle, "Syslog port :5\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<ACCESS CONFIG MODULE>\r\n");
fwrite($fileHandle, "Enable In Access :0\r\n");
fwrite($fileHandle, "Enable Out Access :0\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<DHCP CONFIG MODULE>\r\n");
fwrite($fileHandle, "Enable DHCP Server :0\r\n");
fwrite($fileHandle, "DHCP Relay Target :\r\n");
fwrite($fileHandle, "Enable DNS Relay :1\r\n");
fwrite($fileHandle, "DHCP Update Flag :0\r\n");
fwrite($fileHandle, "TFTP Server :0.0\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<NAT CONFIG MODULE>\r\n");
fwrite($fileHandle, "Enable Nat :0\r\n");
fwrite($fileHandle, "Enable Ftp ALG :1\r\n");
fwrite($fileHandle, "Enable H323 ALG :0\r\n");
fwrite($fileHandle, "Enable PPTP ALG :1\r\n");
fwrite($fileHandle, "Enable IPSec ALG :1\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<PHONE CONFIG MODULE>\r\n");
fwrite($fileHandle, "Keypad Password :7\r\n");
fwrite($fileHandle, "KeyLock Password :1\r\n");
fwrite($fileHandle, "Enable KeyLock :0\r\n");
fwrite($fileHandle, "LCD Logo :\r\n");
fwrite($fileHandle, "LCD Constrast :5\r\n");
fwrite($fileHandle, "LCD Luminance :1\r\n");
fwrite($fileHandle, "Backlight Off Time :30\r\n");
fwrite($fileHandle, "Time Display Style :0\r\n");
fwrite($fileHandle, "Display Time :1\r\n");
fwrite($fileHandle, "Resolve Address :\r\n");
fwrite($fileHandle, "MWI Number :\r\n");
fwrite($fileHandle, "--Function Key-- :\r\n");
fwrite($fileHandle, "Fkey1 Type :2\r\n");
fwrite($fileHandle, "Fkey1 Value :SIP\r\n");
fwrite($fileHandle, "Fkey1 Title :\r\n");
fwrite($fileHandle, "Fkey2 Type :2\r\n");
fwrite($fileHandle, "Fkey2 Value :SIP2\r\n");
fwrite($fileHandle, "Fkey2 Title :\r\n");
fwrite($fileHandle, "Fkey3 Type :0\r\n");
fwrite($fileHandle, "Fkey3 Value :\r\n");
fwrite($fileHandle, "Fkey3 Title :\r\n");
fwrite($fileHandle, "Fkey4 Type :0\r\n");
fwrite($fileHandle, "Fkey4 Value :\r\n");
fwrite($fileHandle, "Fkey4 Title :\r\n");
fwrite($fileHandle, "Fkey5 Type :0\r\n");
fwrite($fileHandle, "Fkey5 Value :\r\n");
fwrite($fileHandle, "Fkey5 Title :\r\n");
fwrite($fileHandle, "Fkey6 Type :0\r\n");
fwrite($fileHandle, "Fkey6 Value :\r\n");
fwrite($fileHandle, "Fkey6 Title :\r\n");
fwrite($fileHandle, "Fkey7 Type :0\r\n");
fwrite($fileHandle, "Fkey7 Value :\r\n");
fwrite($fileHandle, "Fkey7 Title :\r\n");
fwrite($fileHandle, "Fkey8 Type :0\r\n");
fwrite($fileHandle, "Fkey8 Value :\r\n");
fwrite($fileHandle, "Fkey8 Title :\r\n");
fwrite($fileHandle, "Fkey9 Type :0\r\n");
fwrite($fileHandle, "Fkey9 Value :\r\n");
fwrite($fileHandle, "Fkey9 Title :\r\n");
fwrite($fileHandle, "Fkey10 Type :0\r\n");
fwrite($fileHandle, "Fkey10 Value :\r\n");
fwrite($fileHandle, "Fkey10 Title :\r\n");
fwrite($fileHandle, "Fkey11 Type :0\r\n");
fwrite($fileHandle, "Fkey11 Value :\r\n");
fwrite($fileHandle, "Fkey11 Title :\r\n");
fwrite($fileHandle, "Fkey12 Type :0\r\n");
fwrite($fileHandle, "Fkey12 Value :\r\n");
fwrite($fileHandle, "Fkey12 Title :\r\n");
fwrite($fileHandle, "Memo Number :0\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<AUTOUPDATE CONFIG MODULE>\r\n");
fwrite($fileHandle, "Download Username :\r\n");
fwrite($fileHandle, "Download password :\r\n");
fwrite($fileHandle, "Download Server IP :192.1\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "Config File Name :$exten.cfg\r\n");
fwrite($fileHandle, "Config File Key :\r\n");
fwrite($fileHandle, "Download Protocol :2\r\n");
fwrite($fileHandle, "Download Mode :1\r\n");
fwrite($fileHandle, "Download Interval :1\r\n");
fwrite($fileHandle, "DHCP Option 66 :0\r\n");
fwrite($fileHandle, "$space\r\n");
fwrite($fileHandle, "<VPN CONFIG MODULE>\r\n");
fwrite($fileHandle, "VPN mode :-1\r\n");
fwrite($fileHandle, "L2TP LNS IP :\r\n");
fwrite($fileHandle, "L2TP User Name :\r\n");
fwrite($fileHandle, "L2TP Password :\r\n");
fwrite($fileHandle, "Enable VPN Tunnel :0\r\n");
fwrite($fileHandle, "VPN Server IP :0.0.0.0\r\n");
fwrite($fileHandle, "VPN Server Port :80\r\n");
fwrite($fileHandle, "Server Group ID :VPN\r\n");
fwrite($fileHandle, "Server Area Code :12345\r\n");
fwrite($fileHandle, "<<END OF FILE>>\r\n");


Echo "Completed";

Echo "<br><br><a href='$exten.cfg'>View Generated Config File</a>";

?>


thanks to help.

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by dinhunzvi
0

you left out a comma on line 267

thanks dinhunzvi, it works...
i search the whole file like 10 times but could find that simple issue.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.