[SOLVED] Export to Notepad

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

[SOLVED] Export to Notepad

Post by S_henry »

When i open(export) php file (by using header code) to MS Excel, the system will display the file properly. But when i export the php file to be opened by Notepad, the system will display that file not properly. When open by notepad, the design is out. For example, this code:

Code: Select all

echo "</br>";
I think it should 'break line'. But in notepad, it still display "</br>". Other than that, sometime got unknown 'square' symbol for 'space'. Anybody know what's the problem pls?
Last edited by S_henry on Fri Jun 10, 2005 4:46 am, edited 1 time in total.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

for a new line in notepad you will need to

Code: Select all

echo "\n";
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

Try with \n
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

I just put "\n" but it still cannot. The square symbol appeared at that space. Got another idea?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Code: Select all

echo "\r\n";
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

OK. Now it's fine. Thanx guys.. :)
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

1 more thing, in notepad, is it possible to put link (<a href=...></a>)? If can, how to code that? This is a part of my code sample:

Code: Select all

echo "\r\n";
echo ("$point->link");
echo "\r\n";
Ross2376
Forum Newbie
Posts: 19
Joined: Mon May 30, 2005 12:03 am

Post by Ross2376 »

I don't believe NotePad has URL capabilities. I could be wrong, though.
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

Actually i also think like that. But maybe somebody got any idea. Because if it is possible, my system will be better. Any idea pls?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

no, links wont work in notepad
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

you can only do in note pad what the menu's let you do.
When in doubt see if you can do it in notepad first. if not sorry, you out of luck. :(
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Notepad is an editor nothing more... you wont get it to do anything other than display and edit the contents of a file. I mean, what would you expect to happen if you opened an MP3 with notepad for example? Music? Nope, you see the code that makes up the MP3.
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

I see.. Now i'm more clear about it. So thanx guys for all the replies..
Post Reply