G
gauravupadhyaya

  • Oct 30, 2002
  • Joined Apr 24, 2002
  • Check the variable register_globals in file php.ini .
    if it is set to Off set it on.
    and then restart Apache server.
    Your code is just fine.

    • on seeing your php config options, it says that php was installed without mysql support.
      Remove the config.status file from php folder and then manually add the --with -mysql string while executing the './configure' command for PHP and follow the procedure from there on as before.

      • I suppose u will have to maintain 2 tables.
        1 for user accounts other for Topics.
        In user account table have a field that will hold a serial nubber for everyuser.
        This serial number will be in the power of two(1,2,4,8,16,32.....)
        And in the Topics table have a feild(say SUM) that actually is the sum of these serial numbers for users.
        So say u have 3 users A,B,C they will have serial no. as 1,2,4 in the Accounts table.
        now if a new topic is added the value for the feild will be 7(ie 1+2+4). Now suppose User B has read the Topic so this topic will not be new to him so eliminate his serialno. The value for sum is 5(1+4). In this way u can keep the track of who all r still to view the Topic.

        • Type the following command to find the PID of the previous ./configure command
          ps -ef|grep ./configure
          this will give you the details of the process
          check the PID and the execute the following command to forcefully kill it.
          kill -9 $PID.

          • The most effective way is to store the username/Password in an array.
            something like $list[username]=password
            Then serialise the list and store it in the file.
            while fetching just read the file as whole and unserialise the contents and you will again have the whole array to iterate through to find the username and password combination.
            Hope this helps.

            • 1). Did you restart Apache server after changing in the httpd.conf file.
              How was php configured as an added module or with apache itself?

              • i Omar,
                I am facing a problem while running Apache with Oracle 8.1.5.
                I was able to successfully install Apache/PHP with the some modifications
                mentioned in one of thje mailing list, but while running the scripts that use DB functions ie OCILOGON i get the error
                "OCISessionBegin: ORA-03106: fatal two-task communication protocol error"

                i can still run the same installation of Apache with 8.1.7
                My Oracle and Apache is on Solaris.

                can you tell me what is the problem here.

                Does PHP/Oracle dosen't support Oracle 8.1.5

                A quick reply will be very helpful.
                Thanks Gaurav.

                • Hi All,
                  I am unable to find a way to get number of bytes from a string. I want to get the length of string in bytes....
                  Thanking you.
                  Gaurav..

                  • Hi All,
                    I am facing a problem while extracting a clob value from database.
                    The value was inserted from PHP into the CLOB column and when i try to retreive the same value from java i am unable to do that. I even tried using a BLOB Data Type instead of CLOB but to my dissatisfaction got the same result.
                    Can anybody tell be if there is a difference in the way PHP stores CLOB/BLOB in DB and the way JAVA stores CLOB/BLOB in DB.
                    Any Solutions....??????????????????

                    Thanking you,
                    Gaurav.

                    • hi,
                      when i try to retrieve my checkbox elements in PHP from HTTP_POST_VARS after summiting a form i am only getting the checkbox elements which have been checked and not the ones which have not been checked, is this the nornal behaviour HTTP_POST_VARS works ???
                      and if so is there any way to get all the checked as well as unchecked checkbox elements from HTTP_POST_VARS.

                      bye,
                      gaurav.