hi,
I am a php developer, my client planning to distribute a software which is developed using Php. Planning to encode the files using ioncube or similar software. While googling i came to know few people decoded the files, which enocoded using ioncube and even other softwares. please help me.
...
Hello,
Here is my problem. I have a ticket-tracking system that is not very 'user friendly' but I have a desire for my users to submit 'tickets' to the system without having them to see it.
I got as far as just using a custom HTTP Form and posting to the ticket tracking system. One problem is the 'success/completion' page has a tende...
I'm trying to create 1 base form in Zend which is a part of many other forms.
Eg: the following 3 elements could be a sub form or a mini form that is a part of a larger form :
-Name
-Age
-Address
I just want to re-use the same form in different places - at times adding elements like 'shipping address' etc
I'm getting stuck at the data s...
I'm trying to convert a plugin I wrote procedurally to be class based, and it's not working for some unknown reason. So I wrote cut down my plugin code to be about as minimilistic as possible. When it runs, it comes back with no content.
<?PHP
/**
* Plugin Name: A1 Test
* Version: 1.0.0
* Plugin URI:
* Descripti...
Hello There,
I have been developing my own PHP MVC framework. Now I have seen different frameworks implementing different extensions for the View files. I am using simply php extension for my view files.
Now is there anything wrong if i use php extension.
Are there any merits or de-merits of it?
Why use other extension such as:
phtml...
Hello All,
Is there a way to download files in case curl extension is not available or has been disabled?
...
I have an entry Form. When the page is loaded, it must check:
if ($_SESSION[WorkMode] == 'UPDATE')
Then fill the Form with values from the database, else open a blank Form.
If I fetch the results in a different PHP file and call this .php file on load, how to fill the Form.
...
I want to call a .php file from the OnClick event.
<input id="Edit" name="Edit" value="Edit Record" type="button" onclick="---call to php file----;" />
The code is show above. I want to call a .php file through Javascript and pass a cookie value in the query string.
...
Hello guys,
I need help in understanding the actual actions of a helper function in Zend Framework.
I need someone to explain to me what $this->escape($string) actually does to the string passed to it before printing the string into the template.
Thanks in advance
...
I want to generate random numbers, but these numbers should be somewhat biased,
so that numbers in certain ranges appear more frequently than others.
For example, to spread out a series of banner ad impressions in proportion to the number of impressions remaining for each ad campaign.
...
Hi Folks,
is there any way to get an Action Helper from an Service Class?
I have the following Helper:
class Helper_Host extends Zend_Controller_Action_Helper_Abstract
{
/**
* Return Hosturl with path
*
* @return string Hostname
*/
public function direct()
{
$front = Zend_Controller_Front::getIn...
Hello All,
What is the fastest and easiest way to get the last item of an array whether be indexed array , associative array or multi-dimensional array?
...
In my CI config file I have this logging treshold set:
$config['log_threshold'] = 1;
In index.php, I have set the following error reporting:
error_reporting(E_ERROR);
My expectation is that this will log any CI errors that I log (using log_message('error','my error message')), as well as any PHP errors. However, I would expect that...
How can I create a class with a given array of arguments to be sent to the constructor? Something along the lines of:
class a {
var $args = false;
function a() {$this->args = func_get_args();}
}
$a = call_user_func_array('new a',array(1,2,3));
print_r($a->args);
Ideally this needs to work, without modification to the class, i...
I have this problem: I want to pass a whole C code from a php textbox onto server and want to compile it with gcc and want the output back on php page. Is it possible?
Sample code:
php page input
<textarea>
#include<stdio.h>
void main()
{
printf("hello world");
}
Compiled on server terminal/shell
php page output:
hello world
...
I'm looking for some relatively simple, well-written object-oriented code to learn from. I'm a beginner.
So far I have looked at WordPress and Serendipity. WordPress is huge and Serendipity is not object-oriented. To make things worse, both still support PHP4.
Any recommendations? Thanks!
...
Do you know any good HTML to plain text conversion class
written in PHP?
I need it for converting HTML mail body to plain text mail body.
I wrote simple function,
but I need more features like converting tables,
adding links at the end, converting nested lists…
--
regards
takeshin
...
Hello everyone, how can i extract the http from this text?
"Text: Here's 2 free bonuses. http://blablabla.blabla/blabla "
But the url can also be another one.
Finaly
After i have the array, wich contains usualy just one url, how can i add it to the above text exactly at the same position? but with html tag <a>
the results should l...
I have an array containing much more items than just this one.
This is just an example of an item.
[0] => Array
(
[id] => 6739380664
[created_at] => 1260991464
[text] => @codeforge thx for following
[source] => web
[user] => Array
(
[...
Hi, I'm an advanced designer, but also starting out a career in development: I'm a PHP intermediate user. I (unfortunately) learnt procedural development, and not OOP.
My current project is a multi-user game web-app and I was developing procedurally only for my Boss to insist that it has to be OOP, so I needed to start learning OOP (I b...