使用功能Exec,直通,系统时出现问题 [英] Problem in using functions Exec, passthru, System

查看:64
本文介绍了使用功能Exec,直通,系统时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有亲爱的朋友和老师,大家好...心动

在我当前项目的设计阶段,我错了,我尝试了Game,但不幸的是,我错过了一个积极的结果.我使用的编程语言的HuhHuh Project我一直在使用AutoHotKey Autoit或更好的说法,并将源文件转换为exe. (每个用户的文件)以使用Windows,我是主机或PSP!...

当我通过这种情况下的php函数(Exec,passthru,System)执行Wine并在文件中运行编译器时,这些函数将无法正常工作!函数通过系统,因为它们的输出是127,因此被淘汰了.我刚刚订购了一些我想运行PHP的Linux,但仍然需要处理输出127.

也许我得到了通常的功能,但是这些功能已被禁用,但是当我看到php.ini文件时,在disabled_fuctions里面没有任何功能!

但是,我必须说,PHP无法运行相同的命令,可以通过SSH文件和exe正确运行.两者都生产.困惑

我经历过的朋友请帮忙...

Hi all dear friends and teachers ... Heart

In the design phase of my current project I''m wrong and I tried Game, unfortunately I missed a positive result. HuhHuh Project in the programming language I''ve been using AutoHotKey Autoit or better to say, and convert source files to exe. (File for each user) to use Windows, I''m the Host or the PSP!...

When I had her by the php functions in this case, (Exec, passthru, System) implementation of the Wine and the file will run the compiler, the functions do not work! Functions passthru, System because their output, their output is 127, which was beaten off with that. I just ordered some of Linux I want to run PHP, which I still have to deal with the output 127.

Maybe I got the usual functions, these functions have been disabled, but when I saw my php.ini file, inside the disabled_fuctions There was no function!

However, I must say that PHP can not run the same command can be run properly by the SSH files and exe. Both are produced. Confused

The friends that I have experienced this please help ...

<?php
passthru('/usr/bin/wine /home/adslgpfo/public_html/iwe/Ahk2Exe.exe "/in a.ahk" ', $p);
print_r($p);
echo " - ";
system('wine /home/adslgpfo/public_html/iwe/Ahk2Exe.exe /in b.ahk ', $s);
print_r($s);
?>

推荐答案

p); print_r(
p); print_r(


p); echo " ; 系统('wine/home/adslgpfo/public_html/iwe/Ahk2Exe.exe/in b.ahk',
p); echo " - "; system('wine /home/adslgpfo/public_html/iwe/Ahk2Exe.exe /in b.ahk ',


s); print_r(
s); print_r(


这篇关于使用功能Exec,直通,系统时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆