I have Xdebug 2.1 installed, and running with PHP 5.2.13. It can successfully connect to multiple DBGP clients (i.e. the xdebug.remote_log shows communication back and forth, and the clients themselves also show the incoming connection), but it doesn't stop at breakpoints. I have tried NetBeans, MacGDBp and also the command-line debugc...
Hello,
The main goal is create relationship diagrams/flow schemas from a big and complex PHP project automatically.
I have a one big framework and it is not documented. Structure looks good but modules and additional codes not.
If you can give me the ideas, may be i can code myself an analyzer with PHP but it would be good if you can ...
i have news script and the install file dont work and dont add sql orders to database
this is the code and i asure that the config file is good and no errors in it
this the full files
http://alamuae.com/lessons/images/web/mynews.zip
...
Hi,
In a custom module, I have the following (to add javascript to a particular form):
function mymodule_form_mynode_node_form_alter(&$form, $form_state) {
drupal_add_js(drupal_get_path('module', 'mymodule') . '/js/mymodule.js', 'module');
}
This function does get called the form is first loaded (i.e. browse to http://myserver.com/...
I have a select that looks like this, it is written in in HTML and is not rendered via any php,
<select name="position">
<option value="left">Left</option>
<option value="right">Right</option>
<option value="centre">Centre</option>
</select>
The value gets sent to database an...
Possible Duplicate:
In need for a site that explains how to use PHPUnit
Hi guys.
I want to have a better testing procedure when I develop my applications in PHP.
At the moment I map out all the possible actions/pages in my applications and test them all out everytime I make changes - that is in a perfect world. Often Time is...
Hi guys!
Does anybody know how to do smart database update in realtime.
E.g. I have a site with a great database. Suddenly I've made some code changes and database structure and data changes. Is there any standard plan to do it with deploy script or any deploy soft? In realtime without stopping the site?
E.g. switch between two clone...
I got a script like this
<?php
if (file_exists("./foo.txt")) {
header("Content-type: application/force-download");
header("Content-length: ".filesize("./foo.txt"));
header('Content-Disposition: attachment; filename="foo.txt"');
readfile('./foo.txt');
}
print "HEY!";
?>
and I want the "Hey" to be written to the page...
Whenever I open a dialog box in IE8 and the current page has vertical scrolls, the dialog box is opened off screen. For example:
<body>
<!-- This will be our button -->
<div id="btntest" style="border:solid 1px; cursor:pointer;">Test button</div>
<?php
# 200 lines of blank spaces to show vertical scroll bars
for($i = 0; $i < 200; $i++){...
I have 2 tables in a mysql database : users and pets. In the users table there is a field that contains a semicolon separated list of the pets that a user has (pet_ids = 1;2;3;4;). These ids correspond to unique ids (keys) in the pets table which contain the pet name (1 = rex, 2 = goldie, 3 = squeak, 4 = bubble).
I want to present a lis...
hi, I'm trying to code with the facebook API
here it says : http://developers.facebook.com/docs/authentication/javascript
to get the access_token thing, but it's after a # and not a ?
so how can I get it ?
http://www.example.com/callback#access_token=...&expires_in=...
...
I need a really simple library (like a 1 file sort of thing) that generates SQL for me. I just need functions that perform INSERTions and SELECTions and that return the actual SQL string, nothing else, no connection thing no compatibility layer, just plain SQL strings from PHP data structures.
Does anything like this exist? Thanks.
...
I have two websites: one with Lighttpd with PHP and second with Apache and neither of this handle chunked transfer encoding properly.
I send this request from my mobile, J2ME and there is no possibility to change this transfer type to any other.
So my only way to go is to handle chunked transfer enconcoded requests in other way. Any so...
Hi folks,
I still have the problem with whitespaces:
I have an uploadform for users to upload mp3-files. It works fine, except when there are whitespaces in the filename. At the moment I tell the user not to use Filenames with whitespaces, but apparently its very common to use them in mp3s. So I would like to solve this problem. What h...
We have a piece of legacy code that (ab)uses fopen() calls to resources over HTTP: @fopen('http://example.com').
We want to move example.com to another host and then send 301 Permanently Moved.
However, we are not entirely sure if @fopen() will follow this. Initial tests show me that it does not. But maybe I miss some configuration pie...
How to add a backslash before single quotes using preg_replace() php function ?
...
Hello,
How can i prevent zf-tool from creating models in module directories?
When i add a model using The Zend Framework Tool (1.10.6) as follows:
zf create model test
zf creates my test model in the application/modules/admin folder.
can someone tell me how to create a model in the default models map?
As far as i know, the admin m...
I have a script called api.php on my server. I call it from other server using POST request. Is there any way to get in my api.php raw contents of POST request?
...
I apologise for the unclear title, I cannot think of any better one. I'm getting this error:
Fatal error: Call to a member function query() on a non-object
This is caused by the constructor in a class SPConfig, which can be seen together with a class SPClasses as follows:
$sp = new SPClasses();
class SPClasses
{
public $db, $...
I'm trying to use Codeigniter OpenID library (http://codeigniter.com/wiki/OpenID/) and everythyng work fine with default configuration of ci without .htaccess. When I remove index.php by changing config.php and .htaccess I get 404 Page Not Found when I try to verify my openid (http://ci.dlsb.eu/test/)
Can anybody tell me where I'm wrong...