Hi, I'm working on creating a callback function in codeigniter to see if a certain record exists in the database, and if it does it'd like it to return a failure.
In the controller the relevent code is:
function firstname_check($str)
{
if($this->home_model->find_username($str)) return false;
true;
}
Then in the model I check th...
Hi there,
I've got an issue with inserting/reading utf8 content from a db. All verifications I'm doing seem to point to the fact that the content in my DB should be utf8 encoded, however it seems to be latin encoded. The data are initially imported from a PHP script from the CLI.
Configuration:
Zend Framework Version: 1.10.5
mysql-ser...
Running Unix and php5.
I have an upload form that allows people to upload any file format at any size. As of now when you try to upload it fails most of the time when I try to upload a couple mb file. However if I upload a small text file it is fine. Also I have read about issues of timing out with large files. Is there something I can ...
hey all im new here and kind of new to php and i need to create my html tage in alph order by App_Last any help would be great thanks
$query1="SELECT App_Last, App_First
FROM applicant
WHERE (App_Last IS NOT NULL OR App_First IS NOT NULL) AND applicationID='".$r['0']."'
ORDER BY App_First"; echo $query1;
$result1 = mysql_db_...
I have a website built on ZF. I don't know why but is lagging as hell. Loading simple page tooks 4s. Time is going down when I disable layout. When rendering is enabled it's working normally. So I can use action views but I can't use layouts. Can it be someting bad with layout? Or I'm not setting up layout properly?
Site: http://zgarnij...
I have a date variable with the format
2008 12 29
to have it correctly display from within my database app I need the format to be
2008-12-29
Is there a way to simply add the - into the string or replace the spaces with -?
I am using PHP and the date is stored in $release_date
...
Hey, all. I am building an application in Flex Builder 3. Yes, I know that it has an auto-magic feature to build datasheet, but that will not work. I see many Flex controls, such as combo box, can take an array as a data source.
My question, therefore, is (1) How do I send the request from my action script to my PHP form to request a r...
I'm working on the Doctrine tutorial at http://www.Doctrine-project.org/ and I receive a fatal error when I try to run my generate.php script which makes my models and makes tables in the database:
Fatal error: Class 'BaseCharity' not found in ...\models\Charity.php on line 14
generate.php:
require_once('bootstrap.php');
Doctrine_Cor...
Hello,
I have an piece of hardware that returns tempature data etc. I am not sure what format this is though. I would like to parse it with php any suggestions on the best or easiest way to parse the data. I will be storing the data in a mysql database and this data will be inserted one every 30 seconds.
Below is the data:
{name:"Envi...
Hey,
I was wondering, is there any easy way to have the html generated by codeigniter be more structured and more readable? For example, if I do this:
echo form_open('do/send',array("id" => "contact_form"));
echo form_label("Name:", "name");
echo form_input(array("name" => "name"));
echo form_submit("submit", "Submit");
echo form...
I'm a PHP developer. Let's just get that out of the way now. But Hadoop – and Mahout in particular – have piqued my interest. I'm ready to take the dive into Java in order to use them.
So from people experience enough to know, just how much Java will I need to be able to use these effectively? From what I've seen, programming mappers/re...
Hi There!
Does anybody know how to make news feeds appear as from Facebook Page owner?
IE. I have few page admins on FB, and I have Facebook Integration on my website (PHP), and when someone posting announcements on Facebook thru the website all that feeds are appearing as personal feeds.
Thanks!
...
I have a batch file that displays a list of registry keys.
10000
20000
30000
40000
..etc.
Using PHP, I can display the output of the batch file:
echo exec('file.bat');
This only shows me 40000 though, not the other three entries. How can I see everything?
...
Hey Guys,
I am creating an iphone app in which I have to POST some data to my PHP server. For example I
do a HTTP request like this:
http:example.com/append.php?data1=X&data2=Y&token=Z
X and Y are my known data and I want to calculate Z with some algorithm that takes X and Y are inputs and produce Z.
So when I receive X,Y,Z in the s...
I have this code to copy an html file and rename it. However it doesn't do this, and I have tried tons of variations of the code but still nothing. I'm probably just overlooking something, or I forgot something.
$file = 'example.html';
$newfile = '$bla.html;
Any ideas on how to fix this? Or a different code? Thanks in advance!
...
Everyone knows that we should always use DOM techniques instead of regexes to extract content from HTML, but I get the feeling that I can never trust the SimpleXML extension or similar ones.
I'm coding a OpenID implementation right now, and I tried using SimpleXML to do the HTML discovery - but my very first test (with alixaxel.myopenid...
Hello,
I have a php script on my site (users_online.php) that shows how many people are connected to my server whenever the script is executed and I would like to display and update this information on my front page using javascript / ajax without refreshing the page is this possible ?
Thanks,
Kelly
...
So I want my users to manage the site content themselves. For example when a customer/visitor is on the site, they see the content (each page content or paragraph stored in a database). If an employee is on the site, they should be able to login (or LDAP integrate) and for every <p> or <div> they should see a little edit icon next to it...
Looking for a variable to use to differentiate between sites in a Wordpress 3.0 Multisite installation. I saw the function "is_multisite();" in some blogs, but not sure if its supported yet. I have one theme I'd like to use on all the Network's sites, but need a way to use conditions between them.
Thanks for the help.
...
Sorry if this has been asked already, I've did a google search and couldn't find the answer.
I am new to jquery and I am wondering how to protect my backend pages from being loaded by external users?
For example, if my jquery .post or .get calls "delete-post.php" I only want the jquery to be able to load that page. I don't want some J...