php-general Digest 9 Nov 2001 08:34:51 -0000 Issue 984
Topics (messages 73939 through 74004):
Re: file problem: I can´t read
73939 by: Thargor
Re: PHP and/or linux issue?
73940 by: John S. Huggins
73942 by: Gaylen Fraley
Re: Apostrophes and Textareas
73941 by: Jeff Gannaway
Re: if found...
73943 by: Christian
Executing php code within a string
73944 by: Chris Hobbs
73945 by: Thargor
73946 by: Julio Nobrega Trabalhando
73949 by: Chris Hobbs
Re: Q: How can I load a file to a frame
73947 by: Christoph Pross
73948 by: Jim Lucas
73950 by: Christoph Pross
73951 by: Christoph Pross
It Works!
73952 by: Christoph Pross
Searching for aeromail.php
73953 by: Don
QTDom Documentation
73954 by: root
73956 by: federico.kalporz.com
Find Near Zipcode Routine
73955 by: Roy W
Multiple SUBMIT Buttons and Default
73957 by: Jason Caldwell
73958 by: Boget, Chris
73959 by: Johnson, Kirk
73977 by: Tom Rogers
apache 2.x.x
73960 by: Tyler Longren
73963 by: Martín Marqués
Array HELP PLEASE
73961 by: René Fournier
73964 by: René Fournier
73965 by: Martín Marqués
73966 by: Jim Lucas
73967 by: René Fournier
73968 by: Martin Towell
Re: Error control and the like
73962 by: CC Zona
73970 by: GB Clark II
Re: [PHP-DB] RE: [PHP] Newbie Question
73969 by: Bill Adams
phpChess - need beta testers
73971 by: Brian
CF convert question..
73972 by: Kelly Meeks
73973 by: Daniel Reichenbach
Re: HTTP_SESSION_VARS
73974 by: Ozgur Demirtas
73975 by: Johnson, Kirk
Re: help with Auth in Apache
73976 by: David Robley
Append to STDIN
73978 by: Cleber S. Mori
73980 by: David Robley
73988 by: Cleber S. Mori
73989 by: Martin Towell
sessions and SSI
73979 by: Christian Dechery
Re: html2pdf
73981 by: burk
Part Time PHP/MySQL Work Available in Wash. DC
73982 by: Charlie Romero
email receipt confirmation
73983 by: WebDev
73985 by: Kurt Lieber
Want to remove some special from text
73984 by: Manisha
73986 by: Kurt Lieber
Troubles compiling Apache with PHP4
73987 by: Eric
Re: Forking and BG processes in PHP
73990 by: Yasuo Ohgaki
how to echo data in a textarea
73991 by: Scott
73993 by: Jeff Gannaway
73994 by: Chris Kay
Re: pass javascript variable to php?
73992 by: Yasuo Ohgaki
*.png - wrapping text
73995 by: jtjohnston
IMP
73996 by: edward.ita.org.mo
Re: Download script - sometime works sometime not
73997 by: Gede
73998 by: Jason Murray
Looking for security annoucements
73999 by: Jimmy
74000 by: Brian Clark
74001 by: Jochen Kächelin
74002 by: Brian Clark
MySQL/PHPMyAdmin
74003 by: jtjohnston
create new user mailbox
74004 by: heksaputra
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hallo Alejandro,
Thursday, November 08, 2001, 8:37:11 PM, you wrote:
> here is source code. The message it prints is: "no guarda en el búfer"
perhaps try buffer in line 4
correct code:
<?
if (($fichero=fopen("MON.txt", "r"))==FALSE){
echo "no abierto";
}else{
$buffer=fgets ($fichero, 4096);
if ($buffer==FALSE){
echo "no guarda en el búfer";
}
sscanf ($cad1, "%s");
echo "$cad1";
fclose ($fichero);
}
?>
--
Thargor mailto:[EMAIL PROTECTED]
http://www.vergessene-welt.de
--- End Message ---
--- Begin Message ---
On Thu, 8 Nov 2001, Gaylen Fraley wrote:
>-lookup of the mx-rr.domain.com of the e-mail address. When it doesn't find
>-an mx record, it rejects it with a 501 error. Windoze doen't use the mx
>-lookup, so it attempts to send the email and it works.
>-
>-My question is this: How do I tell the mail() (or sendmail) not to do the
>-mx record validation? Thanks.
I have to ask. Why is the email MX record invalid?
**************************************
John Huggins
VANet
7101 Oriole Avenue
Springfield, VA 22150
703-912-6453
703-912-4831 fax
[EMAIL PROTECTED]
http://www.va.net/
**************************************
--- End Message ---
--- Begin Message ---
I don't know. I know the person and there is no issue there. Here is the
full error, although I have changed his actual address:
---------- Forwarded message ----------
Date: Thu, 8 Nov 2001 09:37:01 -0600
From: Mail Delivery Subsystem <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Returned mail: see transcript for details
The original message was received at Thu, 8 Nov 2001 09:37:00 -0600
from nobody@localhost
----- The following addresses had permanent fatal errors -----
[EMAIL PROTECTED]
(reason: 501 5.1.8 <[EMAIL PROTECTED]>... Domain of sender
address [EMAIL PROTECTED] does not exist)
----- Transcript of session follows -----
... while talking to mx-rr.home.com.:
>>> MAIL From:<[EMAIL PROTECTED]> SIZE=397
<<< 501 5.1.8 <[EMAIL PROTECTED]>... Domain of sender address
[EMAIL PROTECTED] does not exist
501 5.6.0 Data format error
Is there an option in sendmail to disable the mx lookup?
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.21 Guestbook http://www.gaylenandmargie.com/phpwebsite
"John S. Huggins" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Thu, 8 Nov 2001, Gaylen Fraley wrote:
>
> >-lookup of the mx-rr.domain.com of the e-mail address. When it doesn't
find
> >-an mx record, it rejects it with a 501 error. Windoze doen't use the mx
> >-lookup, so it attempts to send the email and it works.
> >-
> >-My question is this: How do I tell the mail() (or sendmail) not to do
the
> >-mx record validation? Thanks.
>
> I have to ask. Why is the email MX record invalid?
>
> **************************************
>
> John Huggins
> VANet
> 7101 Oriole Avenue
> Springfield, VA 22150
> 703-912-6453
> 703-912-4831 fax
>
> [EMAIL PROTECTED]
> http://www.va.net/
>
> **************************************
>
--- End Message ---
--- Begin Message ---
Actually, I avoid using add/strip slashes because it adds them to
characters tha tI don't need them to.
I ususally use a basic str_replace command just to get the apostrophes...
str_replace("'", "\\'", $TextAreaVaraible);
-Jeff
At 01:16 PM 11/8/01 -0600, Boget, Chris wrote:
>> Everything works great, but one small problem How do I work around
>> apostrophes within the textareas? I keep getting errors when they are
>> present and no errors when I remove all of the apostrophes.
>
>addslashes()
>stripslashes()
>
>Chris
>
--- End Message ---
--- Begin Message ---
Is this not possible or what??
Coldfusion can do this as queryname.recordcount...
Christian
> This is what i have so far, i dont know how to find out if there
> was a entry that was found.
> Is there a way to retunr the record cout when using accsess??
>
> Also looking at this piece of code, are there things i could should
> chane to make this better??
>
> Thanks
> Christian
> www.charetx2.com
--- End Message ---
--- Begin Message ---
I've a simple content management system which allows users to use full
html within their submitted items. I then output the data by pulling the
info out of a db and simply echo'ing it to the browser.
Anyway, I'd like to make some php functionality available to them, so I
would like them to be able to enter something like the following:
<h2> The date is <? echo date("m-d-Y")?>.</h2>
This would later be pulled out from the database and sent to the browser as:
<h2> The date is 11-08-2001.</h2>
Right now, of course, I simply echo the <? ... ?> and not the result.
Any ideas on how to process the php component before I echo it?
--
_______ ___ _ ____ _____
Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
Head Geek | (___ \ \ / /| | | | (___ | | | |
WebMaster \___ \ \ \/ / | | | |\___ \| | | |
PostMaster ____) | \ / | |__| |____) | |__| |
\____/ \/ \____/ \____/|_____/
http://www.silvervalley.k12.ca.us
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hallo Chris,
Thursday, November 08, 2001, 9:13:20 PM, you wrote:
> I've a simple content management system which allows users to use full
> html within their submitted items. I then output the data by pulling the
> info out of a db and simply echo'ing it to the browser.
> Anyway, I'd like to make some php functionality available to them, so I
> would like them to be able to enter something like the following:
> <h2> The date is <? echo date("m-d-Y")?>.</h2>
> This would later be pulled out from the database and sent to the browser as:
> <h2> The date is 11-08-2001.</h2>
> Right now, of course, I simply echo the <? ... ?> and not the result.
> Any ideas on how to process the php component before I echo it?
try something with eval();
--
Thargor mailto:[EMAIL PROTECTED]
http://www.vergessene-welt.de
--- End Message ---
--- Begin Message ---
eval();
But you should be VERY careful, limiting what things they can put inside
<?php ?>.
It's easier to allow just some functions to run.
Or, you could do somekind of an interpreter. Allow them to put things
inside a special tag, and special commands.
Say for example your opening tag is:
<|CH
Closing:
|>
Then you make available to them certain 'functions'. For example:
<|CH current_date |>
Would display the current date.
It's more secure, and I mean MUCH more secure than using eval(); since you
will have control of what appears inside <|CH |>, but a little workier to
implemet.
Or maybe I am reinventing the wheel on this....
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Chris Hobbs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I've a simple content management system which allows users to use full
> html within their submitted items. I then output the data by pulling the
> info out of a db and simply echo'ing it to the browser.
>
> Anyway, I'd like to make some php functionality available to them, so I
> would like them to be able to enter something like the following:
>
> <h2> The date is <? echo date("m-d-Y")?>.</h2>
>
> This would later be pulled out from the database and sent to the browser
as:
>
> <h2> The date is 11-08-2001.</h2>
>
> Right now, of course, I simply echo the <? ... ?> and not the result.
>
> Any ideas on how to process the php component before I echo it?
>
> --
> _______ ___ _ ____ _____
> Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
> Head Geek | (___ \ \ / /| | | | (___ | | | |
> WebMaster \___ \ \ \/ / | | | |\___ \| | | |
> PostMaster ____) | \ / | |__| |____) | |__| |
> \____/ \/ \____/ \____/|_____/
> http://www.silvervalley.k12.ca.us
> [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Thanks to both you and Thargor. eval() is exactly what I was after, but
your comments about security are well-taken - this certainly gives an
almost blank check to anyone who can post to the site. I'll work on my
own version of eval [string ch_eval (string to_be_evaluated) ;)] to try
to address this concern.
Julio Nobrega Trabalhando wrote:
> eval();
>
> But you should be VERY careful, limiting what things they can put inside
> <?php ?>.
>
> It's easier to allow just some functions to run.
>
> Or, you could do somekind of an interpreter. Allow them to put things
> inside a special tag, and special commands.
>
> Say for example your opening tag is:
>
> <|CH
>
> Closing:
>
> |>
>
> Then you make available to them certain 'functions'. For example:
>
> <|CH current_date |>
>
> Would display the current date.
>
> It's more secure, and I mean MUCH more secure than using eval(); since you
> will have control of what appears inside <|CH |>, but a little workier to
> implemet.
>
> Or maybe I am reinventing the wheel on this....
>
> --
>
> Julio Nobrega
>
> A hora está chegando:
> http://toca.sourceforge.net
> "Chris Hobbs" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>
>>I've a simple content management system which allows users to use full
>>html within their submitted items. I then output the data by pulling the
>>info out of a db and simply echo'ing it to the browser.
>>
>>Anyway, I'd like to make some php functionality available to them, so I
>>would like them to be able to enter something like the following:
>>
>><h2> The date is <? echo date("m-d-Y")?>.</h2>
>>
>>This would later be pulled out from the database and sent to the browser
>>
> as:
>
>><h2> The date is 11-08-2001.</h2>
>>
>>Right now, of course, I simply echo the <? ... ?> and not the result.
>>
>>Any ideas on how to process the php component before I echo it?
>>
>>--
>> _______ ___ _ ____ _____
>>Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
>>Head Geek | (___ \ \ / /| | | | (___ | | | |
>>WebMaster \___ \ \ \/ / | | | |\___ \| | | |
>>PostMaster ____) | \ / | |__| |____) | |__| |
>> \____/ \/ \____/ \____/|_____/
>> http://www.silvervalley.k12.ca.us
>> [EMAIL PROTECTED]
>>
>>
>
>
>
--
_______ ___ _ ____ _____
Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
Head Geek | (___ \ \ / /| | | | (___ | | | |
WebMaster \___ \ \ \/ / | | | |\___ \| | | |
PostMaster ____) | \ / | |__| |____) | |__| |
\____/ \/ \____/ \____/|_____/
http://www.silvervalley.k12.ca.us
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I get and javascript error :-(
Any Idea?
Chris
Andrey Hristov schrieb:
> Not sure but
>
> in the php :
> echo '<script
>language="javascript">parent.the_name_of_other_frame.location="http://some.domain.com/?'.$the_page.'"</script>';
>
> ----- Original Message -----
> From: "Christoph Pross" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 08, 2001 8:15 PM
> Subject: [PHP] Q: How can I load a file to a frame
>
> > Hi everybody,
> > I'm new to PHP4 and I have a question: I have a page with two frames
> > and in one is my php4-srcipt. Can I somehow manage it with PHP to load
> > another file (html) to the second frame? So depending on what happens in
> > one frame, the
> > other frame gets a different file...
> >
> > Thanks for help
> > Chris
> >
> >
> > --
> > 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]
> >
> >
--- End Message ---
--- Begin Message ---
it might help to know what type of js error you are getting??
Jim
----- Original Message -----
From: "Christoph Pross" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 08, 2001 12:50 PM
Subject: Re: [PHP] Q: How can I load a file to a frame
> I get and javascript error :-(
> Any Idea?
>
> Chris
>
>
> Andrey Hristov schrieb:
>
> > Not sure but
> >
> > in the php :
> > echo '<script
language="javascript">parent.the_name_of_other_frame.location="http://some.d
omain.com/?'.$the_page.'"</script>';
> >
> > ----- Original Message -----
> > From: "Christoph Pross" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, November 08, 2001 8:15 PM
> > Subject: [PHP] Q: How can I load a file to a frame
> >
> > > Hi everybody,
> > > I'm new to PHP4 and I have a question: I have a page with two frames
> > > and in one is my php4-srcipt. Can I somehow manage it with PHP to load
> > > another file (html) to the second frame? So depending on what happens
in
> > > one frame, the
> > > other frame gets a different file...
> > >
> > > Thanks for help
> > > Chris
> > >
> > >
> > > --
> > > 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]
>
>
--- End Message ---
--- Begin Message ---
Sorry for my stupid question, but: How can I find out?
I just see for a small second something in the status-bar like javascript-error.
How can I determine the error?
For your info, I added:
echo '<script language="javascript"> parent.mymenu.location="head.html"
</script>';
Thanks for your help
Chris
Jim Lucas schrieb:
> it might help to know what type of js error you are getting??
>
> Jim
> ----- Original Message -----
> From: "Christoph Pross" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 08, 2001 12:50 PM
> Subject: Re: [PHP] Q: How can I load a file to a frame
>
> > I get and javascript error :-(
> > Any Idea?
> >
> > Chris
> >
> >
> > Andrey Hristov schrieb:
> >
> > > Not sure but
> > >
> > > in the php :
> > > echo '<script
> language="javascript">parent.the_name_of_other_frame.location="http://some.d
> omain.com/?'.$the_page.'"</script>';
> > >
> > > ----- Original Message -----
> > > From: "Christoph Pross" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, November 08, 2001 8:15 PM
> > > Subject: [PHP] Q: How can I load a file to a frame
> > >
> > > > Hi everybody,
> > > > I'm new to PHP4 and I have a question: I have a page with two frames
> > > > and in one is my php4-srcipt. Can I somehow manage it with PHP to load
> > > > another file (html) to the second frame? So depending on what happens
> in
> > > > one frame, the
> > > > other frame gets a different file...
> > > >
> > > > Thanks for help
> > > > Chris
> > > >
> > > >
> > > > --
> > > > 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]
> >
> >
--- End Message ---
--- Begin Message ---
Now I found it:
parent.mymenu has no properties.
JavaScript Error:
http://127.0.0.1/Auswahl_Gruppe.php4?Kennung=905,
line 6:
parent.mymenu has no properties.
Jim Lucas schrieb:
> it might help to know what type of js error you are getting??
>
> Jim
> ----- Original Message -----
> From: "Christoph Pross" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 08, 2001 12:50 PM
> Subject: Re: [PHP] Q: How can I load a file to a frame
>
> > I get and javascript error :-(
> > Any Idea?
> >
> > Chris
> >
> >
> > Andrey Hristov schrieb:
> >
> > > Not sure but
> > >
> > > in the php :
> > > echo '<script
> language="javascript">parent.the_name_of_other_frame.location="http://some.d
> omain.com/?'.$the_page.'"</script>';
> > >
> > > ----- Original Message -----
> > > From: "Christoph Pross" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, November 08, 2001 8:15 PM
> > > Subject: [PHP] Q: How can I load a file to a frame
> > >
> > > > Hi everybody,
> > > > I'm new to PHP4 and I have a question: I have a page with two frames
> > > > and in one is my php4-srcipt. Can I somehow manage it with PHP to load
> > > > another file (html) to the second frame? So depending on what happens
> in
> > > > one frame, the
> > > > other frame gets a different file...
> > > >
> > > > Thanks for help
> > > > Chris
> > > >
> > > >
> > > > --
> > > > 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]
> >
> >
--- End Message ---
--- Begin Message ---
Sorry, a typo :-(
Sorry, Sorry, Sorry
Thanks for the help!
> Now I found it:
>
> parent.mymenu has no properties.
> JavaScript Error:
> http://127.0.0.1/Auswahl_Gruppe.php4?Kennung=905,
> line 6:
>
> parent.mymenu has no properties.
>
> Jim Lucas schrieb:
>
> > it might help to know what type of js error you are getting??
> >
> > Jim
> > ----- Original Message -----
> > From: "Christoph Pross" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, November 08, 2001 12:50 PM
> > Subject: Re: [PHP] Q: How can I load a file to a frame
> >
> > > I get and javascript error :-(
> > > Any Idea?
> > >
> > > Chris
> > >
> > >
> > > Andrey Hristov schrieb:
> > >
> > > > Not sure but
> > > >
> > > > in the php :
> > > > echo '<script
> > language="javascript">parent.the_name_of_other_frame.location="http://some.d
> > omain.com/?'.$the_page.'"</script>';
> > > >
> > > > ----- Original Message -----
> > > > From: "Christoph Pross" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, November 08, 2001 8:15 PM
> > > > Subject: [PHP] Q: How can I load a file to a frame
> > > >
> > > > > Hi everybody,
> > > > > I'm new to PHP4 and I have a question: I have a page with two frames
> > > > > and in one is my php4-srcipt. Can I somehow manage it with PHP to load
> > > > > another file (html) to the second frame? So depending on what happens
> > in
> > > > > one frame, the
> > > > > other frame gets a different file...
> > > > >
> > > > > Thanks for help
> > > > > Chris
> > > > >
> > > > >
> > > > > --
> > > > > 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]
> > >
> > >
--- End Message ---
--- Begin Message ---
Does anyone know where I can find a copy of AeroMail.php??? All the links including
the one on the PHP Resource page are dead.
Thanks,
Don
--- End Message ---
--- Begin Message ---
Hi all, someone knows where I can find documentation pages for PHP QTDom
extension?
Tanks
--- End Message ---
--- Begin Message ---
Hi all, someone knows where I can find documentation pages for PHP QTDom
extension?
Tanks
--- End Message ---
--- Begin Message ---
Hi!
Does anyone know where I can find a good "find near zip code" routine?
Thanks!!!
--- End Message ---
--- Begin Message ---
On some of my forms I have multiple Submit buttons;
for example
Button1 = Cancel, and
Button2 = Continue
Is there a way to make one of them the *default* button so that when a user
presses their Return / Enter Key, *that default* button will be processed?
Thanks.
Jason
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
> On some of my forms I have multiple Submit buttons;
> for example
> Button1 = Cancel, and
> Button2 = Continue
> Is there a way to make one of them the *default* button so
> that when a user presses their Return / Enter Key, *that default*
> button will be processed?
I believe the first one is what you would consider the "default".
Also, note that the "return = submit" functionality doesn't work
on all browsers. In fact, I think it only works on IE. I know it
doesn't work on NS.
Chris
--- End Message ---
--- Begin Message ---
> On some of my forms I have multiple Submit buttons;
>
> Is there a way to make one of them the *default* button so
> that when a user
> presses their Return / Enter Key, *that default* button will
> be processed?
One way is to give all the buttons the same NAME attribute. Then include a
HIDDEN field just *before* the buttons that has the same name and the same
VALUE that the default button has. The hidden always gets posted, so if no
button gets clicked the hidden provides the value of the default submit. The
hidden has to go before the buttons, so that if the user does click a
button, it overrides the hidden.
Kirk
--- End Message ---
--- Begin Message ---
Hi
I use java script like this:
<head>
<script language="javascript">
function highlight() {
document.options.continue.focus();
}
</script>
</head>
<body onload="highlight()">
<form name="options" action="whatever.php" method="post">
<input type="submit" name="cancel" value="Cancel">
<input type ="submit" name="continue" value="Continue">
</form>
</body>
Tom
At 07:51 AM 9/11/01, Jason Caldwell wrote:
>On some of my forms I have multiple Submit buttons;
>
>for example
>Button1 = Cancel, and
>Button2 = Continue
>
>Is there a way to make one of them the *default* button so that when a user
>presses their Return / Enter Key, *that default* button will be processed?
>
>Thanks.
>Jason
>[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]
--- End Message ---
--- Begin Message ---
Hello,
Here's the method I usually use for compiling php and apache 1.3.x together.
Is there any reason this shouldn't work with apache 2.x.x?
1. tar xfz apache-x.x.xx.tar.gz
2. cd apache-x.x.xx
3. ./configure --prefix=/usr/local/apache --enable-module=so
4. make
5. make install
6. cd ..
7. tar xfz php-x.x.x.tar.gz
8. cd php-x.x.x
9.
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --disable-de
bug --enable-track-vars --with-ftp --with-xml
10. make
11. make install
12. uncomment the lines for PHP in httpd.conf (something like this: AddType
application/x-httpd-php .php)
13. /usr/local/apache/bin/apachectl start
Thanks all,
Tyler Longren
--- End Message ---
--- Begin Message ---
On Jue 08 Nov 2001 19:21, you wrote:
> Hello,
>
> Here's the method I usually use for compiling php and apache 1.3.x
> together. Is there any reason this shouldn't work with apache 2.x.x?
>
> 1. tar xfz apache-x.x.xx.tar.gz
> 2. cd apache-x.x.xx
> 3. ./configure --prefix=/usr/local/apache --enable-module=so
> 4. make
> 5. make install
> 6. cd ..
> 7. tar xfz php-x.x.x.tar.gz
> 8. cd php-x.x.x
> 9.
> ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
> --disable-de bug --enable-track-vars --with-ftp --with-xml
Check the php options of configure (don't have a source tree handy), there is
a special option for apxs of apache 2.x (--with-apxs2 maybe, I can't
remember, but I saw it :-) )
Saludos... :-)
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | [EMAIL PROTECTED]
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
--- End Message ---
--- Begin Message ---
(Before you write RTFM, please know that I have checked www.php.net,
zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I still
haven't found what I'm looking.)
The situation: I extract an array from a MySQL table. Code:
$models = mysql_fetch_array(mysql_query("SELECT * FROM models WHERE
lang='$lang' AND key1='data' AND key2='$series'",$db));
Based on the above criteria, there should be two rows in $modelsrow, with
each row containing about twenty elements. (A two-dimensional array,
right?) All I want to do is display the contents of $models. With the
following...
for ($i = 1; $i <= 20; $i++) {
echo $models[$i]."<p>";
}
...I get just one row. How can I also display the other row? I've tried
variations of $models[1][2], but I just can't get right syntax. (Help is
much appreciated. Thanks.)
If you know of a good tutorial on multidimension arrays + mySQL, that would
be nice too.
...Rene
--- End Message ---
--- Begin Message ---
Oops, guess I posted too soon. Just figured out the problem myself (use a
do/while...). Thanks anyways.
> -----Original Message-----
> From: René Fournier [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 08, 2001 3:25 PM
> To: Php-General
> Subject: [PHP] Array HELP PLEASE
>
>
> (Before you write RTFM, please know that I have checked www.php.net,
> zend.com, phpbuilder.com, et all, and--in the eternal words of
> Bono--I still
> haven't found what I'm looking.)
>
> The situation: I extract an array from a MySQL table. Code:
>
> $models = mysql_fetch_array(mysql_query("SELECT * FROM models WHERE
> lang='$lang' AND key1='data' AND key2='$series'",$db));
>
> Based on the above criteria, there should be two rows in $modelsrow, with
> each row containing about twenty elements. (A two-dimensional array,
> right?) All I want to do is display the contents of $models. With the
> following...
>
> for ($i = 1; $i <= 20; $i++) {
> echo $models[$i]."<p>";
> }
>
> ...I get just one row. How can I also display the other row? I've tried
> variations of $models[1][2], but I just can't get right syntax. (Help is
> much appreciated. Thanks.)
>
> If you know of a good tutorial on multidimension arrays + mySQL,
> that would
> be nice too.
>
> ...Rene
>
>
> --
> 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]
--- End Message ---
--- Begin Message ---
On Jue 08 Nov 2001 19:25, you wrote:
> (Before you write RTFM, please know that I have checked www.php.net,
> zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I
> still haven't found what I'm looking.)
>
> The situation: I extract an array from a MySQL table. Code:
>
> $models = mysql_fetch_array(mysql_query("SELECT * FROM models WHERE
> lang='$lang' AND key1='data' AND key2='$series'",$db));
>
> Based on the above criteria, there should be two rows in $modelsrow, with
> each row containing about twenty elements. (A two-dimensional array,
> right?) All I want to do is display the contents of $models. With the
> following...
>
> for ($i = 1; $i <= 20; $i++) {
> echo $models[$i]."<p>";
> }
>
> ...I get just one row. How can I also display the other row? I've tried
> variations of $models[1][2], but I just can't get right syntax. (Help is
> much appreciated. Thanks.)
What you need is a god manual of programinnig, so you can RTFM.
for ($i = 1; $i <= 2; $i++) {
foreach($models[$i] AS $val){
echo $val."<p>";
}
echo "<br>";
}
> If you know of a good tutorial on multidimension arrays + mySQL, that would
> be nice too.
>
> ...Rene
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | [EMAIL PROTECTED]
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
--- End Message ---
--- Begin Message ---
read this page a little closer!
http://www.php.net/manual/en/function.mysql-fetch-array.php
the mysql_fetch_array(); does not pull all the results in one big array.
it IS only a single row of data.
try this out, it should do what you are looking to do.
$results = mysql_query("SELECT * FROM models WHERE lang='$lang' AND
key1='data' AND key2='$series'",$db);
while ($models = mysql_fetch_array($results))
{
echo $models ."<p>";
}
Jim
----- Original Message -----
From: "René Fournier" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Thursday, November 08, 2001 2:25 PM
Subject: [PHP] Array HELP PLEASE
> (Before you write RTFM, please know that I have checked www.php.net,
> zend.com, phpbuilder.com, et all, and--in the eternal words of Bono--I
still
> haven't found what I'm looking.)
>
> The situation: I extract an array from a MySQL table. Code:
>
> $models = mysql_fetch_array(mysql_query("SELECT * FROM models WHERE
> lang='$lang' AND key1='data' AND key2='$series'",$db));
>
> Based on the above criteria, there should be two rows in $modelsrow, with
> each row containing about twenty elements. (A two-dimensional array,
> right?) All I want to do is display the contents of $models. With the
> following...
>
> for ($i = 1; $i <= 20; $i++) {
> echo $models[$i]."<p>";
> }
>
> ...I get just one row. How can I also display the other row? I've tried
> variations of $models[1][2], but I just can't get right syntax. (Help is
> much appreciated. Thanks.)
>
> If you know of a good tutorial on multidimension arrays + mySQL, that
would
> be nice too.
>
> ...Rene
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
Or maybe not. :-) Although I got both rows displaying, they're actually two
long to fit comfortably (w/o horizontally scrolling). So... I'd like to
flip the axis of the table, so my header row runs vertically. But with the
vagaries of html tables, I'm kinda stumped as to how to run the do/while+for
loop. This is what I've got now (more or less):
fld1 fld2 fld3
big red house
little blue dog
long yellow string
With this code:
=======================================
// MODELS A
echo "<table border=1 cellpadding=2 cellspacing=0>";
echo "<tr>";
for ($i = 6; $i <= 25; $i++) {
echo "<td valign=top align=left
class=deemph>".stripslashes($modelsheader[$i])."</td>";
}
echo "</tr>";
do {
echo "<tr>";
for ($i = 6; $i <= 25; $i++) {
echo "<td valign=top align=left
class=normal>".stripslashes($models[$i])."</td>";
}
echo "</tr>";
} while ($models = mysql_fetch_array($result));
echo "</table>";
=========================================
This is what I WOULD LIKE to have:
fld1 big little long
fld2 red blue yellow
fld3 house dog string
==================================
I can't figure how I would display element 1 of $modelsheader and every
first element of $models, then increment and loop... That is, I would like
to be able to refer to $models such that $models[0][0] referred to the first
element of the first row and, say, $models[1][0] referred to the first
element of the second row, and so on.
> -----Original Message-----
> From: René Fournier [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 08, 2001 3:39 PM
> To: Php-General
> Subject: RE: [PHP] Array HELP PLEASE
>
>
> Oops, guess I posted too soon. Just figured out the problem myself (use a
> do/while...). Thanks anyways.
>
> > -----Original Message-----
> > From: René Fournier [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 08, 2001 3:25 PM
> > To: Php-General
> > Subject: [PHP] Array HELP PLEASE
> >
> >
> > (Before you write RTFM, please know that I have checked www.php.net,
> > zend.com, phpbuilder.com, et all, and--in the eternal words of
> > Bono--I still
> > haven't found what I'm looking.)
> >
> > The situation: I extract an array from a MySQL table. Code:
> >
> > $models = mysql_fetch_array(mysql_query("SELECT * FROM models WHERE
> > lang='$lang' AND key1='data' AND key2='$series'",$db));
> >
> > Based on the above criteria, there should be two rows in
> $modelsrow, with
> > each row containing about twenty elements. (A two-dimensional array,
> > right?) All I want to do is display the contents of $models. With the
> > following...
> >
> > for ($i = 1; $i <= 20; $i++) {
> > echo $models[$i]."<p>";
> > }
> >
> > ...I get just one row. How can I also display the other row?
> I've tried
> > variations of $models[1][2], but I just can't get right syntax.
> (Help is
> > much appreciated. Thanks.)
> >
> > If you know of a good tutorial on multidimension arrays + mySQL,
> > that would
> > be nice too.
> >
> > ...Rene
> >
> >
> > --
> > 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]
--- End Message ---
--- Begin Message ---
try changing these lines:
echo "<tr>";
for ($i = 6; $i <= 25; $i++) {
echo "<td valign=top align=left
class=normal>".stripslashes($models[$i])."</td>";
}
echo "</tr>";
to:
echo "<tr><td valign=top align=left class=normal>";
for ($i = 6; $i <= 25; $i++) {
echo
stripslashes($models[$i])."<br>";
}
echo "</td></tr>";
Martin T
-----Original Message-----
From: René Fournier [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 10:06 AM
To: Php-General
Subject: RE: [PHP] Array HELP PLEASE
Or maybe not. :-) Although I got both rows displaying, they're actually two
long to fit comfortably (w/o horizontally scrolling). So... I'd like to
flip the axis of the table, so my header row runs vertically. But with the
vagaries of html tables, I'm kinda stumped as to how to run the do/while+for
loop. This is what I've got now (more or less):
fld1 fld2 fld3
big red house
little blue dog
long yellow string
With this code:
=======================================
// MODELS A
echo "<table border=1 cellpadding=2 cellspacing=0>";
echo "<tr>";
for ($i = 6; $i <= 25; $i++) {
echo "<td valign=top align=left
class=deemph>".stripslashes($modelsheader[$i])."</td>";
}
echo "</tr>";
do {
echo "<tr>";
for ($i = 6; $i <= 25; $i++) {
echo "<td valign=top align=left
class=normal>".stripslashes($models[$i])."</td>";
}
echo "</tr>";
} while ($models = mysql_fetch_array($result));
echo "</table>";
=========================================
This is what I WOULD LIKE to have:
fld1 big little long
fld2 red blue yellow
fld3 house dog string
==================================
I can't figure how I would display element 1 of $modelsheader and every
first element of $models, then increment and loop... That is, I would like
to be able to refer to $models such that $models[0][0] referred to the first
element of the first row and, say, $models[1][0] referred to the first
element of the second row, and so on.
> -----Original Message-----
> From: René Fournier [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 08, 2001 3:39 PM
> To: Php-General
> Subject: RE: [PHP] Array HELP PLEASE
>
>
> Oops, guess I posted too soon. Just figured out the problem myself (use a
> do/while...). Thanks anyways.
>
> > -----Original Message-----
> > From: René Fournier [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 08, 2001 3:25 PM
> > To: Php-General
> > Subject: [PHP] Array HELP PLEASE
> >
> >
> > (Before you write RTFM, please know that I have checked www.php.net,
> > zend.com, phpbuilder.com, et all, and--in the eternal words of
> > Bono--I still
> > haven't found what I'm looking.)
> >
> > The situation: I extract an array from a MySQL table. Code:
> >
> > $models = mysql_fetch_array(mysql_query("SELECT * FROM models WHERE
> > lang='$lang' AND key1='data' AND key2='$series'",$db));
> >
> > Based on the above criteria, there should be two rows in
> $modelsrow, with
> > each row containing about twenty elements. (A two-dimensional array,
> > right?) All I want to do is display the contents of $models. With the
> > following...
> >
> > for ($i = 1; $i <= 20; $i++) {
> > echo $models[$i]."<p>";
> > }
> >
> > ...I get just one row. How can I also display the other row?
> I've tried
> > variations of $models[1][2], but I just can't get right syntax.
> (Help is
> > much appreciated. Thanks.)
> >
> > If you know of a good tutorial on multidimension arrays + mySQL,
> > that would
> > be nice too.
> >
> > ...Rene
> >
> >
> > --
> > 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]
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Gb Clark II) wrote:
> Let me give you an example of what I'm wanting in pseudo-code.
>
> connect to database
>
> exec query
>
> error in query
>
> catch error
>
> rollback database
>
> It is almost like exceptions.
Exception handling isn't available in PHP, but for what you want to do one
or more of these should be of assistance:
<http://www.php.net/manual/en/function.die.php>
<http://www.php.net/manual/en/function.assert.php>
<http://www.php.net/manual/en/function.set-error-handler.php>
--
CC
--- End Message ---
--- Begin Message ---
On Thursday 08 November 2001 11:25, Sam Masiello wrote:
> What database engine are you using?
>
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> [EMAIL PROTECTED]
Hi,
I'm using PostgreSQL.
GB
> Subject: Re: [PHP] Error control and the like
>
> > On Thursday 08 November 2001 09:49, Sam Masiello wrote:
> > > If you are just looking for something that will display all of your
> > > warning/error messages to show where fallibilities occur in your code,
>
> you
>
> > > can use the error_reporting() function at the top of your script.
> >
> > No, What you've described is like the perl 'use strict' and '-w'.
> >
> > Let me give you an example of what I'm wanting in pseudo-code.
> >
> > connect to database
> >
> > exec query
> >
> > error in query
> >
> > catch error
> >
> > rollback database
> >
> > It is almost like exceptions.
> >
> > Thanks,
> >
> > GB
> >
> > > Subject: [PHP] Error control and the like
> > >
> > > > Hi,
> > > >
> > > > I'm comming from a Perl background and I'm used to using
> > > > evail{code;};
>
> to
>
> > > > catch things that would kill the server/program and then do things
>
> based
>
> > > on
> > >
> > > > the error code.
> > > >
> > > > Can anyone suggest a way to implement the same thing in PHP? I've
>
> been
>
> > > > looking at some of the error control functions, but I've not seen any
> > > > examples. Any ideas, locations or whatever?
> > > >
> > > > Thanks for the help.
> > > >
> > > > GB
> > > >
--
GB Clark II | Roaming FreeBSD Admin
[EMAIL PROTECTED] | General Geek
CTHULU for President - Why choose the lesser of two evils?
--- End Message ---
--- Begin Message ---
Jay Fitzgerald wrote:
> displays fine now -- thanks for that help so far -- but the problem now
> (this may be normal, but I am not sure) is when I connect to the db and
> "select * from jobs;" the db is writing the entries like this:
>
> ===================
> mysql> select * from jobs;
>
>+----+----------+----------+--------+---------+---------------------------------+----------+----------+--------+----------+
> | id | position | opendate | salary | appdate |
> duties | examples | training | skills | benefits |
>
>+----+----------+----------+--------+---------+---------------------------------+----------+----------+--------+----------+
> | 1 | test | test | test | test | 1
> 2
> 3
>
> 4
> 5
> 6
>
> 7
> 8
> 9 | test | test | test | test |
>
>+----+----------+----------+--------+---------+---------------------------------+----------+----------+--------+----------+
> ===================
>
> is this in fact normal?
Yes.
Since you have \n (and possibly \t, others) in the field, mysql is displaying them on
the select.
b.
--- End Message ---
--- Begin Message ---
Hello,
I have recently created a phpChess script to play Chess using PHP/mySQL.
I'm not sure if it's been done yet or not, but I needed something to do...
so I did one myself. I'd like anyone out there that likes chess to help me
test it out. After a couple weeks of good testing, I'll release the version
1.0 source to most of the popular script databases. It's at
http://www.smashland.com/chess/ ... anyone that would be interested in
helping me clean up my code... email me, and I'll let you know how you can
help.
thanks,
Brian
--- End Message ---
--- Begin Message ---
Hi there,
In the middle of porting over a large cold fusion project to php.
CF has a tag called <cflocation> which lets you jump to another page/location.
Does php have an equivalent?
I've been able to get the combo of an include/exit to work in a similar fashion, it
just seems a bit heavy handed.
Seems basic, but I didn't see anything else in the docs.
TIA,
Kelly
--- End Message ---
--- Begin Message ---
> In the middle of porting over a large cold fusion project to php.
How are your experiences so far? Any bigger problems? Missing
Features?
> CF has a tag called <cflocation> which lets you jump to
> another page/location.
>
> Does php have an equivalent?
Yes. Give http://www.php.net/header a try.
Daniel
--- End Message ---
--- Begin Message ---
Regarding the same topic of session management, I am using PHP 3.09 and when
I call session_start() or $HTTP_SESSION_VARS['someVariable]
I get :
Fatal error: Call to unsupported or undefined function session_start()
So, my question is that: Is there any session management in PHP3.09? If the
answer is no, what weould be an alternative?
Regards,
Ozgur
----- Original Message -----
From: "Chris O'Brien" <[EMAIL PROTECTED]>
To: "Ron Clark" <[EMAIL PROTECTED]>
Cc: "PHP general list" <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 3:06 AM
Subject: Re: [PHP] HTTP_SESSION_VARS
> > I am working on a major PHP project using sessions and would like to run
> > PHP with register_globals turned off. Trouble is, with PHP-4.0.6 I lose
> > all the session variables and my program breaks. Tried -
> >
> >
> > $username = $HTTP_SESSION_VARS['username'];
> > print $username;
> >
> > and got nothing.
> >
> > print_r($HTTP_SESSION_VARS) shows an empty array. Is this a bug in
> > 4.0.6.
>
> Try calling session_start(); before trying to grab the session variables,
on
> each page that needs to use the variables.
>
> * Chris O'Brien ([EMAIL PROTECTED])
> * Excel.Net,Inc. - http://www.excel.net/
> * (920) 452-0455 - Sheboygan/Plymouth area
> * (888) 489-9995 - Other areas, toll-free
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
> Regarding the same topic of session management, I am using
> PHP 3.09 and when
> I call session_start() or $HTTP_SESSION_VARS['someVariable]
> I get :
>
> Fatal error: Call to unsupported or undefined function session_start()
>
>
> So, my question is that: Is there any session management in
> PHP3.09? If the
> answer is no, what weould be an alternative?
Native session management arrived with PHP 4.0. If you are stuck with 3.x,
you might look at PHPLIB, which has a session management class. The best
bet, IMHO, is to upgrade to 4.x, tho.
Kirk
--- End Message ---
--- Begin Message ---
On Fri, 9 Nov 2001 01:38, Christian Dechery wrote:
> This is really not a PHP question... but I'm sure there's someone that
> can help me out...
>
> How can I implement a kinda of super-user in Apache with .htaccess...
>
> something like, I'd have the following dir tree:
>
> /
> /site1
> /site2
> /site1/crap
> /site2/crap2
>
> so I sould create users: site1 and site2 and place .htaccess files in
> their dirs right?
> And they would ONLY have access to their respective dirs..
> But I want a user that can access ALL the dirs, including / ... how can
> I do this?
>
> thanks...
If you mean only being able to ftp into the defined structure, and you
are using a unix variant, look into chroot - system command, not php.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
C:\DOS C:\DOS\RUN RUN\DOS\RUN
--- End Message ---
--- Begin Message ---
Hi guys...
I have a perl script which adds automatically contents to my html file. I
have been done this manualy, from a unix shell, but now I want to make the
PHP do-it-for-me.
As I already have the perl script, I won't rewrite it again, so, how can I
make a PHP variable ($foo) to go to the STDIN?
In other words, I want to execute my htmladd.pl with the file argument,
and get the STDIN.
like
echo "STDIN"| htmladd.pl my_html_file.html
But I want to STDIN be a PHP variable, that is because I want to make the
updates over the net.
Thanks!
Hey, sorry for my bad english!
Take care!
Cleber S. Mori
Monitor Lab Linux
2o Ano - Bacharelado em Ciências da Computação
ICMC - Instituto de Ciências Matemáticas e de Computação
USP - Universidade de São Paulo - São Carlos
HPage: http://grad.icmc.sc.usp.br/~cleber/
E-mail: [EMAIL PROTECTED]
ICQ/UIN: 1409389
--- End Message ---
--- Begin Message ---
On Fri, 9 Nov 2001 11:58, Cleber S. Mori wrote:
> Hi guys...
>
> I have a perl script which adds automatically contents to my html file.
> I have been done this manualy, from a unix shell, but now I want to
> make the PHP do-it-for-me.
>
> As I already have the perl script, I won't rewrite it again, so, how
> can I make a PHP variable ($foo) to go to the STDIN?
>
> In other words, I want to execute my htmladd.pl with the file argument,
> and get the STDIN.
>
> like
> echo "STDIN"| htmladd.pl my_html_file.html
> But I want to STDIN be a PHP variable, that is because I want to make
> the updates over the net.
>
> Thanks!
> Hey, sorry for my bad english!
>
> Take care!
Look at exec(), system() and perhaps the use of backticks [``] to executa
a command and pass a variable.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I put all my money into an IRA," Tom said interestedly.
--- End Message ---
--- Begin Message ---
Hi again...
I had already RTFM...
Neither in exec or ``'s I found any thing about STDIN...
I just wondered if some one have any tips.
thanks again!
Cleber S. Mori
Monitor Lab Linux
2o Ano - Bacharelado em Ciências da Computação
ICMC - Instituto de Ciências Matemáticas e de Computação
USP - Universidade de São Paulo - São Carlos
HPage: http://grad.icmc.sc.usp.br/~cleber/
E-mail: [EMAIL PROTECTED]
ICQ/UIN: 1409389
--- End Message ---
--- Begin Message ---
this wouldn't be something similar to C's ungetch() ??
-----Original Message-----
From: Cleber S. Mori [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 3:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Append to STDIN
Hi again...
I had already RTFM...
Neither in exec or ``'s I found any thing about STDIN...
I just wondered if some one have any tips.
thanks again!
Cleber S. Mori
Monitor Lab Linux
2o Ano - Bacharelado em Ciências da Computação
ICMC - Instituto de Ciências Matemáticas e de Computação
USP - Universidade de São Paulo - São Carlos
HPage: http://grad.icmc.sc.usp.br/~cleber/
E-mail: [EMAIL PROTECTED]
ICQ/UIN: 1409389
--
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]
--- End Message ---
--- Begin Message ---
Doesn't sessions work with SSI?
I have a page that uses sessions extensively called miec.php...
if you call miec.php right out on the browser, the sessions works fine...
the session is set and then persists normally...
but if a file I have, called demo.shtml, uses a SSI - <!--#include
virtual="miec.php"--> -, then the session stops working...
why?? Isn't a SSI supposed to be in a separate process?
And the weird thing is... If I call miec.php directly, it sets the session
right? So if right after I call demo.shtml, the session is still there and
as good as it gets... so, an SSI included file can't create a session, but
can use it if it is set by another page?
I don't understand...
_____________________________
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br
--- End Message ---
--- Begin Message ---
On Tue, 6 Nov 2001, Valentin V. Petruchek wrote:
> Hello everyone!
>
> I'm looking for powerful (e.g. table and css support) generator html2pdf,
> preferable written in php.
Well it's not written in PHP, but it works well enough with it:
http://www.easysw.com/htmldoc
It's a good package, the table support was good enough for my uses,
though I don't know how well css is supported.
-burk
--
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I don't know of a better place to post this. I have a
part time position available in Northern Virginia.
You MUST be into European cars. MUST work local, NO REMOTE inquiries please.
All types of PHP/MySQL work needed. Helpful if you know Perl and Postgres.
Rate commensurate w/ experience.
Email me w/ qualifications, reference links, etc.
Thanks,
Charlie
--- End Message ---
--- Begin Message ---
Hi all,
I have a form which sends off the contents of a page as an HTML
formatted email. However, it appears that certain attempts to send
these emails never show up at the intended email address even though no
errors are reported upon sending while others work perfectly.
It there any way to confirm if an email was received (opened/read)
using headers or some other method?
Thanks
-Merle
--- End Message ---
--- Begin Message ---
Using standard internet mail, no. You can *request* that a read receipt be
sent when the email is opened by the recipient, but there is no guarantee
that that person will allow the receipt to be sent. Read receipts also often
annoy the recipient and can be perceived as rude and intrusive.
You could try something fancy with HTML mail, but again, that's not
guaranteed since not all MUAs can (or do) understand HTML mail.
--kurt
On Thursday 08 November 2001 08:02 pm, you wrote:
> Hi all,
>
> I have a form which sends off the contents of a page as an HTML
> formatted email. However, it appears that certain attempts to send
> these emails never show up at the intended email address even though no
> errors are reported upon sending while others work perfectly.
>
> It there any way to confirm if an email was received (opened/read)
> using headers or some other method?
>
> Thanks
> -Merle
--- End Message ---
--- Begin Message ---
I want to remove all html related tags, such as
<html></html><body></body><table>... etc
But want to keep the rest data as it is. Just want to remove those tags.
Any idea how to do it ?
manisha
--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/function.strip-tags.php
On Thursday 08 November 2001 08:01 pm, you wrote:
> I want to remove all html related tags, such as
> <html></html><body></body><table>... etc
>
> But want to keep the rest data as it is. Just want to remove those tags.
> Any idea how to do it ?
--- End Message ---
--- Begin Message ---
Hello,
I am trying to compile apache_1.3.19 with php4.06 and mysql 3.23.43
I am running Slackware with kernel version 2.2.13
I have mysql up and running without troubles.
With PHP I ran;
./configure --with-mysql=../mysql --with-apache=/var/lib/apache_1.3.19
--with-ftp
make
make install
Then I go into /var/apache_1.3.19 and run;
./configure --prefix=/var/lib/apache
--activate-module=src/modules/phph4/libphp4.a
This completes without error, then when I run 'make' (in
/var/lib/apache_1.3.19)I get the following;
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
'my_compress_alloc':
my_compress.o(.txt+0x12a): undefined reference to 'compress'
collect2: id returned 1 exit status
make[2]: ***[target_static] Error 1
make[1]: ***[build-std] Error 2
make: ***[build] Error 2
What am I missing? any help would be appreciated,
Thanks
Eric
--- End Message ---
--- Begin Message ---
Massimiliano Bariola wrote:
> Hello Yasuo,
>
> Tuesday, November 06, 2001, 12:12:59 PM, you wrote:
>
>
> YO> *SNIP*
>
> YO> Try to redirect stdout & stderr to /dev/null (If you are on Unix
> YO> like systems)
>
> YO> Then it will return immediately to PHP.
>
> YO> --
> YO> Yasuo Ohgaki
>
> Sorry Yasuo, but I don't understand well what you mean. Can you
> clarify?
>
> thank you
For example
system('/usr/bin/find / -name "core" > /dev/null 2>&1 &');
if you would like to take a look at output
system('/usr/bin/find / -name "core" > /tmp/corefiles 2>&1 &');
'find / -name "core"' should take some time, but system() will
return immediately when you redirect stdout/stderr to files and
put the command background.
--
Yasuo Ohgaki
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
Could someone please show me how to echo data into a textarea field of a form?
e.g. I have used the following in text fields:
<input type="text" name=id value="<? echo "$id"; ?>" size=3 maxlength=3>,
but textareas don't have the "value" attribute and I haven't been able to
come up with a way that works or find a working example.
Thanks,
SW
--- End Message ---
--- Begin Message ---
No problem:
<TEXTAREA NAME="Note" ROWS=4 COLS=40>
Here is the default text that will appear in the text box.
</TEXTAREA>
Later,
Jeff
At 06:40 PM 11/8/01 -0500, Scott wrote:
>Could someone please show me how to echo data into a textarea field of a
form?
>e.g. I have used the following in text fields:
><input type="text" name=id value="<? echo "$id"; ?>" size=3 maxlength=3>,
>but textareas don't have the "value" attribute and I haven't been able to
>come up with a way that works or find a working example.
>Thanks,
>SW
--- End Message ---
--- Begin Message ---
Scott
try this is standard html, you will find this out even if you open Wintendo
Frontpage
<textarea rows="3" name="namehere" cols="30"><? echo $text; ?></textarea>
really you should be able to write html before learning php
Regards
------------------------------------------------------------------------
Chris Kay - Tech Support - IDEAL Internet
email: [EMAIL PROTECTED] phone: +61 2 4628 8888 fax: +61 2 4628 8890
------------------------------------------------------------------------
-----Original Message-----
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 10:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to echo data in a textarea
Could someone please show me how to echo data into a textarea field of a
form?
e.g. I have used the following in text fields:
<input type="text" name=id value="<? echo "$id"; ?>" size=3 maxlength=3>,
but textareas don't have the "value" attribute and I haven't been able to
come up with a way that works or find a working example.
Thanks,
SW
--
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]
--- End Message ---
--- Begin Message ---
A. Dixon wrote:
> So say I have a link on the page that the checkbox is on to a file called
> program.php How would I add name value pairs to the querystring when
> someone clicks on the checkbox? Then when I click on the link program.php
> it should read program.php?checkbox1=on where checkbox1 is the name of
> the checkbox that is selected.
>
When you can use JavaScript, you can set/get any query string with
location object and can make a new request with the query string.
You can catch any event that JavaScript supports including click
at checkbox,etc, to change query string, to make a new request, etc.
Try to take a look at JavaScript book/reference, you'll see how it
can be done :)
--
Yasuo Ohgaki
> Thanks,
>
> Aaron
>
> On Thu, 8 Nov 2001, Yasuo Ohgaki wrote:
>
>
>>Aaron wrote:
>>
>>
>>>I've got checkbox that I get the status of with javascript and I put the
>>>status into a javascript variable. How do I get that variable over to php?
>>>I don't want to hit the submit button to get the variable into php.
>>>
>>
>>Use query string or cookie.
>>Just becareful with cookie isn't on always and has limitations.
>>You cannot use too large query string also.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
I'm playing with some code to put text on an image:
http://www.collegeSherbrooke.qc.ca/languesmodernes/course/image/marc.php
Because I'm using a fixed font, I know I don't want to go over 34
characters per line. I calculate my maximum number of chatraacters to
be 476.
How can I parse $string to "wrap", keeping in mind spaces between words
and the occasional \n that $string might contain?
I know it would have somethig to do with strlength and exploding to
count spaces, but ... ?
Thanks,
John
Here is the code I am playing with:
<?php
Header("Content-type: image/png");
// $string=implode($argv," ");
$string="1234567890123456789012345678901234";
// $string=urldecode($string);
$im = imagecreatefrompng("button1.png");
$orange = ImageColorAllocate($im, 255, 0, 64);
$px = (imagesx($im)-7.5*strlen($string))/2;
//image
//font built-in
//position x
//position y
//string
//colour
// ImageString($im,3,$px,9,$string,$orange);
ImageString($im,3,241,30,$string,$orange);
ImageString($im,3,241,40,$string,$orange);
Imagepng($im);
ImageDestroy($im);
?>
--- End Message ---
--- Begin Message ---
Dear All,
Who is using IMP ( Web Mail ) ?
So, can you help me ?
Thanks,
Edward.
--- End Message ---
--- Begin Message ---
Its works for file .html or.zip or .tar or .tar.gz
But it is not for text file......
Could you recommend how I download text file ?
What do I have to do in my scripts.......?
I read the manual about HTTP functions....and search through mailing list
about header functions....
but still no clue......
Thank you...
----- Original Message -----
From: "speedboy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 07, 2001 3:16 PM
Subject: Re: [PHP] Download script - sometime works sometime not
> > My problem,...this script works with somefile but sometime it does not !
> > Is the problem related to php.ini or apache configuration ?
>
> I think you'll find it's a browser problem. I have given up on trying to
> do anything like this. It just doesn't work except for very simple
> browsers. I tested it on lynx and it's perfect. On IE and Netscape,
> Mozilla you get varying results.
>
>
> --
> 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]
--- End Message ---
--- Begin Message ---
> Its works for file .html or.zip or .tar or .tar.gz
> But it is not for text file......
> Could you recommend how I download text file ?
> What do I have to do in my scripts.......?
>
> I read the manual about HTTP functions....and search through
> mailing list
> about header functions....
> but still no clue......
> Thank you...
If you send a text file, MSIE will probably view it anyway. Netscape
will behave.
Alternative? Send a completely madeup mime type, forcing MSIE to
go into download mode.
Jason
--- End Message ---
--- Begin Message ---
Hi,
I'm running a PHP/mySQL site which has been hacked twice this week :-(((
I'm not so bad at security but I don't know any active resource to be aware
of hole in PHP and/or MySQL, which forum/newsgroup/list wouldbe advice?
Nice day to all, by the way..
Jimmy
Carpe diem...today is another - good - day :)))
--- End Message ---
--- Begin Message ---
Hi Jimmy,
@ 2:08:09 AM on 11/9/01, Jimmy wrote:
> I'm running a PHP/mySQL site which has been hacked twice this week
> :-(((
> I'm not so bad at security but I don't know any active resource to
> be aware of hole in PHP and/or MySQL, which forum/newsgroup/list
> wouldbe advice?
Would you happen to be running PHP-Nuke?
--
-Brian Clark | PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
--- End Message ---
--- Begin Message ---
Am Freitag, 9. November 2001 08:14 schrieb Brian Clark:
> Hi Jimmy,
>
> @ 2:08:09 AM on 11/9/01, Jimmy wrote:
> > I'm running a PHP/mySQL site which has been hacked twice this week
> >
> > :-(((
> >
> > I'm not so bad at security but I don't know any active resource to
> > be aware of hole in PHP and/or MySQL, which forum/newsgroup/list
> > wouldbe advice?
>
> Would you happen to be running PHP-Nuke?
Perhaps this would help a bit:
http://softwaredev.earthweb.com/script/article/0,,12063_918141,00.html
--
WA-P: Programmierung - Beratung - Hosting
Stuttgarter Strasse 3 - D-73033 Göppingen
http://internet.wa-p.de - [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
@ 2:14:00 AM on 11/9/01, Brian Clark wrote:
>> I'm running a PHP/mySQL site which has been hacked twice this week
>> :-(((
>> I'm not so bad at security but I don't know any active resource to
>> be aware of hole in PHP and/or MySQL, which forum/newsgroup/list
>> wouldbe advice?
> Would you happen to be running PHP-Nuke?
Gotta go - Nevertheless, these are must reads:
<http://www.cgisecurity.com/papers/fingerprint-port80.txt>
<http://www.securereality.com.au/studyinscarlet.txt>
<http://www.php.net/manual/en/security.php>
You also might want to subscribe to Bugtraq:
<http://www.securityfocus.com/cgi-bin/subscribe.pl>
There was a PHP-Nuke advisory dated Nov 8 on Bugtraq: "Copying and
Deleting Files Using PHP-Nuke"
And if you do run PHP-Nuke:
<http://www.phpnuke.org/forums/viewforum.php?forum=5&39>
<http://www.phpnuke.org/forums/index.php>
(Not sure what happened to that site, but they used to have `Topics'
with security announcements. Looks like a ghost town..)
--
-Brian Clark | PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
--- End Message ---
--- Begin Message ---
> -Brian Clark | PGP is spoken here: 0xE4D0C7C8
> Please, DO NOT carbon copy me on list replies.
:) Then add .delete to your return address :
[EMAIL PROTECTED] (Brian Clark)
Anybody know of a good MySQL/PHPMyAdmin provider where I can get myself
a cheap account?
J
--- End Message ---
--- Begin Message ---
How to create a new user mailbox in PHP ?
--- End Message ---