• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 801
  • Last Modified:

Installing PHP

Hello,

I have a question and I am not sure how to ask it so i will try to explain with my poor English what i need.

I have quite some scripts written in php to do varius things (getting data from internet sites etc.).
To do that i am using PHP 5.3 version and i run those scripts with php.exe.

PHP executable is usually called from Oracle forms 6i (i know old unsopported technology but thats not the point) like for example:  »php.exe script_name.php«

Because here at work we have about 400 users and some require those scripts i have to go to each user and install PHP in their system and configure it to run with Oracle database (installig libraries and such) which is plain stupid to say the least.

Now i was wondering how to get this PHP installation on some server or on network drive and  access php.exe from there?

I am asking this because i have no idea how to google my question ... i saw lots of install manuals but i am not sure what exactly do i need to pull this off.

Thank you for reading and sorry for long post.
0
Caruso_eu
Asked:
Caruso_eu
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
php.exe is not going to run properly over the network.  It needs to have local access to its libraries and extensions.  My first suggestion is to make them into PHP web pages and use a web server to let everyone access them.
0
 
selvolCommented:
Depending on your scripts an option might be to create actual EXE for the php script.


Bambalam can easily create non GUI exe's

Download HERE.
http://www.bambalam.se

The easiest way is to just DRAG the .php file and drop it into the  "bamcompile.exe".

To get an example of this save attached file then just drop it into the
bamcompile.exe


also

http://www.exeoutput.com

is a possibility
fwrite.php
0
 
darren-w-Commented:
You may be look at creating an api
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
rinfoCommented:
Why not just hire some web space and a domain name and upload your php script over there.
You can simply run php script in the browser at any time from anywhere just mention domain address/nameof phpscript.

Alternately just install wamp on any of the system(server).And upload scripts to www directory in the wamp installation folder.Other system connected to server can access/run php script by mentioning servernetwork address/phpscript. Server will take care of oracle db connectiivity  and there will be no need to install php or oracle in any other system.
0
 
Ray PaseurCommented:
I think this sounds like a good candidate for a web service (and possibly an API).  If you want to post the PHP code here (or even just a sample of the code) I would be glad to show you how I might go about creating the web service.
0
 
Caruso_euAuthor Commented:
Helo sorry for ate respons i as away these couple of days.

These two suggestions are interesting and i would like to now more about:

the one from rinfo:

Alternately just install wamp on any of the system(server).And upload scripts to www directory in the wamp installation folder.Other system connected to server can access/run php script by mentioning servernetwork address/phpscript. Server will take care of oracle db connectiivity  and there will be no need to install php or oracle in any other system

And this one from Ray_Paseur:
I think this sounds like a good candidate for a web service (and possibly an API).  If you want to post the PHP code here (or even just a sample of the code) I would be glad to show you how I might go about creating the web service.

This is an exampe script which i use to get info from vies web service. (its an exampe script not exact one i use it lacks orace connect part).

<?php
$vatid = $arg[0]

$vatid = str_replace(array(' ', '.', '-', ',', ', '), '', trim($vatid));
$cc = substr($vatid, 0, 2);
$vn = substr($vatid, 2);
$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl");

if($client){
    $params = array('countryCode' => $cc, 'vatNumber' => $vn);
    try{
        $r = $client->checkVat($params);
        if($r->valid == true){
       
        } else {
     
        }
 

        foreach($r as $k=>$prop){
     echo '<div>'.$k.': '.$prop.'</div>';
        }
 
    } catch(SoapFault $e) {
        echo 'Error, see message: '.$e->faultstring;
    }
} else {

}
?>

Note that i am using oracle forms 6i ... and calling a those script from there.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now