Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-06
6
Medium Priority
?
1,467 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 500 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

722 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