passthru

mysqldump passthru returncode's

Hello, I am trying to do a mysql dump via php. This is the code $backupFile = $table. "-". date("Y-m-d-H:i:s") . '.gz'; //Command nog aanpassen.... $command = "mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $dbname | gzip > $backupFile"; //$status = system($command); echo $backupFile ."<br>"; $status = passthru...

Why is calling (ImageMagick) convert.exe from PHP script resulting in an unresponsive page?

* This is now resolved * by clearing the temp folder in windows! Some info - Windows 2003 server, IIS 6 ImageMagick 6.3.3 PHP 5.2.0 I am using ImageMagick to resize images on the server and I think this has recently been causing problems. What I am noticing is that when my PHP script executes the ImageMagick command the webpage freeze...

PHP/passthru/mysqldump seems to timeout

I've got a PHP script that I call to run MySQL database backups to .sql files, TAR/GZip them and e-mail them to me. One of the database is hosted by a different provider than the one providing the web server. Everything is hosted on Linux/Unix. When I run this command: $results = exec("mysqldump -h $dbhost -u $dbuser -p$dbpass $dbname...

exec function in PHP and passthru?

Hello I have a couple questions about PHP exec() and passthru(). 1) I never used exec() in PHP but I have seen it is sometimes used with imagemagick. I am now curious, what is some other common uses where exec is good in a web application? 2) About 6 years ago when I first started playing around with PHP I did not really know anythi...

Passthrough indentification in wcf

How do I pass the identity of the logged on user in an a webapplication to a service beeing called by the webserver? My idea her is to set som kind of EndpointIdentity on the cahnnel. In my case this will be an GUID identifing the user's session on the webserver. Anyone got any exprience on this.. Maybe I have misunderstood the concep...

Accessing UIPopoverController for UIActionSheet on iPad

On the iPad, one can show a UIActionSheet using -showFromBarButtonItem:animated:. This is convenient because it wraps a UIPopoverController around the action sheet and it points the popover's arrow to the UIBarButtonItem that is passed in. However, this call adds the UIBarButtomItem's toolbar to the list of passthrough views - which is...

Making dynamic text item transparent for mouse

Hi! I'm working with actionscript 3 and have a trouble. I need to write player where users will see text on the front of the movie. The text is text field of type "Dynamic text". The problem is that I need to make this text object transparent for mouse move and clicks. I tried: .mouseEnabled=false; .selectable=false; ... but it does n...

PHP: Problem using passthru to stream a zip on mac os x only

I'm trying to put together a zip streaming solution through the use of Unix's zip command and PHP's passthru function, but I've hit a snag. The script looks something like this: <?php header("Content-Type: application/octet-stream"); header("Content-Disposition: attachement; filename=myfile.zip"); passthru("zip -r -0 - /stuff/to/zip/")...

PHP exec() not working - exiting early? no error?

i am using PHP to run exec() on a script which looks like this: exec("pdftk xx.pdf fill_form xx.fdf output xx.pdf flatten"); the strangest thing is that when i log in to ssh and put the command in manually - it works fine! it outputs a 224k pdf. but when i use the exec() command, only the first 36k of the script comes out. (i checked ...

Why no Authorization Header received in SSO?

I implement a SSO with NTLM and passthru, and it works if our client had joined into domain. As in our code we will check if there is a "Authorization header" in the request header. And the problem is: If our client joined domain, then in our application, I can receive the Authentication header which contain NTLM ... If our client ...