how to check the memory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashishsaxena
    New Member
    • Sep 2007
    • 3

    how to check the memory

    I am the student of BE.
    & we have doing work on a project (A Friends Group)
    In that project a problem of managing the Video of User's Gallery.
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Originally posted by ashishsaxena
    I am the student of BE.
    & we have doing work on a project (A Friends Group)
    In that project a problem of managing the Video of User's Gallery.
    Welcome to TheScripts.com.
    So where is the Question? I didn't see it.

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, Ashishsaxena.

      The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. You have not asked a question. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

      Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

      Then when you are ready post a new question in this thread.

      MODERATOR

      Comment

      • kovik
        Recognized Expert Top Contributor
        • Jun 2007
        • 1044

        #4
        Originally posted by ashishsaxena
        I am the student of BE.
        & we have doing work on a project (A Friends Group)
        In that project a problem of managing the Video of User's Gallery.
        Really? Well... Good luck with that. When you come upone a problem, we're happy to help.

        Comment

        • ashishsaxena
          New Member
          • Sep 2007
          • 3

          #5
          [php]
          <table width="100%" align="center" cellpadding="0" class="pad3 bdr">
          <tr>
          <td colspan="3" class="bg_patti bdr bdrbtm"><span class="font_sty le"><b>Video</b></span></td>
          </tr>
          <tr>
          <td class="bdrbtm pad3" align="center" valign="top" colspan="3"><? include("videom emberlinks.php" );?></td>
          </tr>
          <tr>
          <td>&nbsp;</td>
          </tr>
          <tr>
          <td >
          <?
          $i=0;
          if($_GET['id']!="") {
          $sql_video=mysq l_query(" SELECT * FROM tbl_video WHERE user_id='$_GET[id]' ");
          } else {
          $sql_video=mysq l_query(" SELECT * FROM tbl_video WHERE user_id='$_SESS ION[mid]' ");
          }
          while($row_vide o=mysql_fetch_a rray($sql_video )) {

          for($i=0;$i<1;$ i++){

          ?>
          <OBJECT id='mediaPlayer ' classid='CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microso ft.com/activex/controls/mplayer/en/nsmp2inf.cab#Ve rsion=5,1,52,70 1'standby='Load ing Microsoft Windows Media Player components...' type='applicati on/x-oleobject'>
          <param name='fileName' value=<? echo "$row_video[video_name]";?>>
          <param name='animation atStart' value='true'>
          <param name='transpare ntatStart' value='true'>
          <param name='autoStart ' value="true">
          <param name='showContr ols' value="true">
          <param name='loop' value="true">
          <EMBED type='applicati on/x-mplayer2'plugin spage='http://microsoft.com/windows/mediaplayer/en/download/'id='mediaPlaye r' name='mediaPlay er' displaysize='4' autosize='-1'
          bgcolor='darkbl ue' showcontrols="t rue" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' src=<? echo "$row_video[video_name]";?> autostart="true " designtimesp='5 311' loop="true">
          </EMBED>

          </OBJECT>

          </td>
          </tr>
          <tr><td><? echo "$row_video[video_name]";?></td></tr>
          <? $i++;}
          }
          ?>
          <tr><td colspan="2" align="left"><a href="user_vide oadd.php">Uploa d Video here</a></td></tr>
          </table>
          [/php]

          PROBLEM

          In this code we want to check first "how much space is required to uploaod any video form the user"

          NEXT TIME ENCLOSE YOUR CODE WITHIN CODE TAGS YOURSELF. SEE THE POSTING GUIDELINES FOR THIS.

          moderator
          Last edited by ronverdonk; Sep 13 '07, 12:43 PM. Reason: enclosing code within tags

          Comment

          • pbmods
            Recognized Expert Expert
            • Apr 2007
            • 5821

            #6
            Heya, Ashishsaxena.

            Are you trying to limit the amount of data that each User can upload? Or do you just need to limit the maximum size of each file upload? Or are you trying to make sure that your server doesn't run out of disk space?

            Comment

            • ashishsaxena
              New Member
              • Sep 2007
              • 3

              #7
              Thanks for replying fast,

              We have limited amount of memory and we give 5mb uploading space to the user so how we check whether the user doesn't exceed this limit or not.

              Comment

              Working...