473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Which PHP am I running?

Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.

Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.

Thanks,
Csaba Gabor from New York

Jul 8 '06 #1
17 2613
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.

Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.

Thanks,
Csaba Gabor from New York
Running phpinfo() should tell you if its running as a module or cgi. I
believe it also has path information. It is probably in at least one
of the directories of the path variables. Barring all that, you could
search the file system with a script or exec() call

Jul 8 '06 #2
Richard Levasseur wrote:
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.

Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.
Thanks for your response:
Running phpinfo() should tell you if its running as a module or cgi.
Yes. And easier is php_sapi_name() [or PHP_SAPI], which produces
apache2handler when I'm running php as a web server module. But it
shows me the same thing when php is started from the command line with
either php.exe vs. php-win.exe: cli. If I try try the same thing with
php-cgi, then I get: cgi-fcgi

So that's why the remaining problem is differentiating between php.exe
vs. php-win.exe
I believe it also has path information.
phpinfo() shows the PATH environment variable. It does not show the
path to the executable, nor does it show the executable name.
It is probably in at least one
of the directories of the path variables.
I agree that it probably is. But even under that assumption, how do
you programatically differentiate between php.exe vs. php-win.exe?
Barring all that, you could search the file system with a script or exec() call
Could you elaborate, please - How does this let me determine the called
executable?

Csaba

Jul 8 '06 #3
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.
As far as I know there is no way, unless you load in a COM object.
Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.
No, the only difference between php.exe and php-win.exe is whether a
console window opens or not and you can't detect that programmatically.

Jul 8 '06 #4

Chung Leong wrote:
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.

As far as I know there is no way, unless you load in a COM object.
Loading in a COM object is fine by me, but would you clarify your
remark, please, as to which one to load and how to use it. Or are you
talking about a 3rd party COM object that one must purchase?
Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.

No, the only difference between php.exe and php-win.exe is whether a
console window opens or not and you can't detect that programmatically.
Hmm, I'm just wondering about the relationship between the console
window (if it opens) and php. At any rate, thanks for your comments.

Jul 8 '06 #5
Csaba Gabor wrote:
Loading in a COM object is fine by me, but would you clarify your
remark, please, as to which one to load and how to use it. Or are you
talking about a 3rd party COM object that one must purchase?
I had the Wscript.Shell object in mind. I think you can initialize it
in PHP.

Jul 8 '06 #6

Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.
>
Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.

Thanks for your response:
Running phpinfo() should tell you if its running as a module or cgi.

Yes. And easier is php_sapi_name() [or PHP_SAPI], which produces
apache2handler when I'm running php as a web server module. But it
shows me the same thing when php is started from the command line with
either php.exe vs. php-win.exe: cli. If I try try the same thing with
php-cgi, then I get: cgi-fcgi

So that's why the remaining problem is differentiating between php.exe
vs. php-win.exe
I believe it also has path information.

phpinfo() shows the PATH environment variable. It does not show the
path to the executable, nor does it show the executable name.
It is probably in at least one
of the directories of the path variables.

I agree that it probably is. But even under that assumption, how do
you programatically differentiate between php.exe vs. php-win.exe?
Barring all that, you could search the file system with a script or exec() call

Could you elaborate, please - How does this let me determine the called
executable?

Csaba
Sorry, I overlooked the part about php.exe and php-win.exe.

But why does it matter if its using the nix or the windows php
executable? IIRC, php can be invoked using php.exe on both windows and
*nix. Unless there is some very specific reason I don't know about?

If you're worried about differences between environment variables
because of the host OS, then check the OS environment variables and act
accordingly. If you see a X:\ in any of the paths, you can also know
if its windows or nix. same for the include_path directive (unix uses
:, windows uses ;).

Jul 9 '06 #7
Richard Levasseur wrote:
Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.

Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.
Thanks for your response:
Running phpinfo() should tell you if its running as a module or cgi.
Yes. And easier is php_sapi_name() [or PHP_SAPI], which produces
apache2handler when I'm running php as a web server module. But it
shows me the same thing when php is started from the command line with
either php.exe vs. php-win.exe: cli. If I try try the same thing with
php-cgi, then I get: cgi-fcgi

So that's why the remaining problem is differentiating between php.exe
vs. php-win.exe
I believe it also has path information.

Sorry, I overlooked the part about php.exe and php-win.exe.

But why does it matter if its using the nix or the windows php
executable? IIRC, php can be invoked using php.exe on both windows and
*nix. Unless there is some very specific reason I don't know about?
I'm not concerned about *nix.
If you invoke php.exe and then do a print "whatever";
then you will get whatever output to the console window.

However, if you invoke php-win.exe and then do a print "whatever";
then you won't get anything since there is no console window. In other
words, while print might be sufficient with php.exe, it definitely
isn't with php-win.exe. Therefore, it makes sense to be able to
differentiate between them for some circumstances (so that an
alternative to print can be performed).

Csaba

Note: you could, of course, capture the output in both scenarios via
ob_start() and friends, but that is not the point.
If you're worried about differences between environment variables
because of the host OS, then check the OS environment variables and act
accordingly. If you see a X:\ in any of the paths, you can also know
if its windows or nix. same for the include_path directive (unix uses
:, windows uses ;).
Jul 9 '06 #8

Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.
>
Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.
>
Thanks for your response:
>
Running phpinfo() should tell you if its running as a module or cgi.
>
Yes. And easier is php_sapi_name() [or PHP_SAPI], which produces
apache2handler when I'm running php as a web server module. But it
shows me the same thing when php is started from the command line with
either php.exe vs. php-win.exe: cli. If I try try the same thing with
php-cgi, then I get: cgi-fcgi
>
So that's why the remaining problem is differentiating between php.exe
vs. php-win.exe
>
I believe it also has path information.
Sorry, I overlooked the part about php.exe and php-win.exe.

But why does it matter if its using the nix or the windows php
executable? IIRC, php can be invoked using php.exe on both windows and
*nix. Unless there is some very specific reason I don't know about?

I'm not concerned about *nix.
If you invoke php.exe and then do a print "whatever";
then you will get whatever output to the console window.

However, if you invoke php-win.exe and then do a print "whatever";
then you won't get anything since there is no console window. In other
words, while print might be sufficient with php.exe, it definitely
isn't with php-win.exe. Therefore, it makes sense to be able to
differentiate between them for some circumstances (so that an
alternative to print can be performed).

Csaba

Note: you could, of course, capture the output in both scenarios via
ob_start() and friends, but that is not the point.
If its being executed directly through one of the exe's, the
executable's name should be in argv[0]. That would let you get the
exe's real name. Not sure how true this is if its executed via the
webserver, though. I think the web server populates argv with get
parameters or something. If its being executed via the webserver, you
can probably assume print will work as intended.

I'm wondering what your final intent is? If you have a console window,
make html, otherwise make GUI widgets?
If you're worried about differences between environment variables
because of the host OS, then check the OS environment variables and act
accordingly. If you see a X:\ in any of the paths, you can also know
if its windows or nix. same for the include_path directive (unix uses
:, windows uses ;).
Jul 9 '06 #9
Richard Levasseur wrote:
Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.

Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.

Thanks for your response:

Running phpinfo() should tell you if its running as a module or cgi.

Yes. And easier is php_sapi_name() [or PHP_SAPI], which produces
apache2handler when I'm running php as a web server module. But it
shows me the same thing when php is started from the command line with
either php.exe vs. php-win.exe: cli. If I try try the same thing with
php-cgi, then I get: cgi-fcgi

So that's why the remaining problem is differentiating between php.exe
vs. php-win.exe

I believe it also has path information.
>
Sorry, I overlooked the part about php.exe and php-win.exe.
>
But why does it matter if its using the nix or the windows php
executable? IIRC, php can be invoked using php.exe on both windows and
*nix. Unless there is some very specific reason I don't know about?
I'm not concerned about *nix.
If you invoke php.exe and then do a print "whatever";
then you will get whatever output to the console window.

However, if you invoke php-win.exe and then do a print "whatever";
then you won't get anything since there is no console window. In other
words, while print might be sufficient with php.exe, it definitely
isn't with php-win.exe. Therefore, it makes sense to be able to
differentiate between them for some circumstances (so that an
alternative to print can be performed).

Csaba

Note: you could, of course, capture the output in both scenarios via
ob_start() and friends, but that is not the point.

If its being executed directly through one of the exe's, the
executable's name should be in argv[0]. That would let you get the
exe's real name.
I presume you are talking about WScript/CScript here because this
doesn't work with PHP. If you have delme.php:

<?php print 'argv[0]: ' . $GLOBALS["argv"][0]; ?>

and do:
php.exe delme.php

then you will get:
argv[0]: delme.php
Not sure how true this is if its executed via the
webserver, though. I think the web server populates argv with get
parameters or something. If its being executed via the webserver, you
can probably assume print will work as intended.
I'm wondering what your final intent is? If you have a console window,
make html, otherwise make GUI widgets?
Yes, I am doing CLI PHP applets. Now if I have php.exe in a console, I
can safely do print, knowing that the user has a fighting chance of
seeing it. However, if the script is invoked via php-win.exe (by
double clicking on it for explorer, for example), then doing a print
ensures that the user will never see the output (which is probably
undesireable in most situations).

The point is that it makes good sense to differentiate between the two
if I don't want to uniformly throw up a popup or other GUI.

Jul 10 '06 #10

Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Richard Levasseur wrote:
Csaba Gabor wrote:
Is there a way to determine the path to the php executable (as opposed
to the script. In other words, I am looking for the path to php.exe or
php-win.exe) that is currently running (ie. how was this script called)
on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
VBScript) allow this, for example.
>
Failing that, is there any way to conclusively determine whether the
script that is running was invoked from php.exe or php-win.exe? I say
conclusively, because often there is a slight difference in the
environment variables, but it need not be the case.
>
Thanks for your response:
>
Running phpinfo() should tell you if its running as a module or cgi.
>
Yes. And easier is php_sapi_name() [or PHP_SAPI], which produces
apache2handler when I'm running php as a web server module. But it
shows me the same thing when php is started from the command line with
either php.exe vs. php-win.exe: cli. If I try try the same thing with
php-cgi, then I get: cgi-fcgi
>
So that's why the remaining problem is differentiating between php.exe
vs. php-win.exe
>
I believe it also has path information.

Sorry, I overlooked the part about php.exe and php-win.exe.

But why does it matter if its using the nix or the windows php
executable? IIRC, php can be invoked using php.exe on both windows and
*nix. Unless there is some very specific reason I don't know about?
>
I'm not concerned about *nix.
If you invoke php.exe and then do a print "whatever";
then you will get whatever output to the console window.
>
However, if you invoke php-win.exe and then do a print "whatever";
then you won't get anything since there is no console window. In other
words, while print might be sufficient with php.exe, it definitely
isn't with php-win.exe. Therefore, it makes sense to be able to
differentiate between them for some circumstances (so that an
alternative to print can be performed).
>
Csaba
>
Note: you could, of course, capture the output in both scenarios via
ob_start() and friends, but that is not the point.
>
If its being executed directly through one of the exe's, the
executable's name should be in argv[0]. That would let you get the
exe's real name.

I presume you are talking about WScript/CScript here because this
doesn't work with PHP. If you have delme.php:

<?php print 'argv[0]: ' . $GLOBALS["argv"][0]; ?>

and do:
php.exe delme.php

then you will get:
argv[0]: delme.php
Not sure how true this is if its executed via the
webserver, though. I think the web server populates argv with get
parameters or something. If its being executed via the webserver, you
can probably assume print will work as intended.
I'm wondering what your final intent is? If you have a console window,
make html, otherwise make GUI widgets?

Yes, I am doing CLI PHP applets. Now if I have php.exe in a console, I
can safely do print, knowing that the user has a fighting chance of
seeing it. However, if the script is invoked via php-win.exe (by
double clicking on it for explorer, for example), then doing a print
ensures that the user will never see the output (which is probably
undesireable in most situations).

The point is that it makes good sense to differentiate between the two
if I don't want to uniformly throw up a popup or other GUI.
It would seem you're out of luck, then, at least for windows. In *nix
you might be able to use the "_" env variable. You can always require
a command line switch to be set to specify the mode. The only other
idea i have is to figure out where stdout is going.

Jul 10 '06 #11
Richard Levasseur wrote:
It would seem you're out of luck, then, at least for windows. In *nix
you might be able to use the "_" env variable. You can always require
a command line switch to be set to specify the mode. The only other
idea i have is to figure out where stdout is going.
Hmmm, that should work. GUI apps on Windows have null stdout. An
attempt to write to it would fail:

$stdout = fopen("php://stdout", "wb");

if(@fwrite($stdout, "Error: the dingo ate my baby\n") == 0) {
// do something else
}

Jul 10 '06 #12
On 10 Jul 2006 13:25:00 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
>Richard Levasseur wrote:
>It would seem you're out of luck, then, at least for windows. In *nix
you might be able to use the "_" env variable. You can always require
a command line switch to be set to specify the mode. The only other
idea i have is to figure out where stdout is going.

Hmmm, that should work. GUI apps on Windows have null stdout. An
attempt to write to it would fail:

$stdout = fopen("php://stdout", "wb");

if(@fwrite($stdout, "Error: the dingo ate my baby\n") == 0) {
// do something else
}
Unfortunately not; stdout is still writable, but it's just discarded - similar
to redirecting to /dev/null on Unix.

C:\tmp>type dingo.php
<?php
$stdout = fopen("php://stdout", "wb");
$fp = fopen("out.txt", "wb");

fwrite($fp, $stdout . "\n");

if(@fwrite($stdout, "Error: the dingo ate my baby\n") == 0) {
fwrite("out.txt", "error branch\n");
// do something else
}
?>

C:\tmp>php-win.exe dingo.php

C:\tmp>type out.txt
Resource id #5

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jul 10 '06 #13
Andy Hassall wrote:
On 10 Jul 2006 13:25:00 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
Unfortunately not; stdout is still writable, but it's just discarded - similar
to redirecting to /dev/null on Unix.
No, having the handles of stdout being null is different from the
stdout redirected to to null. Double check your code.

Jul 10 '06 #14
On 10 Jul 2006 14:45:30 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
>Andy Hassall wrote:
>On 10 Jul 2006 13:25:00 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
Unfortunately not; stdout is still writable, but it's just discarded - similar
to redirecting to /dev/null on Unix.

No, having the handles of stdout being null is different from the
stdout redirected to to null. Double check your code.
Which part? The previous code behaves identically when run through php.exe and
php-win.exe (other than what is actually seen coming out of stdout). What am I
missing?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jul 10 '06 #15

Andy Hassall wrote:
On 10 Jul 2006 14:45:30 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
Andy Hassall wrote:
On 10 Jul 2006 13:25:00 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
Unfortunately not; stdout is still writable, but it's just discarded - similar
to redirecting to /dev/null on Unix.
No, having the handles of stdout being null is different from the
stdout redirected to to null. Double check your code.

Which part? The previous code behaves identically when run through php.exe and
php-win.exe (other than what is actually seen coming out of stdout). What am I
missing?
This line: fwrite("out.txt", "error branch\n");

I hate it when it happens too ;-)

Jul 10 '06 #16
On 10 Jul 2006 15:03:19 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
>Andy Hassall wrote:
>On 10 Jul 2006 14:45:30 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
>Andy Hassall wrote:
On 10 Jul 2006 13:25:00 -0700, "Chung Leong" <ch***********@hotmail.comwrote:
Unfortunately not; stdout is still writable, but it's just discarded - similar
to redirecting to /dev/null on Unix.

No, having the handles of stdout being null is different from the
stdout redirected to to null. Double check your code.

Which part? The previous code behaves identically when run through php.exe and
php-win.exe (other than what is actually seen coming out of stdout). What am I
missing?

This line: fwrite("out.txt", "error branch\n");

I hate it when it happens too ;-)
Argh! Yes you're quite right - sorry.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jul 10 '06 #17
Chung Leong wrote:
Richard Levasseur wrote:
It would seem you're out of luck, then, at least for windows. In *nix
you might be able to use the "_" env variable. You can always require
a command line switch to be set to specify the mode. The only other
idea i have is to figure out where stdout is going.

Hmmm, that should work. GUI apps on Windows have null stdout. An
attempt to write to it would fail:

$stdout = fopen("php://stdout", "wb");

if(@fwrite($stdout, "Error: the dingo ate my baby\n") == 0) {
// do something else
}
thank you, Thank You, THANK YOU
Hey Chung, majorly cool!

<?php
$stdout = fopen("php://stdout", "wb");
if(@fwrite($stdout, " \x08") == 0) {
// php-win
} else {
// some other invocation
}
?>

Thanks again,
Csaba

Jul 11 '06 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MT | last post by:
Hello Everyone: I am running XP Pro with IIS 5.1. Which is the best PHP version to install: CGI, CLI or ISAPI?? The installation manual lists all three but does not say which is most...
20
by: Dave | last post by:
Hi I have been asked to implement an error logging/management database for the network technicians in our company. The idea is that staff using workstations can enter a database and log any...
23
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the...
1
by: Pujo Aji | last post by:
Hello, I use ManualResetEvent to stop and allow a thread running by setting: public static ManualResetEvent mre = new ManualResetEvent(false); So if I use mre.WaitOne(); this let the thread...
4
by: Phil Mc | last post by:
Say for example you have a application running on a windows 2003 server (that is on server, not from). This application needs to start child applications (must be stand alone console applications),...
4
by: Michael Malinowski | last post by:
Is there a way to read the directory that the currently running python file is located in? Cheers Mike.
3
by: Phil Stanton | last post by:
I have a number of queries which use code for the output of 1 or more fields. For example Address:GetAddress(AddressID, True, 60) Address ID Points to an Address in a table - Address Line1, Line...
2
by: pamela fluente | last post by:
I have an application running. A file type is registered with this application. When the user click on a file of such type a new instance of the application is loaded with command line (file name)....
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.