|
I want to implement ffmpeg streaming server in website ,
videos that users want to watch, those videos has to be streamed from the server ..
|
|
|
|
|
|
<script language=JavaScript>
<!--
function check_length(my_form)
{
maxLen = 150;
if (my_form.my_text.value.length >= maxLen) {
var msg = "You have reached your maximum limit of characters allowed";
alert(msg);
my_form.my_text.value = my_form.my_text.value.substring(0, maxLen);
}
else{
my_form.text_num.value = maxLen - my_form.my_text.value.length;}
}
</script>
<?php
mysql_connect('localhost','eskool','eskool') or die("Table not connected");
mysql_select_db('eskool') or die("Database not connected");
$num=$_POST["numrow"];
$cls=$_POST["cls"];
$sec=$_POST["sec"];
$status=$_POST["status"];
$mon=$_POST["mon"];
$feetype=$_POST["fee"];
if($status=="Pending"){
$j=0;
for($i=1;$i<=$num;$i++)
{
$che=$_POST["ck$i"];
if(isset($che))
{
$query=mysql_query("select * from stud_reg where regno='".$che."'") or die("Not Select");
$row=mysql_fetch_array($query);
$nam=$row["fstname"].$row["lname"].'.'.$row["initial"];
$cont=$row["contact"];
$query2=mysql_query("select * from `2009` where month='".$mon."' and feetype='".$feetype."' ") or die("Not selected");
$row2=mysql_fetch_array($query2);
$paydat=$row2["paydate"];
$sms='http://smsc11.com/corp/SendingSms.jsp?uname=aker&pass=aker&mobile=';
$sms=$sms.$cont;
$msg="&msg=Please+note+that+$feetype+for+your+child+$nam+is+due+on+the+$paydat+-+xyz+school+,+Bangalore";
$send="$sms.$msg";
echo $send;
header( "Location:$send" ) ;}
i am trying for an sms module which sends sms to each selected student. i am tryin with an api from smsc11.com. but the problem which i am facing is once i redirect to that api the loop is not working.it sends for only one student but not for all.can anyone plz throw some light on this.
modified on Saturday, December 5, 2009 4:22 AM
|
|
|
|
|
hello everyone... i am new to this site.i posted my stuff but didnt get any reply.i am not sure if i posted it the rite way.If am wrong can anyone point out that to me.
|
|
|
|
|
Sorry I have not worked with sms. But from the code you showed, you use the header() function. when I user logs into you solution, and hit this section of code they will be redirected to the location specified...on a different server. This is outside of the loop you are using.
Try doing a test by commenting out the header function and just echoing the sms to the screen. that will tell you if the loop logic is good, but once the header function is enabled, it is going to do the same thing.
I suspect you need a different design for what you are trying to do. Maybe a cron'd script would be better.
|
|
|
|
|
Hi!
I have a php page and I want to execute sql command after button click event.
I put Confirm javascript function to get user choices on sql query and it returns true or false.
but I could not bound this query execution on button click event whenever page is loaded sql command is executed without controlling the result of confirm function.
|
|
|
|
|
I'm not certain what you are asking, but if I have it right this javascript runs in a php page?
If so then you can test if the page has been submitted or loaded normally by testing the post or get value of the submit button.
if(isset($_POST['Confirm']))
{
...run sql query
}
....or...
if(isset($_GET['Confirm']))
{
...run sql query
}
|
|
|
|
|
ok usually you have a form with a submit button, and the form's method is usually get or post. if its either you wanna say action="sqlpage.php" the sql page is the page where your sql query runs from.
have a look at this page where i have a form and the user presses the submit to a php page where the data is then passed to email.
Feel free to view the page source if it helps[]
Hope that helps
|
|
|
|
|
Hi All,
Anyone know how to extend the login token time in PHPMyAdmin?
It's for my development machine (the default is way too short). I keep getting logged out after 1800 seconds. I know I've done it before, but I can't remember how.
Thanks
|
|
|
|
|
In case anyone's interested - add the following to our config.inc.php file:
$cfg['LoginCookieValidity']=60 * 60 * 10;
|
|
|
|
|
Is there anyway to make it never expire?
|
|
|
|
|
multiply it by a billion?
|
|
|
|
|
I need to send email with gmail account. I tried mail() function but it does not work. Could you help e on this issue?
any recommendations are really appreciated 
|
|
|
|
|
you need to set:
ini_set(sendmail_from, "youremail@gmail.com");
ini_set(SMTP, "smtpMailServerAddressGoesHere@gmail.com");
ini_set(smtp_port, 25);
But I'm not sure what the correct values are.
|
|
|
|
|
using pear:
<?php
require_once "Mail.php";
$from = "Sandra Sender <sender@example.com>";
$to = "Ramona Recipient <recipient@example.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "mail.example.com";
$username = "smtp_username";
$password = "smtp_password";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}
?>
from about.com
|
|
|
|
|
thanks for your attention I will try it 
|
|
|
|
|
hi i am using codeblocks and i want to use opencv to capture video and image and ... .
this is the program :
//------------------------------------
#include < iostream >
using namespace std;
#include "cv.h"
#include "highgui.h"
int main()
{
IplImage* img;
img = cvLoadImage("lena.bmp", 1);
cvNamedWindow("window", 1);
cvShowImage("window", img);
cvWaitKey(0);
cvDestroyWindow("window");
cvReleaseImage(&img);
return 0;
}
//------------------------------------
but there is a compilation error :
../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzeof'|
../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzopen'|
../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzclose'|
../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzrewind'|
../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzgets'|
../../../../../../usr/local/lib/libcxcore.so||undefined reference to `gzputs'|
||=== Build finished: 6 errors, 0 warnings ===|
i used this instructions to install the downloaded package : (OpenCV-2.0.0.tar.bz2)
1. tar -xjf OpenCV-2.0.0.tar.bz2
2. mkdir opencv.build
3. cd opencv.build
4a. cmake [<extra_options>] ../OpenCV-2.0.0 # CMake-way
or
4b. ../OpenCV-2.0.0/configure [<extra_options>] # configure-way
5. make -j 2
6. sudo make install
7. sudo ldconfig # linux only
and i set the codeblocks envierment parameters as is shown in this page :
http://opencv.willowgarage.com/wiki/CodeBlocks
any suggestion?!
|
|
|
|
|
__erfan__ wrote: anybody there ?
Yes lots of people, and they will answer when they have something useful that will help you. Unfortunately you forgot to mention what problem you are having. Please review your entry and explain the problem so that someone may help you. And also be patient!
|
|
|
|
|
Dear Friends.
I need a complete and free file manager with login control and account file sizes limit for Linux server.
has anyone a file manager for me?
Mahdi Ghiasi
|
|
|
|
|
|
Thanks for your help. The ones that you introduced are very good but I'd rather something that I can put limitation on accounts' space with it easily and also free.
Mahdi Ghiasi
|
|
|
|
|
can you use FTP (e.g: FileZilla)?
|
|
|
|
|
some of those are free, you will need to read up on them to see if any of them have account controls or you can always add your own.
|
|
|
|
|
Hey guys ,
i want to bring my website a bit more of a interactive feel , like forums and log ins ....
and instead of copying other peoples scripts like most , i want to create my own .... so what lang is better php or cgi for forums ?
and to learn php what worked for you ? and reccommendations would be helpful ... i know the basic stuff like xml/html and javascript , css etc ... so i ain't basic really
|
|
|
|
|
A good place to start would be the w3schools[^]
I are Troll
|
|
|
|