Using PHP for file IO

I am dealing mainly with a nested array of objects that I
would like to be able to save to a .txt or .html file. Because
flash can't do this (I assume for security reasons) I need to use a
PHP script. The only problem is, I don't know how.
Can someone please inform me of how to save a flash variable
with PHP?
Also, I'd like to know how to get actionscript to read the
file in again.
Thanks in advance,
Raphael

quote:
Originally posted by:
CogDev
bump

Similar Messages

  • How do I use VPN for file sharing?

    Hi folks, hope you can help.
    I need to find a method for file sharing between my company's two offices, which are not only in different countries but also use both PCs and Macs. I think setting up a VPN is the way forward.
    My file server is a Mac Mini running the standard client version of OS 10.5.4, with a static IP, 217.xxx.xxx.xxx. I need the PCs and Macs to access its resources. It is set up to share its files using FTP, AFP and SMB. It is running the application iVPN Server, which I understand is a GUI that makes the built-in OS X VPN Server function available to the client edition of OS X.
    I am currently overseas and can connect to the Mac Mini over VPN. The problem is that I cannot seem to access the Mac Mini's files - I don't know what to do having established the VPN connection. I was half-expecting it to show up in the Finder under Shared or something.
    The Mac Mini has a local IP of 10.0.1.20, but the VPN Server is issuing an IP to all clients in the range 192.168.2.200 and beyond. Is this where I'm going wrong?
    Should the Mac Mini VPN Server also connect to itself, using VPN, as a client?
    I'm really stuck, all help is very much appreciated. Thank you!

    Thanks for prompt reply Topher..
    I am familiar with the Connect to Server window, but I am not sure which IP I should be using. Assuming no VPN connection for the moment, and assuming I'm on a remote network, I can connect to the User's documents folder on the Mac Mini already by typing afp://[username:password]@[static WAN ip]/Documents
    However, I need to ensure that SMB shares work (I know they work when I'm on the local network). So I type smb://[username:password]@[static WAN ip]/Documents but this fails to connect to the User's Documents folder.
    To make the SMB shares work I think I have to connect using VPN. So I connect to the Mac Mini via VPN, and my laptop is issued a VPN IP of 192.168.2.200. Of course my laptop also has an IP from my local network. Do I need to rearrange my network order in System Preferences?
    So I'm now connected via VPN. However to view the Mac Mini's files, surely it also needs to have an IP issued by the VPN Server? But the Mac Mini is the VPN server. So should I go into its System Preferences and set up a VPN connection to itself?
    Now back on the laptop and I want to browse User's Documents folder on the Mac Mini using SMB. I go Connect to Server, and I guess I would type smb://[username:password]@[Mac Mini's VPN IP]/Documents
    Am I on the right track? Thanks again...

  • Use Ethernet for file transfers to iMac?

    Hi -- In earlier Powerbook use I used to like using the "Target Disk Mode" to drag files from my laptop to my desktop machines, but of course my new MacBook has no firewire.
    is there anyway to connect my MacBook to my iMac using an ethernet cable, to drag sel;ect files from the portable to the desktop machine? I've got some multi-gig files I need to shuttle back and forth occasionally, so it's pretty tedious to chug along via wireless . . .
    Any other suggestions for most convenient means of shuttling big files?
    Thanks

    Yes, you can use Ethernet to transfer files via File Sharing. If you have a home network then you can share files over your home network whether it be wired or wireless. You can also create a computer-to-computer network by connecting two computers directly via Ethernet cable.
    Select Mac Help from the Finder's Help menu and search for "file sharing." Search for "network" to find an article on computer-to-computer networks.

  • Using OEM for file management

    Is anyone using OEM to manage files on their clients?
    We currently have a bunch of scripts that distribute certain files to certain systems based on system criteria, such as OS version, system "usage" (ie oracle DB, backup server) etc.
    I was looking @ OEM Deployment Procedures as something that might help with this. I didn't see a premade "file distribution" procedure, though, so I would probably have to write my own somehow.
    I'm also open to using Ops Center or some other plugin that might be more suited to this task.

    I am going to assume that you are using EM 12c. Let me know if this is not true.
    Deployment procedures (DP) is the ideal solution for this. There is no out of box DP for file transfer because it is extremely easy to create one. You have two options:
    1. transfer files from one server to another (using the file transfer step in DP)
    2. upload files to EM software library and then transfer them to different hosts (using the component and directive step in DP)
    Useful links:
    http://docs.oracle.com/cd/E24628_01/em.121/e27046/part_dp.htm#CCHJBDFD
    https://apex.oracle.com/pls/apex/f?p=44785:24:0::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5787,1
    https://apex.oracle.com/pls/apex/f?p=44785:24:0::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5788,1

  • 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 !

  • Error: 1:n multi-mapping using BPM for file to file scenario

    Hi. Iu2019m trying to do 1:n multi-mapping using bpm scenario. I use file to file. Input file consists of many records and then I want many record to be transformed into many file at target system. I follow step in http://www.riyaz.net/blog/xipi-1n-multi-mapping-using-bpm/. However, I have a problem when file is retrieved in to XI. It doesnu2019t create any output file.
    When I look at SXMB_MONI, it shows u201CNo object type found for the message Check that the corresponding process is activated.u201D Besides, it shows error message "Unable to perform action for selected message" when i clikc at PE in SXMB_MONI.
    I have check at many previous posts with the same error message but still couldnu2019t solve it. I already activate my BPM and check that status in SXI_CACHE = 0. There is noting left in change list of my IR and ID.
    Here is my design and configuration.
    IR
    Data Type: DT_file_split -> for both input and output file
    Message Type: MT_file_split_sender, MT_file_split_receiver
    Message Interface: SI_file_split_in, SI_file_split_out, SI_file_abs_source, SI_file_abs_target
    Message mapping: MM_file_split for mapping MT_file_split_sender with MT_file_split_receiver
    Interface mapping: OM_file_split
    u2022     Source = SI_file_split_out
    u2022     Target = SI_file_split_in
    u2022     Mapping Program = MM_file_split
    BPM following this link http://www.riyaz.net/blog/xipi-1n-multi-mapping-using-bpm/.
    ID
    Import my Integration process
    2 Communication Channel for getting input file (CC_File_split_sender) and creating output file (CC_File_split)
    2 Receiver determination:
    u2022     Source system to BPM using interface SI_File_Abs_source
    u2022     BPM to target system using interface SI_File_Abs_target
    1 Interface determination:
    u2022     from source system to BPM
    u2022     Sender interface: SI_File_Split_Out
    u2022     Receiver interface: SI_file_abs_source
    1 Sender Agreement
    u2022     Commu. Component: Source System
    u2022     Using interface: SI_File_Abs_source
    u2022     Sender Communication Channel: CC_File_Split_Sender
    1 Receiver Agreement
    u2022     Sender Communication Component: BPM
    u2022     Receiver Communication Component: Target System
    u2022     Receiver Interface: SI_File_Split_In
    u2022     Receiver Communication Channel: CC_File_Split
    Anyone know how to fix this?
    Thanks,
    Pavin

    Hi,
    Yes, thats the problem.
    You are creating file from test tab of  1..N mapping .
    In case of 1..N mappping in mapping Extra tags of messages are addded to the data.As shown here:-
    Messages
          Message1
               MessageType
    When you use this mapping to generate xml message then it will add additional tags for <Messages> and <Message1>, which is not correct. it should only have structure of you MT.
    So remove start and end tag of <Messages> and <Message1> from your data file. Mentioned below in bold.
    <xml......>
    <Messages>
    <Message1>
    <MT_...>
    </MT_...>
    </Message1>
    </Messages>
    This should solve your problem.
    Regards,
    Sami.

  • Anyone use MediaMonkey for file transfers with their Zen (Xtra)? For changing bitrat

    I'm looking for some software that will reduce the bitrates of my songs as they are transferred from my Vista computer to my Zen Xtra, i.e., I store my music files on my computer in WMA lossless format, and I want them copied onto my device at 28kb
    ps.
    MediaMonkey looks like it will do this. Does Windows Media Player?
    Are there other MP3 File Management programs that do this?

    Hiya all,
    Just to let you know, that this has happened again, 2nd time within 4 months of owning it, I cannot add or remove data from the data partition, I can listen to the MP3's fine, but can't do jack with the data partition, does anyone know of anything that can resolve this since the last time I reported the problem? I've double checked that I've got the most up todate firmware and software. It's a bit pants if you can't use the Zen Xtra for what it's designed for!
    Flegg

  • Should a graphic designer use Iphoto for file management ?

    I am a designer who is overwhelmed by too many images from different sources (scan, online, art, photos) that need to be organized by themes (animals, flowers, calligraphy, projects, etc) so I tried transferring all my ps and tif and jpg files into iphoto (hoping to avoid using bridge, which I don't like).
    I noticed after I drug some them into iphoto, I reopened them in PS (drug file to the PS software Logo in dock), all the layers were had been flattened and the file went from 600 dpi to 72! EEEEK!
    I am a graphic designer and need large files with layers. Is iphoto a bad way to organize images? The orginal reason I like iphoto is because you can just drag out a file, and the original remains. In bridge, the original actually MOVES OUT.
    (I posted this in the wrong forum before, so this is a repeat posting)

    kidquotes:
    I would seriously look into a more robust DAM (digital asset management) application. The one that I use is Media Expression. It allows you to manage your folder system, move image files between folders from within the application, rename files, add metadata and write them to the files so they travel with them.
    Go go The DAM Forum where professional photographers discuss the various DAM applications and their relative merits, etc. Expression Media was originally iView MediaPro and, at the time, was consdered one of the very best. EM was bought by Microsoft (ugh) but has evolved into am improved product but is more expensive.
    As far as the dpi the resolution didn't change. iPhoto displays all at 72 dpi but if you were to look at the file in Photoshop it's print size would be nearly 9 times larger. It's all relative. SeeThe Myth of DPI.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • I am an English teacher, and my school just bought iPads for my students and me. I want to use Dropbox for file sharing and to be able to edit their work on my iPad so that my students will be able to open their work from Dropbox and see my corrections.

    I would like my editing marks and comments to save in Dropbox in a contrasting color. The students will then need to be able to open the document and make corrections, then save again to Dropbox. Thanks for any ideas!

    Thanks, everyone, for these helpful suggestions. Before we got the iPads last week, we were saving compositions from desktops onto the school server. There was not a problem with the students seeing other students' files, so I didn't password protect them, but there was the issue of copying all their work onto a thumb drive so I could grade it at home. I like accessing files in the cloud much better. Under the previous system, I was also printing out their work and marking it up for the students to correct before I put it on our class web site. Now under this new system, I would like to go paperless, sharing my digital revisions with the students as they perfect their work before I put the final products online. This usually takes 3 or more revisiosns. So far, I have tried the following apps: Quickoffice, Documents to Go, Writeup, Plaintext, Pages, Essay, and Droptext. The students and I have no trouble saving into and retrieving from Dropbox, but there is no good way so far for me to edit their work in color so that they can open up the file and see my comments in order to make their revisions. I do have this capability on my laptop and desktop by using the redlining feature in Word. It's just that I'd rather be able to use my iPad for this purpose. I will check out Evernote.

  • Generate XML using PHP for the gallery

    Hi,
    Thought I would contribute a demo for making the gallery XML
    with PHP and
    MySQL- all other seems to be in cold fusion.
    <?php
    header('Content-type: text/xml'); //Important
    include('mysqli_connect.php'); //Connect to the database
    echo '<?xml version="1.0" encoding="iso-8859-1"?>';
    echo "\n";
    ?>
    <!-- The following can all be dynamically generated from
    the database if you
    want -->
    <gallery
    base = ""
    background = "#FFFFFF"
    banner = "#F0F0F0"
    text = "#000000"
    link = "#0000FF"
    alink = "#FF0000"
    vlink = "#800080"
    date = "4/11/2006">
    <sitename>Gallery</sitename>
    <photographer></photographer>
    <contactinfo></contactinfo>
    <email></email>
    <security><![CDATA[]]> </security>
    <banner font = "Arial" fontsize = "3" color =
    "#F0F0F0"> </banner>
    <thumbnail base ="thumbnails/" font = "Arial" fontsize =
    "4" color = "#F0F0F0"
    border = "0" rows = "3" col = "5"> </thumbnail>
    <large base ="images/" font = "Arial" fontsize = "3"
    color = "#F0F0F0" border
    = "0"> </large>
    <photos id = "images">
    /*Build the XML from the database - here I'm using two
    tables, one contains
    the info for the originals, the other for the thumbs.*/
    <?php
    $query = "SELECT orig.imageName AS oi, thumb.imageName AS ti
    FROM
    image_originals_gallery AS orig LEFT JOIN
    image_thumbnails_gallery AS thumb
    USING (imageId)";
    $result = $db->query($query);
    //Loop through the results:
    while ($row = $result->fetch_assoc()) {
    echo '<photo path = "' . $row['oi'] . '" width = "300"
    height = "200"
    thumbpath = "' . $row['ti'] . '" thumbwidth = "75"
    thumbheight = "50"></photo>';
    ?>
    </photos>
    </gallery>
    Thats it!
    Hope that helps someone :)
    Paul
    http://www.pixellab.co.uk

    so what do u put here?
    var dsTasks = new Spry.Data.XMLDataSet(" ??? ", "tasks/task")
    is it 'yourthisCodepage.php'?

  • Using FileOutputStream for File Creation. Help Required!!

    Folks,
    I am using the FileOutputStream to create a file.For this I am
    saying:
    FileOutputStream fout2 = new FileOutputStream("Name.txt");
    This creates the File in the Current directory of the IDE(JBuilder 5).
    I want to create ths File in the a logs directory,taking the
    relative path.
    So I want the File to be created as ./logs/Filename.txt??
    How do I set the relative path in the FileOutputStream ??
    Can anyone please respond?

    Yes, "." does not coincide with the classes directory, especially when starting the application from an IDE.
    Take a look at the system properties for some directories:
    System.getProperties().list(System.out);
    System.putProperty("user.dir", "...");For your means I would abuse the ClassLoader, and specify a full path, and start to patch a file name from it:
    java.net.URL u = this.getClass().getResource(".../x.gif");

  • Using Automator for File Sharing, including 1Password Question

    I'm using 1Password (http://agilewebsolutions.com/products/1Password) on three computers at my shop and instead of using three separate library files I just want one main file/directory/database that all three computers can use, share and update.
    So far I've accomplished this by using File Sharing.
    It's working fine though when I shut off all three computers and restart I have to reconnect all computers (selecting a 'SHARED' computer on the left of an open window menu and clicking on 'Connect As...' on the top right) to reestablish the linked file.
    Is there anyway I can set up a macro using Automator to do this when I turn on my computers?

    you don't need automator for this. go to finder preferences->general and check the box to show connected servers on the desktop. then just connect to the remote computers and then drag the mounted volumes from the desktop to your login items in system preferences->accounts->login items. then when you log in the remote computers will be automatically mounted. you can also use a cloud storage solution like Mobileme or DropBox and store the password database file in a central online location.

  • I just purchased an ATC for my wife for Xmas, and she wants to use it for file sharing.  Help??

    From an external location (over the interent).........not at home on............Is this doable?  Please let me know!!!
    Thanks for any help.

    There are 3 methods which Tesserax explains here..
    https://discussions.apple.com/docs/DOC-3413
    The key one being the one Apple designed for easy access, Back to My Mac.. which has been around the place for ages but was updated to iCloud some time ago.
    She will need a Mac computer to use for the connection.. that is one limitation.. Another is the TC must be the main router in the network.
    If you run into any other issues feel free to ask.. it is never the simple thing you expect because it is unlikely you are using a business account with a static IP.. ISP deliberately work to stop you doing this without paying for it.
    A thread like this show that all not sweetness and light even in the BTMM world.
    https://discussions.apple.com/thread/3699096?start=0&tstart=0

  • I am trying to use firefox to access MySQL tables using PHP generated files. How do I do it?

    Sorry, I hit the enter button and it sent an incomplete message

    Hi,
    I use a Kensingtom USB controller that I have had for years.  It has forward and back, laser pointer and screen blackout function keys.  It doesn't act as a media controlller with volume, play, forward and back.

  • What is the maximum size i can use as for File

    Hi,
    Its a File to JDBC Scenario having Java Module to convert the csv file to xml structure.
    I have uploaded a file of 29MB.
    It is throwing error as Insufficient heap space.
    I assume that error  is coming from Java Module.
    Could you please help me out.
    Thanks,
    Lalitha

    Hi,
    Following thread might be helpful to you...
    http://scn.sap.com/thread/1637092
    http://scn.sap.com/thread/1284704
    BR,
    Anirban

Maybe you are looking for

  • Unable to create a folder in lower levels of root folder

    It appears to me I cannot create a new folder in the lower levels of root folder. Currently, I have to create a new folder right below root folder and then drag it to lower level folder. Why I can't do it in one go. Thanks!

  • Drilldown report error

    Hi experts We have BW reports .. From main report,at any hierarchy level,if we rightclick we get option to jump to other reports via Go To. Suppose I open one Go To report called 'A' from one hierarchy level in main report . Then I add drilldown in m

  • Bussiness Delegate vs Session Facade.

    Hi, Please any one tell me what are the differences between Bussiness Delegate and Session Facade. I read some documentation in online but not clear in above two design patterns. Any help I will appricate. Thanks, CDulla.

  • Oracle !0g ORA-24813: cannot send or receive an unsupported LOB erroe

    Hi guys, I have an application server(weblogic7) and Oracle9i as well as Oracle10g server.we are using Procedures to generate XML files and store in the CLOB column as well send it to the application.It works well with Oracle9i but when we shift it t

  • Nac Guest Server Replication

    Hi; I configured the replication between two NAC Guest Servers. But replication is not happening because of the TWIN Service . Always its status is stopped. Could you please give some suggestions for this