- PHP
- Posted by Scott Pinhorne on July 4th, 2003
Hi
I have a script that automatically generates a .ini config file for a
router from input from a user.
My problem is that i am inserting about 4 lines at the bottom of the
config that i need on separete lines but when the file is generated i
just the the return character rather than a new line. I have used /r and
/n but still get same :-(
any one have an idea on this?
thanks in advance.
- Posted by Ian.H [dS] on July 4th, 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Whilst lounging around on Fri, 04 Jul 2003 09:12:02 +0100, Scott
Pinhorne <scott@mysecretworld.co.uk> amazingly managed to produce the
following with their Etch-A-Sketch:
Tried the correct format?
\n
or
\r
or
\r\n
depending on platform.
HTH.
Regards,
Ian
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPwU3s2fqtj251CDhEQLRKwCbB8JB99tXBgLxYCS1AJ6DPw YaHQoAn2Vv
szQCiiqten2vzr68FqJ+QDJu
=vMg6
-----END PGP SIGNATURE-----
--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
- Posted by scott pinhorne on July 4th, 2003
Ian.H [dS] wrote:
Sorry my early mis typing, yes i have tried these variations.
- Posted by Roger M on July 4th, 2003
On Fri, 04 Jul 2003 09:12:02 +0100, Scott Pinhorne
<scott@mysecretworld.co.uk> wrote:
Please post the line of code that you use to write the line to the
file. If you are writing a string, the string must be enclosed in
double quotes for the \n to be converted into a linefeed character.
--
Roger
- Posted by Ian.H [dS] on July 4th, 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Whilst lounging around on Fri, 04 Jul 2003 09:21:12 +0100, scott
pinhorne <scott@newnet.co.uk> amazingly managed to produce the
following with their Etch-A-Sketch:
Heh no prob.
Can you post your code Scott so that we can have a look at it? I can
sit and guess all day.. but might spot an error "instantly" if I can
see (some) code.
Regards,
Ian
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPwVFO2fqtj251CDhEQIZbQCg6gqabRcm8+/7B40cWhO5s8Q5vG4AnioS
FpmjHKtFzBHlq5gHvT8FNbu1
=ELl2
-----END PGP SIGNATURE-----
--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
- Posted by Ian.H [dS] on July 4th, 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Whilst lounging around on Fri, 04 Jul 2003 14:48:43 +0100, scott
pinhorne <scott@newnet.co.uk> amazingly managed to produce the
following with their Etch-A-Sketch:
Glad all's resolved Scott =)
Regards,
Ian
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPwWMcmfqtj251CDhEQJJHwCghCi945UopHJ32rZ3HaxQhG d7e9QAoMTd
KqqJB0gUSn6c78zooA0Deono
=fQWq
-----END PGP SIGNATURE-----
--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.


