Hello everyone! Im new to the language Php and i need your help. Please help me on how to generate a text document or an *.xls file using Php. Data to be generated are taken from the database. Thanks and hoping for your response.
dudegio 0 Junior Poster in Training
Recommended Answers
Jump to PostJust a Tip for you, as you're new to PHP.
Once you've written to the txt file and want to get all the info from it again.
You can use the file_get_contents() function to store the file's contents into a string.
Example:$str = file_get_contents("file.txt"); echo $str; …
Jump to Post.xls ???
do you mean an ms excel file or something like that???
there is a classes ready to handle the .xls files if u want to get the data of an excel file.
if u r just using this extension to save text then u could do the ways …
Jump to Postthere is a search box that will search all of the functions available, documentation, and more in php.
All 9 Replies
johny_d 23 Junior Poster in Training
dudegio 0 Junior Poster in Training
johny_d 23 Junior Poster in Training
dr4g 25 Junior Poster
w_3rabi 8 Junior Poster
kye 0 Newbie Poster
hunkychop 3 Junior Poster in Training
kye 0 Newbie Poster
candlelight 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.