php-general Digest 18 Mar 2001 15:07:16 -0000 Issue 574
Topics (messages 44422 through 44436):
Re: Anyone good with Java??
44422 by: Dennis Gearon
44423 by: Ryan Grove
Editing Variables from another script.
44424 by: techzeus.pacific.net.sg
Re: urlencode
44425 by: John Lim
command that gives current location of script
44426 by: Andrew V. Romero
44432 by: Aviv Revach
Expire data from form
44427 by: Sheni R. Meledath
44434 by: Data Driven Design
TraceRoute
44428 by: Mick
phpMyAdmin edit function not working
44429 by: Robert Campbell
how to change from php Apache module to php CGI?
44430 by: Chris Chan
44431 by: Jack Dempsey
Re: Benchmarks
44433 by: Zeev Suraski
Re: Zend?
44435 by: Sharon Rozenbaum
Re: form post without pathinfo
44436 by: Clayton Dukes
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
>I know php can't do this but I hoped somehere would know how. I have a page
>with many select boxes(drop downs). I want it so that if someone selects a
>value, it is removed from all the others. And if they change it, the old
>value is returned to the other boxes. Any help would be appreciatedI think you need
>>Javascript?
>
>And I'd love s similar thing, select one and it changes other to appropriate sub
>>menus.
So,
so selecting pets would get you <dogs><cats><etc> in the next pull down
over.
selelecting <dogs> would get you <bysize><byfunction> in the next pull
down over.
and selecting one of those would get the categories below that, etc, in
the next pull down over.
Pets
Dogs
bysize
Poodles
Pekinese
Minatures
small
medium
large
huge
byfunction
indoor pet
rodent catching
hunting small animals
hunting birds
hunting big animals
shepharding
guard dogs
Cats
<etc>
--
________________________________________________________________
Sites by friends of mine: http://www.myhiddentreasures.com/
________________________________________________________________
WARNING personal propaganda signature
TAKE WHAT YOU LIKE AND LEAVE THE REST
SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
Imagine ** yourself ** and your kids now an endangered species
<1>Inflate automobile tires to near maximum in summer, -2psi in winter
<2>add insulation to house and hot water heater, and refrigerator,
<3>combine trips in cars, make less of them <4>buy cars, sports
vehicles and recreational vehicles with good if not best mileage
<4>put awnings over windows is summer, remove in winter. <5> add
solar hot water heating. <6>Push for energy recycling clothes
dryers <7> walk more, play outside with your kids! <8> let your
grass grow to 3-4 inches, chokes weeds, saves water and energy,
keeps house cooler <9> Put WHITE or REFLECTIVE materials on
roofs to send energy back into space. <10> Vote for burial of
logging slash onsite in logging areas for better watersheds
and less burned vegetation. <11> compost your leaves and grass,
bury in flower beds, lawns, gardens, or give away. <12> VOTE
for energy and CO2 ratings on ALL products and foods. KNOW how
much damage your purchases do to the climate. <13> Give your kids
less stuff and more of you. <14> recycle everything you can <15>
limit your children to an average 1 per adult between all your
marriages. (Only REPLACE yourself, not expand the population)
[Chris]
> I know php can't do this but I hoped somehere would know how. I have a page with
>many select boxes(drop downs). I want it so that if someone selects a value, it is
>removed from all the others. And
> if they change it, the old value is returned to the other boxes. Any help would be
>appreciated
--
Ryan Grove
[EMAIL PROTECTED]
http://wonko.com/
I'm trying to create a form whereby I can edit the variables with just the form.
It will be something like a form for me to change the database
details(username,server,password) in a .inc I'm using.
Is there anyway for me to pass information into another file's variable and have it
saved in there?
If anyone have seen Newspro (CGI) before, when you edit some parts in a form, the
information will be saved. How can it be done in PHP?
--------------------------
David Chua
-------------------------
Sorry, its magic_quotes_gpc -- i got confused. The magic_quotes_runtime one
is for databases.
Regards, John
"Richard Kirk" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> No, its set to "off".
>
>
> -----Original Message-----
> From: John Lim [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 17, 2001 5:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] urlencode
>
>
> You have magic_quotes_runtime enabled which causes this behaviour. You can
> disable it by turning it off in your PHP.ini.
>
> See http://php.net/manual
>
> "rkirk.com Mail" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Help - I've a problem when using urlencode/decode functions (same with
> > rawurl...).
> > If I encode :
> > mnemonic = "lnkphoto"
> >
> > I get:
> > mnemonic+%3D++%22lnkphoto%22
> >
> > And if decode it during the same script execution it converts back to
> > exactly:
> > mnemonic = "lnkphoto"
> > which is what I'd expect.
> >
> > However, if I pass this value as a URL argument and decode it in the
> > receiving script I get:
> > mnemonic = \"lnkphoto\"
> > which causes me all sorts of problems!
> > Is this a "feature" or have I misunderstood the way this should work?
> >
> > Thanks
> >
> >
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I though in flipping through the manual that I had come across a command
that gives the location of where the script is being run from, but I
have been searching for half an hour and can't find it now. Isn't it
something like $php_self? Anyone kow what I am talking about?
Thanks,
Andrew V. Romero
to reply personally, remove all numbers from address.
Hey!
You could use 'phpinfo()' to find what you seek. $PHP_SELF does give you the
current location of the php script, but with 'phpinfo()' you could read
about other
values that supply miscellanies related information.
<?php
phpinfo();
?>
Best Regards -
Aviv Revach
At 22:27 17/03/01 -0700, Andrew V. Romero wrote:
>I though in flipping through the manual that I had come across a command
>that gives the location of where the script is being run from, but I
>have been searching for half an hour and can't find it now. Isn't it
>something like $php_self? Anyone kow what I am talking about?
>Thanks,
> Andrew V. Romero
> to reply personally, remove all numbers from address.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
XOR-Coders Mega Programming Resource Site! -
http://members.xoom.com/xorcoders/
Hi,
I have set up a form to register the users to the site. The users are
allowed to register only once. When the user submits the form the same
script will check the validity of the form and displays error messages and
if okay, updates the database.
I want to set up an option in the form in which when the user once submits
and after that if they click on the back button (browser back) it should
say the 'page expired' as I have seen with some Perl scripts. The users
should not be allowed to go back to the page and resubmit. Can any body
suggest a way to accomplish this.
thanks
Sheni R Meledath
[EMAIL PROTECTED]
You can use javascript and set the history length to 0
<script language="javascript">
<!--
history.length=0;
// -->
</script>
----- Original Message -----
From: Sheni R. Meledath <[EMAIL PROTECTED]>
To: PHP Masters <[EMAIL PROTECTED]>
Sent: Saturday, March 17, 2001 11:47 PM
Subject: [PHP] Expire data from form
> Hi,
>
> I have set up a form to register the users to the site. The users are
> allowed to register only once. When the user submits the form the same
> script will check the validity of the form and displays error messages and
> if okay, updates the database.
> I want to set up an option in the form in which when the user once submits
> and after that if they click on the back button (browser back) it should
> say the 'page expired' as I have seen with some Perl scripts. The users
> should not be allowed to go back to the page and resubmit. Can any body
> suggest a way to accomplish this.
>
> thanks
> Sheni R Meledath
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
Hi,
Anyone able to tell me where i can get a traceroute php script from?
I've got mysql & php running in a windows millenium
system (yes, sad, I know), and I'm running phpmyadmin 2.1.0
Anyway, I have a database with three cells of information:
item_name
item_list
item_description
Each cell contains numerous pieces of data seperated
by a ¤ symbol (for exploding into an array). There is alot
of data in each cell, and when I go to choose "edit" or
"delete" the browser does nothing.
I thought it was just an IE error, but the same happens
in Netscape 6.0 and Netscape 4.8. So I skimmed through
the source, copied the URL and pasted it into a new window.
Only about half of the URL pasted. The only thing I can figure
is that the address is too long. If this is the case, I'm trying to
find out if anyone has tried converting phpmyadmin to use form
buttons as opposed to parsing the data directly through the URL
as a way to bypass this.
Or if no one has tried that (and god I hope you have) does anyone
know of another database management program like this that DOES
use form buttons?
I need the suexec feature. so i recompile the php4 to cgi. but i have
hundreds of php scripts under the existing web site. it's not a easy task to
add the line
#!/usr/local/bin/php
to each php file.
Anyone know is there any easy way to configure the httpd.conf without modify
hundreds of php files? Thanks in advance
----
Chris Chan
If you can't modify apache to do what you need, you could always write a
perl script to open up every file named *.php and add the line to the
top....it wouldn't be that hard, especially if you have any experience with
perl...
-----Original Message-----
From: Chris Chan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 18, 2001 4:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to change from php Apache module to php CGI?
I need the suexec feature. so i recompile the php4 to cgi. but i have
hundreds of php scripts under the existing web site. it's not a easy task to
add the line
#!/usr/local/bin/php
to each php file.
Anyone know is there any easy way to configure the httpd.conf without modify
hundreds of php files? Thanks in advance
----
Chris Chan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
It's much more than that. Perl doesn't cache compiled scripts either, or
rather, its caching is extremely limited, and IMHO pretty much unusable
(e.g., you have to restart the server every time a script changes). PHP
alone is as fast as Perl (and slightly faster, as the benchmarks
show). PHP coupled with Zend Cache is probably several times quicker than
Perl for most Web purposes.
Zeev
At 17:37 16/3/2001, Chris Adams wrote:
>On 16 Mar 2001 04:39:06 -0800, Phil Driscoll <[EMAIL PROTECTED]> wrote:
> >http://www.perlmonth.com/features/benchmarks/benchmarks.html?issue=4&id=9351
> >4159
> >
> >A performance comparison of various web scripting languages. PHP does rather
> >well!
>
>It's also important to note that their comment that PHP doesn't cache compiled
>scripts and thus may not scale as well isn't completely true. The default
>install doesn't, but you can use one of several products (Zend Cache,
>Afterburner and a third whose name escapes me) to ensure that your scripts are
>cached.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Zeev Suraski <[EMAIL PROTECTED]>
CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
Hi Chris,
The Zend Encoder does what you've described (compiles your php script so if you look
at the source, you see just "garbage").
To encode files with the Zend Encoder, you don't need anything but the Encoder itself.
To run the encoded files you need to have the Zend Optimizer. The people you program
the components for will need to install it on their server (it is freely available for
download at http://www.zend.com/store/products/zend-optimizer.php).
Sharon.
Chris Anderson wrote:
> I've heard alot about the Zend Encoder. Using it can I encode I file so that php
>still executes it, but a person cannot read my source by looking at the file? I'm
>programming components for people and would prefer if they could use it, but not see
>my source. Does it require any extra server settings etc?
Yeah,
I just can't figure out how to do it.
Anyone care to enlighten me?
Clayton Dukes
----- Original Message -----
From: Chris Anderson
To: Clayton Dukes
Sent: Wednesday, March 14, 2001 1:04 PM
Subject: Re: [PHP] form post without pathinfo
Sounds like you just need to use $PHP_Self with your other variables after it,
that way it gets the right settings
ex:
echo $PHP_SELF$color$etc
----- Original Message -----
From: Clayton Dukes
To: [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 4:57 PM
Subject: [PHP] form post without pathinfo
Hi :-)
How can I convert from this:
<form method=POST action="<? echo $PHP_SELF; ?>/approve">
</form>
...snip
} elseif ($pathinfo == "/approve") {
do something...
to something that posts to itself without altering the path?
My problem is, I'm using themes which are dependent on the path, so if I post
using the method above, the path changes and screws up the images, colors, etc after
the user submits.
TIA!
Clayton Dukes
--------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]