4 1904 se******************@gmail.com wrote:
the trouble is the last line of every output given by "system"
function is always displayed twice, is it really a bug ?
No, it's a feature. system() displays (part of) the output of the command
*and* returns the output of the command.
Try "system(foo);" instead of "echo system(foo);". And, as always, RTFM.
Cheers,
--
----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-
You will attract cultured and artistic people to your home.
On Oct 29, 5:18*pm, sebastien.willemi...@gmail.com wrote:
hello,
i use a small PHP script to grab DNS infos athttp://80.247.230.136/bug/php/
(php and txt available)
the trouble is the last line of every output given by "system"
function is always displayed twice, is it really a bug ?
http://80.247.230.136/bug/php/indexe...willemijns.com
More like a bug in the system program you're using... Check that
first, and then get back to us.
On Oct 30, 3:10 am, Michael Sherwood <coolha...@gmail.comwrote:
More like a bug in the system program you're using... Check that
first, and then get back to us.
no, kon from #PHP on irc.oftc.net have the workaround... use passthru
and now this script works ;)
thanks to this guy (or girl ? ;)
On Oct 30, 12:03 pm, "sebast...@willemijns.com"
<sebast...@willemijns.comwrote:
On Oct 30, 3:10 am, Michael Sherwood <coolha...@gmail.comwrote:
More like a bug in the system program you're using... Check that
first, and then get back to us.
no, kon from #PHP on irc.oftc.net have the workaround... use passthru
and now this script works ;)
thanks to this guy (or girl ? ;)
pfffffff.... i have quicky tested
passthru works well and Try "system(foo);" instead of "echo
system(foo);" too ;)
in all case, thanks to your answers ;) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Eric Lavigne |
last post by:
Here is a shell command (MS-DOS):
debug\curve-fit <input.txt >output.txt
And here is a Python script that *should* do the same thing (and almost
does):
import os
inputfilename =...
|
by: DJP |
last post by:
Hi,
I need to read a file programmatically until end of file. My logic is as
follows:
while(!feof(Fp))
{
fgets(readLine,10000,Fp);
|
by: RyanS09 |
last post by:
Hello-
I am trying to write a snippet which will open a text file with an
integer on each line. I would like to read the last integer in the
file. I am currently using:
file = fopen("f.txt",...
|
by: seven.reeds |
last post by:
Hi,
I am running php v 5.0.0 on a redhat box. I have a php script in a
file called p_script_1. I have another small script in file
p_script_2. p_script_1 calles p_script_2 through a system()...
|
by: Patrick |
last post by:
Hi All,
Can someone take a look at my script and tell me if I am missing
something as to why the last line of data from my input file is being
written twice in the echo. I have included a short...
|
by: magix |
last post by:
Hi,
when I read entries in file i.e text file, how can I determine the first
line and the last line ?
I know the first line of entry can be filtered using counter, but how about
the last line...
|
by: Curten |
last post by:
Hi,
I'm using ifstream to read data from a txt-file but the last line is always read twice. How Come?
The condition for the loop in which the file is read is
while(!infile.eof())
so this...
|
by: empaleador |
last post by:
Hi
I m reading a file that ends with a blank line and when i do the output it repeats the line before the blank 2 times.
I am using
ifstream infile;
infile.open...
|
by: PNY |
last post by:
Hi all,
I've made a form where it lists records sorted by their associated autonumber ID. The last line of this form displays a blank line with "AutoNumber" shown in its respective cell as if to...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |