Click here to Skip to main content
15,885,032 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Not sure what it's called PinPopular
Smithers-Jones28-Dec-10 2:59
Smithers-Jones28-Dec-10 2:59 
GeneralRe: Not sure what it's called Pin
MacRaider428-Dec-10 3:06
MacRaider428-Dec-10 3:06 
GeneralRe: Not sure what it's called Pin
Smithers-Jones29-Dec-10 11:02
Smithers-Jones29-Dec-10 11:02 
QuestionBest PHP Webmail system to access mail remotely Pin
mario202726-Dec-10 19:14
mario202726-Dec-10 19:14 
AnswerRe: Best PHP Webmail system to access mail remotely Pin
Gerben Jongerius26-Dec-10 20:40
Gerben Jongerius26-Dec-10 20:40 
AnswerRe: Best PHP Webmail system to access mail remotely Pin
shamly6-Jan-11 19:01
shamly6-Jan-11 19:01 
Questionmultiform post data using http thingies Pin
0b4m422-Dec-10 23:36
0b4m422-Dec-10 23:36 
AnswerRe: multiform post data using http thingies Pin
cjoki23-Dec-10 4:48
cjoki23-Dec-10 4:48 
--- This looks alot like how an email is formated.

Content-Type: multipart/form-data; boundary=---------------------------25578952812662351891242608872

-- You will have to be read to detremine how the document is seperated and ends.
boundary= is the key
---------------------------25578952812662351891242608872 is the value.


-- Each record boundary value may have a random value or is hard coded, reguardless you will need to read it as it will seperate the documents various sections.


Content-Disposition: form-data; name="123456789"; filename="listData.csv"
Content-Type: text/plain

-- This looks like the header to the data.

john.smith@email.com,John Smith,07798564352,Brightonsarah.jones@email.com,Sarah Jones,0779646352,Londonbob.samuel@email.com,Bob Samuel,0775354542,Cardiff

-- and of course this is the data. As a csv file goes it is missing the first line which the column names but you can work around that.
-- I would save the entire post as a text file and then open that with the file function which will return an array.
-- You can then step through the file looking for the Content-Type: text/plain and then move to the next row as this is where the content data starts.
-- Then use the explode function to make a array of the individual lines of data...

john.smith@email.com,John Smith,07798564352,Brightonsarah.jones@email.com,Sarah

...becomes...

array('john.smith@email.com','John Smith','07798564352','Brightonsarah.jones@email.com','Sarah')

for here you can do whatever you need with the data.

Others may have a better approach but this will work.

Chris J
QuestionConverting CGM to PDF (A4 only) Pin
pfsWrite21-Dec-10 20:47
pfsWrite21-Dec-10 20:47 
QuestionSQL to multidimenisonal array [modified] Pin
MacRaider420-Dec-10 8:10
MacRaider420-Dec-10 8:10 
AnswerRe: SQL to multidimenisonal array [modified] Pin
Luc Pattyn20-Dec-10 8:35
sitebuilderLuc Pattyn20-Dec-10 8:35 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider420-Dec-10 8:43
MacRaider420-Dec-10 8:43 
GeneralRe: SQL to multidimenisonal array [modified] Pin
MacRaider420-Dec-10 9:29
MacRaider420-Dec-10 9:29 
GeneralRe: SQL to multidimenisonal array Pin
Luc Pattyn20-Dec-10 10:25
sitebuilderLuc Pattyn20-Dec-10 10:25 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider420-Dec-10 14:46
MacRaider420-Dec-10 14:46 
AnswerRe: SQL to multidimenisonal array Pin
Luc Pattyn20-Dec-10 14:59
sitebuilderLuc Pattyn20-Dec-10 14:59 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 2:06
MacRaider421-Dec-10 2:06 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 7:35
MacRaider421-Dec-10 7:35 
GeneralRe: SQL to multidimenisonal array Pin
Luc Pattyn21-Dec-10 8:02
sitebuilderLuc Pattyn21-Dec-10 8:02 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 10:01
MacRaider421-Dec-10 10:01 
GeneralRe: SQL to multidimenisonal array Pin
Luc Pattyn21-Dec-10 10:09
sitebuilderLuc Pattyn21-Dec-10 10:09 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 14:12
MacRaider421-Dec-10 14:12 
AnswerRe: SQL to multidimenisonal array Pin
schwarzenneger21-Dec-10 18:48
schwarzenneger21-Dec-10 18:48 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider422-Dec-10 1:40
MacRaider422-Dec-10 1:40 
GeneralRe: SQL to multidimenisonal array Pin
cjoki22-Dec-10 5:24
cjoki22-Dec-10 5:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.