How execute a php script on external server

Hi!
Here's my problem: I want to execute a php script on a server by calling a simple url. Here an example of a possible url: http://servername/dir/scriptname.php?var1=a&var2=2.
The return value is a html code.
I use CVI 2012 AND 3.5!
Solved!
Go to Solution.

CVI doesn't have a http interface library (that I know of).  However, I've used the telnet library to send commands as if it is a web browser, by doing something like this:
Fmt(tlsend, "%s<%s%s%s%s%s%s", "GET ", "http://servername/dir/", "http://servername/dir/scriptname.php?var1=a&var2=2", " HTTP/1.1\nHost: ", "servername", "\r\n");
tlsession = InetTelnetOpen("servername", 80, 0);
InetTelnetWrite(tlsession, tlsend, "\r\n", -1, &tlbyteswritten, 2000);
InetTelnetRead (tlsession, tlread, 25000, &tlbytesread, 2000);
Scan(tlread, "%s>.....", ....);
The other option would possibly be to use InetLaunchDefaultWebBrowser () and pass along the URL of your script and use some ActiveX trickery to get the information back from Internet Explorer, but I'm not sure how well that would work, plus you'd run into problems if the end user installs another web browser.
Oh, and CVI 3.5  ?

Similar Messages

  • How to send CSV files to external server

    Hi All,
    How to send CSV files to external server (not to application server).
    I know how to download files to application server.
    Please give me the steps to send CSV files to external server.
    Is it posiible with RFCs? If yes, then plz provide me the steps. Do we need to create RFC destination for this.
    Appriciate your help with rewarding points.
    Please help as this is an urgent requirement

    hi,
    you can send via xi.
    chk this blog
    a) content conversion (sender)
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    b)content conversion (receiver)
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    <b>
    reward points if this helps you.</b>
    Siva
    Message was edited by:
            SivaKumar

  • How do I execute a PHP script on a remote server?

    I have a PHP script that sends a confirmation email to guest users that fill out one of my forms. The script runs fine when I test it, but when it is called from a custom JSP, Vibe blocks it from running. I understand that what I want to do is to most likely to use a remote application, but I don't want to send data back and forth and all the examples use java servlets, I just simply want to run my script without Vibe blocking it. Is there a easier way to do this? or can someone point me in the right direction?

    Vibe is not configured to run PHP scripts so you cannot run your script from custom jsp.
    You have already PHP script running on the server and running it as remote application is realy easy. All you have to do is to get request paramater in PHP script, register remote application in Vibe and in some point call remote application (you can do it also from custom jsp).
    Regards
    Pawel

  • How to Call ScheduleBatch.cmd from External Server

    I am attempting to kick off a set of Hyperion Reports after data is loaded to the Essbase. Currently, our data warehouse is loaded and then triggers a bat file which loads Essbase using a MAXL script. I want to add the automatic sending of Hyperion Financial Reports to the end of this process using ScheduleBatch.cmd. I can do this from the reports server but the Bat/Maxl exist on a separate server. Is there a way to call ScheduleBatch.cmd from an external server? If not, is there another way to accomplish this?
    Thanks for your help.
    Heather

    I do something similar, in my environment although I use esscmd.
    I first exported the Batch for command line scheduling, which generates an XML file. In my case, I stored the XML in c:\bin\financial_reporting\batch_reports\exported_batch.xml
    I then created a bat file that executes the batch (Contents of batch file in italics)
    REM START_BATCH_FILE
    d:
    cd D:\Hyperion\products\biplus\bin
    D:\Hyperion\products\biplus\bin\ScheduleBatch C:\bin\financial_reporting\batch_reports\exported_batch.xml <<REPORT_SERVER_HOST_NAME>>
    REM END_BATCH_FILE
    I created a Scheduled Task on the Reports Server that runs this task, but the task is not enabled.
    At the end of my dataload, I initiate a call to the Reporting Server to run the task (Batch file that does dataload and runs the task in italics).
    REM DATALOAD.CMD
    ESSCMD F:\DataLoads\Scripts\SCR\Load_and_AGG.ESSSCRIPT
    C:\WINDOWS\system32\schtasks.exe /run /tn Run_Scheduled_Batch /s <<REPORTING_SERVER>> /u <<DOMAIN>>\<<DOMAIN_USER>> /p <<USER_PASSWORD>>
    REM END_DATALOAD.CMD
    I don't know if I did anything else to make this work (did this a while ago).
    Hope this helps.
    Thanks
    Dan

  • Send PDF form to e-mail as attachment with a PHP script on the server

    Hi,
    For several days I've been searching though the internet looking for a solution, a quite simple one in my opinion, but I got a little desperate not getting any result I want.
    Okay. The Situation.
    I have a PDF form to order sandwiches and drinks.
    The PDF has serveral area's and columns where customers fill in the amount of the products they would like to order.
    At a position of a field, the kitchen can almost blindly see what products a customer ordered.
    Therefore, when someone fills in the form, I want to send the filled PDF by e-mail to the kitchen's e-mail adress. And important: the PDF in the kitchen's mailbox should be completely identical to the form the customer filled in.
    So, I have an Order button in my form. I set the action as 'Submit a form'.
    In the settings under 'Enter a URL for this link' I used just some PHP mailer script I also use on my website contact form.
    IF I check 'HTML' under 'Export Format' the PHP mailer works fine. I receive an HTML e-mail listed the ordered products.
    BUT
    I do want the original filled PDF in my mailbox instead of an HTML e-mail.
    So, for 'Export Format' I checked 'PDF The Complete Document'.
    But then my PHP mailer script doesn't work anymore.
    It gives errors like 'no valid e-mail adres' , etcetera etcetera.
    Who has a solution?
    Who has a working standard PHP script for me what just sends the kitchen an empty mail with the original PDF as attachment?!
    There is no need to use any database or other more complex functionality. Just mail the filled PDF.

    You can submit whole PDF format as long as you enable usage rights on the PDF.
    Normally Adobe Reader users can only submit the data, XFDF, FDF, XDP, XML.
    To enable usage rights on the PDF you will need to use Adobe Acrobat Std/Pro.
    As for the PHP Script; it depends on your PHP web server capabilities.
    The script will be slightly different, if the server uses PHP Mail or PHP PEAR.
    Just attach the submission to an email and send.
    If the client is submitting the form from a standalone pdf reader app, you can also respond with a success or failure FDF \status message; otherwise, you can redirect to a success / failure URL.
    For more information and online examples:
    http://www.pdfemail.net/examples/

  • How to run a script on Oracle server from isqlplus

    Hi I am trying to run a script on my workstation from Oracle server through isqlplus workarea. I entered following command and get the following error. i have enabled isqlplus URL by editing web.xml file already. Can please someone help how to run the script?
    @http://myaixserver.com:5560/scripts/Databasestartupstages.sql;
    SP2-0920: HTTP error 'page not found (505)' on attempt to open URL

    So far, you haven't specified your rdbms version and isqlplus behaved differently on a 9iR1, 9iR2 from the one release on 10gR1/R2. on 9i it was a servlet based on a JServ servlet executor machine, meanwhile on 10g it is a J2EE compliant application deployed on an OC4J container, so configuration is different.
    You may want to take a look at these references -->
    * Starting iSQL*Plus from a URL
    * Creating Reports using iSQL*Plus
    ~ Madrid

  • How to create a Script in AW server

    Hi all,
             Can anybody pla help me with how to create a simpal script in AW server.
    Thanks
    Ravi Sharma

    These products are all based on the GeoTel acquisition.
    GeoTel ICR (Intelligent CallRouter) was the base product, enabling many different peripherals (i.e. PBXs like Lucent, Nortel, Rockwell etc. - and IVRs like InterVoice, Periphonics etc.) to be joined together in a functional contact center, although the initial implementation of ICR was in a different context - as a network router for service providers (AT&T, MCI, Optus, BT) through an interface called a NIC.
    The NAM was a high-end conglomeration of a Network ICR (NICR) and 1 or more Customer ICR (CICR) suitable for service providers, allowing a hosted solution to be built.
    When Cisco bought GeoTel the name was changed to Intelligent Call Manager (ICM) to avoid marketplace confusion with Cisco's existing line of routers. Thus the NAM (the hosted solution) now consisted of a NICM and several CICMs.
    Since Cisco had developed their own switch/PBX for VoIP (after the Selsius acquisition) called CallManager, it could also be treated as a peripheral and slotted into an ICM. This became IPCC - IP Contact Center.
    A couple of years ago, Cisco branding brought all products under a "Unified" umbrella.
    Although the lines are a bit blurry (and I'll probably get corrected on this ), UCCE is IPCC (well, almost), ICM Hosted is the NAM, and the term ICM is mainly used when UCCE is implemented with non-Cisco switches (i.e. not CallManager).
    Yeah, it's not that clear cut, but you get used to it.
    Regards,
    Geoff

  • CSS 11500 - Keepalive script to remotely execute a shell script on a server

    Hi!
    I've been trying to connect the dots but so far I've got nothing close to what I need - based on Cisco's documentation.
    I was wondering if it was possible for the CSS switch to connect to a server in order to execute a shell script such as "/opt/whatever/script.sh", which would return a specific value like "OK". Anything different than OK would mean a dead service, and the affected service would be taken out of business (no load balancing play).
    Could someone confirm whether it can be done?
    Many thanks!!
    Leo

    Leo,
    you could try to use CSS script to telnet to the server, and execute the command.
    But that would be ugly.
    What you should do, is put your script inside a cgi webpage and let the CSS call the webpage.
    Your webserver will then run the script that you want and return to result inside and HTML page to the CSS which can then decide on the status of the server.
    If you do not have a web server, you should create a small tcp server to listen to CSS request and again send the result of the script back to css.
    Gilles.

  • How to run shell script using External Process in Process Flow?

    Hi,
    We can run external process using Process flow.
    I would like to run shell script as external process in Process flow.
    Could any one please explain it?
    Thanks and regards
    Gowtham Sen.

    HI,
    As you said I tried this case. I got the following error. The script is running successfully while I tested at unix command prompt.
    The error is as follows..
    tarting Execution PFPS_SMPL_RUNSHELL
    Starting Task PFPS_SMPL_RUNSHELL
    Starting Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS
    /SOURCE_FILES/CollectFiles.sh: line 1: ls: command not found
    /SOURCE_FILES/CollectFiles.sh: line 1: wc: command not found
    /SOURCE_FILES/CollectFiles.sh: line 1: ls: command not found
    Completing Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS
    Starting Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS_1
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Sep 29 22:57:39 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    Completing Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS_1
    Completing Task PFPS_SMPL_RUNSHELL
    Completing Execution PFPS_SMPL_RUNSHELL
    My scenario is---
    I am trying to return a file name from one shell script. I created a external process for that. After completion of this process, I am running another script which takes that file name and trying to create a external table. The both scripts are runnning successfully. But while I am trying to run using process flow, its not coming.
    And I am not getting the way to catch the output of external process and pass it as parameter as another external process.
    Any suggestions are welcome.
    Thanks and regards
    Gowtham Sen.

  • How to preview php scripts on local/network browser?

    Im teaching myself php. I just want to be able to write
    simple scripts and test them to make sure they work.
    How to??

    weazledude75 wrote:
    > Im teaching myself php. I just want to be able to write
    simple scripts and test them to make sure they work.
    >
    > How to??
    You need to install a web server (preferably Apache) and PHP
    on your
    local computer. For Windows, Apache is available from
    http://httpd.apache.org/download.cgi.
    Use Apache HTTP Server 2.2.6. The
    main page has a download link for Win32 Source. Don't use
    that, but
    click the Other Files link immediately below it, and follow
    the links
    for binaries and win32. The file you want is called
    apache_2.2.6-win32-x86-no_ssl.msi.
    Once you have downloaded it, just double-click, and install
    like any
    other program. When you come to a screen asking for server
    information,
    enter "localhost" (without the quotes) in both the Network
    Domain and
    Server Name fields. Otherwise, the default values are all
    fine.
    There are instructions for using the PHP Windows installer on
    my site at
    http://foundationphp.com/tutorials/php_installer.php.
    Apache and PHP are preinstalled on Mac OS X Leopard, but are
    not enabled
    by default. To enable Apache, go to System Preferences >
    Internet &
    Sharing > Sharing, and select Personal Web Sharing.
    Instructions for
    enabling PHP on Leopard can be found on my site at
    http://foundationphp.com/tutorials/php_leopard.php.
    That's a brief outline. You can find much more detailed
    information in
    my books, the details of which can also be found on my site.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to get stop script for the server

    Hello everyone,
    I installed weblogic server8.1 on my Linux machine and used $WL_HOME/server/bin/startWLS.sh
    to create a new domain and server. But I did not find any stop script(like stopWLS.sh)
    which can stop myserver. How can I get it?
    Thanks for your helps.
    Iris

    which can stop myserver. How can I get it?Here's an etc/rc3.d script I use for my RH9 server. You'll notice there is
    a line in there for stop(), you can run that manually if you so choose, or
    you can use it via the xinetd (I think that's what it's called?). Good luck.
    # processname: weblogic
    # pidfile: /var/run/weblogic.pid
    PIDFILE=/var/run/weblogic.pid
    # Source function library
    . /etc/init.d/functions
    #check to see if we can write to config.xml...so non-root uses stop here
    [ -w /Domain/config.xml ] || exit 0
    #setup the environment for the java commands
    . /bea/weblogic81/server/bin/setWLSEnv.sh
    cd /Domain
    start(){
    echo "Starting WebLogic for Domain"
    cd /Domain
    daemon ./startWebLogic.sh &
    echo $! > $PIDFILE
    RETVAL=$?
    echo "WebLogic Server started."
    return $RETVAL
    stop(){
    echo "Stopping WebLogic for Domain"
    rm -f $PIDFILE
    java weblogic.Admin -url localhost:80 FORCESHUTDOWN
    status(){
    echo "Getting Weblogic status for Domain"
    java weblogic.Admin -url localhost:80 GETSTATE
    restart(){
    echo -n "Restarting WebLogic for Domain"
    stop
    start
    # See how we were called.
    case "$1" in
    start)
    start
    stop)
    stop
    restart|reload)
    stop
    start
    status)
    status
    echo $"usage: $0 {start|stop|status|restart|reload}"
    exit 1
    esac
    exit $RETVAL

  • Running php scripts on development server

    Hi,
    I have Coldfusion development server and Apache running on my local host. CF is on port 8500 and Apache is running on port 80.
    On my remote host in plesk I can add support for Coldfusion and PHP, is there a way to run PHP files on localhost:8500?
    Thanks

    Sweet. I run this setup on Mac 10.5.7 and it's great (PHP & CFML on port 80, that is).
    The easiest solution is to reinstall CF as a multi-server and run the connectors for Apache. The most recent CF (8.0.1) Mac installer is 'built' for Leopard, so it works well.
    Mark Drew has a good post:
    http://www.markdrew.co.uk/blog/post.cfm/running-coldfusion-8-on-leopard
    Aaron West also has an excellent post on CF 8 & Leopard:
    http://www.trajiklyhip.com/blog/index.cfm/2008/1/14/ColdFusion-8-Apache-22x-and-OS-X-105-L eopard
    If you run into a snag, PM me & I can help more (I've freaking installed this $%&@ thing so many times )!

  • How to extract files from external server

    Dear Friends,
    I need to connect to an external non SAP server, from which i need to extract invoice files.
    Invoice files are of two types:
    1. .dat format files which contain invoice data
    2. .PDF or .JPEG documents, which are supporting documents for those invoice.
    My question are
    1. How do i connect to the external server?
    2. Do i have to do a FTP from SAP to that file server?
    3. Do i have to fetch the .dat file using dataset statments?
    4. What are the basis and network related activities involved to get connected to that external server?
    Any inputs and help on this is highly appreciated and rewarded.
    Thanks,
    Simha

    Hi Simha,
    1. How do i connect to the external server?
    Using  FTP or RFC, BAPI are also possible to get the data from Non SAP server.
    2. Do i have to do a FTP from SAP to that file server?
    based on your company policy use FTP to transfer the data.
    3. Do i have to fetch the .dat file using dataset statments?
        yes. if u using ECC6.0 try this method
    CL_RSAN_UT_APPSERV_FILE_READER=>APPSERVER_FILE_READ
    Reward if found helpful.

  • Executing a shell script from a form (client / server)

    From a form in a client server environment, I would like to execute a shell script on the server.
    Environment:
    Server: SunOS 5.6
    DB : 8.0.5
    Forms : Developer 6 w/patch 6A
    Forms - 6.0.5.34.0

    Jim,
    Yes. Use the host command from forms and call the command rexec.
    Raymond
    null

  • Uploading images to a PHP script

    hello. I just started learning Java... so... sorry for elementary questions.
    I would appreciate it if someone could give me a clue as to what to read in the Java documentation regarding to uploading images to a PHP script on the server.
    I dont mind researching by myself but it would be great if someone could give me class names and method names that accomplish uploading image files.
    Links to articles or forum threads would be great too!
    I really appreciate it.
    Thank you
    Ivan

    just a guess... its URLConnection a good way to go to implement image uploading functionality?
    thank you

Maybe you are looking for

  • Muse website not loading correctly in IE9

    A few months ago I designed my first website using Muse: www.belushjewelers.com. The website looks great on Firefox, Safari, Google Chrome, etc., but on IE9, it doesn't load correctly. The image box on the home page shows up gray instead of white, th

  • How to do Arial fonts in EPSON LX-300+II

    Arial or Helvetica fonts are added in device type EPESCP9 or EPESCP2 in output device that uses EPSON LX 300 + II. I'm using the INCH7 page format for the check printing. When the check was printed, the output was not Arial; instead it looked like a

  • Fixed length select list fields

    Is it possible to fix the width of a Select List field? I don't want it to auto-resize to the max width of the values in that column, but see no way to do that on the page editor. Thanks.

  • Printing pdf files from Finder - Error (AppleGraphicsPolicyClient)

    If I try to print from finder a PDF file using the Print command in the Finder menu Preview opens but give the following error: The document "xxxxx” could not be opened for printing. Console details: Preview(1258) deny iokit-open AppleGraphicsPolicyC

  • I need to know if there is any monitoring softwear for my teenager's phone

    Is there a program I can install on my teenager's iphone so I can monitor their activity, chats, texts, etc?