So I'm starting up in Zend framework and looking to implement a site-wide "User" session.... something I can easily access from ALL modules/controllers in the application.
I'm like, should I make a new namespace in the library and extend the controller, like:
class MYCUSTOMLIB_Controller_Action extends Zend_Controller_Action
{
prot...
I basically have to do a update of a record. I have a set of controls like textbox, list box, radio button etc. Then i have a button on click of which i need to carry all the updated data into mysql database with a ajax request without page refresh.
I am using the php with codeigniter as my serverside code. On client side i am able to ...
I am trying to create a category menu with sub categories. I have the following MySQL table:
--
-- Table structure for table `categories`
--
CREATE TABLE IF NOT EXISTS `categories` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(1000) NOT NULL,
`slug` varchar(1000) NOT NULL,
`parent` int(11) NOT NULL,
`type` varchar(25...
Ubuntu server, PHP 5.3, connected via Samba to Windows server share.
I am using file_exists() to check for availability of file on Windows machine. It returns false, although the filepath does exist. Meanwhile, file_get_contents() on the exact same filepath works fine.
I'm wondering if it's a permission issue, since I'm having trouble ...
Thanks for looking on this problem.
I have a page that is totally valid page, and there is a PHP loop that brings in a <li> for each entry of the table.
When i check this page locally it looks 100% OK, but when veiwing the page online the left side bar (which creates this markup is broken randomly mixing <div>'s and <li>'s and i have n...
convert this: $300
to this : 300
can't do it with intval() or (int)
typecasting
if the non-numerical character is
suffixed (300$), both works and
returns 300
if it is prefixed it returns 0
the non-numerical character can be anything other than the "$"(i.e. "askldjflksdjflsd")
Please help
EDIT : list items are not requirements, they ...
Ok I'm quite new at logins what not so bare with me here lol but I gota learn so don't discourage me.
I tried this so far
<?php
$error = "";
$conn = pg_connect("host=localhost dbname=brittains_db user=brittains password=XXXX" );
$sql = "SELECT * FROM logins";
$result = pg_query($conn, $sql);
if($_SERVER["REQUEST_METHOD"] == "GET...
i have create a form (so it's PHP and HTML hybrid-code). it has ability to send '$_POST'. And when i click it, it work perfectly on sending and displaying input.
But there's something happening when i click ctrl+r in firefox for represhing the page. I got this confim dialog : "To display this page, Firefox must send information that wi...
Hi
I have the following PHP code doing a very simple select into a table.
$statement = $db->prepare("SELECT * FROM account WHERE fbid = :fbid");
$statement->bindParam(":fbid",$uid, PDO::PARAM_STR,45);
$out = $statement->execute();
print_r($out) // 1;
//$out = $statement->execute(array(':fbid' => $uid)); // also doesn't work
$row = $sta...
the grid appears properly on template's first loading. But when you click the paging button to load flooders.php thru list_result1() only the paging buttons will appear. I already tested the flooders.php outside the template and it works properly.
what seems to be the problem? and what are the tools that i can use to see if the javascr...
I have the following function I modified based off someone elses function:
function showCombinations($string, $nameString, $linkParts, $i){
$wordDivider = "/"; //the divider between the words/values
if ($i >= count($linkParts)){
echo "<a href='".trim($string)."'>".trim($nameString)."</a>, ...
i am using prototype.js
...
I'm not sure how to describe this, but basically I have a PHP class file:
class HelloHello {
public function getSomeData($input_parameter){
// code to retrieve data from the database
}
public function deleteSomeData($input_parameter){
// code to delete data from the database
}
}
This class is on the server and ...
i am using facebox (a jquery modal plug-in) and tinymce for my textboxes. however when i open any modal windows, i cannot type anything within the tinymce input box.
any help?
<script type="text/javascript" src="resources/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init(...
I want to create a PHP app that can send text messages. There are different gateways for different email carriers. Is there any library I could use that would be able to lookup or detect which gateway to use just by passing the phone number into it? This way I can take whatever email address I get out and use PHP's email functions to sen...
Hey guys!
I'm having trouble figuring out how to exclude /public/bin from this rewrite rule
RewriteCond %{REQUEST_URI} !firerift.php
RewriteRule ^(.*)$ firerift.php/$1 [L,QSA,NC]
Any help would be appreciated.
...
can anyone suggest an easy method to convert date and time to different timezones in php
...
how do I get the user's account information (at least his Gmail address) after the authentication has passed?
...
i still confused on this subject And ask for any help and reference on how to check visitor IP address via PHP.
i'm know it seem lazy to ask something before attempt to code something to show. but right now, i also googling to find it. hopefully someone can give general broad answer or some link to read.
btw, what to be consider when ...
Hi,
I am using Kohana 3.0.3.
I have been searching Auth module without ORM support,for couple of days. But didn't get any useful information.
Could you please suggest and/or tutorial something here?
...