echo

How are echo and print different in PHP?

Is there any major and fundamental difference between these two functions in PHP? ...

php Echo/printing a multiline string?

i have a php file launching my exe. the exe does cout and the text is printed in html which is all fine. until i write "someline\n"; The \n breaks the output and i only see the last line. How do i print/echo text/strings that has multilines in them? The current paste has \n commented out and my text prints fine. It looks ugly in the con...

How do I get these strange characters when I try to "echo" the html string?

Hi, I am sending the echo to mail function via PHP from variable that includes HTML code. The strange thing is, that this <����}im� shows up AFTER the string.. but I do not manipulate with it anymore. The charset of mail function (the attachment) is same as charset of HTML code. ...

Disable character echo on Java network connection

I have a Solaris daemon written in Java6. Clients can connect to it using a telnet style interface. They telnet to a particular port, and I read lines of input and act on them. At one point in I need to prompt the user to enter a password, and while they're entering that I want to disable the echoing of characters back to the telnet cli...

PHP Errors on Making Local Copy of Server

I have a site that I am trying to create a local copy of for test purposes (dusting off a past site). I was able to correctly get the db out and most of the site works great. However, I have places where things aren't loading correctly and are just giving me errors or messages in curly braces. For example, a td class' name is being re...

Echo spaces in bash script

How do I echo one or more tab characters using a bash script? When I run this code res=' 'x # res = "\t\tx" echo '['$res']' # expect [\t\tx] I get this res=[ x] # that is [<space>x] ...

With Bash Scripting, how can I suppress all output from a command?

I have a bash script that runs a program with parameters. That program outputs some status (doing this, doing that...). There is no option for this program to be quiet. How can I prevent the script from displaying anything? I am looking for something like windows "echo off". ...

Read echo'ed output from another PHP file

I want 1 PHP file to "run" (include?) another PHP file on the same server, and access its echo'ed output as a string. How do i do this in PHP? Any inbuilt functions to do this? Or any better way of executing another PHP file and getting its output? ...

Problem scripting a HTML header request with netcat

I'm trying to play around with netcat to learn more about how HTTP works. I'd like to script some of it in bash or Perl, but I've hit upon a stumbling block early on in my testing. If I run netcat straight from the prompt and type in a HEAD request, it works and I receive the headers for the web server I'm probing. This works: [...

bash: how do I write non ascii chars using echo?

Is there an escape sequence, such as \012 or something like that? I want to append on ascii chars to a file using echo ?? >> file ...

How to remove the password from a log file in windows?

I have a deployment script (.bat), part of which requires calling other programs and sending a password on the command line. I log the output of the deployment script to a file. The problem is that the password gets logged as well. I need a way of sanitizing this log file. One way to do this is to not echo the line which contains the p...

batch file equivalent for this code

HI i want to implement this C code in batch file int i; scanf("%d", &i); for(int j = 0;j<i;j++) { scanf("%d",&j); printf("%d",j); } I would run the c program using > redirection in DOS so that the printed output comes to me in a file. I want to do the same thing in my batch file where i could write something like echo %variable...

How can I enter a password using Perl and replace the characters with '*'?

I have a Perl script that requires the user to enter a password. How can I echo only '*' in place of the character that the user types, as they type it? I'm using Windows XP/Vista. ...

How do I delete the last line of a text file using the echo command in windows?

How do I delete the last line of a text file using the echo command in windows? ...

PHP immediate echo

I have quite a long data mining script, and in parts of it I echo some information to the page (during a foreach loop, actually.) However I am noticing that the information is being sent to the browse not immediately as I had hoped, but in 'segments'. Is there some function I can use after my echo to send all the data to the browser im...

Echoing an integer from a mySQL database

Hi I'm trying to make a website in which a user inputs details on one screen, and they are posted onto the following script. This script is meant to store these details in a database along with a unique integer ID (which it does), and then generate two links containing the unique ID of the record just created. Since the database creates...

nmake - how to force echo command to output the tab character?

Hi How to force echo command to output a tab character in MS nmake makefile? Verbatim tabs inserted right into a string after echo command are removed by nmake and don't show up in the output file. all : @echo I WANT TO OUTPUT THE <TAB> CHARACTER HERE! > output.txt ...

How do you strip quotes out of an ECHO'ed string in a Windows batch file?

I have a Windows batch file I'm creating, but I have to ECHO a large complex string, so I'm having to put double quotes on either end. The problem is that the quotes are also being ECHOed to the file I'm writing it to. How to you ECHO a string like that and strip the quotes off? UPDATE: I've spent the last two days working on this an...

Acoustic Echo Cancellation (AEC) with Speex and DirectSound

I am trying to perform Acoustic Echo Cancellation (AEC) with the Speex codec library. According to the Speex documentation, I need to perform two calls: speex_echo_playback(echo_state, echo_frame); every time an audio frame is played, and speex_echo_capture(echo_state, input_frame, output_frame); for every frame captured. Since ...

echo --version doesn't works

how can i know version of echo command as specified in the man page for echo echo --version should output version of echo command is it a bug in echo command or its documentation.. plz explain.. same is the case with echo help!! ...