A php script works in IE but not in safari .. please help

The following php works in internet explorer but not in safari or chrome .
In IE all files are saved in specified folder .
But in safari , xml portion works .. that is myxml.xml is saved in 'uploads/'.$temp directory ... but uploaded files are not saved in the given folder ..instead they are saved in 'uploads' folder .... not in 'uploads/'.$temp folder or 'uploads/'.$temp.'/image/' folder ...
The script is called from flash ...
I am new to php ... please help ...
<?php
session_start();
$temp=$_SESSION['myfolder'];
$raw_xml=file_get_contents("php://input");
if(isset($_FILES['Filedata']['name'])){
$whichfile=$_FILES['Filedata']['name'];
$whichextension=substr($whichfile,-3);
if($whichextension=='flv'||$whichextension=='pdf'||$whichextension=='txt'||$whic hextension=='mp3'){
move_uploaded_file($_FILES['Filedata']['tmp_name'],'uploads/'.$temp.'/'.basename ($whichfile));
elseif($whichextension=='jpg'||$whichextension=='png'||$whichextension=='gif'){
move_uploaded_file($_FILES['Filedata']['tmp_name'],'uploads/'.$temp.'/image/'.ba sename($whichfile));
elseif($raw_xml!=false){
$fp=fopen('uploads/'.$temp.'/myxml.xml','w');
fwrite($fp,$raw_xml);
fclose($fp);
else{
echo "&fname=$temp";
?>

Use this style rule for that image to get that custom cursor:
<pre><nowiki>cursor: url("dart.cur"), auto;</nowiki></pre>
See also:
*https://developer.mozilla.org/en/Using_URL_values_for_the_cursor_property

Similar Messages

  • Hi, i just updated my iphone 3gs to iso5 now it will not activate ive ''try again'' alot but not getting anywere please help!!

    hi, i just updated my iphone 3gs to iso5 now it will not activate ive pressed ''try again'' alot but not getting anywere please help! i need my phone for work not had it too long and really annoyed lol thanks,

    Sorry, but Apple does not provide a downgrade path for iOS.
    Because downgrading is unsupported by Apple we cannot discuss it on these forums, but you can use Google to find information on how to install an older version of iOS on any device.
    Note that you will void the warranty and loose official support by Apple.
    Feel free to let Apple know at http://www.apple.com/feedback
    Anyway, give a try resetting all your settings:
    Settings > General > Reset > Reset All Settings

  • My macbook won't start up i have used the option command p r while holding down power button but not done.. please help guys

    my macbook won't start up i have used the option command p r while holding down power button but not done.. please help guys

    It not polite to repost asking fro more help three minutes after initial post.
    Recovery mode is Command & R keys after depressing and releasing the Power button  for a normal startup.
    OS X: About OS X Recovery - Apple Support
    That only works for Lion and later.
    What exactly happens when your try to boot to Recovery?
    Try starting in Safe Mode resetting the SMC and NVRAM/PRAM
    OS X: What is Safe Boot, Safe Mode?
    Intel-based Macs: Resetting the System Management Controller (SMC)
    About NVRAM and PRAM
    What model MacBook Pro and what OSX version was on the Mac?
    Have you tried booting from an OSX install DVD?
    When you try to start doe the Power light light?
    This is the Mac Pro desktop forum. I requested your post be moved to the MacBook Pro laptop forum.

  • I have purchased adobe pdf pack so i can delete some text from my converted files, this will only let me add text but not delete any, please help

    i have purchased adobe pdf pack so i can delete some text from my converted files, this will only let me add text but not delete any, please help

    I tyhink that you need ExportPDF, Adobe ExportPDF (read only). In any case, thius may help: Cancel your membership or subscription | Acrobat.com online services

  • After stopping FF when I restart it , I get a pop up displaying Firefox already running but not responding. Please Help?

    After stopping FF when I restart it , I get a pop up displaying Firefox already running but not responding. Please Help?

    There are several possible causes, see [[Firefox is already running but is not responding]].

  • IPod recognised by computer but not by iTunes, Please Help!!

    When i connect my iPod to my computer, the 'do not disconnect' screen appears , and my ipod is shown in 'my computer', but not on iTunes please can anyone help and give suggestions. All replies are gratefully appreciated.
    Kayleigh xxxxxxx

    Peter,
    Peter. I had the same problem (only after installing 5.0.1). The only solution I found to work was to uninstall 5.0.1 and install the previous version that came on the packaged disk.
    Something I noticed, however, is that you can still download and successfully run the most recent iPod updater software. The 9/23/05 iPod updater release works just fine with iTunes 4.7., but it would not recognize the iPod when running 5.0.1 (iPod service error). There is clearly a commong problem with many Windows users with the 5.0.1 release. Don't know if it's a bad iPod service script or what...but it doesn't work for a lot of users (although I, too, had access to the iPod as an external drive in explorer). Haven't seen anything from Apple on it, though.
    Would like to see this fixed, soon!

  • My php forms work in IE but not in Firefox

    I have three forms that should send info to my e-mail via a php script on a site—they all work in IE, Opera, and Safari, but none of them work in Firefox.
    I receive no e-mail from Firefox, and get gibberish instead of my confirmation page.
    My Firefox is version 3.6.16. A friend of mine tested the form in Firefox version 3.6.15, and I did receive the form e-mail.
    How can I make sure that all versions of Firefox will send me the form info correctly?

    I should explain. AGPS is not a navigation software. Your phone uses the integrated GPS chip to option your position. However this can take a bit of time. To get your position quicker, your phone can also use AGPS which downloads information from the internet to help your phone get a position fix much quicker. In order to use AGPS, your phone has to go online.
    So. if you you have AGPS enabled and normally you allow your phone to go online when in Malaysia, it will get its position fairly quickly. When you are in Singapore and don't allow your phone to go online, then it won't be able to use AGPS, hence it will take longer to get a position fix. 
    This could be what you are experiencing. If this is the case then you just have to wait longer than usual before your phone get a position fix.
    Message Edited by cjlim on 07-Nov-2009 10:10 PM

  • GPRM Button scripts work in Simulate, but not after burning

    Hello everyone:
    I have a question regarding GPRM-based buttons and scripting menu navigation. My scripts work perfectly in DVD Studio Pro's simulate mode, but after building and formatting a DVD, the scripts do not function properly on a set top box, in Apple DVD Player, or when playing from the Video TS folder. The scripts were based off of a tutorial by Hal MacLean at dvdstudiopro.co.uk.
    Essentially, I have one track which is accessed via a Main Menu or a Chapters Menu. There is an animation that plays at the head of each menu, so menu has a loop point. The user should return to the correct screen, the correct button should be highlighted, and the menu should jump to the loop point. All of these things happen in simulate mode, but after burning, the loop point is ignored: The correct menu and buttons are highlighted, but the menu plays from the beginning. Here is how the project is laid out:
    From the main menu, if the user chooses Play Movie, the following script plays:
    mov GPRM 0, 1
    Jump Feature
    From the main menu, if the user chooses Chapters, the following script plays:
    mov GPRM 0, 0
    Jump Chapters Menu
    Each of the chapter buttons is assigned to the start of a scene. The feature's menu call is assigned to the following script:
    mov GPRM 1, SPRM 8
    div GPRM 1, 1024
    Jump Main Menu(Loop) [GPRM 1] if (GPRM 0 = 1)
    Jump Chapters Menu(Loop) [GPRM 1]
    I was able to make the menus behave properly by writing the scripts this way:
    mov GPRM 1, SPRM 8
    div GPRM 1, 1024
    Jump Main Menu Script [GPRM 1] if (GPRM 0 = 1)
    Jump Chapters Menu Script [GPRM 1]
    Main Menu Script:
    Jump Main Menu(Loop)
    Chapters Menu Script:
    Jump Chapters Menu (Loop)
    But, although the user is returned to the correct menu and the loop point, now only the default button is highlighted.
    Has anyone run into the same issues? Can anyone see any flaws in my scripts, or have any suggests? i would really appreciate any thoughts you all have. Thanks for your time!

    Do you have any pre scripts atached to the menus? I was having the same problems as you and found that pre scripts and GPRMs don't play nice (at least in DSP). Removing the pre scripts solved my issue.
    http://discussions.apple.com/message.jspa?messageID=4643747#4643747
    Good luck!

  • Script Works in Formcalc but not Javascript

    I have two radio button lists laid out in two columns to select garment sizes (small, medium, large). The "M" side is MEN and the "W" side is WOMEN.  The Radio button lists are named MENS and WOMEN respectively.
    ITEM    QTY.       COST       ITEM    QTY.    COST 
    ||MS                          ||WS
    ||MM                          ||WM
    ||ML                          ||WL
    ||NO SELECTION                ||NO SELECTION
                        TOTAL                      TOTAL
    The user selects the size using the radio button, moves into the QTY field to input the quantity and the COST is automatically calculated in a read-only numeric field (the QTY and COST fields are not shown above).
    However, if a radio button (other than "NO SELECTION") is selected in one list and you attempt to select something in the OTHER list, after inputting a quantity a message box will pop up saying:  “Unable to calculate totals.  You have an active selection in the other side.  Please set the other side to 'No Selection' to continue."  The event used for this in the QTY field is "exit".
    Additionally, the fields are reset to zero (0) making the TOTAL zero (0).
    The "NO SELECTION" button of each list has a value of 1.
    I have a formcalc script in each of the QTY fields on the mens side that read:
    if (Women > 1) then
       xfa.host.messageBox("Unable to calculate totals.  You have an active selection in Women.  Please set
       Women to 'No Selection' to continue.")
         MS=0
         MM=0
         ML=0
    endif
    The WOMEN side has a similar formcalc script if something is selected on the MENS side.  It works fine in formcalc.  However, when I try to use Javascript to perform this, the message box does not appear.
    if (Women > 1) {
       xfa.host.messageBox("Unable to calculate totals.  You have an active selection in Women.  Please set
       Women to 'No Selection' to continue.");
          MS=0;
          MM=0;
          ML=0;
    I am teaching myself JS and wanted to put functions into the project since this is all repetitive.  However, I don't understand why it works with formcalc and not JS.  The book I purchased for learning JS was a bad choice (and I won't mention it here).  However, any help would be apppreciated.
    BTW, I used UPPER CASE in this post for emphasis.  The case matches in the actual script.

    Paul, will this script work, instead?
    var brain
    var correctSyntax = "Object.rawValue"
    if (correctSyntax != "Object.rawValue") {
       xfa.host.messageBox("YOU ARE AN IDIOT!);
       brain = ""
    Learning Javascript is gonna be a loooong process for me
    But as they say, if you don't make mistakes, how will you learn?  I'm glad there are guys like you around.
    THANKS, PAUL!

  • Why this script works in indesign but not in illustrator (cs5)?

    Hallo, i would like someone to tell me if it is possible to make a script from indesign ( i am talking about the crop marks script )
    to work in illustrator?
    It is very important to me, to make it work!
    I would appreciate if someone could help me with this?

    ok, thank you!
    So i have to ask from someone who knows scripting, to write it!
    I have seen in many sites, very good scripts doing other thinks, and also i saw one that did exactly what i wanted
    called  " Artboard_coords.app " but saddly was for mac.
    Pleaase if someone has the time to write such a script, i would very much appreciate it, and i think
    that it would be very usefull to many other designers too,  who works with digital printings,
    and have to print cards and other stuff to laser printings.
    Untill now i use the script from indesign.
    i also made an action that almost do the job, but not very handy!

  • Batch PDF script works in ID4 but not in ID5.5

    this script worked flawlessly in ID4, but doesn't work in 5.5....It's a script that converts all open indd files to pdf.
    This is the error...
    AppleScript Error!
    Error Number: -2741
    Error String: Expected "," but found application constant or consideration.
    Engine: Default
    File: Users/AM/Library/Preferences/Adobe Indesign/Version 7.5/en_US/Scripts/Scripts Panel/PDFer.applescript
    Anyone know what's wrong with the script?
    This is the script:
    property convertSpotToProcess : false
    my main()
    on main()
      tell application "Adobe InDesign CS5.5"
      set alleExportFormater to name of every PDF export preset
      set alleDok to name of every document
      tell document 1
      set valgtExportFormat to (choose from list alleExportFormater with prompt "Choose PDF Setting")
      if valgtExportFormat = false then error number -128
      set targetmappe to my velgmappe()
      end tell -- doknavn
      set valgtExportFormat to PDF export preset (valgtExportFormat as text)
      repeat with ggg in alleDok
      set doknavn to ggg as text
      tell PDF export preferences
      set page range to all pages
      end tell
      set filnavn to doknavn
      if filnavn ends with ".indd" then set filnavn to text 1 thru -6 of filnavn
      set filnavn to filnavn & ".pdf"
      tell document doknavn
      if convertSpotToProcess then set convert to process of (every ink whose is process ink is false) to true
      set targetfil to (targetmappe & filnavn) as string
      with timeout of 40 * 60 seconds
      export format PDF type to targetfil using valgtExportFormat without showing options
      end timeout
      delay 1
      end tell
      end repeat
      say "Your PDFs are ready. "
      end tell
    end main
    on velgmappe()
      try
      tell me to activate
      end try
      return (choose folder with prompt "Choose Folder")
    end velgmappe

    Hi,
    Use the ready made script was developed by Peter.  It's one of the good resources, find in the following links.
    http://www.kahrel.plus.com/indesign/batch_convert_cs3.html

  • Script works in ISE but not in regular Powershell

    I created a script that will read in files, encrypt them using openssl, and then remove the original. Only downside is that the script only works in ISE and not in powershell.
    On powershell command line the line "remove-item $file" ends up being an entire list of files instead of a single file. While in ISE the command is the single file instead of the list of files.
    Code in question:
    $file= get-content $file
    Foreach ($file in $files)
       $in=$null
       $out=$null
       #set the in and out files
       if ($enc -eq "-e")
          $in = "$file"
          #add .enc to let people know it is encrypted
          $out= "$file" + ".enc"
          }else{
          #we are decrypting
          $in="$file"
          #remove the .enc at the end of the string to restore to normal      
          $out="$in" -replace ".enc"        
        if ($file -eq ".enc")
        break
        $run = $cmd  + " enc" + " -" + $type + " -pass pass:" + $password + " " + $enc + " -in " + $in + " -out " + $out
        invoke-expression $run
        remove-item $file
        $in=$null
        $out=$null
    any help would be wonderful

    Technically it starts with my parameters and setting up the openssl command. Here is the mostly full version - i can give the full full one if you want.
    $files= get-content $files    
    #check the switch to see if we are encrypting or decrypting
    $enc="-e"
    if ( $decrypt)
       $enc="-d"
    Foreach ($file in $files)
       $in=$null
       $out=$null
       #set the in and out files
       if ($enc -eq "-e")
          $in = "$file"
          #add .enc to let people know it is encrypted
          $out= "$file" + ".enc"
          }else{
          #we are decrypting
          $in="$file"
          #remove the .enc at the end of the string to restore to normal      
          $out="$in" -replace ".enc"        
        if ($file -eq ".enc")
        break
        $run = $cmd  + " enc" + " -" + $type + " -pass pass:" + $password + " " + $enc + " -in " + $in + " -out " + $out
        invoke-expression $run
        remove-item $file
        $in=$null
        $out=$null
            

  • Script working fine manually but not in cron

    i have unix script with is running fine & great when i run manually
    is the same is in cron it is not running at the parts where it is interacting with database
    remaining parts of script working fine
    script
    ======
    export ORACLE_SID=TEST
    export TWO_TASK=TEST
    dat=`sqlplus -s / <<END
    set feedback off;
    set heading off;
    select count(*) from
    (SELECT serial,status,date_time
    from ttable
    where STATUS='C'
    order by date_time);
    exit;
    END`
    echo dat value $dat
    echo "hi"> 123.lst
    if [ $dat -gt 0 ]
    then
    sqlplus -s / <<-END >>123.lst
    @/home/scr/pro1.sql
    exit;
    END
    fi
    any help is appreciated
    Thanks in advance

    Bacause cron does not know anything about your enivroment, you need explicitly set all your enviroment (PATH, ORACLE_HOME and so on) in this script.
    Second option is invoke your script using "su - oracle -c </path/to/script_name>"

  • Sql script works in mssql but not in mysql

    The following
    SELECT count(*) FROM itemlist WHERE ID like '%a%' or itemDescription like '%a%'
    works in mssql but i get the error "Table 'xxx.itemlist' doesn't exist"
    in mysql. How can I make this work

    works in mssql but i get the error "Table
    'xxx.itemlist' doesn't exist"
    in mysql. How can I make this workCreate a table called itemlist in xxx's user space or schema or whatever it's called. Or create itemlist somewhere else and use the fully qualified whatever.itemlist to refer to it.

  • Bash script working in shell, but not in Automator

    This script works for me in a bash shell, and adds tags to an mp3.
    #!/bin/bash
    for file in *.mp3;
    do
    a=`basename "$file" .mp3 | sed -e 's/.* - //'`
    b=`echo "${file%%-*}"`
    id3tool \
    -t "$a" \
    -r "$b" \
    "$file"
    done
    If I put it into Automator (get selected items-->shell script), it doesn't work...
    it doesn't give errors, it simply doesn't have any effect, why?
    for file in "$@"
    do
    a=`basename "$file" .mp3 | sed -e 's/.* - //'`
    b=`echo "${file%%-*}"`
    /usr/local/bin/id3tool \
    -t "$a" \
    -r "$b" \
    "$file"
    done

    There's a step ahead, apparently the automator script WORKS, the only problem is that the artist name is "/path/to/mp3/ARTISTNAME", while if I run the script in a bash shell, the artist name is correct and it is "ARTISTNAME", how "basename" output suggests, why?
    for file in "$@"
    do
    a=`basename "$file" .mp3 | sed -e 's/.* - //'`
    b=`echo "${file%%-*}"`
    /usr/bin/id3v2 \
    -t "$a" \
    -a "$b" \
    "$file"
    done

Maybe you are looking for

  • Mac Book OSX 10..4 Memory

    I just bouhgt a Mac Book 1.83GHZ Duo Core with 60G of memory... However I only show 34G left. Did Apple install that much software to warrant using up 25G of memory..?

  • Lost phone-is mobile me

    I have or had the 3gs and it was stolen out of my purse. I was running low on batteries so the mobile me "find my phone" is not working. (error message received " Your iPhone is not connected to a data network or does not have Push enabled.") I still

  • TemSe- XRTAB(4)- 64 for table TST01 key [200]SPOOL0000028682 ,1

    Hi Keep getting this error in SM21 Database error: TemSe->XRTAB(4)->64 for table TST01 key [200]SPOOL0000028682 ,1. I've run the consistency check in SPAD and SP12 and everything looks ok. Would any have any ideas where to go next? Thanks Siobhan

  • Why I cant install adobe air in my Asus Fonepad K004

    Hello, I can find adobe air in the play store (https://play.google.com/store/apps/details?id=com.adobe.air&hl=es-419), so I guees adobe is supported to my asus, but when i try install it (" Error el archivo de paquete no es valido"), why ?

  • Java Studio creator2

    how can i insert / update / delete records into multiple tables at a time using Java Studio Creator2? thanks in advance.... cnip.