The-Last-Escape Posted April 30, 2007 Share Posted April 30, 2007 I am studying here [a href=\"http://www.hudzilla.org/phpbook/read.php/2_6_2\" target=\"_blank\"]http://www.hudzilla.org/phpbook/read.php/2_6_2[/a] on that specific page, it speaks of various letters that do various things. What is a command line I think it's were you are using a server on your own computer, I will be working for people off there internet server. so I won't have a command line I don't think, it told me about /n would cause a line space. I tried that forever it didn't work, I had to start adding in to get it, so I know /n doesn't work, which of those others should I use a replacement for instead, and if so, what command would replace each of those like /n is replaced with when you are doing it on an internet hosting server. Quote Link to comment https://forums.phpfreaks.com/topic/49309-solved-command-line/ Share on other sites More sharing options...
Dragen Posted April 30, 2007 Share Posted April 30, 2007 it's not /n. It's \n Quote Link to comment https://forums.phpfreaks.com/topic/49309-solved-command-line/#findComment-241617 Share on other sites More sharing options...
trq Posted April 30, 2007 Share Posted April 30, 2007 \n does work, but it needs to be within double quotes. Even in a webserver environemt, code view via a browser will have a new line with \n. Try... <?php echo "This is a line\nThis is a new one"; ?> Open that page in your borwser then right click and view source. Notice the newlines? html recognises <br /> as a line break though. As for the command line, its commonly used in Linux, though windows has one too. it is simply an environment that allows you to type commands to execute scripts and programs. Quote Link to comment https://forums.phpfreaks.com/topic/49309-solved-command-line/#findComment-241620 Share on other sites More sharing options...
The-Last-Escape Posted April 30, 2007 Author Share Posted April 30, 2007 You guys are brillant Quote Link to comment https://forums.phpfreaks.com/topic/49309-solved-command-line/#findComment-241690 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.