Looktrne Posted February 4, 2008 Share Posted February 4, 2008 Ok I have a windoes exe file that I need to run on my linux/apache/fedora dedicated server... so sat the file name is php.exe then I would run it by using wine php.exe is this correct? also could I have a link to install wine on my server? thanks for your help Paul Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/ Share on other sites More sharing options...
neylitalo Posted February 4, 2008 Share Posted February 4, 2008 Yes, 'wine php.exe' should run the executable file. And to install wine on Fedora, I believe running "yum install wine" (as root) should do the trick. Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458081 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 ok I got wine installed that worked... but now I am trying to run the file wine php.exe main.php (would this command be the same as dropping main.php into php.exe in windows????) I am getting the following error though Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. X-Powered-By: PHP/5.2.1 Content-type: text/html Any Idea why this is not working thanks for the help Paul Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458113 Share on other sites More sharing options...
neylitalo Posted February 5, 2008 Share Posted February 5, 2008 Why aren't you just using the PHP interpreter at /usr/bin/php, instead of going through wine? Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458116 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 Because I have no clue what I am doing.. someone told me I needed to use wine to run a windows exe file this file called php.exe on my windows computer at home when I drag and drop main.php into the file php.exe it spits out a new file called main.php.de I need to do the same on my server so I can have this happen through a php website.. I can code some php but I have no idea how to execute the windows exe file the easiest way? do you suggest I unistall wine?? it was 36 megs to download and if I dont need it I dont want it.. just someone told me I would need wine to run this php.exe file when I run it on windows all it does is show the black command screen and then spits out the new php file if you could help me do tell what I should do... I want to run this function with exec() in php to drop a php file into php.exe thanks for all your help Paul Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458121 Share on other sites More sharing options...
laffin Posted February 5, 2008 Share Posted February 5, 2008 Uhm, if there is no equivalent of the windows app on linux. ya can try and use wine. but since linux has php/apache/mysql there shudn be a need to run the windows version of php. just copy yer scripts over, linux php dun have the .exe extension and try yer scripts php /home/myacct/usr/scripts/test.php just a note, linux and windows store text files line terminators differently. but shud be fine when running the script on another platform. it's when editing these files it becomes apparent, that something is not quite right. Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458124 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 ok lemme get to the point the file php.exe (is not to run a php file it is actually transforming this php file into a file I need) for example it takes index.php and makes index.php.de (this is not a standard php file and is not for running I just need the new file for download) none of these files need to run on the server except php.exe it is basicly a tool to transform the first index.php page into something different and called index.php.de I am not trying to run these files I need to upload one index.php and download what php.exe produces index.php.de php.exe (is not for running php files it is a tool to transform these files) I hope you can understand what I am trying to say Paul Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458128 Share on other sites More sharing options...
laffin Posted February 5, 2008 Share Posted February 5, 2008 ahhhh, now that makes sense. looks like xserver (the gui environment) is not running. or ya may have to set environment variables if using a remote solution. Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458137 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 Is there a way to have it ignore the GUI enviroment??? because this file runs without any user input or screen output?? can I tell it forget about the enviroment just run??? just a though? probally crazy... otherwise if not how can I check and setup this enviroment? Paul Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458144 Share on other sites More sharing options...
trq Posted February 5, 2008 Share Posted February 5, 2008 This is all a little confusing considering the name of the php cli interpreter on windows is php.exe, anyways... Is there a way to have it ignore the GUI environment??? You will need to find out whether or not this exe file has a command line interface, allot of windows applications don't. Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458162 Share on other sites More sharing options...
laffin Posted February 5, 2008 Share Posted February 5, 2008 Ignore gui... nope, i dun think wine was meant for that. but if this is a dos app rather than a windows app, than maybe the solution u shud be looking into is DOSEMU instead of WINE. I'm pretty shure u can give DOSEMU a pathname for an emulated dos environment. Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458164 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 I believe it is a dos app because when I drop a file into it I see the black comand line box appear for a second or two and then goes away and the process is done... so is this a dos app??? the user does not need to see or input anything into this except to drag a file into it Paul ps.. sorry for the confusion with the php.exe title but I did not name the file Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458177 Share on other sites More sharing options...
trq Posted February 5, 2008 Share Posted February 5, 2008 What exactly does this app do? besides simply renaming php files to php.de what does it do to them? There may very well be a Linux alternative. Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458180 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 it decompiles a type of php file Paul if it is a dos app how should I try to run it? Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458212 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 Breaking news... it is a dos ap I just ran it from the command line in windows without a problem.... so please tell me how to unistall wine do I yum uninstall wine???? also give me a tip on running the dos file? thanks for putting up with my inexperience guys Paul I am really new to this area in things Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458216 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 Ok how do I uninstall wine? yum unistall wine? and how do I install dosemu can I use yum for this also??? Paul Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458240 Share on other sites More sharing options...
trq Posted February 5, 2008 Share Posted February 5, 2008 I've not used yum but I suggest reading... man yum[/url]. Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458783 Share on other sites More sharing options...
Looktrne Posted February 5, 2008 Author Share Posted February 5, 2008 yum worked so good on installing wine.. I just typed in that command and away it went but when I tried it on dosemu it did not find the package anyway I will look into the yum man... thanks Paul Quote Link to comment https://forums.phpfreaks.com/topic/89448-need-to-use-wine/#findComment-458824 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.