|
by: Sandman |
last post by:
In another post I told about PHP not being able to create dates earlier than
1970, so until I can get PHP to do so, I am using a small perlscript to do it.
It looks like this:
// $in is something like "1943-10-12";
$unixtime = shell_exec("bin/converttime.pl $in");
Problem is, this fails once ever twenty times or so - shell_exec() doesn't
return anything. This is true of another place where I use shell_exec() to run
|
by: Steve |
last post by:
Hi,
I'm trying to 'ssh' into another machine, run a small script and fetch
it's output, using shell_exec(). The problem is, it takes AGES to run
ssh and I don't know what's happening. If I try 'ssh'ing manually on the
shell, it takes a microsecond to fetch the result, whereas shell_exec
takes very very long and I don't know how to debug the problem. That's
problem number one: How do I tell what's happening and why is it taking
so long?
|
by: Good Man |
last post by:
Hi there
If I enter the following at the command line, I
successfully get an email sent to the correct name/email:
php /var/www/html/admin/adminscripts/welcome-cli.php
'Me' 'me@me.net'
|
by: mattrapoport |
last post by:
I have a php page that needs to call a batch script. My test script
has one line: echo test.
I am running Win2003 Server, IIS, and php 4.3.10.
When I first tried running my php script I got an error that said
"unable to execute ...". Then I granted the IIS user execute
privledges to cmd.exe (I know, I know ... security risk).
Once I did that, my script gives me a CGI ERROR - something about http
|
by: jonathan.beckett |
last post by:
Hi all,
We have PHP 4 installed on Windows 2003 with Apache 2, and the
shell_exec has mysteriously stopped working - it hangs the page rather
then returning anything.
To check it out, I tried shell_exec("dir") which works fine on the
development machine, but not on the live server.
I'm guessing the network guys have done something to the security of
|
|
by: Don |
last post by:
Hi,
I have a problem with the special characters on the function shell_exec
(under Linux Debian with php 4.3.10-16):
$msg = '"'."Léà t'es où?".'"';
$output = shell_exec('java myClass'.' '.$msg);
All the special characters in $msg like é or à are turned into the
|
by: Paul F. Johnson |
last post by:
Hi,
I'm trying to create a zip file from some pdfs and have code similar to this
$id=$_GET;
$fn = array("a", "b", "c", "d");
chdir('../downloads'); // the php file is in /php
$files = $fn."1.pdf ".$fn."2.pdf 7-17.pdf";
$command = "zip -9 " . $fn . ".zip " . $files;
header("content-type:application/zip");
|
by: graphman |
last post by:
I have a perl script that I'm calling using php's shell_exec that uses
an expect module to go to another system to pull tiff files. The php
perl combination works great when I launch from the commandline:
$php docpull.php
I get the files I want. Everything is perfect.
When I run docpull.php through the web server I get to the expect call
in the perl script where the password is passed and the script fails.
|
by: Akkad |
last post by:
hi, i am having problem using shell_exec() function:
<code>
shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -w > akadi_icho.html");
</code>
i am not getting the ouput file, though the command string passed in the function is working perfectly when used on the shell.
but when i am trying to execute it using this function in a php file, no ouput file is made.
so...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|