|
Nope. You need to use something like FFMPEG if you want to automate encoding (you call it using PHP's "exec"). I say do this for more than 1000 Videos due to the time it takes to put together - whereas you can just leave flv encoder (below) running.
Or do it manually using Adobe Flash CS3 Video Encoder or similar. For less than 1000 videos - queue them up and let them go!
|
|
|
|
|
|
Is it possiable to create an array thats something other than a string, int, bool etc.?
For example, how can I go about making "$mList" an array?
<br />
class StatsData{<br />
public function StatsData(){<br />
}<br />
}<br />
<br />
$mList = new StatsData();
|
|
|
|
|
Yup, it sure is. Compared to any of the strongly typed languages, it's a snap.
Been working on a student timetable program. Only problems are that it's not an SQL database that contanis the student data, nor is the data I want sorted.
To do so, I had to create a class to hold my data and a compare function to be used when sorting the data.
Here's a snippet:
class myActivity
{
var $name;
var $teacher;
var $size;
var $location;
var $day;
var $startTime;
var $duration;
var $isStaff;
function myActivity($name, $teacher, $size, $location, $day, $startTime, $duration, $isStaff)
{
$this->name = $name;
$this->teacher = $teacher;
$this->size = $size;
$this->day = $day;
$this->startTime = $startTime;
$this->duration = $duration;
$this->isStaff = $isStaff;
$this->location = $location;
}
function _cmpDayTimeAsc($item1, $item2)
{
if ($item1->day == $item2->day)
{
return ($item1->startTime < $item2->startTime) ? -1: 1;
}
return ($item1->day < $item2->day) ? -1 : 1;
}
}
To use, it's very, very simple.
1. Declare the array
2. Add elements to the array
3. Sort the array (if needed)
4. Use as required.
$actArray = array();
$actArray[] = new myActivity($curName, $teacherName, $numStudentsInClass, $curLocation, $myDay, $startMin, $curDuration, $isStaff);
$boolDidSort = usort($actArray, array('myActivity', '_cmpDayTimeAsc'));
|
|
|
|
|
|
Thats easier than I thought it would be. Thanks!
|
|
|
|
|
Can any body tell me please how to read and write any file in perl ? and on which site i can find some knowledge about perl ?
Thank You.
|
|
|
|
|
|
It can't be discribed in a word,maybe the book named Learning Perl will help you 
|
|
|
|
|
if you have the files of config files of php+apache ,please email me,thanks
|
|
|
|
|
see here[^] and here[^]
mark_zxy wrote: please email me
CP doesn't work that way, responses are posted in the forums so that everyone can benefit.
|
|
|
|
|
Ive been tryin for awhile to get a simple webpage to display when I run my project and just cant seem to get anywhere. Obivously Im new to PHP. Can someone post me a link to a Hello World project so I can get started? Just something that echos out some text on a webpage.
Thanks
|
|
|
|
|
I am also new like you in php but may be this site can help you for improving your knowledge in php.
http://www.w3schools.com/PHP/DEfaULT.asP
|
|
|
|
|
|
I recommend installing xampp (& then turn apache service on using xampp control panel).
http://www.apachefriends.org/en/xampp.html
When you've done that:
-Go to localhost and run through basic security stuff.
-Make a php file "index.php" with the following contents:
<?php echo "hello world!"; ?>
-Save that in your C:/xampp/htdocs/yourfolder or whatever
open a browser and go to http://localhost/yourfolder/index.php
=
Hello world!
|
|
|
|
|
Hey Mar,
Thanks for your helpful post, I installed this XAMPP thing and it's weird!! How do you get to the Apache screen and setup a virtual directory to host a website??
|
|
|
|
|
edit text file in apache/bin/conf. then restart apache service.
|
|
|
|
|
|
The way i'd approach this in PHP is...
use fopen(url) to get the data from the URL.
Then I'd use the XML DOM parsing in PHP 5 to get out the information you need
Hope that helps
|
|
|
|
|
can you give me any example ?
|
|
|
|
|
How can i copy all data from one directory to other directory with the help of php ?
Example:- http://abc.com/data/ to http://cba.com/if/
|
|
|
|
|
|
Thanks for you help brother
|
|
|
|
|
Hi,
For my project I use the 'USPS' shipping method. It works fine and print a PDF response file with and given user details (by API request).
There is one problem that the 'PDF' coming from USPS test server and the file display sample 'USPS' shipping label with message “SAMPLE -DO NOT MAIL” . If the 'PDF' coming from USPS live server the above message does not display on the PDF file.
Please anyone help how to send API Request to live server and its PDF response file.
Thanks in advance.
|
|
|
|
|