|
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 23 Sep 2003 19:33:18 -0000 Issue 2314
php-general-digest-help
lists.php.net
Date: Tue Sep 23 2003 - 14:33:18 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 23 Sep 2003 19:33:18 -0000 Issue 2314
Topics (messages 163551 through 163622):
Re: Recursive class trouble
163551 by: Christoffer Enedahl
Re: Mail problem
163552 by: Trevor Dowling
163588 by: Trevor Dowling
RE : [PHP] Start php-script with exec()?
163553 by: BENARD Jean-philippe
php4ts.dll and Win2000 IIS server
163554 by: Astron of BrOnX
163571 by: Marek Kilimajer
Re: speaking of php editors
163555 by: Eugene Lee
163585 by: Curt Zirzow
Re: PHP Editor - which to use?
163556 by: Gal
163566 by: Evan Nemerson
163599 by: jeffrey pearson
163604 by: Jim Lucas
163606 by: Chris W. Parker
163608 by: Jason Wong
163609 by: Jay Blanchard
163612 by: Ryan A
163614 by: Chris W. Parker
163615 by: Curt Zirzow
163622 by: Jim Lucas
determine resolution that client is running
163557 by: Angelo Zanetti
163559 by: Becoming Digital
Running system commands
163558 by: Nitin
163570 by: Evan Nemerson
RE : [PHP] Redirect URL
163560 by: Youri B.
Re: Shopping Cart Solutions
163561 by: pete M
163565 by: Becoming Digital
Re: CAN I CASH the output of PHP SCRIPT?
163562 by: nabil
163595 by: Raquel Rice
163596 by: Tom Rogers
Creating Objects!
163563 by: Webmaster
163569 by: Evan Nemerson
Creating objects
163564 by: Webmaster
Re: javascript open window and a PHP script...
163567 by: Marek Kilimajer
163621 by: jsWalter
Re: PHP5 interfaces?
163568 by: Marek Kilimajer
163610 by: Javier Muniz
163616 by: Robert Cummings
163617 by: Javier Muniz
163618 by: Jay Blanchard
Re: bugs.php.net
163572 by: Marek Kilimajer
How to update url on server side...php header func?
163573 by: Mike Klein
163577 by: Jay Blanchard
163579 by: Mike Klein
163582 by: Jay Blanchard
Re: Formatting a string for entry into MySQL
163574 by: Burhan Khalid
163593 by: James Johnson
Re: Calling PHP shell scripts with exec from within PHP goes awry?
163575 by: Jay Blanchard
163576 by: Robert Cummings
163578 by: Jay Blanchard
php and checkboxes
163580 by: Angelo Zanetti
163583 by: Robert Cummings
problem passing variable between forms.
163581 by: Angelo Zanetti
163584 by: CPT John W. Holmes
PHP class and extends
163586 by: BENARD Jean-philippe
Re: TAR Error - 'Invalid block size'
163587 by: Ray Hunter
163589 by: Ray Hunter
$_SERVER['UNIQUE_ID'] question
163590 by: Susan Ator
163591 by: Curt Zirzow
Re: when clients go bad
163592 by: Raditha Dissanayake
SEssion error
163594 by: Stephen Schneider
Logged Out of Seesion, Then use back button
163597 by: Roger Spears
163598 by: Didier McGillis
163600 by: Roger Spears
163601 by: Jay Blanchard
GD problem
163602 by: Ignacio Correa
163605 by: Pete James
163607 by: Andrew Brampton
XQL module ?
163603 by: Gal
preg_match_all
163611 by: Floris
163613 by: Curt Zirzow
Document Management App
163619 by: Jay Blanchard
IP to Postal Code CSV? anyone messed around with this and PHP
163620 by: Joe Harman
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:
I had to rewrite my class so it parsed all data in the constructor. I'm
still wondering about this though. I't seems like a bug, however I don't
know enough about PHP to report bugs yet.
I'm used to program in ASP. I'm very pleased with PHP so far, this quirk is
the
first negative issue I've found about PHP.
The top advantages over asp so far:
require(file) --in asp, the file is always
included even if the logic seems to hide it.
$str = "string with a $variable" --No more "INSERT INTO [table]
(name,name2) VALUES ('"& name &"','"& name2 &"')"
$var++ --why o why doesn't asp got this?
class inheritance --no comment
/Christoffer
attached mail follows:
All,
Many thanks for you thoughts, I will take a look at your suggestions, I hope
they fix the issue, others suggested the same things so I think we can
assume your all correct, (I hope so!)
Once again, thanks
Trevor
"Curt Zirzow" <php-general
zirzow.dyndns.org> wrote in message
news:20030922170517.GY54958
bagend.shire...
> * Thus wrote Trevor Dowling (td01
csr.com):
> > PHP Version 4.3.2
> > I am having problems sending a large number of emails from a mail list
held
> > in a database. I don't belive that the database has anything to do with
the
> > problem.
> >
> > I have about 9000 addresses and can only successfully send about 2000
mails
> > before the page say complete/done.
>
> see set_time_limit().
> http://php.net/set_time_limit
>
> Also the webserver will disconnect after a certain amount of time,
> you can search the archives to see how people resolved this in the
> past.
>
> >
> > while (odbc_fetch_row ($result))
> > {
> >
> > $EmailAddress = trim (odbc_result ($result, 'email'));
> >
> > flush();
>
> flush isn't necessary here, doesn't have anything to do with your
> issue though.
>
> oh, and also add a few lines that say:
> if(preg_match('\
zirzow\.dyndns\.org', $EmailAddress) ) {
> continue;
> }
> >
mail ($EmailAddress, "Support", $Message);
> >
>
> HTH,
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
Fixed!
Thanks
Trevor
"Trevor Dowling" <td01
csr.com> wrote in message
news:20030923081311.75388.qmail
pb1.pair.com...
> All,
>
> Many thanks for you thoughts, I will take a look at your suggestions, I
hope
> they fix the issue, others suggested the same things so I think we can
> assume your all correct, (I hope so!)
>
> Once again, thanks
>
> Trevor
>
> "Curt Zirzow" <php-general
zirzow.dyndns.org> wrote in message
> news:20030922170517.GY54958
bagend.shire...
> > * Thus wrote Trevor Dowling (td01
csr.com):
> > > PHP Version 4.3.2
> > > I am having problems sending a large number of emails from a mail list
> held
> > > in a database. I don't belive that the database has anything to do
with
> the
> > > problem.
> > >
> > > I have about 9000 addresses and can only successfully send about 2000
> mails
> > > before the page say complete/done.
> >
> > see set_time_limit().
> > http://php.net/set_time_limit
> >
> > Also the webserver will disconnect after a certain amount of time,
> > you can search the archives to see how people resolved this in the
> > past.
> >
> > >
> > > while (odbc_fetch_row ($result))
> > > {
> > >
> > > $EmailAddress = trim (odbc_result ($result, 'email'));
> > >
> > > flush();
> >
> > flush isn't necessary here, doesn't have anything to do with your
> > issue though.
> >
> > oh, and also add a few lines that say:
> > if(preg_match('\
zirzow\.dyndns\.org', $EmailAddress) ) {
> > continue;
> > }
> > >
mail ($EmailAddress, "Support", $Message);
> > >
> >
> > HTH,
> >
> > Curt
> > --
> > "I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
Maybe you'll need to add " >/dev/null &" at the end of your execution
command. Adding this will put your script to background and php wouldn't
wait for this script end before terminate http process (=> no browser
timeout).
For example : exec("/logiciel/php/bin/php /tmp/toto.php >/dev/null &");
Cordialement,
Jean-Philippe BENARD
Consultant STERIA Infogérance
(jean-philippe.benard-renexter
renault.com)
-----Message d'origine-----
De : Victor Spång Arthursson [mailto:scooterbabe
home.se]
Envoyé : lundi 22 septembre 2003 14:16
À : php-general
lists.php.net
Objet : [PHP] Start php-script with exec()?
Is it possible?
I have a file that takes 5 minutes to run, and I would like to be able
to start it when loading a page. But I can't include it because it
forces the browser to timeout…
exec("script.php") doesn't seem to work…
Sincerely
Victor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Dear Marek Kilimajer and others,
I have done all thing that you told me.. In my local (winXP, IIS5.1) SSL is
working fine now.. I have replaced php4ts.dll Manuzhai suggested to use
php4ts.dll from http://ftp.proventum.net/pub/php/win32/misc/openssl/ and it
is okay now..
But, windows2000 IIS gives an error when i have replaced php4ts.dll with new
one (Manuzhai dll), it says,
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
is there any problem with win2000 IIS? I have been doing all things to
enable SSL,like copying dlls from c:\php\dlls to c:\winnt\system and
replace php4ts.dll ..
Thanks,
Astron
attached mail follows:
Check these out for solutions:
http://bugs.php.net/bug.php?id=13383
http://bugs.php.net/bug.php?id=12358
And other suggestions will come up if you google:
http://www.google.com/search?q=The%20specified%20CGI%20application%20misbehaved%20by%20not%20returning%20a%20complete%20set%20of%20php
Astron of BrOnX wrote:
> Dear Marek Kilimajer and others,
>
> I have done all thing that you told me.. In my local (winXP, IIS5.1) SSL is
> working fine now.. I have replaced php4ts.dll Manuzhai suggested to use
> php4ts.dll from http://ftp.proventum.net/pub/php/win32/misc/openssl/ and it
> is okay now..
>
> But, windows2000 IIS gives an error when i have replaced php4ts.dll with new
> one (Manuzhai dll), it says,
>
> CGI Error
> The specified CGI application misbehaved by not returning a complete set of
> HTTP headers. The headers it did return are:
>
>
> is there any problem with win2000 IIS? I have been doing all things to
> enable SSL,like copying dlls from c:\php\dlls to c:\winnt\system and
> replace php4ts.dll ..
> Thanks,
> Astron
>
attached mail follows:
On Tue, Sep 23, 2003 at 12:28:12AM +0000, Curt Zirzow wrote:
: * Thus wrote Chris W. Parker (cparker
swatgear.com):
: >
: > I am looking for an editor that will highlight the string
: > "{$array['index']['index']}" within a string.
: >
: > For example:
: >
: > +--------- gray ------------+
: > | |
: > | +-- red ---+ |
: > | | | |
: > $variable = "The amount is {$amount[0]}.";
: ^^^^ ^^^^^^ ^^ +*%%%%%%#^#+^^
: | || | |||| |
: Green <-------'-----------------------'---'
: || | | ||
: Red +------------------------'----------'
: | | | |
: Dk. Red #----------------------------'-'
: | |
: Yellow *----------------------' |
: |
: Blue %---------------------------'
:
: Thats vi's coloring :)
Plain vi does not do syntax highlighting. Perhaps you are using a
vi-derivative, like Vim.
http://www.vim.org/
attached mail follows:
* Thus wrote Eugene Lee (list-php
fsck.net):
> On Tue, Sep 23, 2003 at 12:28:12AM +0000, Curt Zirzow wrote:
> : * Thus wrote Chris W. Parker (cparker
swatgear.com):
> : >
> : > I am looking for an editor that will highlight the string
> : > "{$array['index']['index']}" within a string.
> : >
> : > For example:
> : >
> : > +--------- gray ------------+
> : > | |
> : > | +-- red ---+ |
> : > | | | |
> : > $variable = "The amount is {$amount[0]}.";
> : ^^^^ ^^^^^^ ^^ +*%%%%%%#^#+^^
> :
> : Thats vi's coloring :)
>
> Plain vi does not do syntax highlighting. Perhaps you are using a
> vi-derivative, like Vim.
>
> http://www.vim.org/
yeah, I suppose I should clarify that. I sometimes use vi/vim
interchangably, which I shouldn't do. Thanks for noting this.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
The Best is the GTK verstion of the classic VI editor (latest VI 6.2 -
uses GTK 2 on Linux) and there is also a Windows version.
It's the best and you don't have to pay for licenses.
http://www.vim.org/index.php
Notepad - is very poor. you can not controle tabs spaces, see white
space and syntax color.
NukedWeb
aol.com wrote:
>>You must either be insane, a genius, or joking.
>
> Some of the most gifted people in the world are all three! Not that I'm
> claiming to be one, but yes I'm all three. :-D
>
>
>>I couldn't imagine writing code without context sensitive highlighting --
>
> there are so many bugs that would be overlooked. - Huh? What's that? Context
> hightlighting? Like built-in colorful magic markers? Ehh. Bugs can NEVER go
> overlooked as long as PHP's parse-errors are always right there to rub it in that
> we fudged up... ;) I swear...all PHP error msgs should end with "....you
> loser!" :-D
>
>
>>And not being able to use M-g to goto aline number? (I use Emacs) I'd go
>
> bonkers.
> Notepad as well. ctrl+G -- only found out about that a year into
> PHP....dammit. coulda really used it when I was learning...beat the hell outta using the
> down arrow and counting in my head!
>
> Hope ya don't think I'm tryin to poke fun Dan. I meant well ;) Quite frankly
> I dont think I'd ever learn an "editor", I've used Notepad so long, it's like
> an 85 year old man learning how to use a DVD player. ;)
>
attached mail follows:
In you php.ini, set error_append_string to "... you loser!"
On Monday 22 September 2003 07:56 pm, NukedWeb
aol.com wrote:
> >You must either be insane, a genius, or joking.
>
> Some of the most gifted people in the world are all three! Not that I'm
> claiming to be one, but yes I'm all three. :-D
>
> > I couldn't imagine writing code without context sensitive highlighting --
>
> there are so many bugs that would be overlooked. - Huh? What's that?
> Context hightlighting? Like built-in colorful magic markers? Ehh. Bugs can
> NEVER go overlooked as long as PHP's parse-errors are always right there to
> rub it in that we fudged up... ;) I swear...all PHP error msgs should end
> with "....you loser!" :-D
>
> > And not being able to use M-g to goto aline number? (I use Emacs) I'd
> > go
>
> bonkers.
> Notepad as well. ctrl+G -- only found out about that a year into
> PHP....dammit. coulda really used it when I was learning...beat the hell
> outta using the down arrow and counting in my head!
>
> Hope ya don't think I'm tryin to poke fun Dan. I meant well ;) Quite
> frankly I dont think I'd ever learn an "editor", I've used Notepad so long,
> it's like an 85 year old man learning how to use a DVD player. ;)
--
[cli]
"To think is to differ."
-Clarence Darrow
attached mail follows:
I like to use Edit Plus. www.editplus.com
It has the syntax highlighting for php, perl, java, and many others through modules that are downloadable from their web site, DOESNT change code like dreamweaver does and its cheap ($25).
Jeff Pearson
----- Original Message -----
From: "Ruessel, Jan" <Jan.Ruessel
realtech.de>
Date: Monday, September 22, 2003 2:00 am
Subject: RE: [PHP] PHP Editor - which to use?
> well, i like to use dreamweaver mx or textpad with the syntax highlighting
> file you additionally have to download. i dunno if there are special "php-
> must-have-editors".
> grtz
> jan
>
> -----Original Message-----
> From: Binay [binay
oliveinternet.com]
> Sent: Montag, 22. September 2003 10:58
> To: php-general
lists.php.net
> Subject: [PHP] PHP Editor - which to use?
>
>
> Hi everybody!
>
> Please suggest me a good PHP editor like ( Microsoft's Interdev for ASP)
> to write my php programs/scripts and get a visual feel.
>
>
> Thanks
> Binay
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
I like NoteTab from www.notetab.com
It doesn't do syntax highlighting, but if you need that, then you need to
learn to code better.
And best of all, there is a free version that does most everything the full
priced copy does.
Plus, one added feature is, is that it will allow you to do internal
scripting.
Jim Lucas
----- Original Message -----
From: "jeffrey pearson" <jpearson
usc.edu>
To: <php-general
lists.php.net>
Sent: Tuesday, September 23, 2003 8:59 AM
Subject: Re: RE: [PHP] PHP Editor - which to use?
> I like to use Edit Plus. www.editplus.com
>
> It has the syntax highlighting for php, perl, java, and many others
through modules that are downloadable from their web site, DOESNT change
code like dreamweaver does and its cheap ($25).
>
> Jeff Pearson
>
> ----- Original Message -----
> From: "Ruessel, Jan" <Jan.Ruessel
realtech.de>
> Date: Monday, September 22, 2003 2:00 am
> Subject: RE: [PHP] PHP Editor - which to use?
>
> > well, i like to use dreamweaver mx or textpad with the syntax
highlighting
> > file you additionally have to download. i dunno if there are special
"php-
> > must-have-editors".
> > grtz
> > jan
> >
> > -----Original Message-----
> > From: Binay [binay
oliveinternet.com]
> > Sent: Montag, 22. September 2003 10:58
> > To: php-general
lists.php.net
> > Subject: [PHP] PHP Editor - which to use?
> >
> >
> > Hi everybody!
> >
> > Please suggest me a good PHP editor like ( Microsoft's Interdev for
ASP)
> > to write my php programs/scripts and get a visual feel.
> >
> >
> > Thanks
> > Binay
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Jim Lucas <mailto:phplist
zonedzero.net>
on Tuesday, September 23, 2003 9:56 AM said:
> Plus, one added feature is, is that it will allow you to do internal
> scripting.
What are you able to do with "internal scripting"?
chris.
attached mail follows:
On Wednesday 24 September 2003 00:56, Jim Lucas wrote:
> I like NoteTab from www.notetab.com
>
> It doesn't do syntax highlighting, but if you need that, then you need to
> learn to code better.
Does that mean php shouldn't have any error reporting whatsoever, because it
encourages bad incompetent coders who rely on being mollycoddled?
;-)
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Every task takes twice as long as you think it will take
-- Fundamental Law of Thermodynamics n„1¤75
*/
attached mail follows:
[snip]
> It doesn't do syntax highlighting, but if you need that, then you need
to
> learn to code better.
Does that mean php shouldn't have any error reporting whatsoever,
because it
encourages bad incompetent coders who rely on being mollycoddled?
[/snip]
Mollycoddled indeed! I remember when I had to punch holes in cards. Talk
about syntax highlighting!
He should have said "It doesn't do syntax highlighting, but if you need
that, then you need to learn to type better."
No wonder hanging chads are lost on some.
attached mail follows:
> It doesn't do syntax highlighting, but if you need that, then you need to
> learn to code better.
O holy genius coder, we bow to you, forgive us....why did we take the
straight and easy path instead of the rough and true path.......
-Ryan
attached mail follows:
Ryan A <mailto:ryan
coinpass.com>
on Tuesday, September 23, 2003 11:10 AM said:
> O holy genius coder, we bow to you, forgive us....why did we take the
> straight and easy path instead of the rough and true path.......
Because we are not ereet.
attached mail follows:
* Thus wrote Chris W. Parker (cparker
swatgear.com):
> Ryan A <mailto:ryan
coinpass.com>
> on Tuesday, September 23, 2003 11:10 AM said:
>
> > O holy genius coder, we bow to you, forgive us....why did we take the
> > straight and easy path instead of the rough and true path.......
>
> Because we are not ereet.
>
heh.. all I know is all these trojan attachments i'm getting are
really pissing me off now.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
you can create so-called assistants...
You can create a loop that asks in a table how many rows and columns do you
want in that table.
Then you can have it create the table with all your favorite default table
settings, but while it is generating it, you could have it prompt you for
any additional settings that you would like to have in the new table.
Jim Lucas
----- Original Message -----
From: "Chris W. Parker" <cparker
swatgear.com>
To: "Jim Lucas" <phplist
zonedzero.net>; "jeffrey pearson"
<jpearson
usc.edu>; <php-general
lists.php.net>
Sent: Tuesday, September 23, 2003 10:06 AM
Subject: RE: RE: [PHP] PHP Editor - which to use?
Jim Lucas <mailto:phplist
zonedzero.net>
on Tuesday, September 23, 2003 9:56 AM said:
> Plus, one added feature is, is that it will allow you to do internal
> scripting.
What are you able to do with "internal scripting"?
chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi ppl,
how do you determine the resolution that a client is running? because if I
make a webpage for 800 X 600 then a user is running a res. of 1024 X 768
then the page will be smaller in his browser, therefore how do I determine
what resolution its being run at, therefore the appropriate sized webpage
will be visible?
thanx in advance
angelo
attached mail follows:
This is something probably best handled by Javascript. There are many resolution re-direct scripts out there that will, at the very least, give you an idea of what you need to do. A link to those available at HotScripts is below.
http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Redirection/Resolution_Based/index.html
Edward Dudlik
Becoming Digital
www.becomingdigital.com
----- Original Message -----
From: "Angelo Zanetti" <binc2
ctech.ac.za>
To: "Php-General
Lists.Php.Net" <php-general
lists.php.net>
Sent: Tuesday, 23 September, 2003 04:58
Subject: [PHP] determine resolution that client is running
Hi ppl,
how do you determine the resolution that a client is running? because if I
make a webpage for 800 X 600 then a user is running a res. of 1024 X 768
then the page will be smaller in his browser, therefore how do I determine
what resolution its being run at, therefore the appropriate sized webpage
will be visible?
thanx in advance
angelo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi all,
I was wondering, if anyone can help me with running system commands from within php. Actually I have a script which deletes users from my database (which is of course MySQL), now I want to delete those users from system level also, as they are authenticated users of my OS also.
Now, the problem is, that I'm running my MySQL server and web server on different machines. I can do whatever on remote DB server but how to run a system command on another machine. I know, it's possible to run system commands on local server by system(), but what about remote server?
Any help will be highly appreciated.
Thanx in advance
Nitin
attached mail follows:
google for openssh or lsh. I dunno if you'd be able to input the password
through PHP, but if not you could telnet over an SSH encrypted tunnel... Or
if you have absolutely no worries about security you could use telnet, but
that would be, IMHO, a Bad Idea(TM).
On Tuesday 23 September 2003 02:06 am, Nitin wrote:
> Hi all,
>
> I was wondering, if anyone can help me with running system commands from
> within php. Actually I have a script which deletes users from my database
> (which is of course MySQL), now I want to delete those users from system
> level also, as they are authenticated users of my OS also.
>
> Now, the problem is, that I'm running my MySQL server and web server on
> different machines. I can do whatever on remote DB server but how to run a
> system command on another machine. I know, it's possible to run system
> commands on local server by system(), but what about remote server?
>
> Any help will be highly appreciated.
>
> Thanx in advance
> Nitin
--
"Who controls the past controls the future. Who controls the present controls
the past."
-George Orwell
attached mail follows:
Thank you very much,
This was the reason I figured it out now. Thank you for good advise.
Yury
On 22 Sep 2003 at 14:39, BENARD Jean-philippe wrote:
> Headers must be sent before anything else (text, html ...). If you put
> somewhere something like : echo "test";, php will send standard HTML
> header and you'll not be able to sent another headers.
> Be sure that nothing is sent before your header or put this test on top
> of the executed script.
>
> Cordialement,
> Jean-Philippe BENARD
> Consultant STERIA InfogÊrance
> (jean-philippe.benard-renexter
renault.com)
>
> -----Message d'origine-----
> De : Yury B. [mailto:www
body-builders.org]
> EnvoyÊ : dimanche 21 septembre 2003 22:00
> á : php-general
lists.php.net
> Objet : [PHP] Redirect URL
>
> Hi
>
> I have form in file register.php. The action of this form is the same
> - register.php the form validation script is included in this file
> like include("mail.php") In mail.php there is two sections - one is
> working if user didn't complete form properly another if everything
> okay. So, I need form to show the different page (let's say
> success.htm) if everything was filled right. I include the following
> in the mail.php file if everything is okay: header("Location:
> http://test.my/success.htm"); But it doesn't work even though all the
> files are in
> the same directory.
> it shows:
> Warning: Cannot modify header information - headers already sent by
> (output started at z:\home\test.my\www\register.php:5) in
> z:\home\test.my\www\mail.php on line 41
>
> What is wrong?
>
> Yury
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
<>< <>< <>< <>< God is our provider ><> ><> ><> ><>
http://www.body-builders.org/
attached mail follows:
loads at hotscripts.com
http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html
Adrian Teasdale wrote:
> Charles
>
> Try oscommerce.org - it's an open source app written in PHP that has a
> fantastic community and is incredibly feature-rich. I'm not associated
> with the project, but I have used it
>
> Best regards
>
> Ade
> Sourceguardian.com
>
>
>>-----Original Message-----
>>From: Charles Kline [mailto:ckline
rightcode.net]
>>Sent: 22 September 2003 21:10
>>To: php-general
lists.php.net
>>Subject: [PHP] Shopping Cart Solutions
>>
>>
>>Anyone have suggestions for open source shopping cart apps in PHP?
>>
>>Thanks,
>>Charles
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
attached mail follows:
I'll give a big "+2" to all of this. I spent a great deal of time writing a program for customizing various aspects of osCommerce. After a while, I just dropped the project because it was becoming a tangled web of code and not at all my style.
Edward Dudlik
Becoming Digital
www.becomingdigital.com
----- Original Message -----
From: "Chris W. Parker" <cparker
swatgear.com>
To: <lists
rhavenn.net>; <adrian
justcompete.com>; "Charles Kline" <ckline
rightcode.net>; <php-general
lists.php.net>
Sent: Monday, 22 September, 2003 18:21
Subject: RE: [PHP] Shopping Cart Solutions
Henrik Hudson <mailto:lists
rhavenn.net>
on Monday, September 22, 2003 3:09 PM said:
> My 2 cents. OSCommerce is great if you want to use it out of the box,
> but we tried to extend it and alter some of it's functions and the
> code is very obtuse and making changes in one spot can lead to
> problems in others.
+1
I messed around with it for a few days just trying to add two fields to
the product table but it so difficult to find where all the mysql db
errors were being generated I just gave up and decided to write my own
cart from scratch. ;)
I should clarify a little. I gave up after only trying to add two fields
because the other features that I needed in a shopping cart were WAY
more complicated than the two fields and I reasoned that if it was that
difficult to add two fields it's going to be near impossible to add what
I wanted. So I decided my time would be better spent developing my own
cart (what learning experience it's been!!). I would be able to extend
my own cart much more quickly and efficiently than I could anyone elses
code.
> Also, it tries to throw in the kitchen-sink worth
> of options and if you need something slimmer or more easily
> configured you might be better off starting from another codebase.
+1
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
thanks for the spell correction :))
"Becoming Digital" <subs
becomingdigital.com> wrote in message
news:001101c38192$88a48ec0$6401a8c0
becomingmaster...
The correct spelling is "cache." I'm not trying to be a spelling and
grammar freak (though I am), simply aiding your future searches on the
topic.
PEAR has a very nice output caching class. I haven't used it myself, but
I've heard good things. I believe it was discussed recently on this very
list, though it may have been in PHP Architect. I read too many things to
keep track! :)
Edward Dudlik
Becoming Digital
www.becomingdigital.com
----- Original Message -----
From: "Nabil" <nabil.attar
aws-syria.com>
To: <php-general
lists.php.net>
Sent: Tuesday, 23 September, 2003 11:11
Subject: [PHP] CAN I CASH the output of PHP SCRIPT?
Hi all;
I would like to cash all the output of PHP files on my apache .. to increase
the performance. To prevent PHP to work all the time to interpret and
connect to myself which is slow the performance and use the CPU .. as I have
very heavy loaded server.. I thought there might be a way to store all the
HTML output from my PHP pages, that will apache serve instead of calling
the PHP file every.. and should be a way to time the update ...
Any idea ??
Nabil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Tue, 23 Sep 2003 05:27:12 +0000
Curt Zirzow <php-general
zirzow.dyndns.org> wrote:
> * Thus wrote Nabil (nabil.attar
aws-syria.com):
> > Hi all;
> >
> > I would like to cash all the output of PHP files on my apache ..
> > to increase the performance. To prevent PHP to work all the time
> > to interpret and connect to myself which is slow the performance
> > and use the CPU .. as I have very heavy loaded server.. I
> > thought there might be a way to store all the HTML output from
> > my PHP pages, that will apache serve instead of calling the PHP
> > file every.. and should be a way to time the update ...
> >
> > Any idea ??
>
> I just installed mmcache, real simple to do too.
>
> http://www.turcksoft.com/en/e_mmc.htm
>
>
> Curt
You know, I have tried several times to access that site. Each time
I've been greeted by a "500 Internal Server Error" message.
--
Raquel
============================================================
Nobody is free until everybody is free.
--William T. Atkins
attached mail follows:
Hi,
Wednesday, September 24, 2003, 1:36:26 AM, you wrote:
RR> On Tue, 23 Sep 2003 05:27:12 +0000
RR> Curt Zirzow <php-general
zirzow.dyndns.org> wrote:
>> * Thus wrote Nabil (nabil.attar
aws-syria.com):
>> > Hi all;
>> >
>> > I would like to cash all the output of PHP files on my apache ..
>> > to increase the performance. To prevent PHP to work all the time
>> > to interpret and connect to myself which is slow the performance
>> > and use the CPU .. as I have very heavy loaded server.. I
>> > thought there might be a way to store all the HTML output from
>> > my PHP pages, that will apache serve instead of calling the PHP
>> > file every.. and should be a way to time the update ...
>> >
>> > Any idea ??
>>
>> I just installed mmcache, real simple to do too.
>>
>> http://www.turcksoft.com/en/e_mmc.htm
>>
>>
>> Curt
RR> You know, I have tried several times to access that site. Each time
RR> I've been greeted by a "500 Internal Server Error" message.
RR> --
RR> Raquel
RR> ============================================================
RR> Nobody is free until everybody is free.
RR> --William T. Atkins
you can download it from here
http://sourceforge.net/project/showfiles.php?group_id=69426
--
regards,
Tom
attached mail follows:
HI,
let us say there is Class A.
In the constructor of this class I create an Object B of Class B.
Now what is the difference between these two ?
this->B = new B;
and
B = new B;
Thank you very much!
Wenmaster
attached mail follows:
Well in the first one the property of A named "B" will be an instance of B. In
the second one a local variable in the constructor function named "B" which
is an instance of B, and that variable will not be accessible from any
function other than the constructor (unless you're playing w/ the reflection
api, which i sincerely doubt)
look up variable scope in the manual. maybe php.net/variable-scope, but im too
lazy to check (its 4am here)
On Tuesday 23 September 2003 03:44 am, Webmaster wrote:
> HI,
>
> let us say there is Class A.
> In the constructor of this class I create an Object B of Class B.
>
> Now what is the difference between these two ?
>
> this->B = new B;
>
> and
>
> B = new B;
>
>
> Thank you very much!
>
> Wenmaster
attached mail follows:
Hi,
let us say there is Class A.
In the constructor of this class I create an Object B of Class B.
Now what is the difference between these two ?
this->B = new B;
and
B = new B;
Thank you very much!
Wenmaster
attached mail follows:
You should use:
<a href="./admin/?listType=event_list&action=item_add" target="_blank"
onclick="window.open(this.href,'', ''); return false;">Add or Update
Your Event</a>
Propably won't fix your problem but this will help javascript disabled
browsers.
jsWalter wrote:
> I have a link on a page...
>
> <a href="./admin/?listType=event_list&action=item_add" target=_blank>
> Add or Update Your Event
> </a>
>
> This open the PHP file just fine and passes the vars fine.
>
> But I need a new window to open via JavaScript. Why? Because I have a
> "RETURN" link on the opening page that closes the child page, and if this
> new window is not opened via JavaScript I get the "Close Window OK?" dialog.
>
> The only way to not get that annoying dialog is to have that child window
> opened via JavaScript.
>
> So I did this...
>
> <a
> href="javascript:window.open('./admin/?listType=event_list&action=item_add',
> '', '');">
> Add or Update Your Event
> </a>
>
> A child window opens, I get 1 error dialog and a Download dialog, and then
> the page opens fine.
>
> error:
> IE cannot download calendar.php from window.open('...
> IE was not able to open this Internet site. The requested site is
> either
> unavailable or cannot be found. Please try again.
>
> I hit OK and both the error dialog and the download page goes away.
>
> But the desired page is displayed in the child window!
>
> And the "RETURN" link closes the window without complaint!
>
> So, I've solved one issue to raise another.
>
> Anyone have any idea on this?
>
> Thanks
>
> Walter
>
attached mail follows:
That's it!
It works like a charm!
Thank you very, very much!
Walter
attached mail follows:
Javier Muniz wrote:
> interface BoardMember
> {
> function position(); // used to set board position of board member
> }
> interface Employee
> {
> function position(); // used to set job title of employee
> }
>
> class BusyBoardMember implements Employee, BoardMember
> {
> function position(); // what does this function do? ambiguous unless I
> am missing something
> }
It is not ambiguous, you should implement the function here.
attached mail follows:
What I meant was not the implementation, what I meant was that there was no
way for the compiler/parser to know whether I was implementing position()
from the Employee interface or the BoardMember interface, the declaration
was ambiguous.
If I implement the function there, then (from what I can tell) it becomes
the position member for both the BoardMember interface AND the Employee
interface. While this might be desired in some cases, it's definitely not
desired in all cases, so there needs to be some other identifier (such as
the implements keyword followed by which interface(s) this function should
be used for).
PHP5 may have such an identifier, but I have not found any documentation at
this point...
-Javier
Marek Kilimajer wrote:
> interface BoardMember
> {
> function position(); // used to set board position of board member
> }
> interface Employee
> {
> function position(); // used to set job title of employee
> }
>
> class BusyBoardMember implements Employee, BoardMember
> {
> function position(); // what does this function do? ambiguous unless
I
> am missing something
> }
It is not ambiguous, you should implement the function here.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Tue, 2003-09-23 at 14:01, Javier Muniz wrote:
> What I meant was not the implementation, what I meant was that there was no
> way for the compiler/parser to know whether I was implementing position()
> from the Employee interface or the BoardMember interface, the declaration
> was ambiguous.
I would imagine priority would be based on the order of the named
interfaces. Thus in your example it would use the Employee position()
method.
Cheers,
Rob.
>
> If I implement the function there, then (from what I can tell) it becomes
> the position member for both the BoardMember interface AND the Employee
> interface. While this might be desired in some cases, it's definitely not
> desired in all cases, so there needs to be some other identifier (such as
> the implements keyword followed by which interface(s) this function should
> be used for).
>
> PHP5 may have such an identifier, but I have not found any documentation at
> this point...
>
> -Javier
>
> Marek Kilimajer wrote:
>
> > interface BoardMember
> > {
> > function position(); // used to set board position of board member
> > }
> > interface Employee
> > {
> > function position(); // used to set job title of employee
> > }
> >
> > class BusyBoardMember implements Employee, BoardMember
> > {
> > function position(); // what does this function do? ambiguous unless
> I
> > am missing something
> > }
>
> It is not ambiguous, you should implement the function here.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.------------------------------------------------------------.
| 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. |
`------------------------------------------------------------'
attached mail follows:
So does this mean that I can then do:
Class BusyBoardMember implements Employee, BoardMember
{
function position() {
// code for Employee implementation;
}
function position() {
// code for BoardMember implementation;
}
}
And if I only implement position() once then it will return an error?
This seems more than a little confusing, and like it could cause serious
mistakes down the road (during maintenance, etc)
-Javier
-----Original Message-----
From: Robert Cummings [mailto:robert
interjinn.com]
Sent: Tuesday, September 23, 2003 11:23 AM
To: Javier Muniz
Cc: 'php-general
lists.php.net'
Subject: Re: [PHP] PHP5 interfaces?
On Tue, 2003-09-23 at 14:01, Javier Muniz wrote:
> What I meant was not the implementation, what I meant was that there
> was no way for the compiler/parser to know whether I was implementing
> position() from the Employee interface or the BoardMember interface,
> the declaration was ambiguous.
I would imagine priority would be based on the order of the named
interfaces. Thus in your example it would use the Employee position()
method.
Cheers,
Rob.
>
> If I implement the function there, then (from what I can tell) it
> becomes the position member for both the BoardMember interface AND the
> Employee interface. While this might be desired in some cases, it's
> definitely not desired in all cases, so there needs to be some other
> identifier (such as the implements keyword followed by which
> interface(s) this function should be used for).
>
> PHP5 may have such an identifier, but I have not found any
> documentation at this point...
>
> -Javier
>
> Marek Kilimajer wrote:
>
> > interface BoardMember
> > {
> > function position(); // used to set board position of board
> > member } interface Employee
> > {
> > function position(); // used to set job title of employee
> > }
> >
> > class BusyBoardMember implements Employee, BoardMember
> > {
> > function position(); // what does this function do? ambiguous
unless
> I
> > am missing something
> > }
>
> It is not ambiguous, you should implement the function here.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.------------------------------------------------------------.
| 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. |
`------------------------------------------------------------'
attached mail follows:
[snip]
So does this mean that I can then do:
Class BusyBoardMember implements Employee, BoardMember
{
function position() {
// code for Employee implementation;
}
function position() {
// code for BoardMember implementation;
}
}
And if I only implement position() once then it will return an error?
This seems more than a little confusing, and like it could cause serious
mistakes down the road (during maintenance, etc)
[/snip]
Why don't you (pretend the following is emphasized) test it (/emph) to
find out?
[ALERT - NEWBIE GUIDE ADDITION]
10. Testing yields results - rather than speculate over potential code
chunks write a small test bed and then apply vigorous automated or
manual testing.
[/ALERT]
attached mail follows:
http://cvs.php.net/cvs.php/php-bugs-web?login=2
Amith Varghese wrote:
> Can anyone tell me where I can download the bug tracking system used for
> bugs.php.net? I don't see any links on the PHP site (or i'm probably missing
> something quite obvious)
>
> Thanks
> Amith
>
attached mail follows:
I have written a database explorer/update program and when the user
successfully updates/inserts a new record I would like to have the url
updated to reflect new query (in addition to returning form w/new values).
I am using url/get for all data transfer rather than post. Maybe this is
a problem.
Basically original url is (pseudo) "select * from table where rec=5"
This url returns an editable detail form from server. User changes rec=5
to 6 in the form, and additional url parms are added via javascript so I
can create an update (or insert) statement which the server then processes.
If server has success with this, I want to return editable detail w/new
values and additionally change original url to "select * from table
where rec=6".
I need to change url as if the user changes returned form values and
hits update again, since I'm working off url for query and not form
data, it still keys off the original query...not a modified one, which I
want.
I guess I could be using only posted form data for communication between
client and server, right?...as server could return updated query string
in hidden form fields. But before switching all my code, I thought I
might be able to change/forward the url to something else (new query
string). When I try to do this via header() php complains that header
already sent.
any ideas of how to better go about this?
attached mail follows:
[snip]
Basically original url is (pseudo) "select * from table where rec=5"
...
any ideas of how to better go about this?
[/snip]
The query is in the URL? Really? You have just asked for a security
problem (google for "sql injection" and you'll see what I am talking
about). If you have anything that looks like
http://www.yourserver.com/script.php?sql=select you need to stop what
you are doing.
Honestly, I believe that you need to change your code, and without
seeing your current code I couldn't make any further recommendations.
attached mail follows:
The word (pseudo) implied that my url metadata effectively generates a sql
statement. Query metadata in the url on the server side is generated as sql.
This is exactly what phpMyAdmin does...my app presents no more a security
problem than theirs.
The script runs as guest/guest against mysql unless realm authentication has
been setup on the web server, in which case it runs with credentials of
whose already authenticated.
Unless someone's auth'd with my personal credentials, all they can do is
query a stupid quotations table in a database of mine. No deletes, inserts,
or updates.
mike
-----Original Message-----
From: Jay Blanchard [mailto:jay.blanchard
niicommunications.com]
Sent: Tuesday, September 23, 2003 4:53 AM
To: Mike Klein; php-general
lists.php.net
Subject: RE: [PHP] How to update url on server side...php header func?
[snip]
Basically original url is (pseudo) "select * from table where rec=5"
...
any ideas of how to better go about this?
[/snip]
The query is in the URL? Really? You have just asked for a security
problem (google for "sql injection" and you'll see what I am talking
about). If you have anything that looks like
http://www.yourserver.com/script.php?sql=select you need to stop what
you are doing.
Honestly, I believe that you need to change your code, and without
seeing your current code I couldn't make any further recommendations.
attached mail follows:
[snip]
Unless someone's auth'd with my personal credentials, all they can do is
query a stupid quotations table in a database of mine. No deletes,
inserts,
or updates.
[/snip]
OK.
[quote]
This url returns an editable detail form from server. User changes rec=5
to 6 in the form, and additional url parms are added via javascript so I
can create an update (or insert) statement which the server then
processes.
[/quote]
Passing the param rec (5 for first, 6 for second) has to be done via a
form GET to be placed in the URL.
attached mail follows:
James Johnson wrote:
> Hi,
>
> I'm trying to generate a string that contains a <br>, to insert into a MySQL
> table. It appears the <br> is being stripped out either just before or
> during the update.
http://www.php.net/mysql-escape-string
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
attached mail follows:
Ok, thanks. It took a little bit of experimenting with printf(), sprintf()
and quotes, but I got it to work.
mysql_select_db($database_CCB, $CCB);
$ad_contact = "who
what.com<br>909-555-1212";
$esAdContact = mysql_escape_string($ad_contact);
$q = sprintf("UPDATE subscriber_ads SET ad_contact = '%s' WHERE subid = 43",
$esAdContact);
$r = mysql_query($q, $CCB) or print(mysql_error());
Thanks,
James
-----Original Message-----
From: Burhan Khalid [mailto:phplist
meidomus.com]
Sent: Tuesday, September 23, 2003 4:45 AM
To: James Johnson; php-general
lists.php.net
Subject: Re: [PHP] Formatting a string for entry into MySQL
James Johnson wrote:
> Hi,
>
> I'm trying to generate a string that contains a <br>, to insert into a
> MySQL table. It appears the <br> is being stripped out either just
> before or during the update.
http://www.php.net/mysql-escape-string
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
[snip]
The example that I'm really trying to do might be too complicated for
presentation here, but here's a simplified version.
Take the shell script "helloWorld.php":
#!/usr/local/bin/php -q
<?PHP print "\nHello World!"; ?>
[/snip]
I could not replicate your problem on a 4.2.n or 4.3.n box but I will
say this concerning shell scripts (although the rpoblem only occured on
the 4.3.n box)...you should always have at least one blank line between
the bash and the start of the code. As long as that blank line existed I
had no problems on either box. I know that this is not much help, but I
did attempt to replicate your problem (only the paths were changed) and
these were my results.
attached mail follows:
On Tue, 2003-09-23 at 07:47, Jay Blanchard wrote:
> [snip]
> The example that I'm really trying to do might be too complicated for
> presentation here, but here's a simplified version.
>
> Take the shell script "helloWorld.php":
>
> #!/usr/local/bin/php -q
> <?PHP print "\nHello World!"; ?>
> [/snip]
>
> I could not replicate your problem on a 4.2.n or 4.3.n box but I will
> say this concerning shell scripts (although the rpoblem only occured on
> the 4.3.n box)...you should always have at least one blank line between
> the bash and the start of the code. As long as that blank line existed I
> had no problems on either box. I know that this is not much help, but I
> did attempt to replicate your problem (only the paths were changed) and
> these were my results.
I've never had a problem with not putting an extra blank line between
binary path and the actual script. Actually I would say that would break
the output since an extra line would be printed in the case of a PHP
script.
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. |
`------------------------------------------------------------'
attached mail follows:
[snip]
I've never had a problem with not putting an extra blank line between
binary path and the actual script. Actually I would say that would break
the output since an extra line would be printed in the case of a PHP
script.
[/snip]
Very true Robert, it can break the output. I generally avoid this by
invoking php the long way.
Examples;
(cron)
* * * * * /usr/local/bin/php -q /the/path/to/the/script.php > /dev/null
(exec)
$strExecScript = "/usr/local/bin/php -q /the/path/to/the/script.php";
exec($strExecScript);
Habits! What would we do without them?
attached mail follows:
Hi all,
I have a table that gets populated from records of a DB. every row in the
table has a checkbox and the items desc. I want the user to select the items
they want and then they click on a link which registers the items they've
selected in a session variable. Firstly I am not sure if this can be done on
that same page or on the page to which the link calls. IE: if php can
determine which checkboxes have been selected. All the checkboxes are all
part of an array.
this is the way it should work:
1. the user selects the items they want
2. then clicks a link to another page
3. this page then displays what was selected
4. this info must be sent in a session variable.
5. must not use a submit button as I want the info to be saved in session
variable.
I hope that this makes sense.
TIA
attached mail follows:
On Tue, 2003-09-23 at 08:17, Angelo Zanetti wrote:
> Hi all,
>
> I have a table that gets populated from records of a DB. every row in the
> table has a checkbox and the items desc. I want the user to select the items
> they want and then they click on a link which registers the items they've
> selected in a session variable. Firstly I am not sure if this can be done on
> that same page or on the page to which the link calls. IE: if php can
> determine which checkboxes have been selected. All the checkboxes are all
> part of an array.
>
> this is the way it should work:
>
> 1. the user selects the items they want
> 2. then clicks a link to another page
Link can have javascript in it to either build a target URL or to submit
the form. I'd personally go for the form solution since the URL will be
ugly.
> 3. this page then displays what was selected
Form submits to the same page in which it is presented.
> 4. this info must be sent in a session variable.
Why? Set up the session variable using the data submitted by the form.
> 5. must not use a submit button as I want the info to be saved in session
> variable.
Once again why? Sure I can see not using a submit button, but I don't
see how that relates to the info being saved in a session variable.
>
> I hope that this makes sense.
Somewhat :)
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. |
`------------------------------------------------------------'
attached mail follows:
Hi John,
therefore I can register this variable on the same page as the checkboxes?
So therefore is it posssible for php to determine which checkboxes have been
selected (or are the ones that are selected added to the array)?
TIA
-----Original Message-----
From: CPT John W. Holmes [mailto:holmes072000
charter.net]
Sent: Tuesday, August 26, 2003 4:00 PM
To: angelo
zlogic.co.za; Php-General
Lists.Php.Net
Subject: Re: [PHP] problem passing variable between forms.
----- Original Message -----
From: "Angelo Zanetti" <binc2
ctech.ac.za>
> I have a form in which I have a table with dynamic checkboxes, they are in
a
> checkbox array ( name = chk[]...), I pass this variable to the next page
> using POST I receive the variable and use it, no problem, but then when I
> try to pass it to the next form in the URL (using an A HREF:
>
> <a href='confirmrequest.php?requested=" . $chk . "'> )
You need to serialize() the array in order to pass all of it's values.
$ser = urlencode(serialize($chk));
$url = "confirmrequest.php?requested=$ser";
Then on the receiving side...
$chk = unserialize($_GET['requested']);
You could also just add it to the session and make it easy...
$_SESSION['chk'] = $chk;
and on the receiving page:
$chk = $_SESSION['chk'];
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
From: "Angelo Zanetti" <binc2
ctech.ac.za>
> therefore I can register this variable on the same page as the checkboxes?
> So therefore is it posssible for php to determine which checkboxes have
been
> selected (or are the ones that are selected added to the array)?
The ones that are selected are added to the array.
---John Holmes...
> ----- Original Message -----
> From: "Angelo Zanetti" <binc2
ctech.ac.za>
> > I have a form in which I have a table with dynamic checkboxes, they are
in
> a
> > checkbox array ( name = chk[]...), I pass this variable to the next page
> > using POST I receive the variable and use it, no problem, but then when
I
> > try to pass it to the next form in the URL (using an A HREF:
> >
> > <a href='confirmrequest.php?requested=" . $chk . "'> )
>
> You need to serialize() the array in order to pass all of it's values.
>
> $ser = urlencode(serialize($chk));
>
> $url = "confirmrequest.php?requested=$ser";
>
> Then on the receiving side...
>
> $chk = unserialize($_GET['requested']);
>
> You could also just add it to the session and make it easy...
>
> $_SESSION['chk'] = $chk;
>
> and on the receiving page:
>
> $chk = $_SESSION['chk'];
>
> ---John Holmes...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Hi !
I've got a problem with class extends. I've a "top" class which
name is cl_app. xxx_cl_app is an extend of cl_app. Cl_app define a
function called "ExecuteQuery". xxx_cl_app define this function too but
this one is obsolete. Now, I want to use the cl_app "ExecuteQuery"
function in my app but there is a problem :
In the cl_app class, "ExecuteQuery" function return 2 object :
$return = array($nb_lines, $array_results)
and the xxx_cl_app defined this function as :
$return = array($array_results, $nb_lines)
I don't want to recode all others scripts and I don't want to put the
new function code in xxx_cl_app. So here is my question :
Is there something to do in order that when I use
xxx_cl_app->ExecuteQuery(), there's a function ExecuteQuery() in
xxx_cl_app that do something like this :
(xxx_cl_app.php)
function ExecuteQuery(x,y) {
$tmpResult = [herited_class]->ExecuteQuery(x,y);
return array($tmpResult[1], $tmpResult[0]);
}
Thanks in advance !
(o_ BENARD Jean-Philippe - Consultant STERIA Infogérance
(o_ (o_ //\ RENAULT DTSI/ODPS/R
D * ALO * API : MLB 02C 1 14
(/)_ (\)_ V_/_ 2 Av du vieil étang * 78181 MONTIGNY-LE-BRETONNEUX
Tél : +33 1-30-03-47-83 * Fax : +33 1-30-03-42-10
attached mail follows:
> I use the TAR.php file for extract tar.gz file. The tar file extracted
> fine, but the tar class raises the 'Invalid block size 351'. Why? And
> how can I discard this error.
Basically, tar writes in block sizes of 512 bytes so you are receiving
an invalid block size smaller than 512 which has a size of 351. Not sure
how you can suppress these messages via TAR.php. However, if you get a
new tar files that has the blocking correct you will not receive that
error.
--
BigDog
attached mail follows:
> > I use the TAR.php file for extract tar.gz file. The tar file extracted
> > fine, but the tar class raises the 'Invalid block size 351'. Why? And
> > how can I discard this error.
>
> Basically, tar writes in block sizes of 512 bytes so you are receiving
> an invalid block size smaller than 512 which has a size of 351. Not sure
> how you can suppress these messages via TAR.php. However, if you get a
> new tar files that has the blocking correct you will not receive that
> error.
You might be able to use the -B option to tar to suppress the block size
error. However, I have not tested that out before and I am not 100% sure
of the results that you will see. But possibly an option.
example:
tar -xvfB file.tar
--
BigDog
attached mail follows:
I have looked and cannot find any information on this particular variable.
How unique is this id and when does it get generated? I'm looking to use
this as a session identifier.
Susan
attached mail follows:
* Thus wrote Susan Ator (SAtor
npr.org):
> I have looked and cannot find any information on this particular variable.
> How unique is this id and when does it get generated? I'm looking to use
> this as a session identifier.
This is a variable created by the webserver, it is unique per page
request.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
Hi Jay and everyone,
Sorry about the belated reply but i do believe that "Work product for
the customer belongs to the customer unless specifically stated
differently in the contract" does not apply to source code. Obviously we
are all programmers and not lawyers in this group but i stand by this
(until a lawyer corrects me ;-) )
Jay Blanchard wrote:
>[snip]
>...........
>[/snip]
>
>Work product for the customer belongs to the customer unless
>specifically stated differently in the contract. It is their
>intellectual property. I have coded both as an employee contractor for
>several years and it is always understood (unless the contract states
>differently) that the customer owns the work product. I have a couple of
>tools which I have developed over time, and I specifically exclude these
>from the work product in the contract if I expect to use them. If the
>customer chooses to argue on those I just do not use them on their
>project.
>
>Have you done anything special with regards to their site that you
>should have copyrighted?
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
I am getting the following error:
SESS: [TID: 5F0],.\src\tp0tcp_s.c:668: TP0: tp0tcp_conn_req() Connect
Socket# [2700] is too high. The supported socket range is 0-1024
It only appears on one page on our web site. I am using sessions for
login tracking. If they aren't logged in we get the message. If they
are logged in we don't. This is the only page that we get the error.
Not sure if it's some bad code, but I didn't see anything. MOst of the
code is shared on other pages.
The only thing different about this page is that we have an odbc
connection to an rs/6000 database.
If anyone has any ideas I'd appreciate some insight.
Stephen
attached mail follows:
Hello,
I've googled to try to find an answer to this. I've also checked the
php.net site. Perhaps I'm not using the correct search parameters. The
only suggestion I've found is the following code:
<?php
header('Cache-Control: no-cache');
header('Pragma: no-cache');
?>
But this doesn't seem to solve my problems.
My problem/question is as follows.
I have an email script that works in the following steps:
1) Login (if success then "FROM" and a personal email signature are
properly populated)
2) Choose specifics for the email (this populates the "TO" variable and
the other "BODY" variables)
3) Then click on preview (this creates the email with all the current
variables, on the screen for viewing)
4) Then send the email
5) Prompted to create another or logout (if create another, then some
session variables are unset) (if logout then session is destroyed)
Everything works as intended.
One user, however, has created a glitch. He/she logged out and later
returned to their still opened browser and used the "back" button to
return to step 2 in the process. Every email they created after using
the back button has the following problems:
1) The reply to address and the from address are both default server
address's and not the users personal email address.
2) Their is no personal signature.
Here's my questions....
1) How can I prevent the use of the browser "back" button after someone
logs out?
2) If, after a user has attained step 3, they use their back button to
change a variables value in step 2, the new value is never saved by the
session and their original entry is used in the email. How can I adjust
for people using their "back" buttons during the individual steps of the
script?
3) Should the header calls appear before the session_start or after?
Thanks in advance,
Roger
attached mail follows:
http://www.php.net/manual/en/function.header.php
<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
?>
>From: Roger Spears <roger
bgnet.bgsu.edu>
>To: php-general
lists.php.net
>Subject: [PHP] Logged Out of Seesion, Then use back button
>Date: Tue, 23 Sep 2003 11:51:40 -0400
>
>Hello,
>
>I've googled to try to find an answer to this. I've also checked the
>php.net site. Perhaps I'm not using the correct search parameters. The
>only suggestion I've found is the following code:
>
><?php
>header('Cache-Control: no-cache');
>header('Pragma: no-cache');
>?>
>
>But this doesn't seem to solve my problems.
>
>My problem/question is as follows.
>
>I have an email script that works in the following steps:
>
>1) Login (if success then "FROM" and a personal email signature are
>properly populated)
>
>2) Choose specifics for the email (this populates the "TO" variable and the
>other "BODY" variables)
>
>3) Then click on preview (this creates the email with all the current
>variables, on the screen for viewing)
>
>4) Then send the email
>
>5) Prompted to create another or logout (if create another, then some
>session variables are unset) (if logout then session is destroyed)
>
>Everything works as intended.
>
>One user, however, has created a glitch. He/she logged out and later
>returned to their still opened browser and used the "back" button to return
>to step 2 in the process. Every email they created after using the back
>button has the following problems:
>1) The reply to address and the from address are both default server
>address's and not the users personal email address.
>2) Their is no personal signature.
>
>Here's my questions....
>1) How can I prevent the use of the browser "back" button after someone
>logs out?
>2) If, after a user has attained step 3, they use their back button to
>change a variables value in step 2, the new value is never saved by the
>session and their original entry is used in the email. How can I adjust
>for people using their "back" buttons during the individual steps of the
>script?
>3) Should the header calls appear before the session_start or after?
>
>Thanks in advance,
>Roger
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
attached mail follows:
Sorry Didier, your suggestion did not solve the problem. I appreciate
the information though!
I'm still having the "back" button problem in the middle of using the
script.
Thanks,
Roger
Didier McGillis wrote:
> http://www.php.net/manual/en/function.header.php
>
> <?php
> // Date in the past
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
>
> // always modified
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
>
> // HTTP/1.1
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Cache-Control: post-check=0, pre-check=0", false);
>
> // HTTP/1.0
> header("Pragma: no-cache");
> ?>
>
>
>
>> From: Roger Spears <roger
bgnet.bgsu.edu>
>> To: php-general
lists.php.net
>> Subject: [PHP] Logged Out of Seesion, Then use back button
>> Date: Tue, 23 Sep 2003 11:51:40 -0400
>>
>> Hello,
>>
>> I've googled to try to find an answer to this. I've also checked the
>> php.net site. Perhaps I'm not using the correct search parameters.
>> The only suggestion I've found is the following code:
>>
>> <?php
>> header('Cache-Control: no-cache');
>> header('Pragma: no-cache');
>> ?>
>>
>> But this doesn't seem to solve my problems.
>>
>> My problem/question is as follows.
>>
>> I have an email script that works in the following steps:
>>
>> 1) Login (if success then "FROM" and a personal email signature are
>> properly populated)
>>
>> 2) Choose specifics for the email (this populates the "TO" variable
>> and the other "BODY" variables)
>>
>> 3) Then click on preview (this creates the email with all the current
>> variables, on the screen for viewing)
>>
>> 4) Then send the email
>>
>> 5) Prompted to create another or logout (if create another, then some
>> session variables are unset) (if logout then session is destroyed)
>>
>> Everything works as intended.
>>
>> One user, however, has created a glitch. He/she logged out and later
>> returned to their still opened browser and used the "back" button to
>> return to step 2 in the process. Every email they created after
>> using the back button has the following problems:
>> 1) The reply to address and the from address are both default server
>> address's and not the users personal email address.
>> 2) Their is no personal signature.
>>
>> Here's my questions....
>> 1) How can I prevent the use of the browser "back" button after
>> someone logs out?
>> 2) If, after a user has attained step 3, they use their back button
>> to change a variables value in step 2, the new value is never saved
>> by the session and their original entry is used in the email. How
>> can I adjust for people using their "back" buttons during the
>> individual steps of the script?
>> 3) Should the header calls appear before the session_start or after?
>>
>> Thanks in advance,
>> Roger
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
--
Roger Spears
Technology Project Coordinator
College of Arts and Sciences
Bowling Green State University
205 Administration Bldg.
Bowling Green, OH 43403
419-372-2015
419-372-8548 fax
"The best accelerator available for a Mac is one that causes it to go at 9.81 m/s2."
(The rate at which objects fall to earth)
"It would be just like programmers to shorten 'the year 2000 problem' to 'Y2K'... exactly the kind of thinking that created this situation in the first place."
- Steven C. Meyer
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."
- Albert Einstein
"If a cluttered desk is a sign of a cluttered mind, of what then, is an empty desk?"
- Albert Einstein
"It is well to remember that the entire universe, with one trifling exception, is composed of others."
- John Andrew Holmes
"The only thing more dangerous than a hardware guy with a code patch is a programmer with a soldering iron."
"3 Biggest Computer Room Lies:
1) As long as you remember to 'SAVE' your input, you'll never lose any files.
2) We run the stuff through as fast as it comes in the door.
3) The new machines are in order."
Murphy's Laws of Computing
--------------------------
1. When computing, whatever happens, behave as though you meant it to happen.
2. When you get to the point where you really understand your computer, it's probably obsolete.
3. The first place to look for information is in the section of the manual where you least expect to find it.
4. When the going gets tough, upgrade.
5. For every action, there is an equal and opposite malfunction.
6. To err is human... to blame your computer for your mistakes is even more human, it is downright natural.
7. He who laughs last probably made a back-up.
8. If at first you do not succeed, blame your computer.
9. A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.
10. The number one cause of computer problems is computer solutions.
11. A computer program will always do what you tell it to do, but rarely what you want to do.
attached mail follows:
[snip]
1) How can I prevent the use of the browser "back" button after someone
logs out?
[/snip]
Set a cookie on login, unset the cookie on logout. Check for cookie, if
it doesn't exist display login mechanism.
[snip]
2) If, after a user has attained step 3, they use their back button to
change a variables value in step 2, the new value is never saved by the
session and their original entry is used in the email. How can I adjust
for people using their "back" buttons during the individual steps of the
script?
[/snip]
You would have to disable the back button.
[snip]
3) Should the header calls appear before the session_start or after?
[/snip]
before
attached mail follows:
Hi, I´m new in PHP+GD.
I have install all library (PHP4-gd2, libgd2, etc, etc, etc.) and when I use gd functions no errors or warning are displayed, but when I use imagepng() or imagejpeg() no images are displayed in my browser, and in this place extrage symbols are displayed.
You can see my bad result here: http://www.drivingconsultancy.com/ide/testi.php
If somebody can helpme, I´ll be very thanks
(sorry, my eglish isn´t good, I´m from Argentine)
attached mail follows:
You're outputting a blank PNG image, in binary form. In order to
display it (not that you'd see anything since it's blank), you need t