Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. octronico
    3. Post
    O

    octronico

    @octronico

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 4
    • Post 14
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    14
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User

    Post creati da octronico

    • RE: [Risolto] problema index con estensione php

      Ciao,

      grazie alle tue dritte sono riuscito a far funzionare tutto, l'errore era nel nome di una colonna nel db che invece di "name" avevo scritto "nome".

      alla prossima

      postato in Coding
      O
      octronico
    • RE: [Risolto] problema index con estensione php

      Ciao,

      grazie per l' aiuto da tutti voi, praticamente il server non interpreta il file php3 e php4, ho rinominato tutti i file con il solo .php.
      Sto usando UBUNTU 7.04 da circa 2 mesi e devo dire che mi attira sempre di più.

      Come dicevo all' inizio sono alle prime armi e sto cercando di imparare da solo il funzionamento del php con l'associazione a mysql, non tutto va liscio però sono motivato dalla passione e dalla voglia di apprendere.

      Ho scaricato e sto cercando di far funzionare uno script per ricevere le newsletter, naturalmente il tutto è solo per far pratica, per capire il funzionamento.

      ho rinominato tutti i file da php3 a php anche all'interno ho cambiato il collegamenti, dopo aver seguito le istruzioni, mi da un errore sul db.

      adesso vi illustro:

      Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/hosting/tati/News/register/register.php on line **64

      <?
      include "../common.h";
      $con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS);
      mysql_select_db($DB_NAME);

      $rst = mysql_query("SELECT * FROM Newsletters ORDER BY Name",$con); 
      

      //questa sotto è la riga 64
      while ($row = mysql_fetch_row($rst)) {

          echo "<tr>";  
          echo "    <td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">" . $row[1] . "</font></td>\n"; 
          echo "    <td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">" . $row[2] . "</font></td>\n"; 
          echo "    <td width=\"50\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">" . $row[3] . "</font></td>\n"; 
          echo "    <td width=\"50\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">" . $row[4] . "</font></td>\n"; 
          echo "    <td width=\"70\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><input type=\"checkbox\" name=\"newsid" . $row[0] . "\"></font></td>\n"; 
          echo "</tr>"; 
       
      } 
      
      mysql_close($con); 
      

      ?>
      **

      fatemi sapere se ci capite qualcosa.

      grazie a tutti.

      octronico

      postato in Coding
      O
      octronico
    • RE: [Risolto] problema index con estensione php

      Ti volevo chiedere, che tu sappia, ma nel sito ci vogliono dei file particolari o se esso supporta il php funziona in automatico??

      comunque dovrebbe essere supportato anche perchè mi han dato un db sql dove ho gia creato delle tabelle.

      e poi il sito stesso dice di offrire php + sql gratuito

      postato in Coding
      O
      octronico
    • RE: [Risolto] problema index con estensione php

      Ciao,
      in pratica ho inserito uno script che stampa a video la data, in locale va.

      Invece pubblicato sul sito tati.ilbello.com mi stampa il codice, praticamente è come se il sito non rispondesse agli script PHP, se vai a vedere nella sezione contatti c'è il link "iscriviti alle newsletter" ,

      cliccandoci su invece di aprire la pagina ti scarica il file "newsletters.php"

      non so se mi sono spiegato bene....

      intanto grazie.

      postato in Coding
      O
      octronico
    • [Risolto] problema index con estensione php

      Salve,

      sono alle prime armi con php, avevo un sito e l'ho modificato inserendo del codice php, l' ho provato in locale e tutto a posto.

      I problemi sorgono al momento della pubblicazione.

      Se pubblico il file index.php mi da errore non sono autorizzato, se pubblico index.htm il codice php mi viene stampato a video.

      Qualcuno mi può dare delle delucidazioni?

      Grazie per la disponibilità,

      l'url dove è evidente il problema è tati.ilbello.com naturalmente ho messo solo i file per fare le prime prove.

      postato in Coding
      O
      octronico
    • RE: [Risolto] firefox e script php

      Ciao,

      in effetti non si era installato bene "apache2", mancavano alcuni file nella cartella mod_enable,

      adesso è tutto ok, grazie per il supporto.

      postato in Tutti i Software
      O
      octronico
    • RE: server apache2

      Ciao,

      ho risolto il problema disinstallando e reinstallando il tutto e forse credo di aver capito il problema, c'era installato il server apache oltre a server apache2, forse erano in conflitto.....,

      grazie per il supporto e alla prossima.

      postato in Hosting e Cloud
      O
      octronico
    • RE: server apache2

      quello che ho installato seguendo le istruzioni di un sito per principianti è questo

      sudo apt-get install php5 libapache2-mod-php5

      invece al comando php -v

      gaetano@gaetano-acer:~$ php -v
      The program 'php' is currently not installed. You can install it by typing:
      sudo apt-get install php5-cli
      bash: php: command not found
      procedo con l'installazione,
      fatto....
      Creating config file /etc/php5/cli/php.ini with new version
      questa è l'ultima riga dell' installazione.

      nella cartella mod-enable non è cambiato niente,
      adesso vado a letto vado a letto, domani lavoro, però dalle 18 in poi sono collegato, se continuerai a darmi una mano, nel possibile, te ne sarei grato.

      grazie di tutto e buona notte.

      octronico

      postato in Hosting e Cloud
      O
      octronico
    • RE: server apache2

      la buona notizia è che sono riuscito ad eseguire il comando sudo chmod 777 sul file info.php

      la cattiva notizia è che non ho i file che mi hai detto in /etc/apache2/mods-enabled
      ecco la lista:
      /etc/apache2/mods-enabled/alias.load
      /etc/apache2/mods-enabled/auth_basic.load
      /etc/apache2/mods-enabled/authn_file.load
      /etc/apache2/mods-enabled/authz_default.load
      /etc/apache2/mods-enabled/authz_groupfile.load
      /etc/apache2/mods-enabled/authz_host.load
      /etc/apache2/mods-enabled/authz_user.load
      /etc/apache2/mods-enabled/autoindex.load
      /etc/apache2/mods-enabled/cgi.load
      /etc/apache2/mods-enabled/dir.conf
      /etc/apache2/mods-enabled/dir.load
      /etc/apache2/mods-enabled/env.load
      /etc/apache2/mods-enabled/mime.load
      /etc/apache2/mods-enabled/negotiation.load
      /etc/apache2/mods-enabled/setenvif.load
      /etc/apache2/mods-enabled/status.load

      questo è grave?

      postato in Hosting e Cloud
      O
      octronico
    • RE: server apache2

      ciao,

      non vorrei allarmarti ma non ho ben capito, fino a 15 gg fa ero un utente winzozz e adesso con linux è come partire da zero....

      dovresti farmi una cortesia mostrandomi come si verifica il mod_php e come si danno i permessi di esecuzione, io ho provato a raggiungere la cartella /var/www da terminale in root e dopo ho dato il comando chmod 777 info.php ma mi dice che non trova il file anche se è li.

      ti ringrazio in anticipo per la tua disponibilità.

      octronico.

      postato in Hosting e Cloud
      O
      octronico
    • RE: server apache2

      Ciao,

      grazie per la delucidazione, adesso che so che il server funziona vorrei porti un altro quesito, premesso che ho installato un sistema LAMP.

      Quando cerco di eseguire un file php che contiene questa istruzione

      <?php phpinfo(); ?>

      il browser firefox invece di eseguire lo script mi fa il download del file.

      Cosa ne pensi, grazie.

      postato in Hosting e Cloud
      O
      octronico
    • [Risolto] firefox e script php

      Salve a tutti,

      stranamente se cerco di eseguire in locale script php, firefox invece di aprire la pagina mi fa il download del file, a qualcuno è già capitato?

      Grazie a tutti, ciao.

      octronico

      postato in Tutti i Software
      O
      octronico
    • server apache2

      Salve a tutti,

      ho un dilemma, ho installato il sistema LAMP su ubuntu 7.04, tutto sembra sia andato a buon fine però se nel browser vado all' indirizzo http://localhost/ mi viene fuori una pagina come riportata in basso, secondo me il server non va , chiedo conferma e se qualcuno magari mi spiega il perchè e il come farlo funzionare ne sarei veramente felice.

      Grazie a tutti.
      Placeholder page

      If you are just browsing the web

      The owner of this web site has not put up any web pages yet. Please come back later.
      Move along, nothing to see here... 🙂
      If you are trying to locate the administrator of this machine

      If you want to report something about this host's behavior, please contact the Internet Service Provider (ISP) involved directly.
      See the Network Abuse Clearinghouse for how to do this.
      If you are the administrator of this machine

      The initial installation of Debian's apache web server package was successful.
      You should replace this page with your own web pages as soon as possible.
      Unless you changed its configuration, your new server is configured as follows:

      • Configuration files can be found in /etc/apache.
      • The DocumentRoot, which is the directory under which all your HTML files should exist, is set to /var/www.
      • CGI scripts are looked for in /usr/lib/cgi-bin, which is where Debian packages will place their scripts.
      • Log files are placed in /var/log/apache, and will be rotated weekly. The frequency of rotation can be easily changed by editing /etc/logrotate.d/apache.
      • The default directory index is index.html, meaning that requests for a directory /foo/bar/ will give the contents of the file /var/www/foo/bar/index.html if it exists (assuming that /var/www is your DocumentRoot).
      • User directories are enabled, and user documents will be looked for in the public_html directory of the users' homes. These dirs should be under /home, and users will not be able to symlink to files they don't own.All the standard apache modules are available with this release and are now managed with debconf. Type dpkg-reconfigure apache to select which modules you want enabled. Many other modules are available through the Debian package system with the names libapache-mod-*. If you need to compile a module yourself, you will need to install the apache-dev package. More documentation on Apache can be found on:
      • The Apache documentation stored on your server.
      • The Apache Project home site.
      • The Apache-SSL home site.
      • The mod perl home site.
      • The ApacheWeek newsletter.
      • The Debian Project Documentation which contains HOWTOs, FAQs, and software updates.You can also consult the list of World Wide Web Frequently Asked Questions for information.
        Let other people know about this server

      Netcraft provides an interesting free service for web site monitoring and statistic collection. You can let them know about your server using their interface. Enabling the monitoring of your server will provide a better global overview of who is using what and where, and it would give Debian a better overview of the apache package usage. About this page

      image This is a placeholder page installed by the Debian release of the apache Web server package.
      This computer has installed the Debian GNU/Linux operating system, but it has nothing to do with the Debian Project. Please do not contact the Debian Project about it.
      If you find a bug in this apache package, or in Apache itself, please file a bug report on it. Instructions on doing this, and the list of known bugs of this package, can be found in the Debian Bug Tracking System.
      Thanks for using this package, and congratulations for your choice of a Debian system!
      [CENTER] image image [/CENTER]

      postato in Hosting e Cloud
      O
      octronico
    • ciao a tutti, mi presento

      Salve, dopo aver letto e messo in pratica molti consigli da questo forum ho deciso di iscrivermi con vero piacere. Sono un utente linux neofita, ho la passione per i siti web ma sono alle prime armi in fatto di progammazione, sono sicuro che troverò aiuto e risposte alle mie domande, e per quel che posso , date le mie conoscenze, metterò a vostra disposizione le mie conoscenze.

      Un saluto a tutti da Octronico.

      postato in Presentati alla Community
      O
      octronico