Using RAND() in php

Hello,
I need some assistence using this rand() function in php.
I have one mysql database and I want to get 4 items randomly,
but sometimes I get duplicated items.
how can I avoid this?
also, shouldn't I count the total items in database and then
use the random function?
this is the piece of code
$query = "SELECT id, titulo, icone FROM texto WHERE homepage
LIKE 'sim' ORDER BY RAND() LIMIT 4";
Thanks!

Use the DISTINCT keyword, like this:
$query = "SELECT DISTINCT id, titulo, icone FROM texto WHERE
homepage
LIKE 'sim' ORDER
BY RAND() LIMIT 4";
then each of the four will be distinct.
Paul Davis
http://www.kaosweaver.com/
Visit us for dozens of useful Dreamweaver Extensions.
http://www.communitymx.com/
Partner at Community MX - Extend your knowledge
Pluda wrote:
> Hello,
>
> I need some assistence using this rand() function in
php.
>
> I have one mysql database and I want to get 4 items
randomly, but sometimes I
> get duplicated items.
> how can I avoid this?
> also, shouldn't I count the total items in database and
then use the random
> function?
>
> this is the piece of code
>
> $query = "SELECT id, titulo, icone FROM texto WHERE
homepage LIKE 'sim' ORDER
> BY RAND() LIMIT 4";
>
> Thanks!
>

Similar Messages

  • How to use Rand()  (ANSI Function)as such in Oracle

    I need to use Rand() function as such in ANSI format in oracle how to use it.
    I don't want to use the available DBMS_RANDOM.RANDOM(), i want to use ANSI Function as such in Oracle
    Please help me

    I don't want to use the available DBMS_RANDOM.RANDOM()Whats wrong with dbms_andom?
    In any case you can simply write a function wrapper to have same functionality as rand():
    SQL> create or replace function rand (max_val int default 32767)
      return int
    as
    begin
      return dbms_random.value (0, max_val);
    end rand;
    Function created.
    SQL> select rand(50) from dual
           RAND(50)
                 44
    1 row selected.

  • How to create a dynamic newsflash using dreamweaver and PHP

    Hi there,
       I would like to create a dynamic newsflash using dreamweaver and PHP in that the newsflash will be pulling information from a MySQL database. The newsflash should also have a link to view more information about the piece of news a user wants to know more about. Which tools do I need to use in dreamweaver and how's the procedure to go about that. Any advice is highly appreciated. Thanx in advance!

    I think you´ll need at least a MySQL table with the following columns:
    - id (primary key, int, auto_increment etc)
    - news_headline (varchar)
    - news_teaser (text)
    - news_content (text)
    What I´d personally add are columns such as:
    - news_date (date or datetime)
    - news_external_link (varchar), if a "read more..." link is supposed to navigate to an external URL rather than displaying the contens of the "news_contents" column.
    Based on such a MySQL table it should be easy to use Dreamweavers standard Server Behaviors to create the usual datalist.php, insert.php, update.php and delete.php documents, and there are numerous tutorials out there which will teach you how to do that.
    Am I right when assuming that you´ll also need to know how to automatically pull, say, the 5 most recent news records from the database ?

  • Restrict Access to Page Using a password.php Instead of Server Behavior

    I previously used "log in" and "restrict access to page" server behaviors for my client portal when I only had one client. I had my username and password stored in mySQL database. I recently have gained more clients that all needed to be redirected to their own customized landing page when logged in. Because of this, I used a password.php to store the usernames and passwords and to redirect to different pages. Now, I am wondering how I can restrict access to these pages (i.e. someone won't be able to access the pages by typing the url) since I will not be connecting to a database anymore.

    I'm also confused by your statements.
    >Now, I am wondering how I can restrict access to these pages
    >(i.e.  someone won't be able to access the pages by typing the url)
    >since I  will not be connecting to a database anymore.
    It doesn't matter where you store the credentials - database or php file - the techniques for restricting access will be similar. I really don't understand why you moved away from the database when you got more clients. The more data you need to manage, the more reason to store it in a database.
    After logging in, most sites direct users to the same page, yet pull user specific data from the database. If for some reason you can't do this and need to built individual pages for each client, then store the 'landing' page for the client in the php file or database. Restrict access to each page by comparing the logged in name with an allowed login name. Or a more dynamic approach would be to dynamically pass the page name to a database query that validates that it's ok for the logged in user to access.
    Also, these questions are more appropriate for the app dev forum.

  • How can i use C/Javascript/php/Java in flex?

    can i embed these language into my flex project?
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    please help~

    saipanBETTY0509 wrote:
    Subject: How can i use C/Javascript/php/Java in flex?
    can i embed these language into my flex project?
    You can't.  Why do you want to do this?
    saipanBETTY0509 wrote:
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    I think what this means is "I want to check to see how much hard disk space is available.  Also, I need to check the pixel dimensions of an image."
    Is that right?
    There is no way in the Flash Player (as far as I know) that you can determine the amount of free disk space.  However, in AIR you can use air.File.applicationStorageDirectory.spaceAvailable to determine the storage space available in the application storage directory.
    As far as determining the dimensions of an image, there are plenty of good resources out there on that.  Maybe this one will be helpful to you?
    http://www.yswfblog.com/blog/2008/12/22/flash-10-experiments-the-warholizer-loading-and-pr ocessing-local-images/
      -Josh

  • How to use cursor in php?

    for example:
    CURSOR CUR_ORDER IS
    select distinct a.sales_branch segment2,a.order_number,
    a.delivery_id,
    a.sold_to_customer_id customer_id,
    a.bill_to_customer_id,
    a.ship_to_customer_id,
    a.purchase_order,to_char(a.ordered_date,'yyyy-mm-dd') order_date
    from vv_ar_temp_tl a;
    how to use it in php program?

    Hi,
    I do not know what exactly is Your question about. I'll try to give an overview:
    1. "CURSOR CUR_ORDER IS" is PL/SQL syntax, not PHP
    2. result of oci_parse call is in fact a CURSOR, so I think You already know how to use it.
    3. if Your question is on how to pass cursor between PL/SQL and PHP, I use:
    a) PL/SQL procedure:
    CREATE OR REPLACE
    PROCEDURE TEST_P (PO_REF_CURSOR OUT SYS_REFCURSOR) AS
    BEGIN
    OPEN PO_REF_CURSOR FOR -- Opens ref cursor for query
    SELECT OBJECT_NAME, OBJECT_TYPE FROM USER_OBJECTS WHERE ROWNUM <= 5;
    END;
    b) in PHP:
    $conn = ocinlogon($database_user, $database_passwd, $database); // connect database
    $outrefc = ocinewcursor($conn); //Declare cursor variable
    $mycursor = ociparse ($conn, 'begin test_p(:curs); end;'); // prepare procedure call
    ocibindbyname($mycursor, ':curs', $outrefc, -1, OCI_B_CURSOR); // bind procedure parameters
    $ret = ociexecute($mycursor); // Execute function
    $ret = ociexecute($outrefc); // Execute cursor
    $nrows = ocifetchstatement($outrefc, $data); // fetch data from cursor
    ocifreestatement($mycursor); // close procedure call
    ocifreestatement($outrefc); // close cursor
    ocilogoff($conn); // close database connection
    var_dump($data); // show content fo $data variable
    Now $data contains arrays of columns with arrays of rows from query.
    Hope it helps You,
    Regards,
    Pawel

  • Highscore list using Flash and PHP

    Hi,
    I want to make a highscorelist using AS3 and PHP(MySQL).
    I cant find a good tutorial on internet how to make something like that but I got this so far:
    import fl.controls.TextInput;
    import fl.controls.TextArea;
    var variables:URLVariables = new URLVariables();
    variables.name = "Wil";
    variables.final = 2000;
    var request:URLRequest = new URLRequest();
    ////insert in the location of the php script ////////////////
    request.url = "http://www.justenter.nl/script.php";
    request.data = variables;
    var loader:URLLoader = new URLLoader();
    loader.load(request); //sends the request
    //when the request is done loading, it goes to the completeWriting function
    loader.addEventListener(Event.COMPLETE, completeWriting);
    function completeWriting(event:Event):void {
        var writingCompleted:TextField = new TextField;
        writingCompleted.autoSize = "center";
        writingCompleted.x =200;
        writingCompleted.y= 200;
        writingCompleted.text = event.target.data;
        addChild(writingCompleted);
    He is sending the score and name to the database but he is doing that when i press ctrl-enter. He is sending the data I have given in:
    variables.name = "Wil";
    variables.final = 2000;
    I want a input textfield and a button. And When I fill in my name in the input textfield he send it to the database when I press the button.
    Is there someone that can help me out?
    Tnx

    import fl.controls.TextInput;
    import fl.controls.TextArea;
    var variables:URLVariables = new URLVariables();
    //variables.name = "Wil";
    //variables.final = 2000;
    var request:URLRequest = new URLRequest();
    ////insert in the location of the php script ////////////////
    request.url = "http://www.justenter.nl/script.php";
    request.data = variables;
    var loader:URLLoader = new URLLoader();
    submitBtn.addEventListener(MouseEvent.CLICK,submitF);  // where submitBtn is your button
    function submitF(e:Event){
    variables.name=nameTF.text; // where nameTF is your input texfield
    variables.final = score;  // where score is the variable you use to tally user score
    loader.load(request); //sends the request
    //when the request is done loading, it goes to the completeWriting function
    loader.addEventListener(Event.COMPLETE, completeWriting);
    function completeWriting(event:Event):void {
        var writingCompleted:TextField = new TextField;
        writingCompleted.autoSize = "center";
        writingCompleted.x =200;
        writingCompleted.y= 200;
        writingCompleted.text = event.target.data;
        addChild(writingCompleted);

  • Is there any way to use the bundled PHP compiler without web sharing on?

    Is there any way to use the bundled PHP compiler without Web Sharing on? Is there a way to make sure Web Sharing only allows local access so others on the network cannot access it? Any other easy way to get a PHP compiler on a Mac? I currently run Mac OS X 10.7.4. Any other security issues that might pop up from leaving Web Sharing on? Basically I just want a local PHP compiler so I can do some coding.

    You can use another router as an 'extender' (I know that this will work seemlessly with AirPort Extemes and AirPort Express's - you'll have to check with your router manufacturer to determine what they recommend for range extenders).
    You may also want to take a look at this link - http://www.wi-fiplanet.com/tutorials/7-tips-to-increase-wi-fi-performance.html - it may offer some tips.
    Clinton

  • Creating a file on server, using Flash AS3 + PHP

    I have a very simple PHP script that creates a new file on my server using a random number for the file name (e.g., 412561.txt).  When I load the script directly from a browser, it works.  But when I load the script from a very simple Flash (AS3) script, it does not work (i.e., doesn't create a file).  The Flash script and PHP script are both in the same directory.  Permissions on the directory and its content are 755.  Temporarily setting those permissions to 777 does not solve the problem (i.e., PHP still doesn't create file when called via Flash).
    Here is my phpinfo.
    Here is the PHP file.
    The contents of the PHP file are:
    <?php
    error_reporting(E_ALL);
    ini_set("display_errors", 1);
    $RandomNumber = rand(1,1000000);
    $filename = "$RandomNumber" . ".txt";
    $filecontent = "This is the content of the file.";
    if(file_exists($filename))
              {$myTextFileHandler = fopen($filename,"r+"); }
    else
              {$myTextFileHandler = fopen($filename,"w"); }
    if($myTextFileHandler)
              {$writeInTxtFile = @fwrite($myTextFileHandler,"$filecontent");}     
    fclose($myTextFileHandler);   
    ?>
    Here is the html container for the Flash script.  The Flash script features a single button which calls the PHP script when pressed.  In case it helps, here is the raw Flash file itself.  The code of the Flash script is as follows:
    stop();
    var varLoader:URLLoader = new URLLoader;
    var varURL:URLRequest = new URLRequest("http://www.jasonfinley.com/research/testing/TestingSaveData.php");
    btnSave.addEventListener(MouseEvent.CLICK,fxnSave);
    function fxnSave(event:MouseEvent):void{
              btnSave.enabled=false;
              varLoader.load(varURL);
    Directory listing is enabled at the parent directory here, so you can see there when a new text file is created or not.  (Um, if this is a security disaster, please let me know!)
    Can anyone please help me understand why this isn't working and how I can fix it?  Thank you
    ~jason

    #1, Yes that is a security risk, please disable directory index viewing.
    #2, Always validate. I see no issue with the code you're using but clearly it's not working. The way you find out is your trusty errors.
    Make a new document (or paste this into your existing) where a button with the instance name btnSave is on screen:
    // import required libs
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.MouseEvent;
    import flash.events.SecurityErrorEvent;
    import flash.text.TextField;
    // assign handler
    btnSave.addEventListener(MouseEvent.CLICK, fxnSave);
    // make a textfield to display status
    var tf:TextField = new TextField();
    addChild(tf);
    tf.width = stage.stageWidth;
    tf.height = 300;
    tf.multiline = true;
    tf.wordWrap = true;
    tf.selectable = false;
    tf.text = "Loading...\n";
    // just making sure the textfield is below the button
    this.swapChildren(tf,btnSave);
    function fxnSave(event:MouseEvent):void
        // disable button
        event.currentTarget.enabled = false;
        // new loader
        var varLoader:URLLoader = new URLLoader();
        // listen for load success
        varLoader.addEventListener(Event.COMPLETE, _onCompleteHandler);
        // listen for general errors
        varLoader.addEventListener(IOErrorEvent.IO_ERROR, _onErrorHandler);
        // listen for security / cross-domain errors
        varLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _onErrorHandler);
        // perform load
        varLoader.load(new URLRequest("http://www.jasonfinley.com/research/testing/TestingSaveData.php"));
    // complete handler
    function _onCompleteHandler(e:Event):void
        tf.appendText("Load complete: " + e);
    // error handler
    function _onErrorHandler(e:Event)
        if (e.type == SecurityErrorEvent.SECURITY_ERROR)
            tf.appendText("Load failed, Security error: " + e + " type[" + e.type + "]");
        else if (e.type == IOErrorEvent.IO_ERROR)
            tf.appendText("Load failed, IO error: " + e + " type[" + e.type + "]");
    I get a Event.COMPLETE for mine, so the PHP script is definitely firing. Change the URL to something invalid and you'll see the IOErrorEvent fire off right away.
    That leaves you to diagnose the PHP script. Check your error_log and see what is going wrong. You're suppressing errors on your file write which doesn't help you locate the issue saving the file. If you want to handle errors yourself you should do the usual try/catch and handle the error yourself (write a debug log file, anything).

  • How do I set the PATH to use ImageMagick under PHP on my Server?

    Hi,
    I have the ImageMagick binaries installed. They are working in the terminal.
    But when I try to use it out of a php script on the webserver, it cant find the DYLD_LIBRARY_PATH.
    The manual says:
    Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:
    export MAGICK_HOME="$HOME/ImageMagick-6.3.7"
    If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:
    export PATH="$MAGICK_HOME/bin:$PATH"
    Set the DYLD_LIBRARY_PATH environment variable:
    export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
    I can do all this in the Terminal, but how and where do I set it, that it also works with the scripts on the webserver?
    Thanks and Regards,
    JO

    Joachim,
    I have not tested any of this but...
    If you are just using the default Mac OS X Server install of Apache and the PHP module, then Apache's path is /usr/bin:/bin:/usr/sbin:/sbin (when running under the user:group=www:www). Basically, if the server is running under that user and PHP inherits the basic PATH of that user's shell, then anything linked into those directories should be available to the scripts, i.e. link your ImagMagick bin and lib paths into /usr 's directories. See 'man ln' in Terminal. User www doesn't have a defined shell, though, so I don't know where the PATH comes from.
    Alternatively, you might be able to use Apache's env_module (on by default) to manipulate the PATH environment variable in a config file. See Apache's manual on environment variables.
    Another means is to utilize 'suexec' in Apache and switch the user:group of CGI execution, etc. to a actual user with a definable .bash_profile (or whatever shell you are using). There are security concerns with this. See Apache's manual on suexec. You may want to also consider compiling PHP as CGI.
    BTW: the new version of PHP has some new experimental native ImageMagick libraries built in. I assume it looks for the binaries in the usual places and/or may need to be compiled with their paths during ./configure.
    Larry

  • Anyone use Flex with php for file upload? PHP Notice:  Undefined index:  Filedata

    My code works. It uploads the file and inputs the file name into a database, but I can't shake this php notice. I think php is looking for multipart/form-data from the HTML form tag.
    <form action="upload.php"  enctype="multipart/form-data"/>
    But I am using flex. The multipart/form-data info is sent as the second default argument of the upload() function. Does anyone have experience with this? Thanks.
    PHP Notice:  Undefined index:  Filedata
    $filename = $_FILES['Filedata']['name'];
    public function selectHandler(event:Event):void {
                    request = new URLRequest(UPLOAD_DIR);
                    try {
                        fileRef.upload(request);
                        textarea1.text = "Uploading " + fileRef.name + "...";
                    catch (error:Error) {
                        trace("Unable to upload file.");
                        textarea1.text += "\nUnable to upload file.";

    Hi, Thanks for your reply !
    Im not getting any errors Flex side, as i say i get a alert message saying the file has been uploaded so . .
    I am using a Wamp server on a windows machine, how do i check the file permissions on both the folder and the php file ?
    Also how do i debug a php file ?
    ANy help would be thankful !

  • How to send the email without using server side (Php, java)

    How to send the (Run time image or file) Email & Attachment in Flex web application. without using php, java.

    Well, at some point your email needs to be handed over to an SMTP server. It's a fair amount of work, but if you want to just send an email you could open a socket to a mail server's SMTP port and follow the SMTP protocols to send your email.
    ActionScript sockets: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7cf7.html
    SMTP protocol: http://tools.ietf.org/html/rfc821
    -- Tom

  • Using MySql and PHP with Dreamweaver on a Mac

    Hello all,
    As always if the answers to these questions are obscenely
    obvious please humour me.
    I use XHTML and CSS in my websites and realise that it is
    time that I dabbled with SSI. So I've started using PHP.
    However, I have been following the installation directions of
    MySql and am running into problems. I am installing the relavent
    software and am then unable to find it on my Mac, the startup files
    are there but the actual MySql data appears to not be installed
    despite my computer telling me it is...... I am using a G3 running
    OSX 10.4 is this good enough? I noticed talk of needing a PowerPC
    or Intel mac. Is this the case?
    Also, would I need MySql installed on my actual computer if
    the my servers have it already? And does Dreamweaver 8 have both of
    these programs installed as standard?
    If you could help out I would be very appreciative as I would
    like to learn this stuff and I appear to be struggling at the
    outset....
    Cheers
    M.A

    M.A.Wilson wrote:
    > However, I have been following the installation
    directions of MySql and am
    > running into problems. I am installing the relavent
    software and am then unable
    > to find it on my Mac, the startup files are there but
    the actual MySql data
    > appears to not be installed despite my computer telling
    me it is...... I am
    > using a G3 running OSX 10.4 is this good enough? I
    noticed talk of needing a
    > PowerPC or Intel mac. Is this the case?
    MySQL is a relational database management system that
    comprises a
    database server and several utility programs. Although you
    install it
    like any other program on a Mac, the similarity stops there.
    First, the point about PowerPC and Intel Macs is that there
    are
    different versions of the MySQL installer for each type of
    processor.
    I'm pretty sure that a G3 is OK, but you must choose the
    PowerPC version
    of MySQL, not the 64-bit or x86 (Intel Mac) version.
    Once you have installed MySQL, you need to drag the
    MySQL.PrefPane icon
    from the disk image onto your System Preferences. This
    installs a
    Preference Pane that enables you to start and stop MySQL. The
    Preference
    Pane has an option to start up MySQL automatically, but in my
    experience, it doesn't work on Tiger. You need to open the
    Preference
    Pane, and click Start MySQL Server each time you start your
    computer.
    The best way to work with MySQL is to use a graphical
    interface, such as
    phpMyAdmin. As Osgood has mentioned, I have written a book
    about PHP and
    Dreamweaver, which goes into all the necessary details. It's
    also very
    Mac-friendly with separate instructions where necessary for
    PC and Mac.
    More details here:
    http://foundationphp.com/dreamweaver8/
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • How to use saprfc_allow_start_program in PHP

    I'm trying to download documents from sap DMS using saprfc v1.4.1 in PHP.
    I call the bapi function BAPI_DOCUMENT_CHECKOUTVIEWX in order to download the document. However, after the script executes I'm getting the message "I::001 RFC partner does not allow to start the required p".
    I'm runnig the script on linux redhat and apache.
    PHP v5.1.6
    saprfc v1.4.1
    Here's a section of the code:
    //Discover interface for function module BAPI_DOCUMENT_CHECKOUTVIEWX
    $fce = saprfc_function_discover($rfc,"BAPI_DOCUMENT_CHECKOUTVIEWX");
    if (! $fce )
      echo "Discovering interface of function module failed";
      exit;
    //Set import parameters. You can use function saprfc_optional() to mark parameter as optional.
    saprfc_import ($fce,"GETCOMPONENTS","X");
    saprfc_import ($fce,"HOSTNAME","");
    saprfc_import ($fce,"ORIGINALPATH","/home/nawad");
    saprfc_import ($fce,"PF_FTP_DEST","");
    saprfc_import ($fce,"PF_HTTP_DEST","");
    //Fill internal tables
    saprfc_table_init ($fce,"COMPONENTS");
    saprfc_table_init ($fce,"DOCUMENTFILES_IN");
    saprfc_table_init ($fce,"DOCUMENTFILES_OUT");
    saprfc_table_init ($fce,"DOCUMENTS");
    saprfc_table_append ($fce,"DOCUMENTS", array ("DOCUMENTTYPE"=>"DRW","DOCUMENTNUMBER"=>"314304","DOCUMENTVERSION"=>"00","DOCUMENTPART"=>"000","DESCRIPTION"=>"","USERNAME"=>"","STATUSEXTERN"=>"","STATUSINTERN"=>"","STATUSLOG"=>"","LABORATORY"=>"","ECNUMBER"=>"","VALIDFROMDATE"=>"","REVLEVEL"=>"","DELETEINDICATOR"=>"","CADINDICATOR"=>"","STRUCTUREINDICATOR"=>"","PREDOCUMENTNUMBER"=>"","PREDOCUMENTVERSION"=>"","PREDOCUMENTPART"=>"","PREDOCUMENTTYPE"=>"","AUTHORITYGROUP"=>"","DOCFILE1"=>"","DATACARRIER1"=>"","WSAPPLICATION1"=>"","DOCFILE2"=>"","DATACARRIER2"=>"","WSAPPLICATION2"=>"","VRLDAT"=>"","USERDEFINED1"=>"","USERDEFINED2"=>"","USERDEFINED3"=>"","USERDEFINED4"=>"","SAVEDOCFILE1"=>"","SAVEDATACARRIER1"=>"","SAVEDOCFILE2"=>"","SAVEDATACARRIER2"=>"","CREATEDATE"=>"","REFDOCUMENTNUMBER"=>"","REFDOCUMENTPART"=>"","REFDOCUMENTVERSION"=>"","FILESIZE1"=>"","FILESIZE2"=>"","CMFIXED"=>"","CMRELEVANCE"=>""));
    saprfc_table_init ($fce,"WSAPPLICATION");
    //Do RFC call of function BAPI_DOCUMENT_CHECKOUTVIEWX, for handling exceptions use saprfc_exception()
      $rc = saprfc_allow_start_program ("/opt/SAPClients/SAPGUI7.10rev4/bin/sapftp");
    $rfc_rc = saprfc_call_and_receive ($fce);
    if ($rfc_rc != SAPRFC_OK) {
      if ($rfc == SAPRFC_EXCEPTION ) echo ("Exception raised: ".saprfc_exception($fce));
      else echo (saprfc_error($fce));
      exit;
    //Retrieve export parameters
    $RETURN = saprfc_export ($fce,"RETURN");
    print_r($RETURN);
    When I print $RETURN I see the message
    "I::001 RFC partner does not allow to start the required p"
    Anybody was successful downloading documents from sap DMS using PHP.
    Thanks

    Dear,
    If you want to use the code.
    first you can write your code in a subroutine in module pool program 1
    and then you can use it from module pool  program 2 by
    perform subroutine_name(program_name)
    using P_1
    changing C_1
    if you wan to use one module pool data into other module pool.
    so that is another requirement.

  • Using CSS With PHP..

    Hello!
    I need to create several PHP-based pages for use with a photo gallery and would like to use my existing CSS to style the pages.  Is this possible?
    Thanks!

    You certainly can; just link to your existing stylesheet as with an html page

Maybe you are looking for