I try using xdebug with NetBeans to debug PHP. I start debug, and NetBeans waits for ever for a connection with xdebug. I have NetBeans 6.8 (latest version) with the latest MAMP package installed on my mac.
My php.ini looks like this:
[xdebug]
;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xde...
I use NetBeans 6.8 and have MAMP with this config on my mac:
Apache 2.0.63
MySQL 5.1.37
PHP 4.4.9 & 5.2.10
APC 3.0.19 & APC 3.1.2
eAccelerator 0.9.5.3
XCache 1.2.2
phpMyAdmin 2.11.9.5 & phpMyAdmin 3.2.0.1
Zend Optimizer 3.3.3
SQLiteManager 1.2.0
Freetype 2.3.9
t1lib 5.1.2
curl 7.19.5
jpeg 7
libpng-1.2.38
gd 2.0.34
libxml 2.7.3
libxslt 1...
I wrote a script to read the Netflix catalog and populate my DB. Everything worked fine as a web script (except for timeouts) so I shifted to calling directly form the console.
I noticed a few oddities, like __construct() no longer being called (but that was easily remidied using the class name as a function.
Now I can't get my arrays...
Well this may be a question with a simple answer but I've been searching and couldn't find how to do this.
I have the models: sales and follow. The table follow has an id, an user_id and sale_id.
What I wan't to do is: on the sales_controller I need to find one follow record that has the user_id that is Authenticated and the sale_id tha...
<object type="application/x-shockwave-flash" data="flashapplication.swf?plan=plans/images/OBJECT_<%=iID %>_swffile.swf&data=./cgi-bin/dynamicXML.ashx&nextargument=nextvalue" />
<param name="parameter1" value="NULL" />
<param name="parameter2" value="NULL" />
</object>
Now i should pass a parameter in cgi-bin/dynamicXML.ashx a parameter...
Is there any way that we can print a large map with all the pins on google maps? EG: there are around 300 pins with places of interest and can we print out a large map (4000 x 6000) PDF and use A0 printer to print the results?
Lets say that the entire UK fits into the A0 page with different pins on the map.
Thanks.
...
Is there such a thing?
I'd like to do something like this in PHP but I can't see how to do it from the PHP docs:
public class User : ValidationBase
{
[NotNullOrEmpty(Message = "Please enter a user name.")]
public string UserName { get; set; }
}
What I'm looking for is the PHP equivalent of an ASP.NET/C# property attribute, ...
Hi, I need to check out my php script in the module of sucker reports in sugarcrm, but the buttom "run" doesn`t show in the form, what i have to do for check out my work?
Thanks.
...
hi im using acunetix to test my website
the problem is with this script http://boedesign.com/blog/2007/02/18/ajax-star-rating/
acunetix doesnt show any message but when i test for blind sql i can get values like
8 and 1=0 --
8 and 31337-31337=0
in the rating_id mysql column, i want to only allow numbers in there, so i made a little f...
I'm trying to create a form using Zend_Form (Zend_Framework component). The users should be able to add arbitrary number of fields. Just as you can upload files with gmail GUI.
Example:
[_____] [+]
After clicking on the [+] button:
[_____]
[_____] [+]
To get things complicated, I'd like to add field pairs, so it would look like thi...
Hi
I have a requirement to show three different types stats on the home page of a website. These are controlled/managed by an admin. For example, these are,
type A items - 1200,
type B items - 4500,
blah items - 1800
I can just create a table, homepage_stats (id, first_field, second_field, third_field). Then on homepage SELECT fi...
i got a question in DQL how to pass session User id
$vars['mood'] = Doctrine_Query::create()
->select(’m.mood_name, a.id, m.account_id’)
->from(’mood m, m.account a’)
->where(’m.account_id=”7″‘)
i want to show data according to current logged user.
m.account_id=Current_User::user()->id;
this is not working
...
I have to convert .DBF and .FPT files from Visual FoxPro to MySQL. Right now my script works for .DBF files, it opens and reads them with dbase_open() and dbase_get_record_with_names() and then executes the MySQL INSERT commands.
However, some fields of these .DBF files are of type MEMO and therefore stored in a separate files ending in...
I haven't quite figured this out. EVERY piece of documentation I've found covers how to use xdebug to debug scripts running in Apache. I need to debug a php CLI script.
So, for instance, how do I pass the XDEBUG_SESSION_START variable in to get xdebug to kick on?
I'm specifically trying to debug a CakePHP shell. So if anyone has any ad...
Background:
I am parsing a 330 meg xml file into a DB (netflix catalog) using PHP script from the console.
I can successfully add about 1,500 titles every 3 seconds until i addd the logic to add actors, genre and formats. These are separate tables linked by an associative table.
right now I have to run many, many queries for each titl...
Hi, I would like some advice on storing data for different languages on my website. I've spent hours searchin and can't seem to find what I need. Here's my situation, so let me know what you think.
I have a website that multiple users can log into to view and store information. I use php, Mysql, Apache, on a FreeBSD operating system (...
Hi,
I have an array with words like
$arr = array("go", "walk", ...)
I would like to replace these words with links f they are matched in sentences. But it should be only if they match exactly (for example "walk" should match "Walk" or "walk!" but not also "walking")
And the replacement should be a simple link like: < a href='#walk' >...
I've been trying to come up with a way to build an automatic update system for a cms that I'm building that will potentially be installed on numerous servers (likely with different configurations). What I've come up with is to keep a current version uploaded to my server in a predetermined directory. Then have the distributed systems che...
I'm building a news rating script for this website that has a lot of users. I'm trying to make this websites as efficient as possible and now I'm wondering what would be the most efficient way to keep track of the votes. Of course I don't want users to vote more than once.
My first though was to store it in a my MySQL database, but I'm ...
Can anyone please provide some instructions or steps on how to integrate zinnia (handrecognition system) with regular php? A sample of how it works could be found here.
Thank you.
...