Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.