string strtoupper
( string $string
)
Example:
$filename=$_FILES["fileToUpload"]["name"];
$ext = substr(strrchr($filename, "."), 1);
echo "<br>File Type is: ".strtoupper($ext...
12:17:00 PM
Achappan Mahalingam
No comments
When you convert NULL into String it will always return a empty valu...
12:09:00 PM
Achappan Mahalingam
1 comment

<span></span> as an in-line element and a <div></div> as a block level element.
While a span allows you to separate things from the
other elements around them on a page or within a document, it does not
cause a line break. This is why it is perfect for in-line styling, like
coloring a single word in a sentence to draw more attention to it.
But...
3:38:00 PM
Achappan Mahalingam
No comments
SQL Injection is possible to alters the existing SQL commands to expose hidden data or to override the valuable ones, or even to execute dangerous system level commands on the database host. This is accomplished by the application taking user input ($_GET and $_POST) and combining it with static parameters to build an SQL query....
12:15:00 PM
Achappan Mahalingam
No comments
PHP does not support unsigned Integers and Integer size can be determined using
the constant PHP_INT_SIZE, and maximum value using the
constant PHP_INT_MA...
1:56:00 PM
Achappan Mahalingam
No comments
for ($col = 0; $col < $highestColumnIndex; ++ $col) {
$cell = $worksheet->getCellByColumnAndRow($col, $row);
$val = $cell->getValue();
echo "Print Value is: ".$VAL;
}
OUTPUT:
Notice: Undefined variable: VAL in C:\xampp\htdocs\trunk_release_cycle04\application\importstatus.php on line 28
SOLUTION:
Variable name in PHP is case-sensitive. Replace $VAL into $...
11:33:00 AM
Achappan Mahalingam
No comments
ProjectCurrent stable version
Agavi1.0
Aiki Framework0.9.1
AppFlower1.3
Ayoola Framework1.4.1
CakePHP2.6.1
Cgiapp1.0
ClanCatsFramework2.0.6
CodeIgniter2.2.1
Drupal7.34
Fat-Free3.4.0
FuelPHP1.7.2
Hazaar MVC1.3
Joomla3.3.6
Kajona4.5
Laravel4.2.16
Lithium0.11
Nette Framework2.2.7
Phalcon1.3.4
PHPixie3
PRADO3.2.4
Qcodo0.4.22
Seagull1.0.4
Silex1.2.3
Symfony2.6.4
TYPO3 Flow2.3.1
Xyster Framework02 Build 01
Yii2.0.2
Zend Framework2.3.4...
11:26:00 AM
Achappan Mahalingam
No comments
Laravel is a free, open source PHP web
application framework, designed for the development of
model–view–controller (MVC) web applications.
Features:
Laravel uses Composer as a dependency manager to add framework-agnostic and Laravel-specific PHP packages available from the Packagist repository.
Eloquent ORM (object-relational mapping) is an advanced PHP implementation of the active record pattern, providing at the same time internal methods...
7:21:00 PM
Achappan Mahalingam
No comments
move_uploaded_file
(string $filename
, string $destination
)
Example:
<?php
if( isset($_POST['submit']) )
{
$uploads_dir = '/uploads';
foreach ($_FILES["fileToUpload"]["error"] as $key => $error)
{
if ($error == UPLOAD_ERR_OK)
{
$tmp_name = $_FILES["fileToUpload"]["tmp_name"][$key];
...
7:10:00 PM
Achappan Mahalingam
No comments
$filename=$_FILES['fileToUpload']['name'];
Note: "fileToUpload" will be taken from name of the input type '<input type="file" name="fileToUpload" id="fileToUpload">...
2:22:00 PM
Achappan Mahalingam
No comments
The behavior of an automatic conversion to array is currently
undefined in PHP. Because PHP supports indexing into strings via offsets
using the same syntax as array indexing.
E.g.,
<?php
$a = 'car'; // $a is a string
$a[0] = 'b'; // $a is still a string
echo $a; // bar&...
2:12:00 PM
Achappan Mahalingam
No comments
When you declare a variable, there is no need to mention a specific type explicitly. PHP will take care of the automatic type conversion implicitly. That is to say, if you
assign a string value to variable var,
var becomes a string. If you then assign an
integer value to var, it becomes an
integer.
<?php
$var = "0"; ...
4:57:00 PM
Achappan Mahalingam
No comments
The value FALSE is not a constant for the number 0, it is a boolean value that indicates FALSE. The value TRUE is also not a constant for 1, it is a special boolean value that indicates TRUE. It just happens to cast to integer 1 when you print it or use it in an expression, but it's not the same as a constant for the integer value 1 and you shouldn't use it as one.
A boolean expresses a truth value. It does not say "a boolean expresses...
Subscribe to:
Posts (Atom)