Question : vous savez une fonction comme $notes = nl2br ($_POST [« notes »]) ; dans l'asp ?

vous savez une fonction comme $notes = nl2br ($_POST [« notes »]) ; dans l'asp ? l'utilisation du
I une forme d'email sur mon site Web, mais email vient avec sans tous les breaklines. le PHP du
in il y a une fonction pour cela $notes = nl2br ($_POST [« notes »]) ;
what au sujet d'asp ?
thank vous.
class= > " clair " de
solutions >Related class= href= " /Web_Development/Web_Languages-Standards/PHP/Q_26286851.html " title= " de sending " qRelatedParent " de HTML avec le PHP. Les lignes de coupure disapper quand j'emploie cet en-tête.

Réponse : vous savez une fonction comme $notes = nl2br ($_POST [« notes »]) ; dans l'asp ?

Réponses… Après que vous voyiez ceci, lire svp cette page soigneusement :
http://code.google.com/apis/maps/documentation/staticmaps/

(1) vous pouvez commander la taille de la fenêtre jusqu'aux Pixel 640x640
(2) Google peut faire ceci pour vous - la carte statique api peut accepter des fragments d'adresse ou même des noms des bornes limites.  Ou vous pouvez employer un geocoder.  Google et Yahoo offrent des geocoders.  Veuillez voir l'extrait de code pour un exemple de ceci.
(3) vous pouvez tracer beaucoup de différents endroits sur une carte.  Je signalerai une réponse de suivi avec un exemple montrant certaines des manières que vous pouvez employer Google Maps api pour signaler les punaises ou les icônes multiples sur une carte.

Les souvenirs, ~Ray
1 :
2 :
3 :
4 :
5 :
6 :
7 :
8 :
9 :
10 :
11 :
12 :
13 :
14 :
15 :
16 :
17 :
18 :
19 :
20 :
21 :
22 :
23 :
24 :
25 :
26 :
27 :
28 :
29 :
30 :
31 :
32 :
33 :
34 :
35 :
36 :
37 :
38 :
39 :
40 :
41 :
42 :
43 :
44 :
45 :
46 :
47 :
48 :
49 :
50 :
51 :
52 :
53 :
54 :
55 :
56 :
57 :
58 :
59 :
60 :
61 :
62 :
63 :
64 :
65 :
66 :
67 :
68 :
69 :
70 :
71 :
72 :
73 :
74 :
75 :
76 :
77 :
78 :
79 :
80 :
81 :
82 :
83 :
84 :
85 :
86 :
87 :
88 :
89 :
90 :
91 :
92 :
93 :
94 :
95 :
96 :
97 :
98 :
99 :
100 :
101 :
102 :
103 :
104 :
105 :
106 :
107 :
108 :
109 :
110 :
111 :
112 :
113 :
114 :
115 :
116 :
117 :
118 :
119 :
120 :
121 :
122 :
123 :
124 :
125 :
126 :
127 :
128 :
129 :
130 :
131 :
132 :
133 :
134 :
135 :
136 :
137 :
138 :
139 :
140 :
141 :
142 :
143 :
144 :
145 :
146 :
147 :
148 :
149 :
150 :
151 :
152 :
153 :
154 :
155 :
156 :
157 :
158 :
159 :
160 :
161 :
162 :
163 :
164 :
165 :
166 :
167 :
168 :
169 :
170 :
171 :
172 :
173 :
174 :
175 :
176 :
177 :
178 :
179 :
180 :
181 :
182 :
183 :
184 :
185 :
186 :
187 :
188 :
189 :
190 :
191 :
192 :
193 :
194 :
195 :
196 :
197 :
198 :
199 :
200 :
201 :
202 :
203 :
204 :
205 :
206 :
207 :
208 :
209 :
210 :
211 :
212 :
213 :
214 :
215 :
216 :
217 :
218 :
219 :
220 :
221 :
222 :
223 :
224 :
225 :
226 :
227 :
228 :
229 :
230 :
231 :
232 :
233 :
234 :
235 :
236 :
237 :
238 :
239 :
240 :
241 :
242 :
243 :
244 :
245 :
246 :
247 :
    
    


    Yahoo/démo de Google SimpleGeoCoder
    
    
    
    Addr :  
    Ville :  
    Rue :   
    Code postal :  
    
    
    
    
    adresse = $_GET [« a »] ;
$demo->city    = $_GET [« c »] ;
$demo->state   = $_GET [« s »] ;
$demo->zip     = $_GET [« z »] ;


ESSAI DE // YAHOO! GEOCODER
$demo->geocodeYahoo () ;
écho PHP_EOL. « YAHOO!  » ;
print_rr ($demo) ;


ESSAI DE // LE GOOGLE GEOCODER
$demo->geocodeGoogle () ;
écho PHP_EOL. « GOOGLE » ;
print_rr ($demo) ;

// TOUT FAIT
mourir () ;


CLASSE SIMPLE DE // GEOCODER
classe SimpleGeoCoder
{
    // DÉCLARENT LES DONNÉES D'ENTRÉE
    public $location ;

    L'UTILISATION DE // CECI POUR UNE QUESTION FREEFORM, OU EMPLOIENT LES PIÈCES
    public $address ;
    public $city ;
    public $state ;
    public $zip ;

    // DÉCLARENT LES DONNÉES FONCTIONNANTES
    $precis privé ;

    // DÉCLARENT LES DONNÉES DE RENDEMENT
    public $latitude ;
    public $longitude ;
    public $precision ;
    public $warning ;
    public $geocoder ;

    // DÉCLARENT LE CONSTRUCTEUR
    __construct public de fonction ()
    {
        $this->latitude  = 0.0 ;
        $this->longitude = 0.0 ;
        $this->precision = FAUX ;  // VEULENT UNE VALEUR DE 5 OU PLUS HAUT, EST PLUS HAUT MEILLEUR
        $this->warning   = '' ;
        $this->geocoder  = '' ;
        supprimé ($this->precis) ;
    }

    // DÉCLARENT LE DATA-CLEANUP
    _cleanup privé de fonction ($str)
    {
        $str = preg_replace (« /[^ \ » a-zA-Z0-9& ! #$% () « + : ? \/@, _ \. \ -]/', '', $str) ;
        équilibre de retour (preg_replace (« /\ s \ s+/ », '', $str));
    }

    // DÉCLARENT YAHOO! VERSION DE CHEVAL DE LABOUR
    geocodeYahoo public de fonction ()
    {
        si (! défini (« YAHOO_API ")) définir (« YAHOO_API », « YAHOO_API ") ;
        $this->geocoder = « Yahoo!  » ;
        $yahooUrl       = « http://local.yahooapis.com/MapsService/V1/geocode?&appid= ». YAHOO_API ;

        // QUE VOUS POUVEZ DEMANDER UNE QUESTION FREEFORM
        si ($this->location ! = '')
        {
            $yahooUrl. = « &location= ». urlencode ($this->_cleanup ($this->location));
        }

        // QUE VOUS POUVEZ DEMANDER DIFFÉRENTS MORCEAUX D'UNE ADRESSE
        autrement
        {   $yahooUrl. = « &street= ». urlencode ($this->_cleanup ($this->address));
            $yahooUrl. = « &city= »   . urlencode ($this->_cleanup ($this->city));
            $yahooUrl. = « &state= »  . urlencode ($this->_cleanup ($this->state));
            $yahooUrl. = « &zip= »    . urlencode ($this->_cleanup ($this->zip));
        }

        // EXÉCUTENT LA QUESTION DE YAHOO GEOCODER
        NOTE DE // - EMPLOYER LA SUPPRESSION DES ERREURS OU ELLE ÉCORCERA DEHORS LA CLEF DE YAHOO API - SUR DEMANDE DE HTTP 400 DE RETOURS D'ÉCHEC LA MAUVAISE
        si ($yfp = @fopen ($yahooUrl, « r "))
        {
            $yahooResponse = '' ;
            tandis que (! feof ($yfp))
            {
                $yahooResponse. = fgets ($yfp) ;
            }
            fclose ($yfp) ;
        }
        autrement
        {
            FAUX de retour ;
        }

        // EXAMINENT LE RÉSULTAT
        si ($yahooResponse ! = '') // NON VIDE, NOUS AVONS OBTENU DES DONNÉES
        {
            $ydata    = nouveau SimpleXMLElement ($yahooResponse) ;

            LE CONTRÔLE DE // POUR N'IMPORTE QUEL MESSAGE D'ERREUR, SI AUCUN, EXTRAIENT LES POINTS DE REPÈRES
            $yerror    = $ydata->Message ;
            si (== de $yerror '')
            {
                $this->precis    = (corde) $ydata->Result [« précision »] ;
                $this->warning   = (corde) $ydata->Result [« avertissant »] ;
                $this->latitude  = (corde) $ydata->Result->Latitude ;
                $this->longitude = (corde) $ydata->Result->Longitude ;

                // CES RAPPORTS PEUT ÊTRE EMPLOYÉ POUR RENVOYER L'ADRESSE NORMALE
                $this->address   = (corde) $ydata->Result->Address ;
                $this->city      = (corde) $ydata->Result->City ;
                $this->state     = (corde) $ydata->Result->State ;
                $this->zip       = (corde) $ydata->Result->Zip ;

                // A PLACÉ LA PRÉCISION À UNE VALEUR DE NOMBRE
                si (fermeture éclair de == de $this->precis « ")     {$this->precision = « 5 » ; }
                si (rue de == de $this->precis « ")  {$this->precision = « 6 » ; }
                si (adresse de == de $this->precis « ") {$this->precision = « 8 » ; }
            }
            autrement
            {
                FAUX de retour ;
            }
        }

        // AUCUN RÉSULTAT - QUELQUE CHOSE EST EN DIFFICULTÉ CHEZ YAHOO
        autrement
        {
            FAUX de retour ;
        }

        de retour RECTIFIER ;
    } geocodeYahoo de fonction de FIN de //


    // DÉCLARENT LA VERSION DE GOOGLE DE CHEVAL DE LABOUR
    geocodeGoogle public de fonction ()
    {
        si (! défini (« GOOGLE_API ")) définir (« GOOGLE_API », « GOOGLE_API ") ;
        $this->geocoder = « Google » ;
        $googleUrl      = « http://maps.google.com/maps/geo?key= ». GOOGLE_API. « &output=csv » ;
        si ($this->location ! = '') // QUE VOUS POUVEZ DEMANDER UNE QUESTION FREEFORM
        {
            $googleUrl. = « &q= ». urlencode ($this->_cleanup ($this->location));
        }
        // d'autre que VOUS POUVEZ DEMANDER DIFFÉRENTS MORCEAUX D'UNE ADRESSE
        {
            $googleUrl. = « &q= ». urlencode (équilibre (
                    $this->_cleanup ($this->address)
            . ''. $this->_cleanup ($this->city)
            . ''. $this->_cleanup ($this->state)
            . ''. $this->_cleanup ($this->zip)
            ));
        }

        // EXÉCUTENT LA QUESTION DE GOOGLE GEOCODER
        si ($gfp = @fopen ($googleUrl, « r "))
        {
            $googleResponse = '' ;
            tandis que (! feof ($gfp))
            {
                $googleResponse. = fgets ($gfp) ;
            }
            fclose ($gfp) ;
        }
        autrement
        {
            FAUX de retour ;
        }

        EXTRAIT DE // QUE LES DONNÉES DU CSV FICELLENT
        $gdata    = éclatent (« , », $googleResponse) ;
        si ($gdata [0] ! = LE CODE DE RÉPONSE DE « 200 ») // DEVRAIT ÊTRE « 200 » -- SI 602 - MAUVAIS CODE POSTAL OU ADRESSE INUTILISABLE
        {
            FAUX de retour ;
        }
        $this->precision = $gdata [1] ; EXACTITUDE DE // GEOCODE - LE CODE POSTAL = 5, DES NOMBRES PLUS ÉLEVÉS SONT MEILLEUR
        $this->latitude  = $gdata [2] ;
        $this->longitude = $gdata [3] ;
        de retour RECTIFIER ;
    } geocodeGoogle de fonction de FIN de //

} classe SimpleGeocoder d'EXTRÉMITÉ de //



FONCTION INDÉPENDANTE DE // POUR FAIRE LE RENDEMENT MONTRER LES INFORMATIONS PUBLIQUES SEULEMENT
print_rr de fonction ($thing)
{
    $str = print_r ($thing, RECTIFIENT) ;
    $arr = éclatent (PHP_EOL, $str) ;
    $num = compte ($arr) - 1 ;
    foreach ($arr comme => $txt de $ptr)
    {
        si (preg_match (« /: ] privé/ », $txt))
        {
            supprimé ($arr [$ptr]) ;
        }
    }
    l'écho implosent (PHP_EOL, $arr) ;
}
Autres solutions  
  •  MS Excel 2007 et pdf - l'exportation vers le pdf prend de longues heures !
  •  Dans le Perl, comment j'ajoute une valeur à la liste, puis le contrôle pour voir si la valeur existent avant d'ajouter une nouvelle valeur
  •  Comment fais j'initialiser de la HP BL460c G6 de san et de la HP XP 240000
  •  Comment fais j'employer une clef de permis de volume sur un ordinateur de HP avec du CD de restauration
  •  Emplacement primaire de deux SCCM dans l'annuaire actif
  •  L'initiateur et la HP D2D de l'iSCSI R2 du serveur 2008 de Windows GERCENT l'issue
  •  Stocker le dossier dans le mysql using connector.net et le champ de goutte
  •  Carte vidéo d'USB - bit 32 sur le matériel travaillant au niveau du bit 64 ?
  •  asp.net que j'essaye de convertir une forme de HTML en forme d'aspx ou ? ce qui jamais. Aide du besoin sur la façon dont à à elle.
  •  Winzip 12 issues de secours du travail ?
  •  
    programming4us programming4us