|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help
lists.php.net
Date: Wed Apr 09 2008 - 00:27:38 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 9 Apr 2008 05:27:38 -0000 Issue 5394
Topics (messages 272720 through 272765):
Re: New Ajax search component
272720 by: Jeremy O'Connor
272723 by: Nathan Nobbe
272725 by: Eric Butera
272735 by: Nathan Nobbe
272740 by: Eric Butera
272752 by: tedd
272753 by: Nathan Nobbe
272756 by: tedd
272757 by: Nathan Nobbe
Re: joins issues again
272721 by: Mark J. Reed
272737 by: Jim Lucas
limit mail() function
272722 by: Jordi Moles
272734 by: Per Jessen
272738 by: Greg Bowser
272741 by: Per Jessen
272747 by: Greg Bowser
272751 by: Andrew Ballard
Re: dynamic boxes problem... JS and PHP
272724 by: Jim Lucas
272746 by: Ryan S
272750 by: Andrew Ballard
272754 by: Ryan S
272755 by: Daniel Brown
272758 by: Ryan S
272759 by: Ryan S
books for php
272726 by: news.php.net
272727 by: Daniel Brown
272728 by: Jason Pruim
272729 by: Daniel Brown
272730 by: Wolf
272764 by: Casey
Re: Recommended PHP Editors?]
272731 by: Zoltán Németh
Re: Recommended PHP Editors?
272732 by: Jason Pruim
272733 by: Zoltán Németh
Between editors and books.....
272736 by: Jay Blanchard
272739 by: Daniel Brown
272742 by: Robert Cummings
272743 by: Daniel Brown
272745 by: Jay Blanchard
Re: PHP gives session error on remote server, but not local test machine [SOLVED]
272744 by: Stut
Common PHP functions benchmarks
272748 by: Jason Knight
272749 by: Nathan Nobbe
require_once dying silently
272760 by: Richard S. Crawford
272761 by: Chris
272762 by: Greg Bowser
272763 by: Casey
Check XMLReader enable
272765 by: hce
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
""Jay Blanchard"" <jblanchard
pocket.com> wrote in message
news:9F6B7518E92167499E0168D01C2D8D9C39101E
YGEX01WAL.onecall.local...
> Cool...I'd have the 'submit' button hidden until results were returned
> so as to avoid user confusion.
Yes, something to add in a later version of the component.
--
Jeremy O'Connor
attached mail follows:
On Tue, Apr 8, 2008 at 7:41 AM, Jeremy O'Connor <joconnor
netactive.co.za>
wrote:
> Hi
>
> I have written a new component that can be included in your form, and
> allows
> the user to search a data source by entering the search term(s) and using
> Ajax to return a list of results in a dropdown control, from which the
> user
> can select the desired item. It uses the prototype JavaScript library,
> which
> you need to get from their website. You can view a demo and download the
> source at: http://jeremywebdeveloper.co.za/code/ajaxsearch/
they pretty much have that in the scriptacuous lib under Ajax.Autocompleter,
atm
http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter
http://demo.script.aculo.us/ajax/autocompleter
http://demo.script.aculo.us/ajax/autocompleter_customized
plus they have a client side version as well to mitigate bandwidth
consumption for small data sets.
http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local
-nathan
attached mail follows:
On Tue, Apr 8, 2008 at 12:37 PM, Nathan Nobbe <quickshiftin
gmail.com> wrote:
> they pretty much have that in the scriptacuous lib under Ajax.Autocompleter,
> atm
>
> http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter
> http://demo.script.aculo.us/ajax/autocompleter
> http://demo.script.aculo.us/ajax/autocompleter_customized
>
> plus they have a client side version as well to mitigate bandwidth
> consumption for small data sets.
>
> http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local
>
> -nathan
>
As long as we're raining on parades ;)
http://developer.yahoo.com/yui/autocomplete/
attached mail follows:
On Tue, Apr 8, 2008 at 10:50 AM, Eric Butera <eric.butera
gmail.com> wrote:
> On Tue, Apr 8, 2008 at 12:37 PM, Nathan Nobbe <quickshiftin
gmail.com>
> wrote:
> > they pretty much have that in the scriptacuous lib under
> Ajax.Autocompleter,
> > atm
> >
> > http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter
> > http://demo.script.aculo.us/ajax/autocompleter
> > http://demo.script.aculo.us/ajax/autocompleter_customized
> >
> > plus they have a client side version as well to mitigate bandwidth
> > consumption for small data sets.
> >
> > http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local
> >
> > -nathan
> >
>
>
> As long as we're raining on parades ;)
>
> http://developer.yahoo.com/yui/autocomplete/
lol! ya, havent finished parsing through this one; but a good read on the
topic
http://extjs.com/forum/showthread.php?t=551
btw; planning on digging into extJs once i get a chance to take a piss :O
-nathan
attached mail follows:
On Tue, Apr 8, 2008 at 2:10 PM, Nathan Nobbe <quickshiftin
gmail.com> wrote:
> btw; planning on digging into extJs once i get a chance to take a piss :O
I've heard a lot of good things about that. Let me know what you
think, after you piss of course. =)
attached mail follows:
>As long as we're raining on parades ;)
>
>http://developer.yahoo.com/yui/autocomplete/
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
And to continue:
http://www.webbytedd.com/c/ajax-pop-down/
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
attached mail follows:
On Tue, Apr 8, 2008 at 3:53 PM, tedd <tedd.sperling
gmail.com> wrote:
> As long as we're raining on parades ;)
> >
> > http://developer.yahoo.com/yui/autocomplete/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> And to continue:
>
> http://www.webbytedd.com/c/ajax-pop-down/
thats the idea ;)
-nathan
attached mail follows:
At 4:17 PM -0600 4/8/08, Nathan Nobbe wrote:
>On Tue, Apr 8, 2008 at 3:53 PM, tedd
><<mailto:tedd.sperling
gmail.com>tedd.sperling
gmail.com> wrote:
>
>As long as we're raining on parades ;)
>
><http://developer.yahoo.com/yui/autocomplete/>http://developer.yahoo.com/yui/autocomplete/
>
>--
>
>PHP General Mailing List (<http://www.php.net/>http://www.php.net/)
>To unsubscribe, visit:
><http://www.php.net/unsub.php>http://www.php.net/unsub.php
>
>
>And to continue:
>
><http://www.webbytedd.com/c/ajax-pop-down/>http://www.webbytedd.com/c/ajax-pop-down/
>
>
>thats the idea ;)
>
>-nathan
There are no new ideas, just different spins to old ones.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
attached mail follows:
On Tue, Apr 8, 2008 at 5:12 PM, tedd <tedd.sperling
gmail.com> wrote:
> At 4:17 PM -0600 4/8/08, Nathan Nobbe wrote:
>
> > On Tue, Apr 8, 2008 at 3:53 PM, tedd <<mailto:tedd.sperling
gmail.com>
> > tedd.sperling
gmail.com> wrote:
> >
> > As long as we're raining on parades ;)
> >
> > <http://developer.yahoo.com/yui/autocomplete/>
> > http://developer.yahoo.com/yui/autocomplete/
> >
> > --
> >
> > PHP General Mailing List (<http://www.php.net/>http://www.php.net/)
> > To unsubscribe, visit: <http://www.php.net/unsub.php>
> > http://www.php.net/unsub.php
> >
> >
> > And to continue:
> >
> > <http://www.webbytedd.com/c/ajax-pop-down/>
> > http://www.webbytedd.com/c/ajax-pop-down/
> >
> >
> > thats the idea ;)
> >
> > -nathan
> >
>
> There are no new ideas, just different spins to old ones.
i was alluding to the automatic invocation of ajax requests (the norm) in
your example vs. the required user interaction in the OPs.
-nathan
attached mail follows:
On Tue, Apr 8, 2008 at 7:28 AM, Steven Macintyre
<steven
steven.macintyre.name> wrote:
> I have the following SQL statement;
... and this relates to PHP how?
> SELECT count( salesID ) AS count, branch_name, company_name, branch.branchID
That doesn't make sense. You're selecting a group function (COUNT)
along with other columns which you're not grouping on. It might help
if you told us what you were trying to accomplish with the query.
But you'd be better off asking on a SQL list instead of a PHP one.
> FROM sales
> LEFT JOIN IGuser ON sales.IGuid = IGuser.IGuid
> LEFT JOIN branch ON IGuser.branchID = branch.branchID
> LEFT JOIN company ON branch.companyID = '{$companyID}'
> WHERE maincompanyid = '{$mcid}'
> GROUP BY branch.branchID
> ORDER BY branch_name ASC
>
> However, i do not want those join records to be appended, only to return the count of records from sales.
So why are you joining in the first place?
--
Mark J. Reed <markjreed
mail.com>
attached mail follows:
Steven Macintyre wrote:
> Hi all,
>
> I have the following SQL statement;
>
> SELECT count( salesID ) AS count, branch_name, company_name, branch.branchID
> FROM sales
> LEFT JOIN IGuser ON sales.IGuid = IGuser.IGuid
> LEFT JOIN branch ON IGuser.branchID = branch.branchID
> LEFT JOIN company ON branch.companyID = '{$companyID}'
> WHERE maincompanyid = '{$mcid}'
> GROUP BY branch.branchID
> ORDER BY branch_name ASC
I know that your DB might be able to figure out what is and is not ambiguous,
but, since we don't have the table structure to look at and compare. How about
using table.column naming for us.
Doing a desc `table_name` for us on each table would help also.
>
> However, i do not want those join records to be appended, only to return the count of records from sales.
>
> Can someone assist me with this? I have tried differance variants of joins and none of the results are correct.
>
> Sales tbl doesnt have the companyID, nor does IGuser
>
> Regards,
>
> Steven
>
>
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
attached mail follows:
hello everyone,
first of all... i'm sorry if this has been asked like a million times
before... but i've been looking for info about this and found nothing so
far.
anyway....
I've got a server with apache2 and postfix and php5 providing hosting to
some clients. I've got this big problem about clients sending spam
massively, either consciously or because they website have been hacked.
The main way to spam is by using the "mail()" function.
So far, i've only found how to disable the use of the mail() function
completely in the php.ini file, but it's not a really good option to me,
cause i run some server scripts to check for some things and they send
some mails when they find something wrong.
So... i would like to know what options i have if i want to limit this
function...
can i disable the function only for some users?
may be i can set a rate limit for it?
thanks.
attached mail follows:
Jordi Moles wrote:
> I've got a server with apache2 and postfix and php5 providing hosting
> to some clients. I've got this big problem about clients sending spam
> massively, either consciously or because they website have been
> hacked. The main way to spam is by using the "mail()" function.
> So far, i've only found how to disable the use of the mail() function
> completely in the php.ini file, but it's not a really good option to
> me, cause i run some server scripts to check for some things and they
> send some mails when they find something wrong.
>
> So... i would like to know what options i have if i want to limit this
> function...
>
> can i disable the function only for some users?
> may be i can set a rate limit for it?
Check your mail-server config - rate limits and such are probably best
done there.
/Per Jessen, Zürich
attached mail follows:
As far as I know, there's no way you can do this via PHP.
PHP doesn't "know" about users on the system. Generally, PHP is run as an
apache module, and thus the scripts are run as the user apache is running
as.
So to start with, you'd probably need to be running a Fast CGI + SuExec
setup or something similar.
I'm not sure how, or if there is a way to do this in postfix. The mail()
function calls the sendmail binary, so one sort of hackish way might be to
move this binary and write a wrapper script that keeps track of per-user
rate limits, and then invokes the real sendmail binary. Of course, in this
case, you'd also probably want to make sure the real sendmail binary
couldn't be executed and that users could not write to the file that keeps
track of the rate-limit.
-- Greg
On Tue, Apr 8, 2008 at 12:37 PM, Jordi Moles <jordi
cdmon.com> wrote:
> hello everyone,
>
> first of all... i'm sorry if this has been asked like a million times
> before... but i've been looking for info about this and found nothing so
> far.
>
> anyway....
>
> I've got a server with apache2 and postfix and php5 providing hosting to
> some clients. I've got this big problem about clients sending spam
> massively, either consciously or because they website have been hacked. The
> main way to spam is by using the "mail()" function.
> So far, i've only found how to disable the use of the mail() function
> completely in the php.ini file, but it's not a really good option to me,
> cause i run some server scripts to check for some things and they send some
> mails when they find something wrong.
>
> So... i would like to know what options i have if i want to limit this
> function...
>
> can i disable the function only for some users?
> may be i can set a rate limit for it?
>
> thanks.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Greg Bowser wrote:
> I'm not sure how, or if there is a way to do this in postfix. The
> mail() function calls the sendmail binary, so one sort of hackish way
> might be to move this binary and write a wrapper script that keeps
> track of per-user rate limits, and then invokes the real sendmail
> binary.
Pardon me, but that's one kludgy idea - postfix has rate-limitation
facilities you can use for this.
/Per Jessen, Zürich
attached mail follows:
>Pardon me, but that's one kludgy idea
Hence my use of the term hackish. But really, is isn't all that
kludgy. An software solution that implements this natively would have
to keep track of the stats somehow; undoubtely via some sort of stats
file. So the real difference is that two processes are run, instead of
one. Yet, by the same "wrapper" logic, is it not kludgy that php
invokes the sendmail binary, instead of using some sort of native php
implementation? And again, by the same logic, the sendmail binary
that comes with many MTAs is simply a wrapper to allow normal sendmail
usage.
>postfix has rate-limitation facilities you can use for this
I'm aware of several configuration directives that limit rate, none of
which directly limit the send rate local users. Perhaps some kludgly
or elusive trick involving multiple options would do the trick; I
don't claim to be a postfix expert. Perhaps, instead of making empty
statements, you might choose to enlighten me as per the exact
configuration that will accomplish this.
Of course, I spent some time googling, but it appears that not too
many people know (or at least write about) how to implement such
functionality. I did manage to find two interesting items in my
searches:
http://www.postfix.org/anvil.8.html
http://www.opennix.com/email/postfix/policy/ratelimit.html
The former doesn't appear to be magical, and from what my limited and
apparently klugdy thoughts permit me to deduce, it seems to bear,
conceptually, at least a degree (Celsius, mind you) of similarity to
the aforementioned kludgy statistics idea... I didn't find any
documentation regarding the implementation of anvil. And the latter,
well that's not even a native postfix solution, so apparently, I have
failed to find the alleged rate-limitation.
All cynical, superficial, and sarcastic storming somewhat consummate,
I can at last take solace knowing that I would, had you _suggested_ a
better solution, or had I not, kludgy though it apparently was, put
some effort into finding a solution, pardoned you.
And with the sarcasm, sincerity, and cynicism now accomplished, permit
me to offer my most sincere apologies for the above rude, and overly
verbose post.
-- Greg
attached mail follows:
On Tue, Apr 8, 2008 at 3:51 PM, Greg Bowser <topnotcher
gmail.com> wrote:
> >postfix has rate-limitation facilities you can use for this
>
> I'm aware of several configuration directives that limit rate, none of
> which directly limit the send rate local users. Perhaps some kludgly
> or elusive trick involving multiple options would do the trick; I
> don't claim to be a postfix expert. Perhaps, instead of making empty
> statements, you might choose to enlighten me as per the exact
> configuration that will accomplish this.
>
> Of course, I spent some time googling, but it appears that not too
> many people know (or at least write about) how to implement such
> functionality.
Not being a sysadmin I can't tell you HOW to do it, but I can tell you
that nearly every shared-hosting service I have worked with implements
some level of throttling such that an account on that machine cannot
send more than some set number of messages per hour whether directly
through local SMTP or through sendmail, mail(), etc., so I know it CAN
be done, and it appears that more than a few people know how to do it.
Andrew
attached mail follows:
Ryan S wrote:
> Hey everyone,
>
> A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or .... just me.
>
> (My money is on the last one :p )
>
>
> Here's what I am trying to do:
> In a form I have a listbox with the values 1-5, and under the listbox i have a <TD> with the id of "recips" (like so: <TD id='recips">
>
> I have a onChange event linked to the list box and depending on what number the client picks it should dynamically put the number of text boxes there, here is the JS code:
>
> ///// ############### Start JS code ############
> function change_no_of_recipients()
> {
> var nr=document.mainform.no_of_friends.options[document.mainform.no_of_friends.selectedIndex].value;
>
> if(nr>5){nr=5;} // max number of recipients
> var msg = '<table width="50%" border="0" cellspacing="2" cellpadding="2">';
Move your table opening outside the loop
>
> for (var x = 1; x <= nr; x++)
> {
> msg += '<tr>' +
> '<td nowrap="nowrap">'+ x +'. Recipient\'s name:</td>' +
> '<td><input type="text" name="rec_name[]" id="rec_name[]" /></td>' +
first off, in the world of CSS, this id would not be unique or valid for that
matter. id attributes can only contain numbers, letters, and underscores.
Don't think that is related to your problem, but it was something I thought I
would point out.
> '<td nowrap="nowrap">Recipient\'s email:</td>' +
> '<td><input type="text" name="rec_email[]" id="rec_email[]" /></td>' +
> '</tr>' +
> '<tr>';
> }
msg += '</table>';
move your table closing outside the loop.
> document.getElementById('recips').innerHTML=msg;
> }
>
> ///// ##################### End JS code ################
>
> So far on the page everything is working, but when I click the submit button this is my PHP processing script:
>
> <?php
> print_r($_REQUEST);
> ?>
>
>
> It shows me everything that has been submitted but NOT any of the above dynamically made boxes values... but get this, it DOES show me all values... in IE7 _not_ in FF (am using 2.0.0.13)
>
> Anybody else face anything like this?
> Is this a bug in FF? Is $_REQUEST wrong to catch this?
> Dont know what the
#$
to do... ANY help even a link to a site which can shed a little light would be appreciated.
Do you have your <form ..>...</form> defined?
Show us the actual output of the print_r() call above.
>
> Thanks in advance.
>
> /Ryan
>
>
>
> ____________________________________________________________________________________
> You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
>
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
attached mail follows:
Hi Guys,
Thanks for responding, will try to answer everyone in the same order.
Mark W:
Thanks for replying!
> Since I'm relatively new to PHP I could be off on this, but I'd say yes,
> $_REQUEST is wrong. I would think you'd want to use $_POST to receive
> the incoming values from a form.
$_REQUEST should work in this case (i think) as it works kind of like a "catch all"
While $_POST just catches POST and $_GET just catches GET... $_REQUEST catches all requests be it get,post,cookie etc
for testing I always use $_REQUEST.
Andrew:
Thanks for replying!
> I think in this case $_REQUEST and $_POST should both get you what you
> want. I'm wondering whether your javascript is inserting the form
> fields within the correct <FORM></FORM> tags.
Yep, it is correct, further down I will post the URL so you can check it out if you want.
> Also, FWIW, I doubt it has anything to do with your problem but you
> are assigning the same value for ID each time through the loop. The ID
> attribute is supposed to be unique for each element on the page.
Tried changing it, no luck.
Pete F:
Thanks for replying!
> 1. Check that the Javascript is doing what you expect: you *are* using Firebug
> on Firefox, aren't you? Also the WebDeveloper toolbar plugin is useful - it has
> a View Generated Source tool which will show you what Firefox thinks your page
> actually looks like after the JS has run...
Dont have either of them.... dont know how to use them actually, but will have a look after this email. I did hear of firebug though not the other one.
> 2. Check that the TD you are loading with content is actually inside the <FORM>
> tags - otherwise the inputs won't be included in the request/post variables...
Yep, checked that. IE is getting it... FF is not. Which is really strange as IE is usually the bit*h that usually throws weird errors and results.
Daniel,
Thanks for replying!
> Ryan, would it be possible for you to send an actual link to the
> page in question? You'll probably wind up with some better feedback
> with a real-world test in this particular case.
Didnt want to bloat my post and take up extra time from the people who reply, but looks like posting links is the best option so will do:
http://www.coinpass.com/test/step2.php (to run the script)
http://www.coinpass.com/test/step2.phps (View the source, its just a html file really)
All Javascript and CSS is in the "http://www.coinpass.com/test/scripts/" directory
The processing script just has
print_r($_REQUEST);
so its useless pointing you to the actual file source.
Jim L,
Thanks for replying!
> Show us the actual output of the print_r() call above.
Would be easier if you click on the top link/s and just click the submit button
Cheers!
R
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
attached mail follows:
On Tue, Apr 8, 2008 at 3:51 PM, Ryan S <genphp
yahoo.com> wrote:
> Hi Guys,
[snip]
> Andrew:
> Thanks for replying!
>
[snip]
> > Also, FWIW, I doubt it has anything to do with your problem but you
> > are assigning the same value for ID each time through the loop. The ID
> > attribute is supposed to be unique for each element on the page.
>
> Tried changing it, no luck.
I didn't expect it to fix anything related to the problem you posted,
but it is something that should be fixed.
I looked at the HTML source (since I think that's where your problem
is). The problem is that you have <FORM> tags nested inside your table
between two rows:
</tr><form action="process_ecard1.php" method="post" name="mainform">
<tr>
While your nesting is correct insofar as making sure that your <FORM>,
<TABLE>, <TR> and <TD> tags don't cross each other, the <FORM> tag
can't be there. I see why you've done it that way - you have another
form nested inside a cell within the same table (you can't nest one
form within another), and your second form needs to span more than one
cell or row. You need to rethink your page flow and layout so that it
uses valid HTML structure. I don't know if you can combine both forms
into one or if you need to split the table apart.
FWIW, while validating the above solution I found an extra (empty and
unclosed) <TR> tag inside the recipient table which prompted me to run
your HTML through the W3C validator. It found 19 errors that keep it
from validating as XHTML strict as specified in your DOCTYPE. Most of
these won't cause major problems, but the 6th error reported is the
cause of the problem you're having: "document type does not allow
element 'form' here".
Andrew
attached mail follows:
Hey!
Thanks Andrew, will look into those points that you sent me.
First thing to change will be the DOCTYPE I think, as i didht type that but must have copied code into a pre-made page...
Cheers!
R
----- Original Message ----
From: Andrew Ballard <aballard
gmail.com>
To: PHP General list <php-general
lists.php.net>
Sent: Tuesday, April 8, 2008 11:18:36 PM
Subject: Re: [PHP] dynamic boxes problem... JS and PHP
On Tue, Apr 8, 2008 at 3:51 PM, Ryan S <genphp
yahoo.com> wrote:
> Hi Guys,
[snip]
> Andrew:
> Thanks for replying!
>
[snip]
> > Also, FWIW, I doubt it has anything to do with your problem but you
> > are assigning the same value for ID each time through the loop. The ID
> > attribute is supposed to be unique for each element on the page.
>
> Tried changing it, no luck.
I didn't expect it to fix anything related to the problem you posted,
but it is something that should be fixed.
I looked at the HTML source (since I think that's where your problem
is). The problem is that you have <FORM> tags nested inside your table
between two rows:
</tr><form action="process_ecard1.php" method="post" name="mainform">
<tr>
While your nesting is correct insofar as making sure that your <FORM>,
<TABLE>, <TR> and <TD> tags don't cross each other, the <FORM> tag
can't be there. I see why you've done it that way - you have another
form nested inside a cell within the same table (you can't nest one
form within another), and your second form needs to span more than one
cell or row. You need to rethink your page flow and layout so that it
uses valid HTML structure. I don't know if you can combine both forms
into one or if you need to split the table apart.
FWIW, while validating the above solution I found an extra (empty and
unclosed) <TR> tag inside the recipient table which prompted me to run
your HTML through the W3C validator. It found 19 errors that keep it
from validating as XHTML strict as specified in your DOCTYPE. Most of
these won't cause major problems, but the 6th error reported is the
cause of the problem you're having: "document type does not allow
element 'form' here".
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
attached mail follows:
On Tue, Apr 8, 2008 at 6:20 PM, Ryan S <genphp
yahoo.com> wrote:
> Hey!
> Thanks Andrew, will look into those points that you sent me.
>
> First thing to change will be the DOCTYPE I think, as i didht type that but must have copied code into a pre-made page...
One thing I learned when screwing around with AJAX is that it,
like nearly everything that occurs in nature, must be customized to
play nicely with Microsoft things. Call me bitter. No, seriously, it
could be my new nickname.
<script language="JavaScript">
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
} else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
} else {
document.getElementById('p_status').innerHTML = 'Status: Cound not
create XmlHttpRequest Object. Consider upgrading your browser.';
}
}
</script>
It's something I had to use when playing around with a chat script
I was building a while ago:
http://pilotpig.net/gchat/
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting
$59.99/mo., VPS starting
$19.99/mo.,
and shared hosting starting
$2.50/mo.
Unmanaged, managed, and fully-managed!
attached mail follows:
Hello Bitter,
(so is that Bitter Andrew or Bitter Brown? :-) )
Thanks for the little titbit of request code, have saved it and will certainly use it.
Lets see how the next version is, they promised to make the new IE stick closer to the standards.
Cheers!
R
On Tue, Apr 8, 2008 at 6:20 PM, Ryan S <genphp
yahoo.com> wrote:
> Hey!
> Thanks Andrew, will look into those points that you sent me.
>
> First thing to change will be the DOCTYPE I think, as i didht type that but must have copied code into a pre-made page...
One thing I learned when screwing around with AJAX is that it,
like nearly everything that occurs in nature, must be customized to
play nicely with Microsoft things. Call me bitter. No, seriously, it
could be my new nickname.
<script language="JavaScript">
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
} else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
} else {
document.getElementById('p_status').innerHTML = 'Status: Cound not
create XmlHttpRequest Object. Consider upgrading your browser.';
}
}
</script>
It's something I had to use when playing around with a chat script
I was building a while ago:
http://pilotpig.net/gchat/
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting
$59.99/mo., VPS starting
$19.99/mo.,
and shared hosting starting
$2.50/mo.
Unmanaged, managed, and fully-managed!
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
attached mail follows:
Hello Bitter,
(so is that Bitter Andrew or Bitter Brown? :-) )
Thanks for the little titbit of request code, have saved it and will certainly use it.
Lets see how the next version is, they promised to make the new IE stick closer to the standards.
Cheers!
R
On Tue, Apr 8, 2008 at 6:20 PM, Ryan S <genphp
yahoo.com> wrote:
> Hey!
> Thanks Andrew, will look into those points that you sent me.
>
> First thing to change will be the DOCTYPE I think, as i didht type that but must have copied code into a pre-made page...
One thing I learned when screwing around with AJAX is that it,
like nearly everything that occurs in nature, must be customized to
play nicely with Microsoft things. Call me bitter. No, seriously, it
could be my new nickname.
<script language="JavaScript">
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
} else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
} else {
document.getElementById('p_status').innerHTML = 'Status: Cound not
create XmlHttpRequest Object. Consider upgrading your browser.';
}
}
</script>
It's something I had to use when playing around with a chat script
I was building a while ago:
http://pilotpig.net/gchat/
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting
$59.99/mo., VPS starting
$19.99/mo.,
and shared hosting starting
$2.50/mo.
Unmanaged, managed, and fully-managed!
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
attached mail follows:
Which are the good books for learning php?
attached mail follows:
On Sun, Apr 6, 2008 at 11:28 AM, news.php.net <psr.1020
gmail.com> wrote:
> Which are the good books for learning php?
Try to choose one that has pages, some (if not all) of those
should contain words forming sentences, and particularly those focused
on the PHP programming language.
http://marc.info/?w=2&r=1&s=php+books&q=t
http://search.gmane.org/?query=php+books&group=gmane.comp.php.general
http://www.google.com/search?q=php+books
http://www.faqs.org/docs/jargon/S/STFW.html
From http://php.net/mailinglists :
Posting guidelines
* ....
* Check the archives before posting a question, chances
are it has already been asked and answered a few times.
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting
$59.99/mo., VPS starting
$19.99/mo.,
and shared hosting starting
$2.50/mo.
Unmanaged, managed, and fully-managed!
attached mail follows:
On Apr 8, 2008, at 1:10 PM, Daniel Brown wrote:
> On Sun, Apr 6, 2008 at 11:28 AM, news.php.net <psr.1020
gmail.com>
> wrote:
>> Which are the good books for learning php?
>
> Try to choose one that has pages, some (if not all) of those
> should contain words forming sentences, and particularly those focused
> on the PHP programming language.
You mean that books are supposed to have stuff other then pictures?
Well hot damn.... Learn something new everyday!
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
japruim
raoset.com
attached mail follows:
On Tue, Apr 8, 2008 at 1:26 PM, Jason Pruim <japruim
raoset.com> wrote:
>
> You mean that books are supposed to have stuff other then pictures? Well
> hot damn.... Learn something new everyday!
Some programming books, such as guides to Windows source code,
have pictures.
http://www.pilotpig.net/images/winsource.jpg
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting
$59.99/mo., VPS starting
$19.99/mo.,
and shared hosting starting
$2.50/mo.
Unmanaged, managed, and fully-managed!
attached mail follows:
---- Daniel Brown <parasane
gmail.com> wrote:
> On Tue, Apr 8, 2008 at 1:26 PM, Jason Pruim <japruim
raoset.com> wrote:
> >
> > You mean that books are supposed to have stuff other then pictures? Well
> > hot damn.... Learn something new everyday!
>
> Some programming books, such as guides to Windows source code,
> have pictures.
Wait, you mean windows has source code that has words? How are the script kiddies figuring out the exploits then? ;)
And Jason, if you still have that copy of Forum with just pictures, can you scan it in for me and send it my way? :D
Wolf
attached mail follows:
On Tue, Apr 8, 2008 at 10:29 AM, Daniel Brown <parasane
gmail.com> wrote:
> On Tue, Apr 8, 2008 at 1:26 PM, Jason Pruim <japruim
raoset.com> wrote:
> >
> > You mean that books are supposed to have stuff other then pictures? Well
> > hot damn.... Learn something new everyday!
>
> Some programming books, such as guides to Windows source code,
> have pictures.
>
> http://www.pilotpig.net/images/winsource.jpg
ROFL.
--
-Casey
attached mail follows:
sorry, forgot to include the list
Jason Pruim Ãrta:
>
> On Apr 8, 2008, at 11:02 AM, Andrew Ballard wrote:
>> On Tue, Apr 8, 2008 at 10:56 AM, Jochem Maas <jochem
iamjochem.com>
>> wrote:
>>> Robert Cummings schreef:
>>>
>>>> On Tue, 2008-04-08 at 07:21 +0200, Nitsan Bin-Nun wrote:
>>>>
>>>>> Hi,
>>>>> I'm working with serveral PHP editors, each has it own restrictions.
>>>>> So umm, What editors do you recommend and what special functions and
>>>>> dis/adventages they have (maybe im overkilling my own back).
>>>>>
>>>>
>>>> This comes up almost once a week. Read the archives.
>>>>
>>>
>>> indeed, although the proper answer never comes up. the proper answer is
>>> ofcourse 'me' - as in I'm a highly recommended php editor - I have
>>> integrated
>>> code generation and refactoring functionality that is lightyears
>>> ahead of
>>> any IDE
>>>
>>> :-P
>>
>> Perhaps, but I'm sure I can't afford the license -- especially the
>> multi-user version! :-)
>
> If you're going to license a multi-user version... I'd look into the AI
> interface one of the list members was working on earlier... Although I
> can't find the e-mail right now about it :)
you mean Richard Lynch's AI, but I think that must be still in some beta
stage, as we see Lynch only once in a while come and post a couple dozen
messages ;)
greets,
Zoltán Németh
>
>
>>
>>
>> Andrew
>>
>> --PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> --
>
> Jason Pruim
> Raoset Inc.
> Technology Manager
> MQC Specialist
> 3251 132nd ave
> Holland, MI, 49424-9337
> www.raoset.com
> japruim
raoset.com
>
>
>
>
> --PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
On Apr 8, 2008, at 1:48 PM, Zoltán Németh wrote:
> Jason Pruim írta:
>> On Apr 8, 2008, at 11:02 AM, Andrew Ballard wrote:
>>> On Tue, Apr 8, 2008 at 10:56 AM, Jochem Maas
>>> <jochem
iamjochem.com> wrote:
>>>> Robert Cummings schreef:
>>>>
>>>>> On Tue, 2008-04-08 at 07:21 +0200, Nitsan Bin-Nun wrote:
>>>>>
>>>>>> Hi,
>>>>>> I'm working with serveral PHP editors, each has it own
>>>>>> restrictions.
>>>>>> So umm, What editors do you recommend and what special
>>>>>> functions and
>>>>>> dis/adventages they have (maybe im overkilling my own back).
>>>>>>
>>>>>
>>>>> This comes up almost once a week. Read the archives.
>>>>>
>>>>
>>>> indeed, although the proper answer never comes up. the proper
>>>> answer is
>>>> ofcourse 'me' - as in I'm a highly recommended php editor - I have
>>>> integrated
>>>> code generation and refactoring functionality that is lightyears
>>>> ahead of
>>>> any IDE
>>>>
>>>> :-P
>>>
>>> Perhaps, but I'm sure I can't afford the license -- especially the
>>> multi-user version! :-)
>> If you're going to license a multi-user version... I'd look into
>> the AI interface one of the list members was working on earlier...
>> Although I can't find the e-mail right now about it :)
>
> you mean Richard Lynch's AI, but I think that must be still in some
> beta stage, as we see Lynch only once in a while come and post a
> couple dozen messages ;)
That would be him! He might be trying to run it on a windows platform,
which I've heard is tricky... Intelligence and Microsoft just don't
seem to go together right ;)
Also, you might want to double check if you're hitting reply or reply-
all :P
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
japruim
raoset.com
attached mail follows:
Jason Pruim Ãrta:
>
> On Apr 8, 2008, at 1:48 PM, Zoltán Németh wrote:
>> Jason Pruim Ãrta:
>>> On Apr 8, 2008, at 11:02 AM, Andrew Ballard wrote:
>>>> On Tue, Apr 8, 2008 at 10:56 AM, Jochem Maas <jochem
iamjochem.com>
>>>> wrote:
>>>>> Robert Cummings schreef:
>>>>>
>>>>>> On Tue, 2008-04-08 at 07:21 +0200, Nitsan Bin-Nun wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>> I'm working with serveral PHP editors, each has it own restrictions.
>>>>>>> So umm, What editors do you recommend and what special functions and
>>>>>>> dis/adventages they have (maybe im overkilling my own back).
>>>>>>>
>>>>>>
>>>>>> This comes up almost once a week. Read the archives.
>>>>>>
>>>>>
>>>>> indeed, although the proper answer never comes up. the proper
>>>>> answer is
>>>>> ofcourse 'me' - as in I'm a highly recommended php editor - I have
>>>>> integrated
>>>>> code generation and refactoring functionality that is lightyears
>>>>> ahead of
>>>>> any IDE
>>>>>
>>>>> :-P
>>>>
>>>> Perhaps, but I'm sure I can't afford the license -- especially the
>>>> multi-user version! :-)
>>> If you're going to license a multi-user version... I'd look into the
>>> AI interface one of the list members was working on earlier...
>>> Although I can't find the e-mail right now about it :)
>>
>> you mean Richard Lynch's AI, but I think that must be still in some
>> beta stage, as we see Lynch only once in a while come and post a
>> couple dozen messages ;)
>
> That would be him! He might be trying to run it on a windows platform,
> which I've heard is tricky... Intelligence and Microsoft just don't seem
> to go together right ;)
well, I doubt he would ever touch anything M$... ;)
>
> Also, you might want to double check if you're hitting reply or
> reply-all :P
good point, I already checked it :)
greets,
Zoltán Németh
>
>
> --
>
> Jason Pruim
> Raoset Inc.
> Technology Manager
> MQC Specialist
> 3251 132nd ave
> Holland, MI, 49424-9337
> www.raoset.com
> japruim
raoset.com
>
>
>
>
attached mail follows:
....I have raised a whole new generation of curmudgeons! *sniff*
attached mail follows:
On Tue, Apr 8, 2008 at 2:13 PM, Jay Blanchard <jblanchard
pocket.com> wrote:
> ....I have raised a whole new generation of curmudgeons! *sniff*
/me golf-claps.
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting
$59.99/mo., VPS starting
$19.99/mo.,
and shared hosting starting
$2.50/mo.
Unmanaged, managed, and fully-managed!
attached mail follows:
On Tue, 2008-04-08 at 14:17 -0400, Daniel Brown wrote:
> On Tue, Apr 8, 2008 at 2:13 PM, Jay Blanchard <jblanchard
pocket.com> wrote:
> > ....I have raised a whole new generation of curmudgeons! *sniff*
>
> /me golf-claps.
/me golf-claps with one hand
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
attached mail follows:
On Tue, Apr 8, 2008 at 2:38 PM, Robert Cummings <robert
interjinn.com> wrote:
>
> On Tue, 2008-04-08 at 14:17 -0400, Daniel Brown wrote:
> > On Tue, Apr 8, 2008 at 2:13 PM, Jay Blanchard <jblanchard
pocket.com> wrote:
> > > ....I have raised a whole new generation of curmudgeons! *sniff*
> >
> > /me golf-claps.
>
> /me golf-claps with one hand
. o 0 {So that's what that sounds like.}
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting
$59.99/mo., VPS starting
$19.99/mo.,
and shared hosting starting
$2.50/mo.
Unmanaged, managed, and fully-managed!
attached mail follows:
[snip]
On Tue, Apr 8, 2008 at 2:38 PM, Robert Cummings <robert
interjinn.com>
wrote:
>
> On Tue, 2008-04-08 at 14:17 -0400, Daniel Brown wrote:
> > On Tue, Apr 8, 2008 at 2:13 PM, Jay Blanchard
<jblanchard
pocket.com> wrote:
> > > ....I have raised a whole new generation of curmudgeons! *sniff*
> >
> > /me golf-claps.
>
> /me golf-claps with one hand
. o 0 {So that's what that sounds like.}
[/snip]
I would have told you to watch out for the tree, but I didn't hear that
either.
attached mail follows:
On 8 Apr 2008, at 04:15, Dave M G wrote:
> PHP list,
>
> Solving my own issue:
>
> It turns out that some PHP scripts had an extra carriage return
> character at the end of the file. Once I removed these, the problem
> went away.
>
> Strange that it only happened on some servers, not others, but there
> it is.
1. Enable E_ALL error_reporting and turn on display_errors - that
should have told you the session could not be started because headers
had already been sent
2. Don't put ?> when it's the last thing in a file, it's not necessary
by design for this very reason
The servers where it worked probably had an implicit buffer configured
thus not caring about output before session_start().
-Stut
--
http://stut.net/
attached mail follows:
I've been running some benchmarks on popular PHP functions. I would like to
get some input on them from the community. So far I have run tests on
Arrays and PHP5's SPL ArrayObject, as well as loops and some networking
functions.
Here is a link to the code used for the benchmarks.
http://www.synthable.com/benchmarks/
Thanks,
Jason <http://www.synthable.com/>
attached mail follows:
On Tue, Apr 8, 2008 at 1:52 PM, Jason Knight <jcknight
gmail.com> wrote:
> I've been running some benchmarks on popular PHP functions. I would like
> to
> get some input on them from the community. So far I have run tests on
> Arrays and PHP5's SPL ArrayObject, as well as loops and some networking
> functions.
>
>
> Here is a link to the code used for the benchmarks.
> http://www.synthable.com/benchmarks/
i did some tests a couple of months ago; pitting array iteration vs.
iteration w/ spl iterators. link is down atm; but will be back soon and ill
post again so you have something similar to look at. a quick glance shows
you have some thorough tests; but for the results some graphs would be nice
:) kinda hard to see 'the big picture' w/o them.
-nathan
attached mail follows:
Hi, everyone.
This one's been driving me bonkers for an hour now. Anyone have any idea
why require_once would be dying silently in the script below?
------------------------------------
$CFG->dirroot = "/home/rcrawford/public_html/tanktrunk/tanktrunk";
$CFG->dataroot = $CFG->dirroot.'/moodledata';
require_once("$CFG->dirroot/lib/setup.php");
------------------------------------
I've confirmed that the file setup.php exists and is readable. I've got
error_reporting in php.ini set to E_ALL. I'm running Apache 2 and PHP5 on
Kubuntu 7.10. Nothing shows up in my apache error log, and PHP itself
produces absolutely no output, even though it will produce output galore
when I put in a deliberate syntax error.
I've also tried:
------------------------------------
require_once($CFG->dirroot."/lib/setup.php");
------------------------------------
but this didn't help.
Any assistance at all would be greatly appreciated.
--
Richard S. Crawford (rscrawford
mossroot.com)
http://www.mossroot.com
Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)
attached mail follows:
Richard S. Crawford wrote:
> Hi, everyone.
>
> This one's been driving me bonkers for an hour now. Anyone have any idea
> why require_once would be dying silently in the script below?
>
> ------------------------------------
>
> $CFG->dirroot = "/home/rcrawford/public_html/tanktrunk/tanktrunk";
> $CFG->dataroot = $CFG->dirroot.'/moodledata';
>
> require_once("$CFG->dirroot/lib/setup.php");
> ------------------------------------
>
> I've confirmed that the file setup.php exists and is readable. I've got
> error_reporting in php.ini set to E_ALL. I'm running Apache 2 and PHP5 on
> Kubuntu 7.10. Nothing shows up in my apache error log, and PHP itself
> produces absolutely no output, even though it will produce output galore
> when I put in a deliberate syntax error.
Syntax errors in which file? The calling one (where you have the
require_once) or the lib/setup.php file?
Maybe something in your code is disabling your error reporting, I'd put
both:
error_reporting(E_ALL);
ini_set('display_errors', true);
in before the require_once and see what happens.
--
Postgresql & php tutorials
http://www.designmagick.com/
attached mail follows:
<?php echo 'begin brainstorm.'; ?>
Is it possible that something is "going wrong" between the definition
of $CFG->foo and when you require that could cause $CFG->dirroot to be
null? Then it would point to /lib/setup.php, which definitely
shouldn't exist and should thus throw an error, but maybe it's worth
looking into.
<?php require_once('Have you tried including a file that definitely
does not exist?'); ?> That would rule out any error reporting problems
anyway.
Have you tried something to the effect of <?php echo __FILE__ . '
included'; ?> on the first line of setup.php? Adding <?php
print_r(get_included_files()); ?> after the require_once() might also
help.
> I've confirmed that the file setup.php exists and is readable.
I apologize if this seems obvious, but for the sake of
brainstorming... it's readable by the user running apache, right? And
even if it weren't, that should have thrown an error *shrugs*
That's all I can think of. I hope it is of some use to you.
<?php echo 'end brainstorm.'; ?>
<?php signature('GREG'); ?>
attached mail follows:
On Tue, Apr 8, 2008 at 8:27 PM, Greg Bowser <topnotcher
gmail.com> wrote:
> <?php echo 'begin brainstorm.'; ?>
>
> Is it possible that something is "going wrong" between the definition
> of $CFG->foo and when you require that could cause $CFG->dirroot to be
> null? Then it would point to /lib/setup.php, which definitely
> shouldn't exist and should thus throw an error, but maybe it's worth
> looking into.
>
> <?php require_once('Have you tried including a file that definitely
> does not exist?'); ?> That would rule out any error reporting problems
> anyway.
>
> Have you tried something to the effect of <?php echo __FILE__ . '
> included'; ?> on the first line of setup.php? Adding <?php
> print_r(get_included_files()); ?> after the require_once() might also
> help.
>
>
> > I've confirmed that the file setup.php exists and is readable.
> I apologize if this seems obvious, but for the sake of
> brainstorming... it's readable by the user running apache, right? And
> even if it weren't, that should have thrown an error *shrugs*
>
> That's all I can think of. I hope it is of some use to you.
>
> <?php echo 'end brainstorm.'; ?>
>
> <?php signature('GREG'); ?>
>
>
You should try:
<?php
require_once("/home/rcrawford/public_html/tanktrunk/tanktrunk/lib/setup.php");
?>
--
-Casey
attached mail follows:
Hi,
How can I check if the XMLReader is enabled or not in php? Also, how
to config the php to support SOAP and WSDL?
Thank you.
Jim
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]