Jump to content

[SOLVED] Command Line


The-Last-Escape

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/49309-solved-command-line/
Share on other sites

\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.

Link to comment
https://forums.phpfreaks.com/topic/49309-solved-command-line/#findComment-241620
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.