473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP writing a TXT Configutation File

2
Hi Guys,

Could you kindly help with this.

So we can assume that we have a html5 form that writes its data to a text file.
Now this is the easy part
my intent depends on the below configuration template (using Grouped arrays)

1-Group1,10,20,30,40,50,0
2-Group2,1,0,0
3-Group3,1,0,2,14
4-Group4,Fri,2,12,2016,13,55
5-Group5,0
6-Group6,1,0
7-Group7,0,0,1,1,4,1,11
8-Group8,0,0,1
9-Group9i,0
10-Group10,0,1
IqamaFajr,20,5,0,1
IqamaShourouk/Duha,0,18,30,0
IqamaDuhur,20,12,10,1
IqamaAsr,10,15,11,1
IqamaMaghrib,5,5,12,1
IqamaIsha,5,18,13,1
IqamaJomaa,60,12,14,1
11-Group11,1,0
12-Group12,1,0
13-Group13,30
14-Group14,1,0,1,1,1,1,0
15-Group15,1,1,1,1,1

Any guidance in generating that complex array would be much appreciated.
Thanking you in advance,
Toki
Dec 27 '16 #1
0 1069

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Randy Jackson | last post by:
Hello all. Okay, this seems really stupid, but it's driving me up the wall. I have a simple script I've written to log some information to a text file. Everything seems to be okay, the code...
2
by: Kelly G. | last post by:
Hi all, I have a small problem in writing XML file from VB.net. I am trying to write the XML file using dataset. I am able to write the XML in sequential way(one node after other). I can write...
3
by: ishekar | last post by:
Hi, I have an application where i want to write data to a file, the data is being sent from an external source. I know the total size of the data and then i retrieve the data in small segments...
0
by: Andrius | last post by:
Hello, having some problems by writing XML file by XML schema. using strongly typed datasets. Schema: <?xml version="1.0" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">...
2
by: John Salerno | last post by:
I wrote this code just to experiment with writing to and reading from a file. It seems to work fine when writing, but when reading the file, it only prints the filepath to the screen, not the file...
5
by: eight02645999 | last post by:
hi i have some output that returns a lines of tuples eg ('sometext1', 1421248118, 1, 'P ') ('sometext2', 1421248338, 2, 'S ') and so on ..... I tried this re.sub(r" '() ",'',str(output))...
0
by: yogesh_anand | last post by:
Hi I am using sun solaris 5.9 operating system.Sometimes after reading from and while writing to file process size used to get increase.(it can be after 20th times 40 th time) I doesn't happen...
1
by: admol | last post by:
I'm using the following c# code to write a file string strVCard = vcg.Generate(); FileInfo fi = new FileInfo("" + firstn + " " + lastn + "" + ".vcf"); StreamWriter sw...
3
by: Barry Flynn | last post by:
Hi I am working with a VB 2005 program which has been converted from VB6. It writes data out to a flat file, with code like the following line WriteLine(riFileNo, "Hist", lsAssetID,...
1
by: kaisrajan | last post by:
class Program { static void Main(string args) { string names = new string { "kasi", "rajan" }; using (StreamWriter sw = new...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.