| | |
Making tutorials - your wishlist
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
0
#91 Oct 16th, 2009
Thats the same one I told you about. Its the flv-player.net one.
No problems with it.
No problems with it.
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
0
#92 Oct 16th, 2009
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
0
#93 Oct 16th, 2009
I have just modified my tutorial script and the script is as follows:
Let me know if the above script should have extra changes? Also does the flv player mentioned in post #91 cost anything if I have advertisement in my site as it would make it classed as a commercial site?
php Syntax (Toggle Plain Text)
<!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,"<").replace(/>/g,">"); 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> <div id="previewbox" style="padding:5px;"></div> </div> </body> </html>
Last edited by cwarn23; Oct 16th, 2009 at 6:36 am.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
0
#94 Oct 18th, 2009
Sorry it took so long to respond.
The code looks good. There are still a few inline styles that need to be added the head css.
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.
The code looks good. There are still a few inline styles that need to be added the head css.
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.
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
0
#95 Oct 18th, 2009
•
•
•
•
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.
section and would you have any knowledge on what the general agreement for commercial use is? Thanks.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
1
#96 Oct 18th, 2009
Saw this on another forum when the same question was asked - don't know if it's relevant or if it is actually true:
•
•
•
•
The volume of dollars generated doesn't, in and of itself, make the site commercial or otherwise. The fact that it is being used in an attempt to generate revenue for a for-profit enterprise makes it commercial -- whether it is successful or not.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
0
#97 Oct 20th, 2009
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
http://syntax.cwarn23.info/media/new.html
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
0
#98 Oct 20th, 2009
The tutorial seems pretty good so far. The video stops early again at 10 mins. 32 secs so I didn't see it all.
The video quality needs to be improved. It was hard to read some of the text on screen.
Once you fix the quality and length issues I will view it again.
The video quality needs to be improved. It was hard to read some of the text on screen.
Once you fix the quality and length issues I will view it again.
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
0
#99 Oct 22nd, 2009
Here is the Video CMS I mentioned I would link.
http://phpmotion.com/
You might want to check it out.
http://phpmotion.com/
You might want to check it out.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
0
#100 Oct 23rd, 2009
•
•
•
•
Here is the Video CMS I mentioned I would link.
http://phpmotion.com/
You might want to check it out.
•
•
•
•
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.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
![]() |
Similar Threads
- my visual c++ examples blog (Show Off your Projects)
- Algorithm to find distance to the closest? (Computer Science)
- Decent RPG tutorials (or even books) (Game Development)
- help with making game with Gamemaker 7 (Game Development)
- Creating a good game (Game Development)
- where can i find php tutorials (PHP)
- Making a distro (Getting Started and Choosing a Distro)
- Tutorials, brushes, fonts (Graphics and Multimedia)
- Tutorials for Linux (*nix Software)
Other Threads in the PHP Forum
- Previous Thread: Count Files in Server
- Next Thread: Show Data from SQL Database Using PHP
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend






