Import data thru php

hi,
i have a text file and i want to import this file to data base table, how i can do that thru php?
any solution will be appriciated.
thanks
Noman ul haq

thanks for your reply,
i dont want to imprt text file thru SQL Loader, i just wanted to is there any way to import text file thru PHP, because i saw an application (i.e. PHPEDITOR) which export data into excel or xml fomat. so definately there must be some process which will import data.
Noman ul haq

Similar Messages

  • Need Help importing data using PHP to convert it into a single HTML line

    Hi, My names Chance
    I'm a 2nd year web design student and have been assigned a project by my teacher for a charity website
    i found a tutorial of exactly what i need to do but im stuck on creating a script to import  and convert php data
    to a single html line
    heres the link to the the script, if you scroll down to the bottom
    where it says
    RSS or XML Data Source
    "The scrolling text can be imported from any source: RSS, XML or any other format.
    For example, if you want to import data using PHP to convert it into a single HTML line to be displayed by the ticker, create a php script to import and convert the data, and include it directly in the DIV tag as follow"
    this is what i need help doing
    http://www.mioplanet.com/rsc/newsticker_javascript.htm
    i already have the php code that i want to import
    i just need to know how to import and convert my php script so im able
    to make the the javascript from the link i provided to work
    thank you so much for your time
    if you have any question or answer please email me
    [email protected]
    thanks again hope to here from you soon

    Hi
    The instructions are there on the page you provided a link to!
    What is it you do not understand?
    PZ
    www.pziecina.com

  • Import data from excel/csv file in web dynpro

    Hi All,
    I need to populate a WD table by first importing a excel/CSV file thru web dynpro screen and then reading thru the file.Am using FileUpload element from NW04s.
    How can I read/import data from excel / csv file in web dynpro table context?
    Any help is appreciated.
    Thanks a lot
    Aakash

    Hi,
    Here are the basic steps needed to read data from excel spreadsheet using the Java Excel API(jExcel API).
    jExcel API can read a spreadsheet from a file stored on the local file system or from some input stream, ideally the following should be the steps while reading:
    Create a workbook from a file on the local file system, as illustrated in the following code fragment:
              import java.io.File;
              import java.util.Date;
              import jxl.*;
             Workbook workbook = Workbook.getWorkbook(new File("test.xls"));
    On getting access to the worksheet, once can use the following code piece to access  individual sheets. These are zero indexed - the first sheet being 0, the  second sheet being 1, and so on. (You can also use the API to retrieve a sheet by name).
              Sheet sheet = workbook.getSheet(0);
    After getting the sheet, you can retrieve the cell's contents as a string by using the convenience method getContents(). In the example code below, A1 is a text cell, B2 is numerical value and C2 is a date. The contents of these cells may be accessed as follows
    Cell a1 = sheet.getCell(0,0);
    Cell b2 = sheet.getCell(1,1);
    Cell c2 = sheet.getCell(2,1);
    String a1 = a1.getContents();
    String b2 = b2.getContents();
    String c2 = c2.getContents();
    // perform operations on strings
    However in case we need to access the cell's contents as the exact data type ie. as a numerical value or as a date, then the retrieved Cell must be cast to the correct type and the appropriate methods called. The code piece given below illustrates how JExcelApi may be used to retrieve a genuine java double and java.util.Date object from an Excel spreadsheet. For completeness the label is also cast to it's correct type. The code snippet also illustrates how to verify that cell is of the expected type - this can be useful when performing validations on the spreadsheet for presence of correct datatypes in the spreadsheet.
      String a1 = null;
      Double b2 = 0;
      Date c2 = null;
                        Cell a1 = sheet.getCell(0,0);
                        Cell b2 = sheet.getCell(1,1);
                        Cell c2 = sheet.getCell(2,1);
                        if (a1.getType() == CellType.LABEL)
                           LabelCell lc = (LabelCell) a1;
                           stringa1 = lc.getString();
                         if (b2.getType() == CellType.NUMBER)
                           NumberCell nc = (NumberCell) b2;
                           numberb2 = nc.getValue();
                          if (c2.getType() == CellType.DATE)
                            DateCell dc = (DateCell) c2;
                            datec2 = dc.getDate();
                           // operate on dates and doubles
    It is recommended to, use the close()  method (as in the code piece below)   when you are done with processing all the cells.This frees up any allocated memory used when reading spreadsheets and is particularly important when reading large spreadsheets.              
              // Finished - close the workbook and free up memory
              workbook.close();
    The API class files are availble in the 'jxl.jar', which is available for download.
    Regards
    Raghu

  • How can I import data from a csv file into databse using utl_file?

    Hi,
    I have two machines (os is windows and database is oracle 10g) that are not connected to each other and both are having the same database schema but data is all different.
    Now on one machine, I want to take dump of all the tables into csv files. e.g. if my table name is test then the exported file is test.csv and if the table name is sample then csv file name is sample.csv and so on.
    Now I want to import the data from these csv files into the tables on second machine. if I've 50 such csv files, then data should be written to 50 tables.
    I am new to this. Could anyone please let me know how can I import data back into tables. i can't use sqlloader as I've to satisfy a few conditions while loading the data into tables. I am stuck and not able to proceed.
    Please let me know how can I do this.
    Thanks,
    Shilpi

    Why you want to export into .csv file.Why not export/import? What is your oracle version?
    Read http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
    Regards
    Biju

  • Got E-mail Attachment (.xls Excel file), then import data to Database

    Dear All,
    I have a project need to do above mention function.
    how to do that automatically ?
    Database is Oracle 10g running on RH AS 4.0 Linux.
    Best regards
    boris

    Dear All,
    Tks for yr reply first,
    My meanings is process it automatically & no need thru client to do that.
    i think the solution as below : -
    1) partner send e-mail to mailbox with attahcment.
    2) software can get a mail then extract attachment & allocation to somewhere folder in db server
    3) execute command for import data from file to database.
    did u know any solution or third party software can do that ?
    best regards
    boris

  • Export & Import data in Oracle (Urgent)

    I just wonder whether Oracle 8i has the 'Export & Import data' feature in their DBA Administration tool.
    Inside DBA Studio, I found a option to export/import data to text file, but we must connect to Oracle Management Server (OMS) first before we can use that feature. I found the same feature available in Oracle 7.3.3 in Oracle Data Manager.
    How to make sure that I have a OMS installed on my server? (I purchase a Oracle 8i Standard Edition, does it include OMS?)
    Can we export from a table (database A) to a table in database B? Or We can only do this thru. a dump file?

    With every installation of an Oracle DB you get the exp(ort) and imp(ort) utilities. You can use them to move data from one user to another.
    Run them from the dos-prompt like:
    exp parfile=db_out.par
    imp parfile=db_in.par
    with db_out.par=
    file=db.dmp
    log= db_out.log
    userid=system/?????
    owner=???
    constraints=y
    direct=n
    buffer=0
    feedback=100
    and db_in.par=
    file=db.dmp
    log= db_in.log
    userid=system/???
    touser=??
    fromuser=???
    constraints=y
    commit=y
    feedback=100
    null

  • Warning while laoding data thru load rule

    Hello,
    I am getting a warning while loading the data thru load rule.
    Where can I see that waning?
    Thanks

    By default the error information store in datdload.err
    or
    if you want to set your own error file in maxl using statement
    import database dbname data from datafile datafilepath using server rule file filename +on error write to the path where you want to store\file name.err+
    the file name is user choice
    thanks
    kumar
    Edited by: 806739 on Nov 1, 2010 9:51 AM
    Edited by: 806739 on Nov 1, 2010 9:51 AM

  • Import data from r3

    Hi,
    1) I want to import customer data from R3 system.
    Note :- I am using repository created using sp3_customer.a2a archieve file in mdm
    I created idoc to file scanario in xi and xml file imported in import manager. but,my problem is i am not able to map all the fields one to one. So, I imported
    00_DEBMDM05_R3.map ( thru file--> import),option.
    I thought by doing this,mapping will happen automatically between xml and mdm data.but, not able to map automatically. What went wrong?
    I heard there is some other solution to import data from r3 ( adding ports, client systems etc in mdm)
    Thanks
    Rama

    Hi,
    Refer to
    <a href="http://help.sap.com/saphelp_mdmgds55/helpdata/EN/43/4e705aaee91bcce10000000a1553f7/content.htm">MDM and Client Systems</a>
    Hope that helps.
    Regards,
    Tanveer.
    <b>Please mark helpful answers</b>

  • Import data from a php5/mysql to office 365

    is there a way to import data from a deployed php5/mysql application to office 365 ??

    Hi  ,
    According to your description, my understanding is that you want to migrate your php application to SharePoint Online.
    For your issue, you can try to convert your php application to asp.net application, and 
    migrate asp.net application to Office 365.
    For more information, you can have a look at the blogs:
    http://www.asp.net/downloads/archived-v11/migration-assistants/php-to-aspnet
    http://msdn.microsoft.com/en-us/library/aa479002.aspx
    http://www.codeproject.com/Articles/21465/Converting-an-ASP-NET-site-into-a-SharePoint-site
    http://krishnamfs.blogspot.com/2013/09/steps-to-migrate-php-intranet-site-into.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Can the latest version of numbers [mountain lion] import data from filemaker version 12

    can the latest version of inumbers [ mountain lion ] import data from the newest version of filemaker 12 ?

    i want to import a filemaker database [ version 12 ] directly into inumbers [ latest version ].
    m/s excel 2011 only allows the import of filemaker database - thru version 11 .
    since excel does not offer compatibility to filemaker version 12,  im looking to see if the lastest version of numbers provides this ability.   ? ? ?

  • Can I use Dreamweaver to import data into specific fields on a website?

    We need to build a website that will allow us to import data from an existing database, into specific fields on website (desktop and mobile).  Is it possible to do that in Dreamweaver?

    Ben answered your question. You asked if one CAN use DW to call data. Just understand that it isn't necessary to use DW for this, and there are good reasons not to.
    Using a plug-in or data behaviors allows you to get up and running quickly, but they are like training wheels on a bicycle. Eventually they cripple your capabilities and you have to go back to the beginning to learn how to do things right, which means making the connections and writing the code yourself. Why not just do it the right way from the start?
    If you script the database connections and queries yourself, you can still work within DW.
    You did not specify which kind of server, database or scripting language you plan to use. The typical configuration is MySQL database and PHP scripting on Linux.

  • BAPI_GOODSMVT_CREATE to import data in MIGO tcode

    Hi ,
    Under tcode MIGO if we give material document number and display it displays several tabs in the bottom along with import tab.
    In Import tab we have a button details that opens Import data popup.
    Using BAPI BAPI_GOODSMVT_CREATE can we fill the data in that popup like prelim doc no? those fields are coming from EIPO table.
    what is the link between material document number and EIPO
    Thanks
    Bala Duvvuri

    Hi,
      Please take a look at this links for sample coding of BAPI_GOODSMVT_CREATE.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.4ap.de/abap/bapi_goodsmvt_create.php
    Regards
    Kiran Sure

  • Import data into database on another server

    What is the syntax to import data from a .dmp file on another server into a database on a different server? Do I just use
    imp scot/tiger@nextdb parfile=params.dat
    I do not have enough space on the other server to hold the large import file. Even a compressed file give a 'no space left on device error', so I want to just issue the import command on the other server. Is that possible?

    Yes it is possible and the example you provided is enough if you want to import the data in nextdb.
    But, consider network bandwidth, since all data that has to be imported must go thru the network. This can make import process much slower.
    One more thing to consider! You have mentioned there is not enough space on your destination site for the dump file. If that is the case, make sure that you have enough space for the data that has to be imported.
    See how much free space you have in the target tablespace and the target location in order to be sure that there is enough space for the data.

  • How to update link and import data of relocated incx file into inca file?

    Subject : <br />how to update link and import data of relocated incx file into inca file.?<br />The incx file was originally part of the inca file and it has been relocated.<br />-------------------<br /><br />Hello All,<br /><br />I am working on InDesignCS2 and InCopyCS2.<br />From indesign I am creating an assignment file as well as incopy files.(.inca and .incx file created through exporing).<br />Now indesign hardcodes the path of the incx files in inca file.So if I put the incx files in different folder then after opening the inca file in InCopy , I am getting the alert stating that " The document doesn't consists of any incopy story" and all the linked story will flag a red question mark icon.<br />So I tried to recreate and update the links.<br />Below is my code for that<br /><br />//code start*****************************<br />//creating kDataLinkHelperBoss<br />InterfacePtr<IDataLinkHelper> dataLinkHelper(static_cast<IDataLinkHelper*><br />(CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)));<br /><br />/**<br />The newFileToBeLinkedPath is the path of the incx file which is relocated.<br />And it was previously part of the inca file.<br />eg. earlier it was c:\\test.incx now it is d:\\test.incx<br />*/<br />IDFile newIDFileToBeLinked(newFileToBeLinkedPath);<br /><br />//create the datelink<br />IDataLink * dlk = dataLinkHelper->CreateDataLink(newIDFileToBeLinked);<br /><br />NameInfo name;<br />PMString type;<br />uint32 fileType;<br /><br />dlk->GetNameInfo(&name,&type,&fileType);<br /><br />//relink the story     <br />InterfacePtr<ICommand> relinkCmd(CmdUtils::CreateCommand(kRestoreLinkCmdBoss)); <br /><br />InterfacePtr<IRestoreLinkCmdData> relinkCmdData(relinkCmd, IID_IRESTORELINKCMDDATA);<br /><br />relinkCmdData->Set(database, dataLinkUID, &name, &type, fileType, IDataLink::kLinkNormal); <br /><br />ErrorCode err = CmdUtils::ProcessCommand(relinkCmd); <br /><br />//Update the link now                         <br />InterfacePtr<IUpdateLink> updateLink(dataLinkHelper, UseDefaultIID()); <br />UID newLinkUID; <br />err = updateLink->DoUpdateLink(dl, &newLinkUID, kFullUI); <br />//code end*********************<br /><br />I am able to create the proper link.But the data which is there in the incx file is not getting imported in the linked story.But if I modify the newlinked story from the inca file,the incx file will be getting update.(all its previous content will be deleted.)<br />I tried using <br />Utils<IInCopyWorkflow>()->ImportStory()<br /> ,But its import the incx file in xml format.<br /><br />What is the solution of this then?<br />Kindly help me as I am terribly stuck since last few days.<br /><br />Thanks and Regards,<br />Yopangjo

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • Object reference not set to an instance of an object error with Import data

    Hi Experts,
    We are using BPC 7.5M with SQL Server 2008 in Multiserver environment, I am getting an error "Object reference not set to an instance of an object." while running Import data package, earlier we use to get this error sometime(once in a month) but it goes away if we reboot the application server but this time I have rebotted the Application server multiple times but still getting the same error.
    Please Advice.
    Thanks & Regards,
    Rohit

    Hi Rohit,
    please see the sap note 1615837, maybe this help you.
    Best regards
    Roberto Vidotti

Maybe you are looking for

  • Corruption in text files retrieved through Adobe Drive on Mac

    I am running an OpenCMIS based CMIS server on Mac. When viewing text files retrieved from the CMIS repository through Adobe Drive, there is nontextual content appearing at the end of the file. XCode, for example, ends up displaying this content as a

  • "Unknown Caller " issue

    I have synced my iPhone with the Outlook. Sometimes, when I receive a call the name of the caller is not displayed, rather "Unknown Caller" gets displayed on the iPhone, while the number is already there in the iPhone's contacts list.

  • Post Good Receipt without serial number

    Dear Expert, My client use serial number management for good movement. But they have requirement to set serial number as blank when they perform GR non stock (GR for PO with account assignment) while serial number still mandatory for GR stock (GR for

  • Attdance Sheet Report Query

    Dear members i want create a matrix report my following table i have a attdance table like empno number, adate date, atime date, atype varchar2(3) ( IN/OUT ) we have friday leave..i want to create a matrix report,report show result like that if emplo

  • Securing Web Services based on simple Java Classes

    Hi @all! We`ve got the following problem. There`s a .NET client calling our Web services deployed on Bea Weblogic 8.1 (without SP). The Web Services are generated by the ANT task servicegen. They are based on simple Java classes containing the servic