473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.
Sep 12 '07 #1
6 1263
ak1dnar
1,584 Expert 1GB
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.
Sep 12 '07 #2
pbmods
5,821 Expert 4TB
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
Sep 12 '07 #3
kovik
1,044 Expert 1GB
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.
Sep 12 '07 #4
[php]
<table width="100%" align="center" cellpadding="0" class="pad3 bdr">
<tr>
<td colspan="3" class="bg_patti bdr bdrbtm"><span class="font_style"><b>Video</b></span></td>
</tr>
<tr>
<td class="bdrbtm pad3" align="center" valign="top" colspan="3"><? include("videomemberlinks.php");?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td >
<?
$i=0;
if($_GET['id']!="") {
$sql_video=mysql_query(" SELECT * FROM tbl_video WHERE user_id='$_GET[id]' ");
} else {
$sql_video=mysql_query(" SELECT * FROM tbl_video WHERE user_id='$_SESSION[mid]' ");
}
while($row_video=mysql_fetch_array($sql_video)) {

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

?>
<OBJECT id='mediaPlayer' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value=<? echo "$row_video[video_name]";?>>
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' src=<? echo "$row_video[video_name]";?> autostart="true" designtimesp='5311' 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_videoadd.php">Upload 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
Sep 13 '07 #5
pbmods
5,821 Expert 4TB
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?
Sep 13 '07 #6
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.
Sep 13 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Randell D. | last post by:
Folks, I've heard of buffer overflows being used/abused by hackers and believe one method to reduce this from happening is to check the length of my form data before writing it to my MySQL...
0
by: Francesc Guim Bernat | last post by:
Dear colleagues, i'm getting in troubles using one XML library with Visual Studio .NET and Xerces with Xalan. (Xercer 2.4 and Xalan 1.7) When i execute the code i get the next run time error: ...
8
by: Bob | last post by:
I'm trying to decide on what data types to put into my caching object (a class with a static instance of Hashtable). I'm facing the choice of either putting the string values or SqlParameter...
5
by: iceColdFire | last post by:
Hi, I am writing some hybrid application s using C/C++ modules together....Here I have created and used a lot of malloc(...) and new(...) operators. I am interested in checking on the...
4
by: Geir Baardsen | last post by:
Hi! Is there any way to check if printer is active in access 2000? I have a report that is printing (local printer), and before I do anything more in code, I do want to check if printer is...
19
by: Victor Nazarov | last post by:
Consider I want to write my own version of standard malloc, calloc, realloc, free. How can I portably check if they work correctly? The most remarkable will be the test for right justification of...
6
by: Peter Dunker | last post by:
Hello, I think I have a newbee question. If I create a char pointer at the beginning of function and use it only in a special case: char *name; if (a = 1)
1
by: Francesc Guim Bernat | last post by:
Dear colleagues, i'm getting in troubles using one XML library with Visual Studio .NET and Xerces with Xalan. When i execute the code i get the next run time error: "Run-Time Check Failure #2...
8
by: Antony | last post by:
compiler£ºVisual Studio.Net 2003 (VC7.1) compile type£ºDebug problem: wanted more information about the "Run-Time Check Failure #n",thanks! Example1: #include "stdafx.h" void malice() {...
173
by: Marty James | last post by:
Howdy, I was reflecting recently on malloc. Obviously, for tiny allocations like 20 bytes to strcpy a filename or something, there's no point putting in a check on the return value of malloc....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.