PHP ini file..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sharif Tanvir Karim

    PHP ini file..

    Can anyone send me a php.ini file that is used by almost by all hosts? My
    damn computer's (winxp) mini server is messed up and I am starting over so I
    am trying ot get php to behave on my system. SO please, if you can, please
    send me the php.ini file used by most hosts.

    --
    Sharif Tanvir Karim



  • Tim Van Wassenhove

    #2
    Re: PHP ini file..

    On 2003-12-12, Sharif Tanvir Karim <sharif@nyc.rr. com> wrote:[color=blue]
    > Can anyone send me a php.ini file that is used by almost by all hosts? My
    > damn computer's (winxp) mini server is messed up and I am starting over so I
    > am trying ot get php to behave on my system. SO please, if you can, please
    > send me the php.ini file used by most hosts.[/color]

    What is wrong with having a look at the default one(s)
    that is/are delivered with PHP?

    --
    verum ipsum factum

    Comment

    • Ed Wurster

      #3
      Contact List or Address Book

      Can someone recommend a script for a Contact List or Address Book?

      I've looked at many that are available, but would like to solicit other
      ideas.

      I am looking for a solution to manage and make available the 1000's of name
      and numbers that a family accumulates. I want to make this information
      available away from the home, and have a host with:

      PHP Version 4.3.3
      Mysql Version 4.0.15-standard

      Php-projekt seems to have the features in Contacts that I would like,
      especially import and export. I would like something with a simpler
      interface, though.

      Is there a PHP book that might cover something like this?

      I don't have the programming experience to do this, of course, but maybe I
      should attempt it.

      I've rambled on a bit, but think this is a topic that many people are
      interested in.

      Any ideas?

      Ed


      Comment

      • Geoff Berrow

        #4
        Re: Contact List or Address Book

        I noticed that Message-ID: <Z6adnWl3oY4LiU ai4p2dnA@comcas t.com> from Ed
        Wurster contained the following:
        [color=blue]
        >I don't have the programming experience to do this, of course, but maybe I
        >should attempt it.[/color]

        You should - it's just a simple database app.

        This tutorial shows how
        Lycos, Inc., is a web search engine and web portal established in 1994, spun out of Carnegie Mellon University. Lycos also encompasses a network of email, webhosting, social networking, and entertainment websites.


        If you have a PHP enabled server, you don't need to do all the
        installation. Skip to
        Lycos, Inc., is a web search engine and web portal established in 1994, spun out of Carnegie Mellon University. Lycos also encompasses a network of email, webhosting, social networking, and entertainment websites.

        and upload your .php files to your server via ftp.
        --
        Geoff Berrow (put thecat out to email)
        It's only Usenet, no one dies.
        My opinions, not the committee's, mine.
        Simple RFDs http://www.ckdog.co.uk/rfdmaker/

        Comment

        • Ed Wurster

          #5
          Re: Contact List or Address Book


          "Geoff Berrow" <blthecat@ckdog .co.uk> wrote...[color=blue][color=green]
          > >I don't have the programming experience to do this, of course, but maybe[/color][/color]
          I[color=blue][color=green]
          > >should attempt it.[/color]
          >
          > You should - it's just a simple database app.
          >
          > This tutorial shows how
          > http://hotwired.lycos.com/webmonkey/99/21/index2a.html
          >[/color]

          I will look into this. Thanks for the link. I appreciate it.

          Also, thanks for finding my post in the wrong thread!

          I'm going to re-post.

          Ed


          Comment

          • Neil Adams

            #6
            Re: PHP ini file..

            Tim,
            I think Sharif has suffered the same issues as me...
            As a total newbie to programming let alone PHP, I am totally confused by the
            options available to configure PHP.
            I have tried to select the options I need after reading the documentation
            but quite frankly I have not got a clue and am totally confused.

            Like Shariff, I too am running WinXP pro (as test Server) with Apache 2.0.43
            , PHP 4.3.1. and MySQL.
            I have code that I know works on a mates machine but I am buggered if I can
            get it to work on mine, he's goneaway for Xmas so I can not get a copy of
            his PHP.ini or Httpd.conf, I am pretty much convinced the only differance
            can be the configs.

            I have apache installed c:\program files\apache group\apache2, PHP installed
            in C:\php with the DLLs and php.ini copied to the c:\windows\syst em32 dir
            and Mysql resides in c:\MySql.

            I can get connection to the Mysql database and can get the apache server
            page to be displayed so i know its running, also the phptest.php screen but
            if I try to run any PHPcode I get undecleared variable warnings and
            something about Headers that Can not be sent... I have looked at the
            forums..about the various errors.. some people say the headers issue is
            something to do the the path to browscap.ini and error_reporting (7) is
            needed to kill the some of the notices...I am lost....Quite frankly all I
            and Shariff need are known working examples of basic setups and a couple of
            instructions as to where to put files to match the .ini's..

            Any example you can provide for a stupid noobie like me would be VERY VERY
            much appreciated... Hopefully I can then look at the code structure, watch
            how they work and learn...

            Cheers


            "Tim Van Wassenhove" <euki@pi.be> wrote in message
            news:brdift$26q hl$2@ID-188825.news.uni-berlin.de...[color=blue]
            > On 2003-12-12, Sharif Tanvir Karim <sharif@nyc.rr. com> wrote:[color=green]
            > > Can anyone send me a php.ini file that is used by almost by all hosts?[/color][/color]
            My[color=blue][color=green]
            > > damn computer's (winxp) mini server is messed up and I am starting over[/color][/color]
            so I[color=blue][color=green]
            > > am trying ot get php to behave on my system. SO please, if you can,[/color][/color]
            please[color=blue][color=green]
            > > send me the php.ini file used by most hosts.[/color]
            >
            > What is wrong with having a look at the default one(s)
            > that is/are delivered with PHP?
            >
            > --
            > verum ipsum factum[/color]


            Comment

            • Guest's Avatar

              #7
              Re: PHP ini file..


              "Neil Adams" <nomdeplume@blu eyonder.co.uk> wrote in message
              news:244Db.5879 5$kh4.22250@new s-binary.blueyond er.co.uk...[color=blue]
              > Tim,
              > I think Sharif has suffered the same issues as me...
              > As a total newbie to programming let alone PHP, I am totally confused by[/color]
              the[color=blue]
              > options available to configure PHP.
              > I have tried to select the options I need after reading the documentation
              > but quite frankly I have not got a clue and am totally confused.
              >
              > Like Shariff, I too am running WinXP pro (as test Server) with Apache[/color]
              2.0.43[color=blue]
              > , PHP 4.3.1. and MySQL.
              > I have code that I know works on a mates machine but I am buggered if I[/color]
              can[color=blue]
              > get it to work on mine, he's goneaway for Xmas so I can not get a copy of
              > his PHP.ini or Httpd.conf, I am pretty much convinced the only differance
              > can be the configs.
              >
              > I have apache installed c:\program files\apache group\apache2, PHP[/color]
              installed[color=blue]
              > in C:\php with the DLLs and php.ini copied to the c:\windows\syst em32 dir
              > and Mysql resides in c:\MySql.
              >
              > I can get connection to the Mysql database and can get the apache server
              > page to be displayed so i know its running, also the phptest.php screen[/color]
              but[color=blue]
              > if I try to run any PHPcode I get undecleared variable warnings and
              > something about Headers that Can not be sent... I have looked at the
              > forums..about the various errors.. some people say the headers issue is
              > something to do the the path to browscap.ini and error_reporting (7) is
              > needed to kill the some of the notices...I am lost....Quite frankly all I
              > and Shariff need are known working examples of basic setups and a couple[/color]
              of[color=blue]
              > instructions as to where to put files to match the .ini's..
              >
              > Any example you can provide for a stupid noobie like me would be VERY VERY
              > much appreciated... Hopefully I can then look at the code structure, watch
              > how they work and learn...
              >
              > Cheers
              >
              >
              > "Tim Van Wassenhove" <euki@pi.be> wrote in message
              > news:brdift$26q hl$2@ID-188825.news.uni-berlin.de...[color=green]
              > > On 2003-12-12, Sharif Tanvir Karim <sharif@nyc.rr. com> wrote:[color=darkred]
              > > > Can anyone send me a php.ini file that is used by almost by all hosts?[/color][/color]
              > My[color=green][color=darkred]
              > > > damn computer's (winxp) mini server is messed up and I am starting[/color][/color][/color]
              over[color=blue]
              > so I[color=green][color=darkred]
              > > > am trying ot get php to behave on my system. SO please, if you can,[/color][/color]
              > please[color=green][color=darkred]
              > > > send me the php.ini file used by most hosts.[/color]
              > >
              > > What is wrong with having a look at the default one(s)
              > > that is/are delivered with PHP?
              > >
              > > --
              > > verum ipsum factum[/color]
              >
              >[/color]

              "undeclared variable warnings something about Headers that Can not be sent"
              is pretty vague.
              You will get a lot more help if you post your exact code from phptest.php
              and your exact errors.





              Comment

              • Ed Wurster

                #8
                Error Checking

                Based on Geoff's recommendation, I've decided to jump in to a simple
                database app for contacts.

                I'm in the early stages of the tutorial, and find a need to error check, to
                see if I am connected to the database and so on.

                For instance I'm getting this error:

                Warning: mysql_result(): supplied argument is not a valid MySQL result
                resource in /home/(rest of path omitted) on line 9
                firstN:

                I know from reading through messages in this group that I shopuld include
                some error checking in the example.

                For instance, I've modified the tutorial to something more relevant for me:

                <html>

                <body>

                <?php
                $db = mysql_connect(" localhost", "user", "password") ;
                mysql_select_db ("database_cont acts",$db);
                $result = mysql_query("SE LECT * FROM peeps", $db);
                printf("firstN: %s<br>\n", mysql_result($r esult,0,"firstN "));
                ?>

                </body>

                </html>


                All of which generates error as noted above.

                What error checks do I need to include?

                Thanks.

                Ed

                "Geoff Berrow" wrote...[color=blue]
                > If you have a PHP enabled server, you don't need to do all the
                > installation. Skip to
                >[/color]
                http://hotwired.lycos.com/webmonkey/...tw=programming[color=blue]
                > and upload your .php files to your server via ftp.[/color]


                Comment

                • Andy Hassall

                  #9
                  Re: Error Checking

                  On Mon, 15 Dec 2003 17:44:56 -0500, "Ed Wurster" <ea_wurster@com cast.net>
                  wrote:
                  [color=blue]
                  >I'm in the early stages of the tutorial, and find a need to error check, to
                  >see if I am connected to the database and so on.
                  >
                  >For instance I'm getting this error:
                  >
                  >Warning: mysql_result(): supplied argument is not a valid MySQL result
                  >resource in /home/(rest of path omitted) on line 9
                  >firstN:
                  >
                  >I know from reading through messages in this group that I shopuld include
                  >some error checking in the example.
                  >
                  >For instance, I've modified the tutorial to something more relevant for me:
                  >
                  ><?php
                  >$db = mysql_connect(" localhost", "user", "password") ;[/color]

                  $db = mysql_connect(" localhost", "user", "password")
                  or die ("Connect failed: " . mysql_error());
                  [color=blue]
                  >mysql_select_d b("database_con tacts",$db);[/color]

                  mysql_select_db ("database_cont acts",$db);
                  or die ("Database selection failed: " . mysql_error());
                  [color=blue]
                  >$result = mysql_query("SE LECT * FROM peeps", $db);[/color]

                  $result = mysql_query("SE LECT * FROM peeps", $db);
                  or die ("Query failed: " . mysql_error());
                  [color=blue]
                  >printf("firstN : %s<br>\n", mysql_result($r esult,0,"firstN "));[/color]

                  Never proceed to using a resource handle before checking you actually _have_ a
                  resource handle, instead of 'false' returned by an error; see above.

                  The error handling above is OK for debugging but you should handle it more
                  gracefully for production code.

                  --
                  Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
                  Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

                  Comment

                  Working...