My netbeans does not work the breakpoints using xdebug, my configuration looks correct, so I configured the first time I ran up to stop debugging the first time since then has never worked, someone had this problem? The version of my netbeans is 6.8 and the version of php is 2.5.2.
my php.ini:
zend_extension_ts = d:\wamp\bin\php\php5.2...
Hi,
I use codeigniter's database abstarction, and im doing a transaction with it. My problem is, that i have several inserts into several tables, but i need the insert id from the first insert query. Is there any way to store the last insert id for more than one following insert?
I don't understand why, but the ci built in function doe...
Is there a way to only show the items that are older than a certain date in a php mysql array? I'm using this query method and sorting by lastpost_cl:
$query="SELECT * FROM properties ORDER BY lastpost_cl";
$result=mysql_query($query);
$num = mysql_num_rows ($result);
mysql_close();
and I was thinking the way of checking the time wou...
Hi,
I've got some problem with symfony form value (i guess it's the clean value, but not so clear yet). Here's the problem :
I got a sfFormDateJQueryUI widget setup like this in my form :
$this->setWidgets(array(
'needDate' => new sfWidgetFormDateJQueryUI(),
));
$this->setValidators(array(
'needDate' ...
Hi,
I want to match the word/pattern that is contained in the variable, but only match against the words that don't have white spaces. Please give suggestions.
$var = 'look';
$array = ('look', 'greatlook',
'lookgreat', 'look great', 'badlook',
'look bad', 'look ', ' look');
matches words: look, greatlook, lookgrea...
I have the following:
echo time()."<br>";
sleep(1);
echo time()."<br>";
sleep(1);
echo time()."<br>";
I wrote the preceding code with intention to echo time()."<br>" ln 1,echo time()."<br>" ln 4, wait a final second and then echo the final time()."<br>". Altough the time bieng echoed is correct when it comes to the intervals betwee...
I'm looking for a PHP CMS which can let me to:
1-Uploade and manage files ( pdf, words..) between users by allowing to view, to print or to download.
2-Know who accessed what and when, who download what and when... who do what and when.
...
I'm a PHP coder but need to code some JSP...
I need help... What is the equivalent of this PHP code?
foreach($_POST as $key => $value){
$$key = $value;
}
to jsp code...
further notes: the above codes is just a short cut of something like this,
$name = $_POST['name'];
$age = $_POST['age'];
$gender = $_POST['gender'];
and thi...
i mainly focus on the web, i think i will never create desktop applications.
so i think it's better for me to focus on typical web languages like php.
i know an advantage java has over php is multi threading though.
will php ever support this feature in the future?
thanks
...
Hi,
We have an application which uses WAMP server. Now, there is a new requirement from a customer who wants to use MS SQL Server instead of MySQL.
How easy is it to port to SQL Server from MySQL. Also it has to retain this configuration.
Apache->PHP->SQL Server on windows.
How can I connect from Apache to SQL Server. Hope PHP works well...
Can any one please let me know, that i need to receive feeds which are posted recently
OR
Please make sure if the feed is posted, should it be shown in the first position?
...
Hi, This is the first time I have attempted to make a form using jquery and php. I used the folks over at Mid Mo Design as an example but even with that tutorial am still having trouble getting it to do what I want. This is the code I have been using. As well as jquery 1.4.1 and jQuery Form Plugin 2.43. Any help would be greatly apprecia...
My company have develop a web application using php + mysql. The system can display a product's original price and discount price to the user. If you haven't logined, you get the original price, if you loginned , you get the discount price. It is pretty easy to understand.
But my company want more features in the system, it want to disp...
Hello I am looking for a best way to ask/forward user so he/she adds my app to their page
one way is to make them follow the link
http://www.facebook.com/add.php?api_key=[your
application api key]&pages
(http://www.facebook.com/add.php?api_key=1fc2946c634702dfc75cce79c97c8cec&pages -real life example)
wrapping up the questi...
$arr = array('1st', '1st');
The above $arr has 2 items , I want to repeat $arr so that it's populated with 4 items
Is there a single call in PHP?
...
I m getting the below return from ajax call but not able to traverse it please please help.
{
"1": {
"tel1": null,
"status": "1",
"fax": "",
"tel2": null,
"name": "sh_sup1",
"country": "Anguilla",
"creation_time": "2010-06-02 14:09:40",
"created_by": "0",
...
I am having a problem with sessions on my server. Is this a server problem or a coding problem? I get this error message:
Warning: Unknown: Failed to write session data (files).
Please verify that the current setting of session.save_path
is correct (/var/php_sessions) in Unknown on line 0
...
I need 2 different paths, one for includes and one for js/css etc. I'm using mod_rewrite. The below works fine....
Currently all my files contain this at the top
define('SERVER_ROOT', 'C:/wamp/www/site_folder/');
define('SITE_ROOT', 'http://localhost/site_folder/');
and then files are called like so:
require_once SERVER_ROOT ....
What i know:- We can use Ajax to change database from javascript. So whenever we press the 'X' button on title bar it calls "onbeforeunload" event. And by this event we can change the database.
But in my case, i want to change the status of user only when user click on 'X' button. Not in case of changing the page. As because changing th...
Hi
I need to integrate google checkout on my website. I have successfully implemented the order placing and others stuff and using the sandbox I have tested that users can successfully add items to cart and and pay thereafter. I am using my own customized shopping cart written in php mysql.
The last thing I need to do is pass the new ...