php-general Digest 23 Jul 2006 04:07:43 -0000 Issue 4253
Topics (messages 239699 through 239707):
Re: headers and newline at end of script
239699 by: Robert Cummings
Codigo de Captcha en PHP
239700 by: Ricardo Ríos
239701 by: Sameer N Ingole
Help with dynamic radio buttons
239702 by: Chris Grigor
PHP Debugger Recommendations
239703 by: Dave M G
239705 by: Thiago Silva
239707 by: Dave M G
ldap_read() with NULL search base
239704 by: Turbo Fredriksson
buffer settings in php.ini?
239706 by: jekillen
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
On Sat, 2006-07-22 at 07:54, Martin Marques wrote:
> On Thu, 20 Jul 2006, Robert Cummings wrote:
>
> > On Thu, 2006-07-20 at 17:09, John Nichel wrote:
> >> Adam Zey wrote:
> >> <snip>
> >>> Note that just because the fact that it works is a feature, doesn't mean
> >>> it's good coding style. register globals is a feature too, but it isn't
> >>> exactly a good idea to use it.
> >>>
> >>
> >> Ding ding ding
> >>
> >> Give that man a cigar.
> >
> > Why would anyone wish cancer on somebody else? Seems mean to me.
>
> jajaja
>
> Give Robert a Beer please! ;)
Now that is the kind of reward a person can savour :D
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
Hola amigos listeros alguien conoce algun codigo libre de un captcha en php
, gracias por sus comentarios.
--- End Message ---
--- Begin Message ---
Ricardo Ríos wrote:
Hola amigos listeros alguien conoce algun codigo libre de un captcha
en php
, gracias por sus comentarios.
There are lots out there.
http://www.puremango.co.uk/cm_php_captcha_script_113.php
http://www.nogajski.de/horst/php/captcha/
http://captchas.net/sample/php/
--
Sameer N. Ingole
http://weblogic.noroot.org/
---
Better to light one candle than to curse the darkness.
--- End Message ---
--- Begin Message ---
Afternoon all
I need some help here with a problem on dynamic radio buttons.
I have a script that calls a database for a list of questions. The questions
are returned and each question needs to have 5
radio buttons assigned to it. The radio buttons are a score of 1 - 5 (1
being bad, 5 being good)
For example
1 . How would you rate your vacation? 1 2 3 4 5 <--- those are the radio
buttons.
2. How would you rate your dining at the resort? 1 2 3 4 5
Ok so I have all the questions being returned, I was thinking when creating
the radio buttons as follows
<input name="<?php echo $row_get_question_list['id']?>" type="radio"
value="1" />
<input name="<?php echo $row_get_question_list['id']?>" type="radio"
value="2" />
<input name="<?php echo $row_get_question_list['id']?>" type="radio"
value="3" />
<input name="<?php echo $row_get_question_list['id']?>" type="radio"
value="4" />
<input name="<?php echo $row_get_question_list['id']?>" type="radio"
value="5" />
The input name for each radio group is the questions id from the database.
If there are 50 questions you would have 50 radio button answers submitted.
How are you going to identify the radio buttons being submitted as they are
dynamic? and also I would need to be stored in the
session data as they might want to go back / forward a page.
So basically I need to go through each $_GET item, identify it as a radio
submission and put it into an array.
Has anyone done anything similar before / or can point me in the right
direction??
Kind regards
Chris
--- End Message ---
--- Begin Message ---
PHP List,
I have been experimenting with using Zend Studio the last week or so,
and I apologize in advance if anyone here takes offense, but it has been
a most unsatisfactory experience.
In order to debug a script that involves anything like a form with user
$_POST data, one needs to install the nebulous and fragile Zend
Platform. To make a long story short, I have not yet succeeded in
overcoming it's overwhelming complexity to make it work, or solve all
the problems in installation and running it.
When I asked here before (to the annoyance of some) about Zend, someone
said that there were "plenty of free alternatives".
While free would be nice, I am willing to pay for a commercial product
up to a hundred or so US. I would prefer open source and all, but my
higher priority is something that works well.
Looking on the net, I can find many PHP *editors*, but they do not have
debugging features. I need something with call stacks, break points, etc...
For fully qualified debuggers, I've found Komodo, which is okay, but
it's made a little cumbersome by the fact that it can debug multiple
languages. The deal breaker is that when it comes to debugging forms,
one has to manually simulate inputs.
There is also NuSphere, and other Windows options, but I need something
that will also work on Linux. NuSphere doesn't seem to have released for
Linux yet, as I can't find anywhere to download it, despite having
searched their site.
There's Xdebug, but it looks very raw and not ready for prime time.
Beyond that, I haven't found many, unless I'm mistook some editors for
not being debuggers (Quanta, Bluefish...)
I only need to debug locally, and have Apache, MySQL, and PHP already
running. I'm collaborating with someone who uses Windows, so something
cross platform, Java based or whatever else, would be best.
Are there any recommendations?
--
Dave M G
--- End Message ---
--- Begin Message ---
On Saturday 22 July 2006 13:43, Dave M G wrote:
> Looking on the net, I can find many PHP *editors*, but they do not have
> debugging features. I need something with call stacks, break points, etc...
I'm not familiar with Windows options (only PHPEdit comes to my mind), but as
far as I can tell, Zend, NuSphere, Komodo and PHPEclipse are main options
when it comes to feature rich IDEs, and I guess all of them are multi
plataform.
For GNU/Linux, there are some folks using Quanta+gubed (a pure php debugger) I
belive.
Me, myself, I use Protoeditor, wich is strictly editor+debugger.
> For fully qualified debuggers, I've found Komodo, which is okay, but
> it's made a little cumbersome by the fact that it can debug multiple
> languages.
Just out of curiosity, what specific problems have you encountered by using a
multilanguage debugger?
> The deal breaker is that when it comes to debugging forms,
> one has to manually simulate inputs.
What do you mean by "simulate"?
> There is also NuSphere, and other Windows options, but I need something
> that will also work on Linux. NuSphere doesn't seem to have released for
> Linux yet, as I can't find anywhere to download it, despite having
> searched their site.
All I can say about NushPhere is that I've used it in GNU/Linux for a while,
but that was 3 years ago.
> Beyond that, I haven't found many, unless I'm mistook some editors for
> not being debuggers (Quanta, Bluefish...)
What about Protoeditor or PHPEclipse?
Thiago
--- End Message ---
--- Begin Message ---
Thiago Silva,
Thank you for responding, and for recommending some PHP debuggers that I
had not yet heard of.
I'm not familiar with Windows options (only PHPEdit comes to my mind), but as
far as I can tell, Zend, NuSphere, Komodo and PHPEclipse are main options
when it comes to feature rich IDEs, and I guess all of them are multi
plataform.
These are all ones I've looked at, except for PHPEclipse. Is it not the
case that with PHPEclipse one needs to install the Eclipse framework and
then PHPEclipse as a plug in?
For GNU/Linux, there are some folks using Quanta+gubed (a pure php debugger) I
belive.
I hadn't realized there was a debugger plug in for Quanta. I'll look
into that, as I was using Quanta before for simple editing, and thought
it was reasonable enough.
Me, myself, I use Protoeditor, wich is strictly editor+debugger.
I will try out Protoeditor as well.
Just out of curiosity, what specific problems have you encountered by using a
multilanguage debugger?
"Problems" is perhaps too harsh a word. All I meant was that with
options for dealing with multiple languages, that adds a lot of unneeded
interface and feature options. I'm sure it's great if you actually debug
more than one language, and it can save you from switching applications.
But if you're dealing with strictly one language, then it's a little
bloated.
The deal breaker is that when it comes to debugging forms,
one has to manually simulate inputs.
What do you mean by "simulate"?
It's a little hard to describe, but lets say you want to debug a script
that has a submit form in it. Instead of hitting submit and having
Komodo pull in and use the $_POST variables, you have to start from the
page that receives the $_POST data, and then manually type in all the
input you expect a user to give you. There's a page that describes what
I mean in their online documentation, but I can't find it at the moment.
All I can say about NushPhere is that I've used it in GNU/Linux for a while,
but that was 3 years ago.
On the forums on the NuShere page, they actively discuss the Linux
package. So it is definitely available somehow. And apparently they are
on the verge of releasing an updated Linux version. But trying to find
any currently available download page for it was an Easter egg hunt that
exceeded my patience.
What about Protoeditor or PHPEclipse?
I am going to try them out. Thank you for suggesting them.
--
Dave M G
--- End Message ---
--- Begin Message ---
Is there something wrong with this, or am I missing
something?
ldap_read(link, NULL filter)
IS supposed to return the RootDSE, but it doesn't (always).
On my Debian GNU/Linux systems, I have to remove the 'BASE ...'
config option from ldap.conf, but now I see the same strange
behaviour on a SuSE 10.0, Apache2 and PHP5 (ldap module linked
against the OpenLDAP libraries) connecting to a Fedora Directory
Server...
A 'ldapsearch' from the commandline works as expected, but
not the ldap_read() above...
Any ideas?
--- End Message ---
--- Begin Message ---
Hello;
I am having a strange breakdown in some dhtml that
uses php to dynamically generated images and support data.
The program is supposed to generate 9, 16, or 25 images.
It does 9 without problems but breaks with 16, and 25.
I've written the code to accommodate different numbers
of images, not separate code for each size.
From tracking the progress of the code (javascript/css/html and php)
It appears to be some kind of a buffer limit problem. One array
that the php is supposed to produce comes out fine when the
function to produce it is isolated and run but breaks in the context of
the code
and appears to be the point where things go bad for the rest with 16
images.
It is used to generate the tile images in the gd code. Each image is
generated
in a for loop.
So, I'm wondering if generating 16 images is causing a buffer
overflow, and if there is a gd specific buffer setting that can
be increased, as well as the general limits for php in php.ini.
Sorry, I don't remember where to look for all the php.ini info
in the manual.
I'm using php 5.1.2, gd 2.0.33
Thanks in advance.
JK
--- End Message ---