Articoli correlati ‘files’

Google – upload files – caricamento e condivisione files in rete

14 gennaio 2010

Il 12/01/2010 Nel blog ufficiale di Google la società annuncia di voler integrare nel servizio già esistente di Google Documents l’inserimento di una funzionalità di upload di qualsiasi genre di files.


upload_files_su_google_documents


Continua a leggere: Google – upload files – caricamento e condivisione files in rete

Aprire files PHTML di Magento in Dreamweaver

27 ottobre 2008

Dreamweaver di default non può aprire i files PHTML che sono presenti in Magento.
Puoi aggiungere il tipo di files PHTML per la “Vista Codice” nelle preferenze se desideri avere un accesso veloce ma non puoi vedere il file in modalità “Vista Design” se fai questa operazione.
Se usi Dreamweaver (versioni 4, MX, MX2004, 8, o 9, CS3) per creare i tuoi siti e vuoi aprire i files PHTML di Magento in modo di vedere la sintassi php colorata ed evidenziata propio come se fossero dei files php, puoi seguire questi passi per configurare Dreamweaver in modo che supporti questi tipi di files.

NOTE IMPORTANTI: Questa guida è per Dreamweaver per Windows (XP o Vista) oppure Mac OS X.

Nota:
Ho esclusco il numero delle versioni dai percorsi dei filese se stai usando una versione più vecchia della Dreamweaver 9 (CS3) sostituisci “Adobe” con “Macromedia” nel percorso del file. Alcuni spazi sono stati rimossi per mantenere i riferimenti su una sola riga.

* Con Dreamweaver 4:
Se stai usando il vecchio Dreamweaver 4, ti basterà seguire il primo step. Ti conviene comunque aggiornare Dreamweaver alla versione 8, CS3 o l’ultima uscita per un miglior supporto di CSS e Standards Web.

* Con Dreamweaver 8:
Step 3: “C:\Documents and Settings > [user name] > Application Data > Macromedia > Dreamweaver 8 > Configuration > Document Types > MMDocumentTypes.xml” e  PHTML in fine funziona sia in “Vista Design” che “Vista Codice”.

Step 1: Aggiungere .phtml al file Extension.txt nelle tue Application Data

Aprire il file Extensions.txt e sostituirele linee sotto indicate

XP: C:\Documents and Settings > [user] > Application Data > Adobe Dreamweaver > Configuration > Extensions.txt

NOTA: Se non vedi la cartella Application Data,  vai su Strumenti → Opzioni cartella → Vista e vedi se sono spuntate le seguenti opzioni : Visualizza Files Nascosti e Cartelle.

Vista: C:\Users[user]App Data > Roaming > Adobe Dreamweaver > Configuration > Extensions.txt

Mac OS X: Users > Library > Application Support > Adobe > Dreamweaver 9 > Configuration > Extensions.txt

Nella prima linea aggiungi PHTML come segue:

HTM,HTML,SHTM,SHTML, … ,TXT,PHP,PHP3,PHP4,PHP5,PHTML,JSP,WML,TPL, … ,MASTER:All Documents

Nella linea dei Files PHP aggiungi PHTML come segue:

PHP,PHP3,PHP4,PHP5,TPL,PHTML:PHP Files

Step 2: Aggiungi .phtml al file di configurazione Extension.txt

Questo file è identico a quello dello Step 1 solamente che è collocato nella cartella Application di Dreamweaver. Seguire la medesima procedura dello Step 1.

XP, Vista: C:Program Files > Adobe Dreamweaver > Configuration > Extensions.txt

Mac OS X: Applications > Adobe Dreamweaver CS3 > configuration > Extensions.txt

Nella prima linea aggiungere PHTML come segue:

HTM,HTML,SHTM,SHTML, … ,TXT,PHP,PHP3,PHP4,PHP5,PHTML,JSP,WML,TPL, … ,MASTER:All Documents

Nella linea di definizione dei files PHP aggiungere PHTML come segue:

PHP,PHP3,PHP4,PHP5,TPL,PHTML:PHP Files

Step 3: Aggiungere PHTML al file MMDocumentTypes.xml

Questo è un file XML che si trova in:

XP, Vista: C:Program Files > Adobe Dreamweaver > Configuration > DocumentTypes > MMDocumentTypes.XML

Mac OS X: Applications > Adobe Dreamweaver CS3 > configuration > DocumentTypes > MMDocumentTypes.XML

Aggiungere PHTML approssimativamente alla linea 75 come segue:
<documenttype id="PHP_MySQL" 
servermodel="PHP MySQL" 
internaltype="Dynamic" 
winfileextension="php,php3,php4,php5,phtml" 
macfileextension="php,php3,php4,php5,phtml" 
file="Default.php" 
writebyteordermark="false">
</documenttype>

Upload file multipli direttamente dal desktop sul sito web con il drag&drop – Java Applet

24 settembre 2008

Scaricate il seguente file elementitjavapowupload10

che lo potete trovare dal sito ufficiale dell’applicazione a questo link e successivamente scompattiamo il file che al suo interno contiene già la doumentazione necessaria per capire il suo funzionamento e alcuni esempi su come poterlo integrare al nostro sito. In pratica per far funzionare il programma di upload avremmo come nostra unica preoccupazione di creare un codice html con gli avvisi corretti di attivazione Java applet per poter eseguire la pagina in maniera corretta.

Es di pagina per l’inclusione dell’applet:

<span style="color: blue;">&lt;</span><span style="color: maroon;">head</span><span style="color: blue;">&gt;</span>
    <span style="color: blue;">&lt;</span><span style="color: maroon;">meta</span> http-equiv="Content-Type" content="text/html; charset=utf-8" <span style="color: blue;">/&gt;</span>
    <span style="color: blue;">&lt;</span><span style="color: maroon;">title</span><span style="color: blue;">&gt;</span>Directory structure upload example<span style="color: blue;">&lt;/</span><span style="color: maroon;">title</span><span style="color: blue;">&gt;</span>
    <span style="color: blue;">&lt;</span><span style="color: maroon;">link</span> rel="stylesheet" href="styles.css"<span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;/</span><span style="color: maroon;">head</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;</span><span style="color: maroon;">body</span><span style="color: blue;">&gt;</span>
Example demonstates how to upload directory structure info to the server. This allows to recreate directory structure at server side.<span style="color: blue;">&lt;</span><span style="color: maroon;">br</span><span style="color: blue;">&gt;</span><span style="color: blue;">&lt;</span><span style="color: maroon;">br</span><span style="color: blue;">&gt;</span>
Before running this sample you need to replace upload processing script file name at "Upload.UploadUrl" parameter of JavaPowUpload APPLET. Files uploads to the UploadedFiles\ folder at the folder containing script.
<span style="color: blue;">&lt;</span><span style="color: maroon;">br</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;</span><span style="color: maroon;">br</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;</span><span style="color: maroon;">table</span><span style="color: blue;">&gt;</span>
    <span style="color: blue;">&lt;</span><span style="color: maroon;">tr</span><span style="color: blue;">&gt;</span>
        <span style="color: blue;">&lt;</span><span style="color: maroon;">td</span> align="center"<span style="color: blue;">&gt;</span>
            <span style="color: blue;">&lt;</span><span style="color: maroon;">font</span> style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif" color="#494949"<span style="color: blue;">&gt;</span>
                You can download latest release of Java runtime <span style="color: blue;">&lt;</span><span style="color: maroon;">a</span> target="_blank" href="http://java.com/en/download/manual.jsp"<span style="color: blue;">&gt;</span>here<span style="color: blue;">&lt;/</span><span style="color: maroon;">a</span><span style="color: blue;">&gt;</span>
            <span style="color: blue;">&lt;/</span><span style="color: maroon;">font</span><span style="color: blue;">&gt;</span><span style="color: blue;">&lt;</span><span style="color: maroon;">br</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;</span><span style="color: maroon;">applet</span>
  code="com.elementit.JavaPowUpload.Manager"
  archive="lib/JavaPowUpload.jar, lib/skinlf.jar,
    lib/commons-logging-1.1.jar,
    lib/commons-httpclient-3.1-rc1.jar,
    lib/commons-codec-1.3.jar"
  width="600"
  height="400"
  name="JavaPowUpload"
  id="JavaPowUpload"
  mayscript="true"
  alt="JavaPowUpload by www.element-it.com"<span style="color: blue;">&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="Common.SerialNumber" value=""<span style="color: blue;">&gt;</span>
 <span style="color: green;">&lt;!-- Java Plug-In Options --&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="progressbar" value="true"<span style="color: blue;">&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="boxmessage" value="Loading JavaPowUpload Applet ..."<span style="color: blue;">&gt;</span>
 <span style="color: green;">&lt;!--Enable upload mode --&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="Common.UploadMode" value="true"<span style="color: blue;">&gt;</span>
 <span style="color: green;">&lt;!--Tell to JavaPowUpload send additional file information in request. (Enabled by default) --&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="Upload.HttpUpload.SendFileInfoFields" value="true"<span style="color: blue;">&gt;</span>
 
 <span style="color: green;">&lt;!--Following 2 parameters are set to use one file processing script for ActiveXPowUpload and for JavaPowUpload --&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="Upload.HttpUpload.FieldName.FilePath" value="SelectedPath_#COUNTER#"<span style="color: blue;">&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="Upload.HttpUpload.CustomPostFields" value="UploadStructure=yes"<span style="color: blue;">&gt;</span>
 <span style="color: green;">&lt;!--Set url to file processing script --&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="Upload.UploadUrl" value="FileProcessingScripts/ASP.NET/PowUpload/DirectoryUpload.aspx"<span style="color: blue;">&gt;</span>
 <span style="color: blue;">&lt;</span><span style="color: maroon;">param</span> name="Common.SkinLF.ThemepackURL" value="lib/themepack.zip"<span style="color: blue;">&gt;</span>
 
 <span style="color: blue;">&lt;/</span><span style="color: maroon;">applet</span><span style="color: blue;">&gt;</span>
        <span style="color: blue;">&lt;/</span><span style="color: maroon;">td</span><span style="color: blue;">&gt;</span>
    <span style="color: blue;">&lt;/</span><span style="color: maroon;">tr</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;/</span><span style="color: maroon;">table</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;</span><span style="color: maroon;">hr</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;</span><span style="color: maroon;">a</span> href="Default.html" title="Other examples"<span style="color: blue;">&gt;</span>Other examples<span style="color: blue;">&lt;/</span><span style="color: maroon;">a</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;/</span><span style="color: maroon;">body</span><span style="color: blue;">&gt;</span>
<span style="color: blue;">&lt;/</span><span style="color: maroon;">html</span><span style="color: blue;">&gt;</span>

Ora la nostra unica preoccupazione è quella di cambiare le impostazioni dei parametri passati alla Java applet con i nostri.

Per avere maggiori informazioni su come usare l’applet consiglio di scaricare il file fornito e di visitare il sito del produttore.