Hi guys,
So I had a question on general organization of code for the Zend framework with regard to the layout.
My layout is basically this:
(LAYOUT.PHTML)
<div id='header'>
<?= $this->Layout()->header ?>
</div>
<div id='main'>
<?= $this->Layout()->main ?>
</div>
<div id='footer'>
<?= $this->Layout()->footer ?>
</div>
and so on an...
PHP v5.2.8
Windows Server 2003 SP2 (IIS 6, I believe, though I can't find a version # anywhere in IIS manager)
The full error is:
"CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers."
I installed the WAMP stack from bitnami.org, and the PHP pages work completely fine when visiting via...
Basically my dilemma is this. I have a list of x servers that host files. There is another server, that hosts the site's mysql db and application. When a file is uploaded (to the frontend server), the application checks to see which server has the most free space on it, and moves the file there. This works fine if you started with 2+ em...
Hi, I'm new to Drupal and I'd like to get this quickly implemented, or at least know if it is possible and how to proceed.
This is the situation:
3 types of users (roles): SuperAdmin, GroupAdmin and user.
Users are just users who can use the whole site.
GroupAdmin has the ability to create users associated to his Group. They can admini...
I've used VS.PHP (http://www.jcxsoftware.com/vs.php) for years with great success, but I've run out of licensing on all my machines and I want to have a unified development environment for my PHP programming.
Granted it's only $99 and I enjoy paying for code that helps me out, but I have too many home machines and would rather spend tha...
I need to make a timestamp to put into MySQL. The user is submitting a number (of weeks) I need to add that many weeks to today's date. What I am trying to do is calculate an end date of an ad that the user is submitting.
Any suggestions on how to do this? Thanks!
...
I am an ASP.NET/C# developer by trade but am looking to take on some PHP/MySQL work on the side. Can anyone recommend some good resources for me? Websites and books would be appreciated.
I looked at this question but didn't find the answers particularly helpful. More specifically, I'm looking for PHP equivalents of what I have been usin...
I am trying to get the div recentactivity to only refresh when Remove is clicked
< a href='#' onclick=\"javascript:remove_wall('$id')\">Remove
but when every i click on the link it keeps trying to refresh.
when the mouse go's over the tr a link comes up saying remove here is the code for that.
$(function() {
$("tr").hover(function() ...
My PHP app has an import script that can import records.
At the moment, it is importing from a CSV file. It is reading each line of the CSV file, one line at a time using fgetcsv, and for each line it is doing a lot of processing on that record, including database queries, and then moving on to the next line. It shouldn't need to keep...
I am seeing UTC date and times in all of my date/time fields on my server, I followed it all back to the timezone setup on my webserver being in UTC time... my question is how can I make these into the local users date and time? All the times are stored in UTC on the MySQL server.
I have the users City, Region (Prov/State) and Country....
I'm on a Linux system where I am not allowed to use the 'ping' application (ping: icmp open socket: Operation not permitted). However, the script that I am writing (PHP, but I can use an exec() call to any script/program if needed) needs to determine if a host is 'alive'. How can I go about this without using 'ping'?
...
I would like to run ffmpeg from PHP for video encoding purposes.
I was thinking of using the exec or passthru commands. However, I have been warned that enabling these functions is a security risk. In the words of my support staff:
The directive 'disable_functions' is used to disable any functions that allow the execution of system ...
I've created a page using JQuery and Ajax that helps a user filter through a series of options and ultimately displays a filtered list of products meeting their specification.
This all works fine.
The problem i'm having is the "Back Button" problem with Ajax, i know how to get around this with anchors on static content (i.e. Filter.php...
There are no examples of use anywhere, or even an explanation on how to use it.
...
How do I fix the following error.
Fatal error: Call to undefined function language_attributes()
...
Is there difference between caching PHP objects on disk rather than not? If cached, objects would only be created once for ALL the site visitors, and if not, they will be created once for every visitor. Is there a performance difference for this or would I be wasting time doing this?
Basically, when it comes down to it, the main questio...
Hi,
In my Cakephp code i am having the following code. If i click on the image delete it moves to the link in href.
in the href i dont know how to give my php value .I tried with like below But it didnt works ..
<a href="http://localhost/cake_1.2.1.8004/index.php/forms/delete/"<?php echo $r['Form']['id'];?> >
<img borde...
If I have an array that looks like this:
$str = '';
if( $_POST['first'] )
$str = $_POST['first'];
if( $_POST['second'] )
$str .= ($str != '' ? ',' : '') . $_POST['second'];
if( $_POST['third'] )
$str .= ($str != '' ? ',' : '') . $_POST['third'];
if( $_POST['fourth'] )
$str .= ($str != '' ? ',' : '') . $_POST['second'];
$...
Hello,
I want the output of the code below to be "$entry does not exist" if there is no $entry value anywhere under the "site" column in the database. However, this is not happening when I enter in a value for $entry that I know is not under the "site" column in the database. Is there something wrong with my if statement?
Thanks in a...
Hi,
I am using cakephp for form designing application.
In my code
<?php echo $html->link('Delete', array('action' => 'deleteForm', 'id' => $r['Form']['id']), null, 'Are you sure?' )?>
In my controller
function deleteForm($id = null)
{
$this->Form->del($id);
$this->Session->setFlash('Your entry has b...