Which one provides more secuity, And mostly used in companies.Please Suggest 1.laravel 2.Zend 3.YII

Member Avatar
Member Avatar
+0 forum 4

I am using codeigniter if ($this->form_validation->run() ) always returns false. please help me out with this Here is my controller and view page as shown bellow This is controller admin.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { public function index() { $this->login(); } public function login() { //echo 'This is admin controller login function'; $this->load->view('admin/admin_login'); } public function login_validation() { $this->load->helper('form'); $this->load->library('form_validation'); $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email|xss_clean'); $this->form_validation->set_rules('password', 'Password', 'trim|required|sha1'); $email = $this->input->post('email'); $password = $this->input->post('password'); print $password . $email; if ($this->form_validation->run() == TRUE) { //redirect('admin/profile'); $this->load->view('success'); } else { $this->load->view('errorrr'); } } } admin_login.php is …

Member Avatar
Member Avatar
+0 forum 2

$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." $descrr = stripslashes($_POST['descr']); $insert = mysql_query("insert into …

Member Avatar
Member Avatar
+0 forum 2

$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." $descrr = stripslashes($_POST['descr']); $insert = mysql_query("insert into …

Member Avatar
Member Avatar
+0 forum 2

<?php include('db.php'); $query=mysqli_query($con,"select * from reg"); while($row=mysqli_fetch_array($query)) { echo $id; echo $name; } ?> i want to display it as follows: 1.chaitanya 2.swati 3.rena 4.geeta

Member Avatar
Member Avatar
+0 forum 5

<?php $query=mysqli_query($con,"select * from reg where user_id = '".$_GET['id']."' "); $row=mysqli_fetch_array($query); ?> <select name="sex" id="opt2"> <option value="">select</option> <option value="Male" selected="selected">Male</option> <option value="Female" selected="selected">Female</option> </select>

Member Avatar
Member Avatar
+0 forum 4

I have a (2gb)txt file which has thousands of queries, i need to read those file queries and split those queries into n no. of txt files..and save them in a folder... can any one post an example or guide

Member Avatar
Member Avatar
+0 forum 11

length should be [2-10], should accept [a-zA-z0-9],accept one space in between characters. eg: timesheet 2 shanti chakra shantichakra shantichakra2

Member Avatar
Member Avatar
+0 forum 11

i want to display numbers only from 01 to 12 How to write a loop <?php for($a=0; $a<10; $a++) { for($b=0; $b<10; $b++) { echo $a.$b.", "; } } ?>

Member Avatar
Member Avatar
+0 forum 2

can we make desktop application with php??

Member Avatar
Member Avatar
+0 forum 5

error ------->Notice: Undefined variable: result in C:\wamp\www\ <?php include(db.php); ?> <table> <tr> <td>Select Project:*</td> <td> <select name="project_id" id="project_id"> <?php echo project_name($con); ?> </select> </td></tr> </table> function project_name($con){ $select = mysqli_query($con,"select projects.project_id, projects.project_name, user_proj.user_id, user_proj.project_id from projects projects, users_projects user_proj where projects.project_id = user_proj.project_id and user_proj.user_id ='".$_SESSION['user_id']."'"); while($row = mysqli_fetch_array($select)){ $result .='<option value="'.$row['project_id'].'">'.$row['project_name'].'</option>'; } return $result; }

Member Avatar
Member Avatar
+0 forum 2

My resume is already present in resume folder with following formate eg: 3chaitanya.doc = > [session_id+session_firstname] i need to attach it to email without browsing it <?php session_start(); include('db.php'); $to = "company@gmail.com"; $fromEmail = $_SESSION['user_email']; $fromName = "Job tile"; $subject = "Applying for job"; $message = "some text"; //path of my resume is $path ="C:\wamp\www\jobportal-deb\resume\S_SESSION['user_id'].S_SESSION['first_name']"; /* GET File Variables */ $tmpName = $_FILES['attachment']['tmp_name']; $fileType = $_FILES['attachment']['type']; $fileName = $_FILES['attachment']['name']; echo $tmpName.'<br/>'; echo $fileType.'<br/>'; echo $fileName.'<br/>'; /* Start of headers */ $headers = "From: $fromName"; if (file($tmpName)) { /* Reading file ('rb' = read binary) */ $file = fopen($tmpName,'rb'); $data = …

Member Avatar
Member Avatar
+0 forum 3

Need continuous marquee scroll without gaps after the last line of marquee.

Member Avatar
Member Avatar
+0 forum 3

How to disable typing in datepicker field

Member Avatar
Member Avatar
+0 forum 3

where to get sql dump file for countries,cities and states

Member Avatar
Member Avatar
+0 forum 3

i may select one or more category.... <?php include('db.php'); $sql = mysqli_query("select * from brandname where category = 'cloths' "); while($row = mysqli_fetch_array($sql)){ echo $row['brandname']; } ?> <form action="checkbox.php" method="post"> Bags:<input type="checkbox" name="bags" value="bags"><br/> Cloths:<input type="checkbox" name="cloths" value="cloths"><br/> Bikes:<input type="checkbox" name="bike" value="bike"><br/> Shoes:<input type="checkbox" name="shoes" value="shoes"><br/> </form> <div id="load"> </div>

Member Avatar
Member Avatar
+0 forum 2

how to refresh advertisements after every 2 sec in website using php

Member Avatar
Member Avatar
+0 forum 6

The End.