I have this code in one of my classes
public function __call($method, $args) {
array_unshift($args, $method);
call_user_method_array('view', $this, $args);
}
We've since switched servers, and they must use a newer version of PHP5, and I get the following message
Function call_user_method_array() is deprecated...
It's not a problem with my host or the email account it's supposed to be delivered to: these things I've narrowed down. The form worked perfectly for one day and then stopped, without any changes to my code. Does anybody have any input on this?
My code:
Plug-In: http://www.stephaniehenderson.com/jquery.form.js
In the head:
<script ty...
How do i display the percent sign % in PHP using unicode %?
Here is the code.
echo $percent . "%";
I have the code inside a PHP function on a separate page it is then displayed on the HTML page.
...
I need to combine day, month and year in PHP in order to insert it to MySQL database. How I'll combine the day, the month and the year? I'm choosing the date from a drop down menu.
...
Usually I create a new object invocating his constructor the usual way:
$instance= new Class();
Lately, I'm reading a lot of code with an alternative syntax (without the parentesys):
$instance= new Class;
There are substantial differences between the two methods or are they equivalent?
I haven't found references on this topic 'til...
take a look at my class below when i try to upload an image the default keeps being called within the switch statement. i cant see why it goes to that.
<?php
class uploadimg2folder {
//create thumbnail
function createImage($fieldName,$width,$height) {
$thumb = $_FILES['$fieldName']['tmp_name'];
$path = "../uploads/".rand(0,1000);
...
I'm tasked with integrating RETS I to a php based website. I've heard that phrets is a good library to use. The site is on a shared hosting platform (godaddy). I thought I could build a page with some search fields and have it do a query and display the results on a second page? Other places I've read name it sound
more like I will stil...
Hi ...., I'm trying to develop image crop using JQuery.
I use ajax to upload the image. after the image success fully uploaded. I load the uploaded image using jquery to its container.
$("#image_upload").html("<img src='" + data.path + "' width=\"460\" id=\"cropbox\" alt=\"cropbox\" />");
but the image selection doesnt work. why it co...
Hello guys,
How is it possibe to generate a list of all the pages of a given website programatically using PHP?
What I'm basically trying to achieve is to generate something like an sitemap, in nested unordered list with links for all the pages contained in a website.
Thank you in advance for your answers,
Constantin TOVISI
...
I've got a class library in defined here .../projectname/library/Me/Myclass.php defined as follows:
<?php
class Me_Myclass{
}
?>
I've got the following bootstrap:
<?php
/**
* Application bootstrap
*
* @uses Zend_Application_Bootstrap_Bootstrap
*/
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
/**
* ...
does ffmpeg-php have a silent setting or any way to keep it from displaying errors? the closest I've seen were for running ffmpeg via command line in Linux.
...
I am trying to submit a zend form. When I click the button to Submit the form the form doesn't do anything (it doesn't refresh the page either). I have the following create event page:
<?php
class Form_CreateEvent extends Form_DisplayEvent
{
public function init()
{
require_once('createEventInformation.php');
requi...
The task is to find if the string starts with http:// or https:// or ftp://
$regex = "((https?|ftp)\:\/\/)?";
but preg_match($regex) does not work correctly. What should I change?
...
We currently are implementing an inbox system into our website and want a user to be able to checkmark multiple inbox messages and click a Delete link to mass-delete them.
Each inbox message has it's own ID in the database.
What we need help with is getting the checkbox system working. We don't know where to start with it; whether we h...
Hi,
In my application, i have:
a table storing customers' orders, and
a table storing order entries
so basically a one-to-many relationship between the orders table and the orders entries table (should be quite a common structure).
i have a page that display all of a customer's orders (but not the entries). This part is simple, in ...
Does PHP has such a feature?
...
Hi everyone,
I have been almost finished (well i thought i finished) writing this login page in php. Everything works fine when the user enter in the details and presses the login button.
But after the user logins once they are able to use the forward and back buttons on the browser to go between the 2 pages.
Is there a...
For a project I'm working on, I need to encrypt and decrypt a string using Blowfish in a compatible way across NSIS and PHP.
At the moment I'm using the Blowfish++ plugin for NSIS and the mcrypt library with PHP. The problem is, I can't get them both to produce the same output.
Let's start with the NSIS Blowfish++ plugin. Basically t...
What are those "@attributes" thing I have in my JSON file and how can I read that with JQuery?
The JSON "text" I use is produced with json_encode in PHP from an array of custom objects.
Here's a reduced JSON file:
{ "movies" : [ { "url":"http:\/\/www.youtube.com\/watch?v=Nsd7ZcXnL6k", title":{"@attributes":{"type":"text"},"0":"**Title...
I'm using imagettftext to generate images from OpenType files. Everything works until I try to use an accented character (e.g. å) or a character such as √. In their place I get the .notdef glyph.
The fonts I'm using definitely have these characters. To make things even more frustrating, when I use a TTF everything works as expected.
An...