I need to create a custom CMS based system. In it, I will need too do the following:
Each individual will have their own user name and password, once logged in they are presented with their own personal page.
Here, each user will have eight pictures displayed, which is selected by an admin
The data is sensitive, so security is a big is...
Hi There,
I have started a new project at work today and a fellow developer has asked me to look into changing the way I work and implementing objects into my views to I can do checks within my view using the object.
To me this seems wrong, as surely this is the work of the Model and/or controller? Or am I wrong? I assume he is wanting...
I have created .htaccess file.
The original URL is:
http://example.com/folder/page.php?page=1&ipp=All&link=view_link
Redirected :
http://example.com/folder/page/1/All/link.html
Redirecting works correctly.But,Now the problem is ,
it will be redirected only if i give the rewrited URL manually.
But it should do automatically...
Hello,
I'd like to go slightly deeper into Smarty caching, so I have some simple questions...
To manipulate cache invalidation I want to know what directory Smarty is storing it's cache in. For example, all cached pages related to user_id=123 I want to store at cache/users/123/. Where cache is smarty caching dir. How can I tell smarty...
$string = 'Some string';
$pos = 5;
...??...
$begging // == 'Some s';
$end // == 'tring';
What is the best way to separate string in two by given position?
...
I'm using the PHP native mail() function to send HTML emails and have a formatting problem in the users most common email client - Outlook 2007 (in addition to some other email clients) - all the html tags are exposed so it looks like gibberish to a non-web-developer.
I'm sending HTML email the same way that the PHP manual demos it. Exa...
Hello
I have the following code: (query added)
$weight_table = mysql_query ("SELECT * FROM ".$prefix."weight ORDER BY wlimit DESC");
foreach ($weight as $area => $weight) {
echo $weight;
while ($weight_row = mysql_fetch_array($weight_table)) {
print_r($weight_row);
$limit = $weight_row['wlim...
$var = '<img src="http://site.com/some_directory/filename.png"/>';
png can be replaced with any extension.
How to cut everything, except "filename" part?
And write into new variable. In this case:
$name = 'filename';
One more example:
$var = '<img src="http://site.com/directory/subdirectory/Pakahontos.txt"/>';
$name = 'Paka...
Possible Duplicate:
MySQL or PHP is appending a  whenever the £ is used
I get the letter  when I send email using php mail...
it appear before £ sign..
can anyone help ?
...
Hi,
I'm searching for a Objective-C method like PHP's explode function:
$string = "Helle#world#!";
$delimiter = "#";
$array = explode ( $delimiter, $string);
Result: $array = {"Hello", "world", "!"}
Thanks,
Andreas
...
So to start, I have an array of XML files. These files need to be iterated through and checked for certain 'unrecognized' hexadecimal characters and replaced with normal UTF-8 text, or some kind of placeholder.
I've tried iterating through the files and replacing the hex codes using both str_replace and preg_replace with no luck. My ul...
i'm trying to use mysqli to display data, but it displays nothing.
what is wrong with my code?
php class:
/* the database object */
private $_db;
public function __construct($db=NULL)
{
if(is_object($db))
{
$this->_db = $db;
}
else
{
...
Hi,
I'm trying to post some information from a from do so some calculations, however for some reason that data isn't posting. I do a var_dump after I get the info, and it still is blank. Any help would be great.
My Controller:
<?php
class Timevalueshow extends Controller{
function index(){
$this->load->view('Timevaluesho...
I have a table like this:
id| name | attendence
1 | Naveed| 1
2 | Naveed| 1
3 | Adil | 1
4 | Adil | 1
I use following query:
SELECT * FROM `test` WHERE `attendence`=1 GROUP BY name
The result with above query:
id| name | attendence
3 | Adil | 1
1 | Naveed | 1
Question:
Above result group rows by name but show first row f...
Currently I'm using PhpThumb to save images:
http://phpthumb.gxdlabs.com/
I already get a plugin to put watermarks:
http://phpthumb.gxdlabs.com/forums/topic/watermark-plugin#post-115
Now, I would like to do a plugin to save images like that:
The example can be just with php. Which is the best way to define a specific size and then p...
I'm trying to write an html mail sender but I have a problem, it shows slashes.
Part of my code:
<?php
$sender = $_REQUEST["sender"];
$to = $_REQUEST["to"];
$html = $_REQUEST["html"];
$send = $_REQUEST["send"];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=' . $ce . "\r\n";
$headers .= 'To: '...
Hello!
I have the folloring array structure:
$list = array();
$element1 = array('start' => '10', 'end' => '15');
$element2 = array('start' => '1', 'end' => '5');
$list[] = $element1;
$list[] = $element2;
Every element in start and end are numeric only.
I would like to sort $list by start values. How can I do that effectivly?
...
Hi everyone,
I am using uploadify in a project with the following script:
$(document).ready(function() {
$("#uploadify").uploadify({
'uploader': '_assets/flash/uploadify.swf',
'script': 'uploadify.php',
'cancelImg': '_assets/images/nav/cancel.png',
'folder': 'uploads',
'queueID': 'fileQueue'...
Hello-
I am coding a wordpress theme for a magazine. One aspect of the site, is that the homepage is static, and it features the current issue of the magazine in one area of the homepage. I need help figuring out the most practical way of replacing content for the most recent issue on the homepage.
Basically, every month, an image, as...
Hello,
I would like to check if my array has any duplicates and return the duplicated values in an array.
I want this to be as efficient as possible.
Example :$array = array(1,2,2,4,5)
function returndup($array) should return 2 ;
if array is array(1,2,1,2,5);
it should return an array with 1,2
Also the initial array is always 5 posit...