I'm trying to use a View helper inside a view.
I put
echo $this->formCheckbox('foo');
in the view, but it errors out and tells me FormCheckbox.php /application/modules/user/views/helpers/FormCheckbox.php can't be found. Why isn't it loading Zend_View_Helper_FormCheckbox in /Zend/View/Helper? The manual states
The default helper p...
Hi, I have an application that sends verification emails to people account email address, but sometimes it goes into their spam filter, after an analysis on the email we found that one of the reasons is because of having no user agent name.
is there a way to set this using php's default email sender?
thanks
...
Hello Stackers...
I want to start using phpDocumentor but I'm finding it hard going - the web interface is not playing nicely and I can't get it to parse the example files
I probably haven't set it up right and I would like a nice step-by-step tutorial (i.e. NOT THIS ONE) to check where I've gone wrong and hopefully get it parsing som...
hello,
im tryingto code a script to do dynamic transcoding of video and audio (likely just audio for now) and streaming to mobile devices, currently im using the script posted elsewhere on here (http://stackoverflow.com/questions/1608571/how-do-you-convert-audio-files-on-the-fly-to-the-browser) but this seemsto have problems as i do not ...
Let me start by saying that the problem I have looks totally weird to me!
On a remote server, I have nginx as the web server and PHP running as a Fast-CGI module. I also host my SVN repository on the same server. Now I have a working copy of the repo on my local computer. I make changes to them, and commit to the repo on my remote serve...
Anybody have any idea how I might go about doing something like this.
I've got a textarea setup to allow users to edit page content. the content is then stored in a database and is retrieved on the frontend by php within an html template. something like:
<html>
yada yada...
<?php
echo get_page_contents_by_id($_GET['id']);
?>
yada yada....
I have a function that includes another file like so
// some function
function SomeFunction()
{
$someData = 'SomeData';
include_once('some_file.php');
}
// some_file.php
<?php echo $someData; ?>
How would I get this to work where the include file can use the variables from the calling function? I will be using some output buffe...
I am having trouble understanding the format required by the apc.filters directive in PHP APC configuration. (particularly for more than one patterns)
The manual says
"A comma-separated list of POSIX extended regular expressions."
Let's say i don't want to cache two files namely brooklyn.php and boston.php
I put the following entry:...
Free, portable, all included, all in one, (opensource is + ) php server? I have a USB FLASH 16gb card. I want to install on to it some kind of PHP server - some programm.exe which i could run on different computers without installing - call some localhost/phpserver and get my php scripts running.
So where to go to get such thing?
...
Hiya,
I have a php shell script that downloads a large file, it would be a bit of a luxury to be able to see the progress of the download in shell while it's happening, anyone have any idea how this can be achieved (or at least point me in the right direction!)
Thanks!
...
I am running this DB call to get me multi-dimensional array
I am trying to get the keys of each but when I try it comes up blank or as array.
$root_array = array();
$sites = $this->sites($member_id);
foreach ($sites as $site){
$records = $this->db->select('p.name as place_name, p.id as place_id,p.active a...
I'm using the Zend Framework and I'm about to hack up some of my controller code to do something that seems like there should be a pattern for already.
Currently when I only have one form, the form's action points back to the same action and controller as the one that generated the page. The controller's action function then verifies th...
Hey I have a program that will allow me to find and display specific file types, but it won't work for files located in a network drive.
How do I get around this problem? here's the code:
<?php
clearstatcache();
$sourcepath = "C:/Inetpub/wwwroot/IMS/n_test";
// Replace \ by / and remove the final / if any
$root = ereg_replace( "...
Hello,
I want to display a data table when i click a button in the same php page. The button is used in a form with other inputs such as some text. The data table is hide by default. And it get the values from the form, and then make a query in database and display them in it.
How can i achieve the function of display/hide ?
Do you ...
I need some help in converting my script from using mysql to mysqli I have been trying for ever to do this and keep getting errors I have read articles on how to do this and still can get it to work.
Here is the original working script below.
<?php
require_once ('./mysqli_connect.php'); // Connect to the db.
if (isset($_POST['submitt...
I'm sure there is a better way I could be doing this. I have three main tables with large amounts of data to run through:
records_main, sales, and appointments. Each with close to 20,000 records.
I need to join these three tables as well as a few others that arn't two large.
$SQL = "SELECT DISTINCT appointments.id AS aid, appointme...
What's the simplest way for me, in PHP, to:
Retrieve a file from an external URL (http://test.com/thisfile)
If successful, delete local file /root/xml/test.xml
Rename downloaded file to test.xml
Write new file to /root/xml/ folder
This will be a private script, so security or error handling are not important concerns.
...
Hi...
I need help because I don't know about web services using php
somebody help me
I need to create a web services with php and I need some any reference (free)
Thanks for your help
...
I have been trying to convert my script from mysql to mysqli and during the process I got the following error listed below.
Warning: mysqli_query() expects parameter 1 to be mysqli, string given in on line 41
Warning: mysqli_error() expects exactly 1 parameter, 0 given in on line 43
Here is the full code below.
<?php
require_once (...
I have the following XML file, the file is rather large and i haven't been able to get simplexml to open and read the file so i'm trying XMLREADER with no success in php
<?xml version="1.0" encoding="ISO-8859-1"?>
<products>
<last_updated>2009-11-30 13:52:40</last_updated>
<product>
<element_1>foo</element_1>
<element_...