Menu

few beginner questions

Help
jeff
2004-11-16
2012-12-07
  • jeff

    jeff - 2004-11-16

    Hi, I used to work with PHP coder, but this product does not evolve. So, I have installed dev-php.
    Very great job!
    I have some questions that I did not found answers in forums.
    1. in internal preview, I have my page but I have a message undefined index HTTP_HOST that I use in $_SERVER['HTTP_HOST'] to build a special path
    Is it normal?
    2. In number of pages I check if a user is connected through sessions. I think it must be normal that it does not work in internal preview.
    Am I right?
    3. Syntax check says if errors have been found in my php file but is there any information on the location of the errors available?
    4. how does work external preview. I work with php , apache , mysql. My server is called by http://localhost/file.php.
    I have the message file ont found. I have put http://localhost/ in external web server path.
    What I have to change?
    Thank you
    Jeff

     
    • Urs Mäder

      Urs Mäder - 2004-11-16

      1. internal preview is a embedded "server". in this moment he dont handle global variables. should work with a external server on the local machine.
      2. depend from your choices in the php.ini
      3. no. but im working with the preview - > todo -:)
      4. your external preview - web server path seems to be correct. may be you have a configuration mistake in your server configuration or the name resolving. try to surf in the internet explorer to the link http://localhost/file.php. Results?

       
      • jeff

        jeff - 2004-11-16

        thank you for your answers. External preview is now running.
        I have a last question concerning
        run PHP-GTK (recommended) function
        in the menu.
        What is the use of this function?
        Jeff

         

Log in to post a comment.

MongoDB Logo MongoDB