Solved

fwrite($fp,$header); - Making the headers BOLD

Posted on 2008-10-06
6
1,442 Views
Last Modified: 2012-05-05
How do the make the header bold/italic etc in the headers when I write into a csv file.
fwrite($fp,$header);

TY
0
Comment
Question by:martyje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 24

Accepted Solution

by:
glcummins earned 125 total points
ID: 22650326
CSV files do not contain formatting, so it is not possible to make text bold.
0
 
LVL 8

Expert Comment

by:nahime
ID: 22650377
It's a simple text file, you cannot add formatting like italic or bold
0
 

Author Comment

by:martyje
ID: 22650412
If that 'd be an exel file, that 'd work?
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 8

Expert Comment

by:nahime
ID: 22650453
yes, but you have to use some framework to write on xls.

See this link:
http://www.phphacks.com/content/view/26/33/
0
 
LVL 24

Expert Comment

by:glcummins
ID: 22650546
If I remember correctly, when you import a CSV into Excel and specify the first line as headers, Excel boldfaces the header text for you. Does this fit with your observations?
0
 

Author Comment

by:martyje
ID: 22650821
No not really. I have my CSV file opening inot Excel file but it doesn't bold the header.
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question