Menu

Rubbish added to file

Help
Jos
2006-02-15
2012-12-07
  • Jos

    Jos - 2006-02-15

    I installed Dev-PHP today. Looks great to me. But:
    Each time I open my Default.php lines like following are automatically added:
    [Edit]
    Edge=80
    [Options]
    Font=Courier New
    Highlight=1
    SaveSession=1
    DialogFont=Tahoma
    ExternPath=http://sourceforge.org/dev-php/
    LocalPath=
    LocalPort=8080
    FTPcfname=0
    FTPPassive=0
    FTPHost=
    FTPPort=21
    FTPUser=anonymous
    FTPServerPath=
    Parameters= -q
    FindText=
    ReplaceText=
    BrowserPath=http://devphp.sourceforge.net/
    InternBrowser=Internet Explorer
    [Registry]
    multi=0
    [UPDATE]
    Version=2.0.12
    Download=
    Description=
    [Session]
    Last=0
    Active=-1

    How come? I don't see where I can change this behaviour. Thanks for your help.

     
    • Pierre Fauconnier

      This rubbish looks like a bug doesn'it ?
      A file called Default.php...

      Dev-PHP version 2.0.13.243
      I created a file called 'Default.php'. It's the currently openned file, then exited Dev-PHP.
      Call back is fine.

      Could you describe the problem a bit more, please ?
      Regards,
      Pierre.

       
      • Jos

        Jos - 2006-02-17

        Sorry for the delay, after your excellently quick response!!
        I have installed Dev-PHP version 2.0.12.0.
        The file Default.php is located on a share (I have not connected the drive). "Default.php" is the file opened and "executed" first when the users access "my" webpage.
        I have edited this file with Dev-PHP immediately after I installed Dev-PHP. I guess somewhere in the configuration there is a link to this file. Because now, when I run Dev-PHP, this file is updated with the stuff mentioned before automatically, I can not use Dev-PHP.

        The data looks like something that has to go into an INI file. My DEVPHP.INI looks like this:
        [TBToolbar3Options]
        Show Captions=0
        DockRow=1
        DockPos=348
        CurrentDock=TBDock1
        [TBToolbar3DefaultOptions]
        Show Captions=0
        DockRow=1
        DockPos=344
        CurrentDock=TBDock1
        [TBToolbar3DefaultButtons]
        Button00=Undo
        Button01=Redo
        Button02=Cut
        Button03=Copy
        Button04=Paste
        Button05=Search
        Button06=Replace
        Button07=Next...
        [TBToolbar4Options]
        Show Captions=0
        DockRow=1
        DockPos=586
        CurrentDock=TBDock1
        [TBToolbar4DefaultOptions]
        Show Captions=0
        DockRow=1
        DockPos=522
        CurrentDock=TBDock1
        [TBToolbar4DefaultButtons]
        Button00=Text Field
        Button01=Button
        Button02=Check Box
        Button03=Radio Button
        Button04=List/Menu
        Button05=File Field
        Button06=Image Field
        Button07=Hidden Field
        Button08=Image
        Button09=Table
        Button10=Layer
        Button11=Form
        Button12=Server Side Includes
        Button13=Email Link
        Button14=Horizontal Rule
        Button15=Break
        Button16=Date and Time
        Button17=Link
        [TBToolbar2Options]
        Show Captions=0
        DockRow=1
        DockPos=0
        CurrentDock=TBDock1
        [TBToolbar2Buttons]
        Button00=Neu
        Button01=Öffnen
        Button02=Separator
        Button03=Speichern
        Button04=Speichern als..
        Button05=Alles speichern
        Button06=Separator
        Button07=Drucken
        Button08=Separator
        Button09=Projekt öffnen
        Button10=Projekt speichern
        Button11=Separator
        Button12=Schließen
        Button13=Alles schließen
        Button14=Dev-PHP beenden
        Button15=Separator
        Button16=Seitenleiste
        [TBToolbar3Buttons]
        Button00=Rückgängig
        Button01=Wiederherstellen
        Button02=Ausschneiden
        Button03=Kopieren
        Button04=Einfügen
        Button05=Suchen
        Button06=Ersetzen
        Button07=Nächstes...
        [TBToolbar4Buttons]
        Button00=Text Feld
        Button01=Button
        Button02=Check Box
        Button03=Radio Button
        Button04=List/Menu
        Button05=Durchsuchen Button
        Button06=Image Button
        Button07=Hidden Input
        Button08=Bild
        Button09=Tabelle
        Button10=Layer
        Button11=Form
        Button12=Server Side Includes
        Button13=Email Link
        Button14=Horizontale Linie
        Button15=Break
        Button16=Datum und Uhrzeit
        Button17=Link

        If you can tell me where other configuration data is located (if in the registry, where?), perhaps I can find and modify it. I scanned the registry already and found nothing strange.

        Cheers,
        Jos

         
    • Pierre Fauconnier

      Dev-PHP doesn't rely on windows(tm) registry ;)
      It's based upon a '*.ini' logic and is using the following directories :
      - devphp's ones (typically c:/Program Files/devphp2)
      - user's one, exactly %APPDATA%/devphp
      - your projects' ones, (generally including a file called project.prd)

      The first post seems to refer to %APPDATA%/devphp/devphp.prd, the second one looks like %APPDATA%/devphp/devphp.ini - i do not understand nor explain.

      However Dev-PHP may patch our files. Yes it dares ;) Afaik it is only modifying lines like :
      <meta name="GENERATOR" content="Dev-PHP 2.0.13 test">

      Furthermore PHP.ini has the following options
      auto_prepend_file =
      auto_append_file =
      Are they left blank ?

      That's too weird - unless you're pulling my leg
      :-D
      Best regards,
      Pierre.

       
      • Jos

        Jos - 2006-02-17

        I ain't pulling your leg, I would I was 8~)
        But then again, I wouldn't want to waste your and my time.

        auto_prepend_file and auto_append_file are left blank indeed.
        I could send you the devphp directory in %APPDATA%, as well as in c:/Program Files/Dev-php2 (I have a hyphen in the name). I also have project.prd in "My Documents". I don't see any secret in it. Please give me an email address or ftp directory.

        There

         
        • Pierre Fauconnier

          Ok. mailto://pf18387@users.sf.net

          Thanks for your report,
          Pierre.

           
          • Jos

            Jos - 2006-02-20

            zip file sent.

             
            • Pierre Fauconnier

              > zip file sent
              ... and perfectly received, thanks.

              Well here we are. Our problem could come from the 'project'.
              Could you 'Save Project' ('Projekt speichern' ;) with a different name : for instance 'project.prd' instead of 'Default.php' ?

              Best regards,
              Pierre - a bit slow, these days.

               
              • Jos

                Jos - 2006-02-21

                Bonjour Pierre,

                yes, that was the solution. It now works perfectly well. Great. Many thanks for your help and patience.
                Cheers,

                Jos

                 
    • Jos

      Jos - 2006-02-17

      Deletet the previous "There".

      Cheers,
      Jos

       

Log in to post a comment.

MongoDB Logo MongoDB