Where can I find example code for phplot? 

by on July 10, 2012

Q: I need help, am new at phplot and need to read blood pressure from a csv file for use in phplot line graph. Since I know very little about this need, sample code would be apprechiated

 
 

Why is there a csv event file generated in MyDocuments? 

by on June 28, 2012

Q: a .csv file is being generated in MyDocuments every day with en event logged every hour. The file name is MYCOMPUTERNAME_Myusername_2012_6_27. it has 200 lines in each file and has generated one a day since may 30th. almost all of the events are identical with a few exceptions

#Event,Source,Time,Error Severity,Domain,User,Description
1,S24EvMon,05/31/2012 17:32:05,Information,AppDriver,SYSTEM,No adapter found.

I looked through reports in administrative tools – event viewer, performance monitor but nothing seems related.

I just want to know what is generating these reports–what is trying to access what adapter and why, and what should I do about it?

 
 

How do I make a file that is delimited by pipes readable by a human? 

by on July 6, 2011

Q: I have this file that my supervisor gave me : sample.txt that contains :
1|BC Hydro|BC|90006390|Minimum 1 Maximum 11|All numeric|Following business day|Utilities|2007-04-04 15:35:00|Y|BC Hydro|Y||1 2|TELUS Communications|National|90031111|Minimum 10 Maximum 10|All Numeric. Must start with 0,1,2,3,4,5,6 or 8. Mod 10(2,1,2,1). To calculate the check digit, add “315” to the registered account number and apply MOD 10 formula. Test accounts: 1250762858, 2286470104, 2323188313|Following business day|Telecommunications|2006-05-24 11:14:00|Y||Y||2 4|Rogers Cablesystems|ON|90007326|12 digits|All Numeric. Must start with 220, 221, 222, 230, 231, 232, 233, 234, 239, 240, 260 or 265.|Following business day|Cable|2006-04-12 08:53:00|Y|Rogers Cablesystems|Y||3

3 lines only if u put it in a txt file.

I need to sort it somehow to let other people understand it. how would i do that ?
i think i need to delete that delimiter | and make tike columns so that we can read the txt clearly.
I noticed that the | in each line is 13.
Any help ?

 
 

Creating a CSV file with PHP? 

by on February 11, 2010

Q: I need to create a CSV file using PHP, then send that CSV data to SatNav. I am not experienced with PHP, so any direction would be helpful.

 
 

Generate a CSV file using PHP 

by on February 28, 2006

Q: How do you create a CSV file dynamically with PHP? I have tried many of the examples on the web but while the save/open prompt does show, it lets me know my file is unable to be opened. I need this to not be a file that is stored on my server but instead created at the time of demand.

A: The key to generating a CSV file using PHP that will be sent to your users web browser for them to open and do with as they want is to make sure you tell the browser that it is coming. Normally using PHP you just send the browser an html document and that is what the browser expects.

You need to tell the web browser to expect a file. In order to do this you have to use the header() functions built into PHP.

header(‘Expires: 0’);
header(‘Cache-control: private’);
header(‘Cache-Control: must-revalidate, post-check=0, pre-check=0’);
header(‘Content-Description: File Transfer’);
header(‘Content-Type: application/vnd.ms-excel’);
header(‘Content-disposition: attachment; filename=”file_name.xls”‘);

Then you just echo your data. You have to make sure not to send any information before you call your header functions or else you will get errors on your page and the file will not be downloadable but will be displayed in the browser.