cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I agree kinda agree. Although it would be nice to see a second tag with mono spacing and no syntax highlighting for quick use I think it would make the average quote look not so good. So perhaps instead if another tag was added which made the text in monospacing but with no background color. For example, I could use the following text:
[mono]test first line
testing another line[/mono]
And the above would produce the below but in monospacing:

test first line
testing another line

Would be nice because then we could display things that are not code but need to be in monospacing.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Sure it may not be possible to store every combination as there are infinit possible hashes due to an infinit length that can be hashed (eg. pi). However, it is still possible to hash at least the first 5 digits and every word from the dictionary. I have a vps for all of this and I have encrypted the hashing data so that it only takes up half the space. I know you may say this is not possible but I am all about doing the impossible and usually I succeed. Also could you give me a reference about rainbow tables as they sound colorful and needed. Currently the technique I'm using is by having 3330 tables each storing a proportion of the data but discovered more would be needed.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi and I have been working on a project involving a rather large database. My question is "For a database with over 20529860 rows, is it better to have 3330 tables spreaded equally or to split into multiple databases or would it be better to have 49950 tables in the database containing the information?" The reason I ask is that having all those rows in the one table makes it really slow with the Where clause and I'm not sure which way is the best way to design this database with mysql. I found that anything over 15MB in one table takes too long to lookup so if I had to guess I would spread it over the 49950 tables ((255-33)*15*15) but sounds like a ridiculous number of tables to store the one set of data. So does anybody have any ideas on how to store potentially 1,000,000,000 rows in mysql. Each row only contains a few bytes. Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Although I'm no fan of oop I would suggest posting line 395 and code that relates to line 395 for us to debug.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

There is nothing wrong with SHA256, Whirlpool etc. are designed to be secure thus they should be used to hash passwords.

Are you kidding, no hash is secure unless you hash the hash. If you type in "dehasher" in google my website comes up on the first page "global programming syntax" and with my website, sha1, crc23 and crc23b will have a reverse lookup to at least 4 digits. My database is being populated each day with millions of results and will upload the database late November. So currently the database is not publicly viewable but will be soon and I have plans to expand it to a monster database as I have made the database structure efficient for mysql query lookup. So with plans like mine, no hash is secure as long as it follows a standard format. That's why you hash the hash or use a custom hashing function.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Google Analytics is also a great tool.

At all costs do not use Google Analytics. The google analytics system has frozen a few times causing a few banks websites to not load. So if Google Analytics will cause banks websites to not load then why should you trust it with yours? However this only happens about once every 6 to 12 months. Google seems to be starting to freeze more frequently though as all of their system are controlled by the one mainframe (eg. Youtube, google search, google analytics, google webmasters, google maps, google earth, google street view) So those listed products with many more are controlled by the one mainframe setup instead of individual setups for each product and when that one mainframe crashes, boom - 5% of the internet is offline. Happened for about 52 hours in the past year over two separate occasions.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

because now new members won't be able to post with the other tags

Yes however I use to use code tags with no syntax a lot for non-code text and now old posts like the many I've posted are highlighted in code when they are just important text. There are ways around it but as good as this new feature is for new comers, I kinda miss the short-cut the displaying monospaced text just by using code tags. O'well, I guess some things do change and perhaps for the better.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

This problem seems to be because your server (i.e. on which your PHP and APACHE is installed and through this you accessing the website in browser) is located in a different timezone than your geographic location - say you are located in India, but your hosting company is in Canada.
What you can see is your server time and you comparing it with your local time.
I will suggest, just ignore this, you should go with the server

Well said. That is why to avoid situations like this it's best to host on a server in your own timezone or put up with the math of timezone conversion. Generally I'd prefer to do the math but you need to see that the math is there.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I just took a l@@k and looks like I've been told some misleading information about WAMP. Apparently there isn't a mailserver in WAMP and the mailserver in XAMPP is a devil to get working. Perhaps in version one there might have been an addon or a patch for a mail server in WAMP but other than that l@@ks like it needs to be added separately unlike I've been recently told. So WAMP actually includes php, mysql, phpmyadmin and apache unfortunately.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

code will produce a collision for any crc32b hash within an hour on an average PC.

That is true with any hashing function and that is what makes crc32 so good. It stores a large amount of data in minimum space with minimum recourses still with the concept. If however you are after uniqueness then all of the hash functions are no good and the following code will need to be used.

<?php
function hash_string($string,$extrachars='',$mixsault=true) {
    $str=array();
    if (strlen($string)>3) {
        $len=floor(strlen($string)/2);
        if ($mixsault==false) {
            $long=str_split(substr($string,0,$len).$extrachars.substr($string,$len),1);
            } else {
            $string=substr($string,0,$len).$extrachars.substr($string,$len);
            $long=str_split($string,1);
            }
        } else {
        $long=str_split($string.$extrachars,1);
        }
    for ($i=0;isset($long[$i]);$i++) {
        if (!isset($charconvert[$long[$i]])) {
            $charconvert[$long[$i]]=true;
            }
        }
    if ($mixsault==false) {
        ksort($charconvert);
        }
    $i=2;
    foreach ($charconvert AS $key=>$val) {
        $charconvert[$key]=$i++;
        }
    $amount=count($charconvert);
    unset($long);
    $arr=str_split($string,2);
    while (!empty($arr[0]) || $arr[0]===0) {
        for ($i=0;isset($arr[$i]);$i++) {
            $char=str_split($arr[$i],1);
            $arr[$i]='';
            if (empty($charconvert[$char[1]])) {
            $tmp=1; } else {
            $tmp=$charconvert[$char[1]];
            }
 
            $v=(($charconvert[$char[0]]*$tmp)+32+($amount-$tmp));
            if ($v<256) {
                $str[]=chr($v);
                } else {
                $str[]=$char[0];
                $arr[$i]=$char[1];
                $arr=implode('',$arr);
                unset($arr);
                $arr=str_split($arr,2);
                unset($arrs);
                }
            unset($v,$tmp);
            }
        }
    unset($arr,$char,$charconvert);
    return implode('',$str);
    }
 
echo hash_string('This is to be hashed','this is like a sault',false); //outputs:  >–7FÊ3:JŽR
echo hash_string('This is to be hashed','this is like a sault',false); //outputs:  >–7FÊ3:JŽR
echo hash_string('This is to be hashed','this is like a sault',true);  //outputs:  1=BF^@=BFN‘jG½ftjF:Ä
echo hash_string('This is to be hashed','this is like a sault',true);  //outputs:  1=BF^@=BFN‘jG½ftjF:Ä
echo hash_string('This is to be hashed');                              //outputs:  .:?C[XaA7—
echo hash_string('This is to be hashed');                              //outputs:  .:?C[XaA7—
echo hash_string('This is to be hashed','',false);                     //outputs:  ;ƒ4?™07G{O
echo hash_string('This is to be hashed','',false);                     //outputs:  ;ƒ4?™07G{O
?>

So truly a custom hash function is …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Gigablast? What the hell is that?

link:url will do for the major SEs. Gigablast? I can't belive you mentionned that dinosaur. What do they get, less than .05% of web search traffic. Wake up! It's Google, then MSN (Bing,Live) and Yahoo in about that order. Get with the program.

What - Live, that's an extinct dinosaur. I believe MSN is Bing and Bing replaced Live. Live search nolonger exists and laughed when seeing Live in a year 2050 based film. lol

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If you are trying to use php on your local computer (localhost) then it sounds like at the moment your doing it the hard way. I would suggest not installing apache and instead install WAMP. Alternativley there is XAMPP but XAMPP is a bit buggy at the moment. The package WAMP includes apache, php, perl, email server etc all in the one install. So try googling WAMP.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I just checked and gigablast has an advanced search option where you can search for backlinks although I can't seem to get it to work. As for ask, I can't see any function in the ask search engine for backlinks yet.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I tested the following keyword on google, yahoo and altavista and it seems to work perfectly.

link:google.com

The above search term will search for all pages that link to google.com Also it tells you how many backlinks exist simply by checking how many results occurred. Also another example is as follows:

link:daniweb.com
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I just noticed the "Start new thread" buttons and "Reply to Thread" buttons have just got bigger. Why are the buttons on daniweb have suddenly been enlarged? Is there any advantage because I thought the buttons looked better smaller.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

To only do each video id once the following is what the code would look like.

<?php
$input=file_get_contents('http://warrendunlop.tumblr.com');
preg_match_all('#(http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)#i',$input,$output);
foreach ($output[4] AS $video_id) {
    if (!isset($video[$video_id])) {
    $video[$video_id]=true;
$embed_code = '<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/'.$video_id.'&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'.$video_id.'&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>';
echo $embed_code.'<br>';
        }
    }
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Also as for bing it is not so easy. I remember reading some time ago that to get the backlinks for bing you need to register an account then log in to view the stats for the backlinks. So that makes it impossible for automated scripts to get the bing backlinks. I see a mod has answered how to get backlinks with google, yahoo and possibly a few others.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I managed to piece together a simple script that will display the names of each person in the result. However the database design is not how I would design it but the following script will do the job with only a few fields not being active.

<?php
if ($_POST['submit']=='Search') {
    mysql_connect('localhost','root','');
    mysql_select_db('mydatabase');
    $where ='';
    $where.=(!empty($_POST['nam']))?', `name`="'.mysql_real_escape_string($_POST['nam']).'"':'';
    $where.=(!empty($_POST['mob1']))?', `mob1`="'.mysql_real_escape_string($_POST['mob1']).'"':'';
    $where.=(!empty($_POST['mob2']))?', `mob2`="'.mysql_real_escape_string($_POST['mob2']).'"':'';
    $where.=(!empty($_POST['exp']))?', `exp`="'.mysql_real_escape_string($_POST['exp']).'"':'';
    $where.=(!empty($_POST['ctc']))?', `ctc`="'.mysql_real_escape_string($_POST['ctc']).'"':'';
    $where.=(!empty($_POST['conslt']))?', `conslt`="'.mysql_real_escape_string($_POST['conslt']).'"':'';
    $where.=(!empty($_POST['regpack']))?', `regpack`="'.mysql_real_escape_string($_POST['regpack']).'"':'';
    if (!empty($where)) {
        $where=substr($where,2);
        $r=mysql_query('SELECT * FROM `candidates` WHERE '.$where);
        while($row=mysql_fetch_assoc($r)) {
            echo $row['name'].'<br>';
            }
        }
    }
?><style type="text/css">
<!--
.style1 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 36px;
}
.style2 { color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
.style3 {font-size: 16px}
-->
</style>

<form action="search.php" method="post">
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" bgcolor="#000000">&nbsp;</td>
<td width="96%" bgcolor="#000000">&nbsp;</td>
<td width="2%" bgcolor="#000000">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#000000">&nbsp;</td>
<td bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center" class="style1">Versatile Solutions</div></td>
</tr>
<tr>
<td bgcolor="#000000"><div align="center" class="style2 style3">Search For A Candidate</div></td>
</tr>
<tr>
<td><div align="center">
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3%">&nbsp;</td>
<td width="21%">&nbsp;</td>
<td width="2%">&nbsp;</td>
<td width="24%">&nbsp;</td>
<td width="1%">&nbsp;</td>
<td width="24%">&nbsp;</td>
<td width="2%">&nbsp;</td>
<td width="20%">&nbsp;</td>
<td width="3%">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right" valign="middle">Name</td>
<td>&nbsp;</td>
<td align="left" valign="middle"><input name="nam" type="text" /></td>
<td>&nbsp;</td>
<td align="right" valign="middle">Mobile 1</td>
<td>&nbsp;</td>
<td><input name="mob1" type="text" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right" valign="middle">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td align="right" valign="middle">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right" valign="middle">City</td>
<td>&nbsp;</td>
<td><input name="city" type="text" /></td>
<td>&nbsp;</td>
<td align="right" valign="middle">Mobile 2</td>
<td>&nbsp;</td>
<td><input name="mob2" type="text" /></td>
<td>&nbsp;</td>
</tr>
<tr> …
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi
Do not use Calcutta in function date_default_timezone_set().
Use it as -- works perfectly.

date_default_timezone_set("Asia/Kolkata");

I suspect sarithak's php time settings may be a bit messed up there for making all timezones 12 hours behind. That is why I say to choose a different timezone at the other side of the world for this job. Just a note.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Seems like not many people like the "new" button. The only thing I don't like about the "new" button on each thread is how it stands out so much. If it were kinda faded with the background a bit then that would be a lot better as IMO the "new" button stands out more than the topic title and that's bad.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi Cwarn,

Thanks...

by using ur code...still i m getting the default(different) time...

it displays ..i think its AM..

but, now my time is ...dont know wats wrong?

Then are you sure your timezone is Asia/Calcutta. Chances are that you will need to change the Asia/Calcutta to something more appropriate. Perhaps a google search for a timezone about 12 hours ahead of Asia/Calcutta will reviel what needs to go into the ini_set function. Just make sure the timezone name is designed for php input and that it is 12 hours ahead of Asia/Calcutta :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

All of the above

I believe you's are all doing it wrong other than using the timezone function. There are two ways to achieve this result. One is the date_default_timezone_set() function and the other is the ini_set() function. So I would strongly suggest placing the following code at the top of the php file.

<?php
ini_set('date.timezone','Asia/Calcutta');
echo date('H:i'); //check time

Hope that helps as it should get you on the right track.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If you are talking about grabbing the youtube links from a page the following scripts will do that and display each video id in a list.

<?php
$input=file_get_contents('http://www.youtube.com/');
preg_match_all('#(http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)#i',$input,$output);
foreach ($output[3] AS $video_id) {
    echo $video_id.'<br>';
    }
foreach ($output[4] AS $video_id) {
    echo $video_id.'<br>';
    }
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You may want to note that for assigning a possibly undefined variable or array index/key the following is the correct method.

$PK = (isset($_POST['PK']))?$_POST['PK']:'';

The above is what line 24 should be.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

1) I don't like the new buttons. They have a retro feel and don't really do it for me. The yellow buttons fit the look of the page IMO.

I semiagree. The new buttons are just a bit too big. Maybe if they where about half or two thirds of current size IMO.

2) I prefer multiquote rather than Flag to Quote. The former tells me what the button does. The latter tells me very little.

I agree there.

Also I believe the multiquote button is not self explanatory so perhaps if an article or something was written explaining how to use all of these great features in deniweb.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

That is not a new feature -- its been there for billions of years :)

Nobody said that it was new - I just said it stands out more and now that I know what it does and can see the reason of why they made it stand out more than before. :-/

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I am trying to upload it into the cms at http://syntax.cwarn23.info/ however I just get a internal server 500 error and another error saying "ERROR: Failed to find flength file". So the cms suggested a few posts ago just isn't working.

[edit]
I just tried the above commands but they did not reviel the locations of those directories. I have also tried browsing the root with a SCP program but still can't find it even though the installation said it was installed. Also as previously mentioned, the progress bar for uploading videos only displays an error.
[/edit]

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Wow! Just tried it (below) and will make things a lot easier. :) Thanks for the tips.
*_^

You can click the 'flag to quote' button on multiple posts. When you've 'flagged' a few posts and then click the yellow 'reply to this thread' button, all the posts you've flagged will be quoted in your new reply.

I personally think that the new button have a 'web 1.0' feel to them. :)

Its a feature. You can hit "Flag to quote" on as many posts as you want and when you hit the reply button it will insert quote tags for all of the posts you have flagged. This is a lot easier than hitting "Open in new tab" on the "Reply w/ quote" button and copying the quote tags to respond to multiple people.

See below:

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I noticed that the reply buttons on each post has changed but it makes something stand out more that I previously ignored. How does the "Flag to Quote" button work because for me I cannot get it to do anything except change color as I don't know what it does or how it changes anything. Just something I thought I would bring up as I am not sure on how many other people treat the "Flag to Quote" button as a non-usable button.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I managed to fix the error but I need to know the locations ffmpeg, flvtool2 and mencoder. According to the installation diognistic they are installed but I need to know their locations. Their defaults pre-entered are all within /usr/bin/ but I can't see them in there so does anybody know where else those modules may be installed?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Here is the Video CMS I mentioned I would link.
http://phpmotion.com/

You might want to check it out.

I just downloaded the cms and tried to run it but an error message appears saying the following:

Warning: dl() [function.dl]: Temporary module name should contain only filename in /home/****/classes/config.php on line 2
PHP script /home/****/classes/config.php is protected by phpSHIELD and requires the phpSHIELD loader phpshield.5.2.lin. The phpSHIELD loader has not been installed, or is not installed correctly. Please visit the phpSHIELD php encoder site to download required loader.

While I wait I will try some toubleshooting but what is the general solution to this problem as I have just downloaded phpshield.5.2.lin

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Here are the files from my current project so you can see how it works. Its easier to show you than explain.

I just checked the code and so oopedy loopedy. As hard as it may be bouncing between the includes/require files I managed to understand the concept. I noticed that nearly all the php code was placed outside the public viewing directory which I have seen the reasons explained before. But all of the php files? Is there an advantage to this or should I only place files that need to be secure outside the web directory because some of the php files would include the banner, footer, menu each in a separate file (I think) so would all of those go above the web directory and be included in index.php? Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well there are two options. You could try changing the previously mentioned youtube code which I think is called something like the "youtube video api" or you could host each video on your own site using a flv player like I have recently began to do. The best free flv player I have found a great flv player at http://flv-player.net/players/maxi/documentation/ Enjoy.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Wow, that changes how I think about designing php. I noticed you have a templates directory. Does this mean that there are multiple php files displaying the same template includes from that directory or is it just the index.php that uses the template includes?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi and I have learned 2 ways of making a php cms both with simular results on the client side. That is, is it best to have all pages pointed to index.php with mod rewrite and url vars or is it best to have a couple dozen php files each including the styles. Previously I have just placed all my code into the index.php and used mod rewrite to send all url requests to index.php but am now thinking that it might be better to have a login.php and logout.php etc. Which of this techniques do you think is best?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have just uploaded the latest video tutorial at the below link and what are your comments and how good it is. Also do you agree that the quality needs increasing as I only just noticed.
http://syntax.cwarn23.info/media/new.html

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I am not sure if advertisements makes your site commercial. Personally I don't think it does. I always considered it to be commercial if you sold products, but I am guessing that if your site makes money (no matter how) its commercial.

If you can't find a definite answer just email them and ask.

Well the main question about the license was that are there even two versions of the flv player where one can be bought for commercial use and the other for free without commercial use. That is how most of the flv players work but in this ones licenses I can't find anything disallowing or allowing commercial use. And there seems to only be on version (license wise) available and that is the free edition. So I am rather confused about that unmentioned
section and would you have any knowledge on what the general agreement for commercial use is? Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I am checking some of the other search engines but bing appears to be not so easy to find the back links with php do to a lack of feature. A discussion about how to find the bing back links without php can be found at http://www.ozzu.com/bing-forum/how-check-backlinks-bing-t100347.html
As for msn, I believe bing is the msn replacement. So it would be hard to find the back links for a search engine that no longer exists (msn-search).

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have just modified my tutorial script and the script is as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>My Blog</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<style type="text/css">
		body {
			font-family: arial,"arial black","sans serif";
			font-size: 12px;
		}
		#container {
			width: 500px;
		}
		.gray {
			background-color: #999;	
		}
		.light-gray {
			background-color: #ccc;
		}
		#container .entry {
			width: 500px;
			margin-top: 10px;
            margin-bottom: 5px;
			border: 1px #333 solid;
		}
		#container .entry .name {
			align:right;
            padding-right:5px;
            padding-left:5px;
            padding-top:5px;
            padding-bottom:0px;
        }
		#container .entry .content {
			align:left;
			padding-right:5px;
            padding-left:5px;
            padding-top:0px;
            padding-bottom:5px;
		}
        #previewbox {
            background-color: #ccc;
            align:left;
			padding:5px;
            width:490px;
            border: 1px #333 solid;
        }
	</style>
    <script type="text/javascript">
    function preview() {
        var data=document.getElementById('data').value;
        data=data.replace(/</g,"&lt;").replace(/>/g,"&gt;");
        document.getElementById('previewbox').innerHTML="<b>Preview</b><br>"+data;
        }
    </script>
</head>
<body bgcolor="#F4F4FF">
	<div id="container">
<?php

$str=file_get_contents('data.txt');
$data = array_chunk(explode("\r",trim($str)),2);
$str=strlen($str);
$i = 0;
$colors=array(0=>'gray',1=>'light-gray');
if ($str>4) {
    foreach( $data as $value ) {
        list ($name,$content)=$value;
        echo <<<ENTRY
		<div class="entry {$colors[$i]}">
			<div class="name">{$name}</div>
			<div class="content">{$content}</div>
		</div>
ENTRY;
        $i=(($i==1)?0:1);
        }
    }

if ( isset( $_POST['submit'] ) ) {
	$name = htmlentities( $_POST['name'],ENT_QUOTES );
	$entry = str_replace( array("\r\n","\r","\n"),'<br />',htmlentities( $_POST['data'],ENT_QUOTES ) );
	//can add error handling here, check for duplicate entries
    echo <<<ENTRY
		<div class="entry {$colors[$i]}">
			<div class="name">{$name}</div>
			<div class="content">{$entry}</div>
		</div>
ENTRY;
    if (strlen($entry)>4) {
        file_put_contents( 'data.txt',"\r".$name."\r".$entry,FILE_APPEND );
        }
    }

?>
		<div class="form">
			<form action="index.php" method="post">
                <table border=0 cellpadding=0 cellspacing=0 style="width:497px;">
                    <tr>
                        <td align="left">Entry:</td>
                        <td align="right">Name: <input type="text" name="name" />
                        <input type="button" value="Preview" onclick="javascript:preview();">
                        <input type="submit" value="Submit" name="submit"></td>
                    </tr>
                    <tr>
                        <td align="left" colspan=2><textarea cols="58" rows="7" style="width:497px;height:125px;" name="data" id="data"></textarea></td>
                    </tr>
                </table>
			</form>
		</div> …
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Thats the same one I told you about. Its the flv-player.net one.

No problems with it.

Could I just confirm that it is totally free even if I have advertisements on my site?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I just found a free flv player and can be previewed at
http://www.syntax.cwarn23.info/media/new.html
Are you able to spot any obvious bug that I didn't see. I know the full screen mode doesn't work but other than that is it all ok? Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I shall make some new code with yours being a guide of what features should be implemented (example: I see you added a name field for each poster). Also I'm not sure if this applies in your script but the file function can be a bit buggy because at the end of each array it appends the string "\r\n" which is the new line in the text file. I will post new code in the next 1 or 2 days on this thread to see if it is good enough to be aired.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Doh.
Version 10 of Flash is so incompatible with version 9 designed apps. With version 9 of Flash the bar is perfect but as soon as I go into Internet Explorer which has version 10 then the bar as you said is backwards. I guess I have another long journey finding a free flv player ahead of me.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Sorry, I might of sounded at bit harsh there. Its 6:13am here and I haven't been to bed yet.

I think you misunderstood part of my text. I actually like the negative feedback because then I know what to change for next time. So it is great that you posted so many questions and statements. Just for that I'll add + to your rep.

The rows and cols comment comes from the fact the w3 validator says they are required.

Ok, then I shall read the w3 documentation to see how they recommend using both css and html (cols/rows) usage.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I shall fix all of that in the next version of the tutorial and the only part of kkeith29's comment that I would disagree with is the following:

Your textarea is missing the cols and rows attributes which are required.

Well what I did there was I used css to set the box size instead of using cols and rows. So css took over that job making it more efficient. So I as I said, thanks for the comment on that and I have just discovered a new flv player which is free (others cost hundreds with a doggy license) and should do the job. You will be able the view the viewer I am going to use at
http://www.syntax.cwarn23.info/media/new.html
Wonder what other negative comments there will be on this video?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have just found two flv players and am asking which do you think is the better one? The links are as follows:
http://syntax.cwarn23.info/media/default.html
and
http://syntax.cwarn23.info/media/index.html
Do you think index.html is better or default.html? Also what do you think of the information quality from the video tutorial any one of the above two links?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You should set up the flash player locally, and test the video before uploading if you don't already...

The only problem with that is it loads instantly instead of buffered. Also the new flv is uploaded but the quality is rather poor. So I will try and double the quality and upload another new flv file but I have tested the first 18 minutes of the clip and it didn't blank out (the new flv). Also tonight I shall upload the new flv file with will be something like 270MB. The link to this current video without the blankout is at http://www.syntax.cwarn23.info/media/index.html

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Seems like it is almost a tie between Java and Python and I like Java too although I'm still a noob to Java. But with the Netbeans IDE the interface is easy with drag n drop elements which makes it a lot easier.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I am going to upload a new flv file tonight and hopefully that will solve this unknown problem and I have also changed the compression ratios so that although it is still about the same size it might load faster and will have more frames per second. I will try playing the video from start to finish for you.

[edit]
I just played the entire video and saw what you were talking about. The new video should be posted by some time tomorrow. Takes about 5 or 6 hours to upload.
[/edit]

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I got the buffer working but does anybody recommend a better flv player and if so what's the link to the download/docs?

[Edit]
After trying 4 flv players only 1 of them renders on the fly. Could this be because of all the compression I have done on the flv file? Would it be better if the flv file was less compressed? At the moment the video is on the follow specs
Visual Bitrate: 512
Audio Bitrate: 32
Frames per second: 24
Frame size: 640x480
[/Edit]
So do you think I should increase the visual bitrate for faster interpretation from flash?