Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
666 connectés 

 


 Mot :   Pseudo :  
 
 Page :   1  2
Page Suivante
Auteur Sujet :

Un defi pour vous...une grande aide pour moi...

n°325389
Hermes le ​Messager
Breton Quiétiste
Posté le 06-03-2003 à 23:43:17  profilanswer
 

Reprise du message précédent :
Pour le premier :
 
Serveur chez le mec avec un débit ridicule. De plus, AUCUN téléchargement. Pas de précision quant aux fonctions FTP de PHP, mais ça m'étonnerait et de toutes manières, cela ne te servira à rien, puisque les downloads à partir du site sont interdits.
 
 
De plus :
 
Une plate-forme sera par la suite mise en place et de plus amples informations vous concernant vous seront demandées pour que vous puissiez garder votre compte ...  
 
Arnaque detected.  :whistle:  
 
Et pour le deuxième :
 
http://www.mylinea.com/bbpiaf/hebe [...] t_gratuit/  
 
C'est un annuaire complêtement dépassé et périmé. Il ne reste absolument rien de viable.

mood
Publicité
Posté le 06-03-2003 à 23:43:17  profilanswer
 

n°325395
bagu
Posté le 06-03-2003 à 23:45:49  profilanswer
 

Je continu...je v trouver sisi !!!  :lol:  lol   :D   :ange:

n°325403
Hermes le ​Messager
Breton Quiétiste
Posté le 06-03-2003 à 23:48:10  profilanswer
 

bagu a écrit :

Je continu...je v trouver sisi !!!  :lol:  lol   :D   :ange:  


 
Au lieu de perdre ton temps, tu ferais mieux de te mettre en quête d'un hébergement payant pas trop cher. Et même quand ils sont payant comme OVH, les premières formules n'autorisent pas les fonctions FTP.

n°325614
boubours
procrastineur né
Posté le 07-03-2003 à 00:58:57  profilanswer
 

bon pour les étoiles cété juste au cas ou, car j'ai pas fait gaffe a cee qu'il y avait !!!
un tt + ban est tellement vite arrivé ces temps ci !

n°325877
bagu
Posté le 07-03-2003 à 12:23:16  profilanswer
 

:D

n°325886
Hermes le ​Messager
Breton Quiétiste
Posté le 07-03-2003 à 12:29:52  profilanswer
 


 
Alors ton hébergeur gratuit ?  [:totozzz]

n°325897
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 07-03-2003 à 12:37:53  profilanswer
 

Juste pour savoir : puisque t'as un serveur FTP sur ton ordi, pourquoi t'installes pas un Apache avec un PHP dessus ? :??: C'est vraiment pas long à faire, c'est formateur et t'es pas emmerdé pour savoir quelles sont les fonctions qui sont activées et celles qui le sont pas. Et en plus c'est gratos.


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°325928
bagu
Posté le 07-03-2003 à 13:19:40  profilanswer
 

ben je veux bien faire ca...
mais je souhaite que lorsque je suis hors ligne mon site le reflete...
et ceci afin que les visiteurs ne tombent pas sur une erreur...
 
 
je viens de mettre un alias en place...désormais...on peut me joindre ici : ftp://bagupremier.homeftp.org

n°325932
lorill
Posté le 07-03-2003 à 13:27:45  profilanswer
 

bagu a écrit :

ben je veux bien faire ca...
mais je souhaite que lorsque je suis hors ligne mon site le reflete...
et ceci afin que les visiteurs ne tombent pas sur une erreur...


 
foomirror est ton ami
http://quadaemon.free.fr


Message édité par lorill le 07-03-2003 à 13:27:55
n°325941
bagu
Posté le 07-03-2003 à 13:35:28  profilanswer
 

Fodra m'expliquer comment mettre ca en oeuvre... :sweat:  
d'autant plus que free ne prend pas en charge les commandes FTP_qqch
donc si comme je le crois ce script s'appuis dessus c mort. :??:  
 

Code :
  1. #!/bin/sh
  2. #########################################################
  3. # foomirror v0.3                                        #
  4. #                                                       #
  5. # foomirror has 3 modes:                                #
  6. #                                                       #
  7. # - foomirror on:                                       #
  8. #    create a redirection on the remote website to      #
  9. #    your computer's website                            #
  10. #    This command can be put in the init scripts when   #
  11. #    the computer is switched on                        #
  12. #                                                       #
  13. # - foomirror off:                                      #
  14. #    create a mirror of your computer's website home    #
  15. #    page on the remote site                            #
  16. #    This command can be put in the init scripts when   #
  17. #    the computer is switched off                       #
  18. #                                                       #
  19. # - foomirror all:                                      #
  20. #    create a full mirror of your website on the remote #
  21. #    site                                               #
  22. #                                                       #
  23. # foomirror uses ncftpput, which can be found here:     #
  24. #   http://www.ncftp.com/download/                      #
  25. #########################################################
  26. # Copyright (c) 2001, Frederic Jolly aka Daemo0on       #
  27. # jolly.frederic@fnac.net                               #
  28. # Based on an idea by Kadreg.                           #
  29. #                                                       #
  30. # This is free software, licensed under the GNU General #
  31. # Public License.                                       #
  32. #########################################################
  33. # Disclaimer:                                           #
  34. #  This program is provided as is, without warranty of  #
  35. #  any kind. It works for me, but may not work for you  #
  36. #  or even destroy your web site, your house and the    #
  37. #  universe.                                            #
  38. #########################################################
  39. # TODO:                                                 #
  40. # - "mirror all" mirrors only the files that have been  #
  41. #   modified since the last mirror                      #
  42. # - test if the ncftpput commands return no error       #
  43. #########################################################
  44. # Some variables:
  45. #----------------
  46. MY_IP=$(/sbin/ifconfig ppp0 | sed -n '/inet/s/^[^:]*:\([^ ]*\) .*/\1/p')
  47. THE_DATE=$(date "+%d %B à %T" )
  48. # Here is your configuration:
  49. #----------------------------
  50. # ftp timeout in seconds
  51. THE_TIMEOUT=45
  52. # the remote host with you login and password
  53. THE_HOST=ftpperso.free.fr
  54. MY_LOGIN=quadaemon
  55. MY_PASS=xxxxxxxx
  56. # the path of your local website
  57. MY_WEBSITE=/local_path/to/your/home/site
  58. # your home page
  59. MY_PAGE=index.shtml
  60. # the other pages you want to mirror (or "" if none)
  61. OTHER_PAGES="tribune.log
  62.              tribune.all.log"
  63. # REDIRECT_PAGE is the html page written on the remote site during the redirection
  64. # Don't forget to backslah the double quotes
  65. REDIRECT_PAGE=$(echo "
  66.                 <html>
  67.  <head>
  68.  <title>Ca arrive, patience.... Si, si, ....</title>
  69.  <meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\">
  70.  <meta http-equiv=\"refresh\" content=\"1; URL=http://$MY_IP\">
  71.  <link rel=\"icon\" href=\"icon.jpg\">
  72.  </head>
  73.  <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
  74.  <body bgcolor=\"#ffffff\"><hr>
  75.  Ne bougez pas, les petits électrons vont vous transporter vers ma machine.<br><br>
  76.  Si ça ne marche pas, <a href=\"http://$MY_IP\">cliquez ici</a>.<br>
  77.  Sinon, essayez <a href=\"http://quadaemon.dyndns.org\">ici</a>.<br>
  78.  Et sinon, il vous reste le <a href=\"http://quadaemon.free.fr/index2.shtml\">mirroir</a>.<br>
  79.  <br><i>Redirection powered by foomirror.</i><br>
  80.  <hr>
  81.  </body></html>" )
  82. # MIRROR_TEXT is the text added at the top of the mirrored page, with the first tag body
  83. # Don't forget to backslah the double quotes
  84. MIRROR_TEXT=$(echo "
  85.               <body bgcolor=\"#ffffff\"><hr>
  86.               Attention, cette page est un mirroir de mon site créée le $THE_DATE<br>
  87.       Vous ne pouvez pas poster dans la tribune ni envoyer des mails à dyndns.org.<br>
  88.       Patience, je vais bientôt allumer ma machine...<br><hr>" )
  89. # Nothing need to be modified under this line
  90. #--------------------------------------------
  91. FTPPUT_BIN=$(which ncftpput)
  92. if [ $? = 1 ]; then
  93.     echo "Error: can't find ncftpput."
  94.     exit 1
  95. fi
  96. FTPPUT=$(echo $FTPPUT_BIN -u $MY_LOGIN -p $MY_PASS -t $THE_TIMEOUT)
  97. # Find out how we were called.
  98. case "$1" in
  99.    on)
  100.        echo "Creating the redirection..."
  101.        # Create the redirection page and upload it
  102.        echo $REDIRECT_PAGE |\
  103.        $FTPPUT -a -c $THE_HOST $MY_PAGE
  104.        # Upload a copy of the home page
  105.        echo "$THE_NEWPAGE1$MIRROR_TEXT$THE_NEWPAGE2" |\
  106.        $FTPPUT -a -c $THE_HOST index2.shtml
  107.        echo "Done."
  108.        ;;
  109.    off)
  110.        echo "Mirroring..."
  111.        # Create the mirror page and upload it
  112.        THE_NEWPAGE1=$(sed -n '1,/<body/p' $MY_WEBSITE/$MY_PAGE | sed '$d')
  113.        THE_NEWPAGE2=$(sed '1,/<body/d' $MY_WEBSITE/$MY_PAGE)
  114.        echo "$THE_NEWPAGE1$MIRROR_TEXT$THE_NEWPAGE2" |\
  115.        $FTPPUT -c $THE_HOST $MY_PAGE
  116.        # Upload the others files
  117.        for PAGE in $OTHER_PAGES
  118.        do
  119.             echo $PAGE
  120.             $FTPPUT -V $THE_HOST . $MY_WEBSITE/$PAGE
  121.        done
  122.        echo "Done."
  123.        ;;
  124.    all)
  125.        echo "Mirroring all the site..."
  126.        echo "It can take a while..."
  127.        $FTPPUT -m -R $THE_HOST . $MY_WEBSITE/*
  128.        echo "Done."
  129.        ;;
  130.    *)
  131.        echo "Usage: $0 [on|off|all]"
  132.        exit 1
  133.        ;;
  134. esac


mood
Publicité
Posté le 07-03-2003 à 13:35:28  profilanswer
 

n°325947
lorill
Posté le 07-03-2003 à 13:42:34  profilanswer
 

bagu a écrit :

Fodra m'expliquer comment mettre ca en oeuvre... :sweat:  
d'autant plus que free ne prend pas en charge les commandes FTP_qqch
donc si comme je le crois ce script s'appuis dessus c mort. :??:


Ce script, tu l'executes de chez toi, pas de chez free... Tu le lances au demarrage de ta machine, et a l'arret, pour modifier la page de chez free.
 
et ca marche forcément chez free, le mec qui l'a ecrit l'utilise...
sinon perso je m'en suis jamais servi, je l'ai jamais lu, donc peut pas t'en dire plus

n°326340
bagu
Posté le 07-03-2003 à 20:11:20  profilanswer
 

C pour émuler FTP_connect ca ?  
 

Citation :

 # foomirror uses ncftpput, which can be found here:     #
  #   http://www.ncftp.com/download/                      #

n°326540
bagu
Posté le 08-03-2003 à 01:20:19  profilanswer
 

:bounce:

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Suivante

Aller à :
Ajouter une réponse
 

Sujets relatifs
Aide pour mon script php, je pige pas pkoi il marche pasBesoin d'aide en HTML
[algo avec alg'exec] j'ai besoin d'aide sur les fonctions et procédurebesoin d'aide pour compiler !
Aide pour la création d'un script[Règlé]recuperer une clé ds la base de registre a l aide d un batch :/
Motorola 68000, aide sur un programme[JAVA] - Tester la non nullité d'un champ - Besoin Aide 1 min maxi !
Besoin d'aide en Visual Basic!Besoin d'aide
Plus de sujets relatifs à : Un defi pour vous...une grande aide pour moi...


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR