Relative Content

Tag Archive for php

Help with DB Structure, vOD site

I have a video on demand style site that hosts series of videos under different modules. However with the way I have designed the database it is proving to be very slow. I have asked this question before and someone suggested indexing, but i cannot seem to get my head around it. But I would like someone to help with the structure of the database here to see if it can be improved. The core table is Videos:

What is the purpose of returning $this in PHP

function select($select = ‘*’) { if( is_string($select) ) { $select = explode(‘,’, $select) ; } foreach($select as $s) { $s = trim($s) ; if($s != ”) { $this->aSelect[] = $s ; } } return $this ; } In PHP, what is meant by return $this. php 3 There are many scenarios in which one might […]

How to Properly Make use of Codeigniter’s HMVC

I have been having problems wrapping my brain around how to properly utilize the modular extension for Codeigniter. From what I understand, modules should be entirely independent of one another so I can work on one module and not have to worry about what module my teammate is working on. I am building a frontend and a backend to my site, and am having confusion about how I should structure my applications.

What scripting languages can be embedded within HTML?

Most of scripting languages (like Pythong, Perl, etc) generates the whole HTMLfile. However, PHP code can be embedded within html codes. PHP will process only code between <?php ?> tags and ignore other lines.