[SOLVED] Executing bash from php.

Hey guys,
So I have this bash script in /opt/scripts.  So this script runs perfectly now by asking for two inputs from the user and doing a variety of script installs.  However now i'm being asked to make a php page that will work with this script.  So my question is is there better way to execute a root script from a user level php page.  For instance I am testing the php page with this.
if($submitted){
                // Show em for troubleshooting reasons
                echo "domain: $d  |  name: $n";
So when I go to the page it shows and put in inputs it will echo the proper variables.  So I know it's assigning the variables correctly.  I'm just not 100% on how I can pass them from a php environment into a bash environment. I am trying to use something like this.
<?php
  if (!empty($_POST)) {
    exec('sh /path/to/shell ' . $_POST['var1'] . ' '  . $_POST['var2'] . ' '  . $_POST['var3']);
?>
However it doesn't seem to want to execute?
Last edited by hauntedbyshadow (2014-07-21 12:41:07)

First, thanks Trilby I didn't realize there were 'code tags' till after the post, so i'll use them from now on... so there are no actual error logs because it's not on a development server just yet.  As of now i'm just doing testing on seeing how it's even done. 
echo 'sh /path/to/shell ' . $_POST['var1'] . ' ' . $_POST['var2'] . ' ' . $_POST['var3'];
Did actually work however still unsure of if it will execute properly when using a root level script.  Should I be setting the script to user level, or having the php page fire in a sudo format or something.  I'm not entirely sure.

Similar Messages

  • Execute Java from PHP (Classpath problem?)

    Hi,
    I'm trying to execute a java application (just a few classes really), using PHP (so the app can be executed by the click of a button on a webpage). It is an Apache server running on windows.
    The code to execute the java from the webpage is as follows...
    <?php
    echo "<pre>> EXECUTING...</pre>";
    $output = shell_exec('java UpdateStock');
    echo "<pre>$output</pre>";
    ?>However, I get this error.
    java.lang.ClassNotFoundException: com.mysql.jdbc.DriverThe class runs fine from the command line (it's all setup using the typical classpath method), so I suspect its something to do with the server's configuration and not being able to find the drivers. How do I point the server-based app to the mysql drivers?
    Many thanks for your help
    Edited by: chezza on Nov 13, 2008 3:04 AM

    Is it that your CLASSPATH has to be a system variable, and you've got it setup as a user variable... and the tomcat service runs as the "system" user, so it knows not your kinky CLASSPATH.
    To totally avert such problems allways execute every java app you ever run with the -classpath (or -cp ?1.5? or later) switch... including those you launch from php.
    BTW... The [PHP Java Bridge|http://php-java-bridge.sourceforge.net/pjb/installation.php] might be an option for you.

  • [Solved] jdtojewish Missing from PHP?

    I am running PHP Version 5.3.6 with Apache and everything is up to date. When I try to use jdtojewish however:
    http://php.net/manual/en/function.jdtojewish.php
    I get:
    PHP Fatal error:  Call to undefined function jdtojewish()
    Seems to me this is a core PHP function and it should be there. Can anyone assist with this?
    Thanks.
    Last edited by CaptainKirk (2011-06-20 17:58:54)

    You most likely need to enable the calendar module in php.ini.

  • Again Issue with installing php 5.3.0 and accessing ABAP code from php

    I have the following initial set up:
    1.Downloaded u201CApache Friends XAMPP (Basis Package) version 1.7.2u201D.
    With this I got :
    Apache 2.2.12 (IPV6 enabled)
    MySQL 5.1.37 (Community Server) with PBXT engine 1.0.08-rc
    PHP 5.3.0 + PEAR (PEAR, Mail_Mime, MDB2, Zend)
    2.Installed the above XAMPP package.
    3.created a local test.php file and placed in htdocs folder
    3.Started the Apache server and executed the test.php file from u201Chttp://localhost/test.phpu201D. it runs absolutely fine. I can see the output in my browser. (just did an "Hello world" coding)
    4.Now I downloaded the SAPRFC (saprfc-1.4.1.All.zip)  package.
    5.In this, I got u201Cphp_saprfc_530.dllu201D which I added to my extension file where all the other dll files are present.
    6.Then I opened the u201Cphp.iniu201D file and added the above saprfc dll file to the extension directory   as u201Cextension=php_saprfc_530.dllu201D.
    7.Now I installed u201Cvcredist_x86.exeu201D.
    8.Finally I started the apache server afresh. I get the following message and the apache server is started.
    "PHP StartUp: saprfc: Unable to initialize module
      Module compiled with build ID=API20090626,TS
      PHP compiled with build ID=API20090626,TS,VC6
      These options need to match"
    i have SAPGUI installed on my PC.
    details of SAPGUI is
    release: final release 710
    file version: 7100.4.15.1047
    build: 1108370
    patch level: 15
    hotfix : 1
    Somebody please help me solve this.
    Thanks in advance,
    Pramod
    Edited by: PramodShankar B on Dec 11, 2009 11:53 AM
    Edited by: PramodShankar B on Dec 11, 2009 11:56 AM

    Pramod:
    I'm not sure which version do you need...but I would recommend you some trial an error...download the package 1.4 (All zip versions and try to find the one that suits you)...that's what I did for my PHP 5.2.4 because both PHP and the SAPRfc must have been compiled with exact the same ID.
    Greetings,
    Blag.

  • How to get data from php to java via xmlrpc

    I have been trying to get data from php through apache xmlrpc to java.
    I do get an value as result. The result is "Array". How how do i convert the XMLRPC Object "Array" to Java Object?
    Inside the XMLRPC "Array" Object there is object too of type Array from php.
    See code for java here
    Object result = client.execute( "blogger.getCategories", params1 );
    Code from php here
    function getCategories($appkey, $username, $password)
         global $xmlrpcerruser, $xmlrpcI4, $xmlrpcInt, $xmlrpcBoolean, $xmlrpcDouble, $xmlrpcString, $xmlrpcDateTime, $xmlrpcBase64, $xmlrpcArray, $xmlrpcStruct, $xmlrpcValue;
         $structArray = array();
         $structArray[] = new xmlrpcval(array("one" => "test"));
         return new xmlrpcresp(new xmlrpcval( $structArray , $xmlrpcArray));     
    I do get Standard String and Integer from php to Java through XMLRPC.
    Can someone help me.
    Edited by: Electron32 on Aug 13, 2010 9:44 AM

    That is what is so strange. I return an 'array' through xmlrpcval() and in Java I tried to cast it to ArrayList, Vector,String[] but get an error
    Object[] result = (Object[]) client.execute( "blogger.getCategories", params1 );
    String[] array = (String[]) result;
    Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
            at com.dirdalit.window.Main.main(Main.java:41)
    Edited by: Electron32 on Aug 13, 2010 12:25 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Accessing Java HttpServer from PHP;

    Hello all,
    I have created an httpserver using 'com.sun.net.httpserver'. Everything works fine except one thing.
    When i make this simple call from PHP (http://localhost:8081/something outputs an XML file):-
    $url = 'http://localhost:8081/something'; 
    $xml = simplexml_load_file($url); 
    print_r($xml); Nothing appears and it times out after sometime.
    However, while the browser is 'trying' to get the result (from PHP file) if i 'stop' my HttpServer (Java) the result suddenly appears. I am very sure i close all the streams i opened. Does anyone have any idea?
    Thanks
    Neville

    So on doing some debugging i realized that the http thread that started executing may have not exited correctly. That may explain the fact that when i shut the java server down explicitly while the 'php' code waits for some response, the response suddenly appears.
    While creating the server i am using:-
    server.setExecutor(Executors.newCachedThreadPool());In ThreadPoolExecutor.class
    Runnable getTask() { ....
    if (state == SHUTDOWN)  // Help drain queue
        r = workQueue.poll();
    else if (poolSize > corePoolSize || allowCoreThreadTimeOut)
        r = workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS);
    else
       r = workQueue.take();
    if (r != null)
        return r;
    if (workerCanExit()) {
    ...Using the debugger tool took me to the class ThreadPoolExecutor.class which seems to be the bottleneck; This condition is true (poolSize > corePoolSize || allowCoreThreadTimeOut(=false)) and it starts polling. I think maybe this is causing the problem and if it exited maybe the result would appear. Even if the corePoolSize is more than poolsize it seems to be getting stuck in r = workQueue.take();.
    I dont know how it works ok with a browser but hangs when PHP request comes into the picture. Strange...
    Thanks
    Neville

  • How can I run a Local PC executable file from Enterprise Portal?

    I want to run local PC executable files from inside the portal. To be more specific I want to be able to open the Outlook and some powerbuilder executable applications.
    How can I do it?

    If you absolutely want to do it, you can use vbscript for it (though there are a lot of security contstraints)
    See Re: Displaying office programs

  • Error while executing report from Query designer

    Hi All,
    When I am executing from query designer, I am getting following error.
    Even I can't execute it from another portal where i created source system of BI server.
    But i can execute queriew from Query analyser and t-code RSRT.
    When I execute from Query desinger the url is as follows.
    http://XXX:00/irj/servlet/prt/portal/prtroot/pcd!3aportalcontent!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0PA_C01_Q0201&VARIABLE_SCREEN=X&DUMMY=5_
    And the error is:
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,*
    Required information for reproduction  according to note 948490.*
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at com.sap.ip.bi.webapplications.runtime.service.metadata.impl.MetadataAccess.getMetadataModel(MetadataAccess.java:139)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.getMetadataModel(Page.java:8953)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4963)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4473)
    at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3316)
    Details: Full Exception Chain
    System Environment
    Server
    BI Java Release: 7 - Patch level: 0000000100 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP unknown
    Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_24-b04
    Operating System SunOS - amd64 - 5.10
    REgards
    Mohan

    Hi mohan ,
      You can check these OSS notes for the issue  .
    1. 795699 - Customizing default error messages for HTTP
    2. 807000 - Http requests are not fully read after timeout
    3. 804124 - HTTP communication with XI Adapter Engine fails
    Regards,
    Lokesh

  • REP - 300 Error while executing report from Application

    Hi,
    I have report in Report Builder & for the same report form is there in Form Builder in which parameter page is designed. From application where I am calling report is internally calling form & in form Procedure Run Report is there which is calling report from Report Builder. Both report from builder & form form Builder are compiled . Also query is executing fine in Toad without error. Also all query fields are present in database.
    But when I am trying to excute report from Application it is giving error as "REP - 300 Invalid Identifier " & it displays whole query.
    Note - Report & it's Form are in ORACLE - 10g. Also the user through which I am executing report from application is ADMIN user , so it has executing permission.

    looks like error in parameters. check out the value of variable that you are passing through to report from form. Put a messages to see variable values before execute report.

  • I want to execute Thunderbird from Firefox toolbar

    I would like to be able to kick off the Thunderbird mail program from Firefox but cant seem to find out how to make a button on a toolbar to do so. I can execute Thunderbird from Start programs but would like to be able to do so while I am in Firefox. Want to read my emails.

    You can use the [http://webdesigns.ms11.net/getmail.html Get Mail] add-on to add a button to open Thunderbird.

  • Exporting Text data from PHP to Oracle CLOB data (Carriage return - issue)

    This is my original text content in PHP - Data type - Longtext
    SECTION - 1
    This a test description.This a test description.
    This a test description.This a test description.
    This a test description. This a test description.I exported the above content from PHP as a SQL script file (insert into.. ) - export.sql [ insert into table_name (id, text_content) values (1, '') ]
    while exporting data from PHP table into export file.. it replaced the "Carriage return" with "\r\n\r\n" in the insert statement for text_content column
    When I run this INSERT statement in Oracle (for longtext, I have created a CLOB column in Oracle), the following text_content data is inserted into CLOB column in Oracle.
    SECTION - 2
    This a test description.This a test description.\r\n\r\nThis a test description.This a
    test description.\r\n\r\nThis a test description.This a test description.Now I have created a item named P1_TEXT_CONTENT of type TEXTAREA and try to fetch the CLOB data into this page item.
    BUT textarea displays the entire content including "\r\n\r\n" as mentioned in SECTION - 2
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?
    Thanks,
    Deepak

    DeepakJ wrote:
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?Run an update on the Oracle table following the inserts to replace the escaped CR/LFs with real ones:
    update foo
    set clob_column = replace(clob_column, '\r\n', chr(13) || chr(10));You might want to experiment to see which characters are actually necessary. As an OS X/Linux user I'd probably just use a single LF chr(10).

  • How to call PL/SQL function from php

    I have one function define in package,like below
    >>
    create or replace package body Intg$Label_DB as
    Future constant date := to_date ('21990101', 'YYYYMMDD');
    Max_Annotation_Len integer := 3995;
    function Get_Tagged_Label (Product_Name varchar2,Branch_Name varchar2, Platform_Name varchar2, Schema_Name varchar2) return varchar2 is
    Series_Id integer := Get_Series (Product_Name,Branch_Name,Platform_Name);
    Schema_Id integer := Get_Schema (Schema_Name);
    Dep_Label_Id integer;
    Next_Dep_Label_Id integer;
    Result_Id integer;
    Result Intg$Labels.Name%type;
    begin
    select SLT.Dep_Label_Id, SLT.Next_Dep_Label_Id into Dep_Label_Id, Next_Dep_Label_Id
    from Intg$Series_Label_Tags SLT
    where SLT.Series_Id = Get_Tagged_Label.Series_Id and SLT.Schema_Id = Get_Tagged_Label.Schema_Id;
    Result_Id := Next_Dep_Label_Id;
    if Result_Id = -1 then
    Result_Id := Dep_Label_Id;
    end if;
    select L.Name into Result from Intg$Labels L where L.Id = Result_Id;
    return Result;
    exception
    when NO_DATA_FOUND then
    return '';
    end Get_Tagged_Label;
    >>
    i want to call Get_Tagged_Label() from php and print the output,I tried below code but seems i am missing lots of things here.Any help will be appreciate.
    $sql = 'BEGIN INTG$Label_DB.Get_Tagged_Labell(:Product_Name,:Branch_name,:Platform_Name,:message,:message_1,:message_2); END;';
    $stmt = oci_parse($conn,$sql) or die ('Can not parse query') ;
    // Bind the input parameter
    oci_bind_by_name($stmt,':Product_Name',$name,32);
    oci_bind_by_name($stmt,':Branch_name',$branch,32);
    oci_bind_by_name($stmt,':Platform_Name',$pt,32);
    // Bind the output parameter
    oci_bind_by_name($stmt,':message',$message,32);
    oci_bind_by_name($stmt,':message_1',$message_1,32);
    oci_bind_by_name($stmt,':message_2',$message_2,32);
    // Assign a value to the input
    $name = 'PCBPEL';
    $branch ='MAIN';
    $pt ='GENERIC';
    oci_execute($stmt);
    Thanks
    Hridyesh

    What errors are you getting?
    It's always helpful to know the version of PHP and the database.
    When calling a function, you'll need a bind variable to hold the return value, and make sure the number of parameters match:
    $sql = 'BEGIN :rv := INTG$Label_DB.Get_Tagged_Labell(:Product_Name,:Branch_name,:Platform_Name,:message); END;';
    This new variable will need to bound with oci_bind_by_name()
    Have you looked at my free Underground PHP and Oracle Manual at http://www.oracle.com/technology/tech/php/pdf/underground-php-oracle-manual.pdf ? Or any one of the other fine PHP-Oracle books available?

  • Flash Builder 4.5 for PHP - show variable from PHP in app

    I have searched for hours and I can't figure this out…
    Is there a way to somehow "echo" my PHP code in my MXML file ?
    I know you can't echo something from PHP to MXML, so here's what I have done :
    I get my informations from my database, I need to show an image and its title, so I put the following code in a variable :
    <mx:Image id="laniraBlanche" x="25" y="65" width="210" height="126" source="'.$row->image_mini.'" click="selectLaniraBlanche()" rollOver="seePicture()" rollOut="outPicture()" />                                              <s:Label x="25" y="155.85" text="'.$row->nom.'" width="210" textAlign="center" height="37" fontSize="19" backgroundColor="#676666" verticalAlign="middle" fontFamily="Georgia" color="#FFFFFF" click="selectLaniraBlanche()" rollOver="seePicture()"  id="laniraBlancheTxt" rollOut="outPicture()" />'
    Then, I return that variable.
    I find the function where my var created is returned from the "Data/Service" tab, I am on Design mode on Flash Builder, and I "drop" my function where I want my image and text to show on my app.
    I tryed dropping it in a "group", it doesn't show anything. I tryed several other options, and nothing worked.
    So my question is, how could I have this code created in PHP show on my application ?
    Thank you  for your help

    I also have Flash Builder 4.5 for PHP and the ANT view does not show when going to Window -> Show View --> Other.  I could not find it in any of the folders.
    However, I was able to add it by hitting Command 3 (CTRL 3 on PC) and typing Ant.

  • From PHP to JSP for a search-responder.php

    I have been asked to use the "search-as-you-type" solution offered up by Google at [http://code.google.com/p/search-as-you-type/|http://code.google.com/p/search-as-you-type/]. The documentation offered by Google is pretty much straight forward but of course the actual piece of code that gets the data is built in PHP and my client needs this to be used on a page serving up JSP.
    I am learning JSP and moving from PHP and ASP and learning quickly but not quick enough to finish the project.
    Would anyone be able and willing to help me convert the functions in the following PHP code into JSP?
    Thanks in advance to anyone who takes the time to help me.
    <?php
    * Copyright (C) 2006 Google Inc.
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *      http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    * Search-as-you-type sample Ajax responder
      // Adding a cache control so that browsers won't cache Ajax requests
      header("Cache-Control: no-cache");
      header("Content-Type: text/html; charset=UTF-8");
       * Get the sample data from the text file.
       * @return array Loaded data
      function GetData() {
        $data = array();
        $file = file("test-data.txt");
        foreach($file as $record) {
          $record = explode("|", trim($record));
          if (count($record) == 4) { // Ignore invalid lines
            $data[] = $record;
        return $data;
       * Get the results based on user's query.
       * @param string $query Query
       * @param array $data Sample data
       * @return array Result array
      function GetResults($query, $data) {
        $results = array();
        $queryLength = strlen($query);
        foreach ($data as $record) {
          if (substr(strtolower($record[0]), 0, $queryLength) == $query) {
            $result = array();
            $result['name'] = $record[0];
            $result['type'] = $record[1];
            $result['content'] = $record[2];
            $result['moreDetailsUrl'] = $record[3];
            $result['style'] =
              ($query == strtolower($record[0])) ? 'expanded' : 'normal';
            $results[] = $result;
        return $results;
      // Get the data and the query
      $data = GetData();
      $query = strtolower(ltrim($_GET['query']));
      // Build response
      $response = array();
      $response['query'] = $query;
      $response['results'] = GetResults($query, $data);
      if (count($response['results']) == 1) {
        $response['autocompletedQuery'] = $response['results'][0]['name'];
      // Output response
      echo "searchAsYouType.handleAjaxResponse(";
      echo json_encode($response);
      echo ");";
    ?>

    Thanks for your comment Gimbal2.
    I have already been thoroughly surprised at how different JSP is from PHP. I am finding quite hard to wrap my head around the whole process to be honest.
    I am beginning to see that JSP and PHP work in a totally different way than each other.
    I am not technically trying to translate or convert the PHP file as much as I am trying to build a file in JSP that does the same functions. The main functions of the PHP script are commented by Google and should be easily enough re-written in JSP in order to produce similar results.
    Since the output needs to be in a JSON format when passed to the .js file you'd think this would be better suited as a .jsp file as well or even a JAVA Applet, Servlet or even a bean. Since the whole site is already built in JSP for a multitude of other functions it seems likely that adding on more to read data from a source file and send it back to the .JS would be straight forward, but I could be wrong. But again I am not familiar enough with JAVA or JSP (yet) to make heads or tails of this.
    1. // Adding a cache control so that browsers won't cache Ajax requests
    2. * Get the sample data from the text file. @return array Loaded data
    3. * Get the results based on user's query.
    * @param string $query Query
    * @param array $data Sample data
    * @return array Result array
    4. // Get the data and the query
    5. // Build response
    6. // Output response

  • Calling packaged stored procedure from php fails

    The following php fails with:-
    Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'SPMEMBERDETAILS' ORA-06550: line 1, column 7: PL/SQL: Statement ignored in C:\Program Files\Apache Group\Apache2\htdocs\KioskCurrent\GM2.php on line 28
    Cannot Execute statement
    <?php
    $number = "2100418933";
    // Connect to database...
    $conn=OCILogon("big", "big");
    if ( ! $conn ) {
    echo "Unable to connect: " . var_dump( OCIError() );
    die();
    $cursor = OCINewCursor($conn);
    $stmt = OCIParse($conn, "BEGIN spPackage.spMemberDetails(:number, :cv_memberdetails); END;")
    or die('Cannot parse query');
    OCIBindByName($stmt, ":cv_memberdetails", &$cursor)
    or die('Cannot bind array variable');
    OCIBindByName($stmt, ":number", &$number)
    or die('Cannot bind number variable');
    $exec = OCIExecute($stmt)
    or die('Cannot Execute statement');
    OCIExecute($cursor);
    while ($data = OCIFetchInto($cursor)) {
    var_dump($data);
    OCIFreeStatement($stmt);
    OCIFreeCursor($cursor);
    OCILogoff($conn);
    ?>
    and the stored procedure looks like
    SQL> desc sppackage;
    PROCEDURE SPGETMEMBERNUMBER
    Argument Name Type In/Out Default?
    P_NUMBER VARCHAR2 IN
    P_MEMBERNUMBER VARCHAR2 OUT
    PROCEDURE SPGETSLOTSHANDLE
    Argument Name Type In/Out Default?
    P_HANDLE NUMBER(15,2) OUT
    P_NUMBER VARCHAR2 IN
    P_STARTDATE VARCHAR2 IN
    P_ENDDATE VARCHAR2 IN
    PROCEDURE SPGETTABLEHANDLE
    Argument Name Type In/Out Default?
    P_HANDLE NUMBER(15,2) OUT
    P_NUMBER VARCHAR2 IN
    P_TABLEGAMEPREFIX VARCHAR2 IN
    P_STARTDATE VARCHAR2 IN
    P_ENDDATE VARCHAR2 IN
    PROCEDURE SPMEMBERDETAILS
    Argument Name Type In/Out Default?
    P_NUMBER VARCHAR2 IN
    CV_MEMBERDETAILS REF CURSOR OUT
    RECORD OUT
    R_MEM_NUMBER VARCHAR2(12) OUT
    R_MEM_SNAME VARCHAR2(25) OUT
    R_MEM_FNAME VARCHAR2(25) OUT
    R_MEM_TITLE VARCHAR2(25) OUT
    PROCEDURE SPTABLESPLAYED
    Argument Name Type In/Out Default?
    P_NUMBER VARCHAR2 IN
    P_STARTDATE VARCHAR2 IN
    P_ENDDATE VARCHAR2 IN
    CV_TABLESPLAYED REF CURSOR OUT
    RECORD OUT
    Please tell me what I have done incorrect.

    I would guess it is something to do with not binding all the OUT variables, it seems you have only binded the OUT cursor? For more details calling Stored Procedures see
    http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_sps.html

Maybe you are looking for

  • Made Tri-boot:OSX/OS9.2.2/Ubuntu. How do I get OS9 to be bootable again?

    Situation setup: A friend gave me an iBook 300mhz clamshell to use. I wanted to set it up to dual boot between OSX and OS9, but realized that it was a bit outdated for OSX. So I bought a 466mhz iBook se logic board (will have to dremel out a hole for

  • Delete key broken in iTunes

    I am running Mac OSX 10.6.8 and iTunes 10.4.1, and when I click on an album or artist name to edit it, for example, if I place my cursor to the right of the last letter or select the last word and hit my delete key, all it does is highlight the chara

  • Printer printing garbage text

    I have an Officejet Pro L7580 All-In-One, connected to a desktop computer running Windows XP. I've a rather strange problem that has happened sporadically in the past, and recently more freqently. When printing information from the web (as far as I c

  • Problem playing videos, display driver.

    When I open my program(Adobe Premiere Elements 10) and I choose a project, a message pops up saying "we have detected an incompatible display driver." How do I update my display driver? Why hasn't this message ever popped up before?

  • How to insert date in microsoft access

    dears i want to insert date in a table which is in microsoft access. and also use the date in where clause. the col. name is mydate and the data type is Date/Time when i try to insert the date as a string it cannot. '"+date.getText().trim()+"' what c