Questions tagged [echo]

Simple function outputting text. Exists in script languages.

echo is mainly used in batch (cmd). An example would be:

echo hello world

which prints "hello world" to the terminal.

The output by default prints directly to the command line, however, it may be piped into a following command as an input. This can be very handy and allows for interoperability between different processes/languages.

5742 questions
1
vote
1 answer

Why can't I echo an acute accent in PHP?

echo '´'; just shows a question mark. I also tried with double quotes, but the same thing happens. I even tried adding a backslash in case it is an escaped character, but that just prints the backslash before the question mark. I have
CuppaJoe
  • 11
  • 4
1
vote
7 answers

php, wordpress add line break with in two echo statements

is there any way to print this two echo statements in different line with out closing php and use html to line break in plane php
bhv
  • 5,188
  • 3
  • 35
  • 44
1
vote
2 answers

Multiple grep output on same line

This seems to be a very trivial question but I don't have enough experience using grep and echo to answer it by myself. I have looked here and here with no success. I have a file that starts like this (.gff file) with over 1,000,000 lines.…
tlorin
  • 1,100
  • 6
  • 17
  • 30
1
vote
7 answers

Include if statement in HTML table

I want to include an if statement in my PHP code that renders an HTML table. The output should be in a table row, too. echo '', '
', $mounts['name'],…
Robster
  • 87
  • 1
  • 5
  • 11
1
vote
1 answer

php echo adding on "0');" to the end of the output

I run a local server I am working on and php echo appears to be freaking out. This is the error: echo ""; yields ;0') when I "view page source" of the webpage. In…
1
vote
1 answer

socket io connection refused with laravel echo

I keep getting a connection refused error: https://example.com:6001/socket.io/?EIO=3&transport=polling&t=LqznKQ9 net::ERR_CONNECTION_REFUSED On the vps ip tables is disabled, no firewall, laravel echo starts fine. Config file: { "appKey":…
user3844579
  • 485
  • 1
  • 8
  • 29
1
vote
3 answers

Move cursor position in bash at specific column

I want to move the bash cursor in an echo command on a specific column, but without changing the line. What I have so far is: this.echo('NONE found on ' + accountName + '(' + accountPos + ')' + '\033[30f !!!'); I want the 30 to be the column…
Vlad Balanescu
  • 664
  • 5
  • 27
1
vote
2 answers

How to display barcode images in one vertical straight line using php html?

How can i display my barcode images in one vertical straight line using php html. The first and second images is not arranged in organized and tidy form, can someone check my code? …
user8223567
1
vote
3 answers

codeigniter timespan function

Hello i have now search the hole web and found a lot but i just dont know how to make it to work so now im asking here for help i want to do so then a person create a comment it should said "created 1 sec. ago" and then 1 min and 1 hour and like…
Simon
  • 11
  • 1
  • 2
1
vote
1 answer

printing value from variable returning the existing paths using '*' unix

how could I print a variable that has '*', I just want to print value and is taking it as "all" example of what I want: var=/home/us*r/ echo ${var} Result: /home/us*r/ example of what is doing var=/home/us*r/ echo…
Javier Salas
  • 1,064
  • 5
  • 15
  • 38
1
vote
1 answer

How to send an HTML email, what contains a php echo command?

I searched for this everywhere, but I couldn't find it. I want to echo some variables. My message: $mailMsg ='
user7396338
1
vote
1 answer

Using external php

I am building a website using a technique I've never seen, and I may have just found out why, but I thought I'd check with those who know better than I. My project is set up with a Tasks.php that looks something like:
Spencer Cornwall
  • 289
  • 2
  • 14
1
vote
1 answer

file_get_contents echoes something, but fgets returns false

This is my code:
user8149522
1
vote
4 answers

PHP echo with variables and functions

I'm trying to create an automatic refresh url as below but it doesn't seem to be working.
Jeremy
  • 41
  • 3
1
vote
3 answers

Echo off in bat file isn't working

So I wrote a short bat file which creates user and some more: @echo off net user egzamin /add net user egzaming /expires:17/07/17 net user egzamin /logonpasswordchg:YES pause exit what I get from it is: C:\Users\Ja\Desktop>´╗┐@echo /off '´╗┐@echo'…
1 2 3
99
100