I have been following the post below trying to hook my SubVersion installation to my Mantis bug tracker.
How To Integrate Subversion and Mantis
Everything works fine until the last line where it calls the Mantis checkin.php script and feeds it the message string that has been created in the script.
exec(CHECKIN . " <<< \"$message\"");...
It's a kind of UI second flavor,
function UISecond($elements)
{
}
So that this functions shows the specified elements(with name,id and type) which is neccesary,but not too picky about how exactly it's displayed.
EDIT
Give it an array,output the HTML.
Anyone has tried this?
EDIT AGAIN
I want to develop a render engine like drupal...
i am confused by the concept of on-demand loading
I saw this blog post and was wondering if I could do the same with php using the ff. approach:
check current url
serve css or js based on current url
which may be done like this in Kohana
if (uri::segment(1) == 'search') // check current url
echo html::stylesheet('search.css'); // s...
Hi,
I would appreciate help from anyone who has delt with a similar problem as below...
I have a web application that runs perfectly on localhost and on my external server.
I have recently uploaded it to a clients server and now receive this message:
"Call to a member function on a non-object"
The php versions are both > 5.2
Any he...
I am using php and mysql.
Each time an user register on my website, I will use php mail() to send a single email for authentication.
Recently I found out that, a lot of yahoo and hotmail users are not activated their accounts, lets say upon 1000 users, only 200 are activated. I am curious, and I try register using my hotmail account....
I learned of the function set_include_path(). All this time, I defined a constant in the config.php file
define('BASE_PATH', '/var/www/mywebsite/public_html/');
And in all subsequent php files, I would include like so
include(BASE_PATH.'header.php');
include(BASE_PATH.'class/cls.data_access_object.php');
Is there any advantage wit...
Hi, I have a large table and I'd like to store the results in Memcache. I have Memcache set up on my server but there doesn't seem to be any useful documentation (that I can find) on how to efficiently transfer large amounts of data. The only way that I currently can think of is to write a mysql query that grabs the key and value of th...
Is this bad? Or this is very common in PHP framework?
For example, in the parent class, there is a save() function which returns the number of rows affected in the database. Then in the child class, I override this function to do some pre-validation, and also would like to simply return a success/failed boolean value.
...
I need some help with this please
I can't get a handle on it.
The problem is that I want to call a class method, in this case with static methods with an ajax call.
I have put the helper class in the same folder as the script that is called by ajax for easy referencing and try to include it.
Could it be that my refencing is wrong?
If...
I have a form where users are entering 35 different fields.
I have a Content Management System where I want to display the results of an order on the form.
I've thought about adding a horizontal scrollbar inside the table, or limiting the table to the 10 most important columns and then making it so the administrator has to click on an...
We've set up three memcache servers for our web application.
Two are doing fine, handling tens of thousands of reads and writes, all while maintaining no more than 12 connections each (according to memcache-top).
We have a third memcache server which is responsible for storing administrative client session data (using PHPs built in me...
I have a PHP page, which builds up a table in the php code, and then previews the table in the HTML code, like this basically:
<?php
$display="<table><tr><td></td></tr></table>"
?>
<HTML>
<?php echo $display; ?>
</HTML>
Now, I need to call a function INSIDE the php script again, whenever a button is clicked. Thing is, ...
Is it possible for certain models to be in one database and other models in another (using the same connection)?
I have a number of read-only tables that I want shared between multiple installations of my system. Other tables need to be per-installation. For the sake of example, let's say users is the shared table, and posts is per-inst...
I'm using auto_prepend on my website, however I don't want it to be used in every folder. How can I stop php from auto_prepending a file within certain folders using .htaccess? (It doesn't have to be .htacces, I can use any other method but I thought I'd start with .htaccess)
ps - I'm using the auto_prepend in php.ini to set the auto_p...
Hello All,
I have developed a PHP framework (MVC ofcourse) and have named it EZPHP, it is almost finished and will be made public soon.
My questions is that how do i make it open source project or what to do to make it so and where to submit it?
How to get other developers from around the globe to work on or extend this project like t...
Hi,
I'm trying to write a simple php function that will strip everything between two brackets within a string.
Here is what a typical string will look like:
[img_assist|nid=332|title=|desc=|link=none|align=left|width=70|height=61] On November 14, Katherine Grove participated in Tulane University's School of Architecture Continuing Edu...
I have a dilemma, I have a classifieds website, and whenever an ad is clicked a php page shows up displaying all details.
Here I want the pictures to display also, but the thing is, I want the user to click on whatever thumbnail and the thumbnail will get resized to its real size.
The coding for this is no prob.
The problem is, how sh...
I want to make one function like
It should have some secret key to mix with so that one one can break it
function encrypt($string)
{
$key ="mastermind"
return encryptfunc($string,$key)
}
and same thing for decryption
...
i have a third party script and was wondering how i can check with php if session_start() has been declared before doing something?
something like if(isset($_session_start())) { //do something }
...
I'm writing an application which makes use of some legacy code. The newer code uses PDO, while the older uses the original mysql library.
A large amount of data is input in a transaction in the first code, so that I can roll back on error, but the legacy code is called at some points and needs to see the same data; unless the connectio...