Displaying 4 results from an estimated 4 matches for "escapeshellarg".
2008 Oct 08
2
Weird problem in PHP 5.1.6/possible bug
I hit a weird problem with the default PHP 5.1.6 on CentoS 5.2.
It seems the default 5.1.6 PHP on CentOS has a bug in the functions
escapeshellargs/escapeshellcmd: it "gulps" any special (non-ASCII)
characters, so that they are missing from the output. I have been assured
that this does not happen on other 5.1.6 or newer on other Linux
distributions. I don't see this behavior with the exact same $LANG setting
(en_US.UTF8) on...
2007 Dec 06
0
Too many open files leads to timeout exceptions in Mechanize/Net::HTTP?
...#39;s any way I can
have PHP execute the ruby script and have it not inherit the FD''s
== References ==
Sample driver of the .php script that executes the ruby script:
> <?php
> $id = 108; // hard-coded test
> $command =
> ''ruby '' .
> escapeshellarg(''/www/CLIENT/htdocs/include/script/
> nysif_scrape/run.rb'') . '' '' .
> escapeshellarg($id) .
> '' >/dev/null &''; // /dev/null redir is needed to keep
> program in the background
>
> system($command);
>...
2004 Dec 12
1
I'm stumped
...TITLE>Storing Asterisk CID data</TITLE>
</HEAD>
<BODY>
<h1>Asterisk phone book</h1>
<?php
set_time_limit(5);
if ($PhoneNumber <> "" && $PhoneName <> "") {
system("sudo -u asterisk /usr/sbin/asterisk -rx " .
escapeshellarg("database put cidname $PhoneNumber \"$PhoneName\"") . " &>
/tmp/error");
print "Successfully stored <b>$PhoneNumber</b> as <b>$PhoneName</b>.";
} else {
print "Please enter both phone number and name!";
}...
2013 Feb 07
0
smbclient php extension
...good place to ask but don't know where to...
It would be great to have a compiled native php smbclient extension.
Several people, including owncloud, still use Victor M. Varela, php
library (which use exec smbclient) to access smb files. This is not
optimized, and not usable if you disable escapeshellargs on your system.
There was a project to build a native extension but it doesn't implement
everything and hasn't changed for years :
https://github.com/eduardok/libsmbclient-php
If someone had the skills to build it, it would be very useful for the
community. Unfortunately, i'm real...