http://www.mydomain.com/newpage.html";>
will redirect after 15 seconds
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 2:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Timed Redirect
Is there way to have a page automatically redirect the u
> Ultimately, I'm trying to figure out how I can determine if the
> user is using NS 4.x or not...
Use this to identify Netscape 4.x:
if(strstr($HTTP_USER_AGENT,"Mozilla/4") &&
!strstr($HTTP_USER_AGENT,"MSIE")){
// is Netscape 4
} else {
// is something else
}
-
header("Location: http://www.google.com/";, "5");
That would redirect you to www.google.com in 5 seconds.
Tyler
- Original Message -
From: "Steven Walker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 2:16 PM
Subject: [PHP] Timed Redirect
> Is there way t
hi. i actually found some info at
http://www.mail-archive.com/modssl-users@modssl.org/msg12769.html
in case anybody in interested. this problem can be fixed.
J Smith wrote:
> Sourceforge has a bit on this, too. Basically, they have a checkbox that
> lets you drop out of SSL after you login, so y
mysql> show columns from mytable like "myfield";
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| myfield | enum('Add','Read','D
As far as I know, you can't do this directly through a header. Try using a
meta tag, i.e. http://www.example.com/";>, where x is the delay in seconds.
J
Steven Walker wrote:
> Is there way to have a page automatically redirect the user to another
> page, but with a timed delay?
>
> I'm worki
Here's what I found:
This does not work:
> header("Location: http://www.google.com/";, "5");
> That would redirect you to www.google.com in 5 seconds.
According to the documentation, the second param is bool replace, for
replacing header information.
This does work:
http://www.example.com/";>
Thank you ... that worked! I did not know this because I looked at a sample
in www.php.net and the sample fails to call getenv().
Thanks!
-Teresa
-Original Message-
From: Neil Freeman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 12:54 PM
To: Narvaez, Teresa
Cc: [EMAIL PR
On Mon, 2002-02-18 at 12:12, Richard Fox wrote:
> That's right, the difference between C++ "pure virtual" and "virtual" is
> that a virtual function has an implementation but pure virtual only defines
> an interface.
>
> But can we get back to my original PHP question: Can I do something like the
Hi there,
someone have some experience with this class??
cheers,
(o_
/ /\ tuxcl en yahoo punto com
V_/_
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi thanks for reading this.
This problem is difficult to get across, this is what happens:
A) On a html page I ask users how many inputs they wish to enter, say 3. The
3 is stored as a variable called $NoPols.
B) Then in the code below, a loop creates $NoPols (3) forms to take the
users input
I need a little help with the ereg_replace function. I have the following code:
$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","\\0", $text);
which pads a url with an href tag to make it clickable. Here's what I would
like to do: In the case of the url ending with .gif or
Do you wish to create multiple forms or multiple input fields on a single
form?
-Original Message-
From: brendan conroy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 2:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Novice Question
Hi thanks for reading this.
This problem is di
Is there anyway to create a class method, I want to return an object which
has a number of 'runtime' methods.
What I want to do is parse a WSDL and generate an interface object ( with
the correct functions ), the way I see it I cant do this as we lack a
create_method call. I can parse the WSDL a
I am using PHP Version 4.0.4pl1 with an Embedded Linux (PeeWee Linux,
which is based on Red Hat 6.2 w/ a 2.2.18 Kernel).
I have tried using shmop_open(), shm_open() & shm_attach(). All of these
give an error message of "function not defined".
It is not clear form the documentation that I have s
Hi there,
someone have some experience with this class??
cheers,
(o_
/ /\ tuxcl en yahoo punto com
V_/_
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is it safe to use time() to generate a unique id number?
My thinking is that the call to the server will take enough time that no
two users will get the same time stamp (although they may be very
close). Even though the likelyhood of two users entering at the same
time is very slim, I don't
On Monday, February 18, 2002, at 03:44 PM, Mitch Tishaw wrote:
> I need a little help with the ereg_replace function. I have the
> following code:
>
> $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]"," href=\"\\0
> \">\\0", $text);
>
> which pads a url with an href tag to mak
On Sun, 2002-02-17 at 23:34, Paul J. Stevens wrote:
> I am using PHP Version 4.0.4pl1 with an Embedded Linux (PeeWee Linux,
> which is based on Red Hat 6.2 w/ a 2.2.18 Kernel).
>
> I have tried using shmop_open(), shm_open() & shm_attach(). All of these
> give an error message of "function not d
name each field with an array name. I know the following works with
checkboxes; try it with text fields:
then, in your php script called from the form, you'll access the polynomials
using poly[0], poly[1], poly[2], poly[3], etc.
You know how many fields were created, because you created th
Hi all,
I have a very small example which was working on php-4.0.6 (actually taken from the
documentation, was one of the user examples) - please find it below:
Files in directory:
writer.php
textfile.txt
--
This little snippet simply refuses to work on php-4.1.1. I h
On Mon, 2002-02-18 at 13:14, Steven Walker wrote:
> Is it safe to use time() to generate a unique id number?
>
> My thinking is that the call to the server will take enough time that no
> two users will get the same time stamp (although they may be very
> close). Even though the likelyhood of
yeah, it definitely works with text fields too. You can also do something
like:
where $i will then be the key of the resulting array $poly. it doesn't seem
necessary in this case, since the numbers will probably be consecutive, but
if you wanted an associative array for some reason this can be
Thanks for the input. I just replaced time() with uniqid(""), and I
think that will work great.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Monday, February 18, 2002, at 01:38 PM, Lars Torben Wilson wrote:
> On Mon, 2002-02-18 at 13:14, Steven Walker wrote:
>> I
I have a PHP webstore that I want to call my web service that is running on
an IIS machine. The web service returns XML.
Has anyone called or written a web service with PHP?
TIA
Eric
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How are you getting the variable from the web page?
"John Gurley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am getting a variable from a web page ($inst) which is looked at by the
> loop:
>
> if ($inst == 2)
> {
> do stuff
> }
>
> the problem is that no
with this type of naming convention, how would you write a javascript
function to access these form elements for client side
validation? JavaScript vomits when accessing
window.document.frmName.poly[].value???
At 03:35 PM 2/18/2002 -0600, Rick Emery wrote:
>name each field with an array name.
window.document.frmName.elements["poly[]"].value !!!
-Original Message-
From: JSheble [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:41 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Novice Question
with this type of naming convention, how would you write a javascript
fun
Found this article and need the experts to consult on the statement "avoid
the session mechanism". Is this a true problem? And what should we do if
we cannot have a dedicated server to ourselves?
http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/php.html
Avoid the session mechanis
On Mon, 2002-02-18 at 08:56, Narvaez, Teresa wrote:
> Hello,
> I'm running PHP version 4.1.1. When I invoke this function, phpinfo()?>, all variables are set. However, when I try to retrieve a value
> of a certain variable like this:
>
>
>
> It returns NULL. Is there a missi
When I execute the code below, why is PHP_SELF undefined? I will appretiate
any help on this. I can get its value by:
echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
Feedback
Your Name:
Your E-Mail Address:
Your Message:
";
?>
On Monday, February 18, 2002, at 05:44 PM, Lars Torben Wilson wrote:
> On Mon, 2002-02-18 at 08:56, Narvaez, Teresa wrote:
>> Hello,
>> I'm running PHP version 4.1.1. When I invoke this function, > phpinfo()?>, all variables are set. However, when I try to retrieve a
>> value
>> of a ce
On Monday, February 18, 2002, at 05:50 PM, Narvaez, Teresa wrote:
> When I execute the code below, why is PHP_SELF undefined? I will
> appretiate
> any help on this. I can get its value by:
> echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
>
>
>
>
> Feedback
>
>
> $form_block
On Mon, 2002-02-18 at 14:58, Erik Price wrote:
>
> On Monday, February 18, 2002, at 05:44 PM, Lars Torben Wilson wrote:
>
> > On Mon, 2002-02-18 at 08:56, Narvaez, Teresa wrote:
> >> Hello,
> >>I'm running PHP version 4.1.1. When I invoke this function, >> phpinfo()?>, all variables are s
The function call phpinfo() shows register_globals=off for master and local
value on my system. I installed PHP and did not change anything because I
do not know enough to make changes so I believe off is the default value.
Thanks,
-Teresa
-Original Message-
From: Erik Price [mailto
On Mon, 2002-02-18 at 15:02, Erik Price wrote:
>
> On Monday, February 18, 2002, at 05:50 PM, Narvaez, Teresa wrote:
>
> > When I execute the code below, why is PHP_SELF undefined? I will
> > appretiate
> > any help on this. I can get its value by:
> > echo $_SERVER["PHP_SELF"];Thanks
You probably do not have register globals set to on, this is often times set
to off for security purposes. Instead you can use $_GET, $_POST, $SERVEr,
etc, these are documented on the PHP website.
Also instead of echoing all that HTML from PHP you should consider jumping
out of PHP and then use
> $foo = "This page is $_SERVER[PHP_SELF]";
>
> Or, better:
>
> $foo = "This page is {$_SERVER['PHP_SELF']}";
>
> You do have to concat to do this in single-quoted (noninterpolated)
> strings, though.
>
>
http://www.php.net/manual/en/language.types.string.php#language.types.string
.parsing
Ca
Is $inst an int or a string?
=dn
> make sure you're doing it like this:
> if ($inst == "1") {
> // do this
> }
> else {
>// do something else
> }
>
> instead of this:
> if ($inst = "1") {
> // do this
> }
> else {
> // do this
> }
>
> Just a thought.
>
> Tyler
>
> - Origi
On Mon, 2002-02-18 at 15:29, Matt wrote:
> > $foo = "This page is $_SERVER[PHP_SELF]";
> >
> > Or, better:
> >
> > $foo = "This page is {$_SERVER['PHP_SELF']}";
> >
> > You do have to concat to do this in single-quoted (noninterpolated)
> > strings, though.
> >
> >
> http://www.php.net/manual/
On Monday, February 18, 2002, at 06:11 PM, Narvaez, Teresa wrote:
> The function call phpinfo() shows register_globals=off for master and
> local
> value on my system. I installed PHP and did not change anything because
> I
> do not know enough to make changes so I believe off is the default
>
On Monday, February 18, 2002, at 06:14 PM, Lars Torben Wilson wrote:
> Sorry, but I do have to correct you here--this isn't true. ;) In double-
> quoted strings and heredocs, you can do the following:
>
> $foo = "This page is $_SERVER[PHP_SELF]";
>
> Or, better:
>
> $foo = "This page is {$_
shouldn't matter - php would type cast one to other and then compare
-Original Message-
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 10:24 AM
To: Tyler Longren; John Gurley; [EMAIL PROTECTED]
Subject: Re: [PHP] code
Is $inst an int or a string?
=dn
> ma
PHP4 Step by Step Installation for Windows running
CGI or ASPI
http://www.experttek.com/php/installation.php
Erik,
Thanks for your response. No I did not install a pre-compiled
binary. I got the tar ball and compiled it myself. By the way, I am
running PHP version 4.1.1.
Thanks for all the help!
-Teresa
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Monday, Feb
> The other reason is that the parser needs help resolving ambiguity with
> more complex expressions inside strings. If you use this syntax all the
> time, you won't get bitten in the butt later.
I've used the ${$var} to resolve the ambiguity of variable variables, but I
wasn't aware that if coul
www.extremail.com
Best MTA out there!
Join the mailing list too, it's pretty funny at times.
Yeah, with the SMTP thing, I think that because I'm
using Linux, PHP defaults to Sendmail. In my php.in
I've got the following...
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
se
Greg Donald wrote:
>>Ultimately, I'm trying to figure out how I can determine if the
>>user is using NS 4.x or not...
>>
>
> Use this to identify Netscape 4.x:
>
> if(strstr($HTTP_USER_AGENT,"Mozilla/4") &&
> !strstr($HTTP_USER_AGENT,"MSIE")){
> // is Netscape 4
> } else {
> // is som
I have RH 7.2 with Apache and PHP. The mail() function in PHP worked
out of the box!! Fantastic! The setting in the php.ini is being over
written with Apache.
Where can I change the setting?
Many thanks...
--
Dr. Todd Cary
Ariste Software
707-773-4523
[EMAIL PROTECTED]
"It is a worthy thi
Mohamed Ismail Bulale said something on 19 Feb 2002, in php.general:
>
> To get username and password with php, use this below code:
> Best regards,
>
> Bulale
Or you could use the varibles $PHP_AUTH_USER & $PHP_AUTH_PW &
$PHP_AUTH_TYPE.
http://www.php.net/manual/en/features.http-auth.php
At 06:05 AM 2/18/2002 Monday, Frank Miller wrote:
>Next I say if ($num == 0)
>{
> echo " There are no events scheduled today!";
>}
>else
> {
> echo "blah, blah, blah";
>}
Try this
if (empty($num))
echo "Nothing today!";
else
echo "blah, blah, blah";
I belie
Hello,
Below is code I hacked up to read a user agent string (i.e. Mozilla/5.0 (Windows; U;
Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
) and return several items including:
- the browser name,
- the browser version,
- the browser's major version number, and
- user definable compatibility li
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> I am very new at this and am having trouble migrating to php and mysql from
> a different system (WebCatalog).
>
> I want to start dumping files to text and let php use them to populate mysql
> on the fly as I start migrating.
>
> -
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hello everyone,
>
> This is my first post to this list, so I hope that someone is awake enough to help
>me out.
>
> I am new to PHP and I have a file that uses a command "header". It isn't working
>like it is supposed to but I can't
Okay Gents and Ladies,
I am looking for more information on how best to do this.
I have a MyQSL back end.
It houses a users user_name and password.
I have a secure area of the site that I only want members to view.
The way I have it now is that the user logs in.
If user_name and password match
Just a quick question -- the outsidemost if/elseif sequence of the
function "sniff()" doesn't seem to have an "else" (it ends with "elseif"
and then does another "if", before its "return"). Did you mean to
include an "else" in that?
Erik
On Monday, February 18, 2002, at 04:37 PM, Robert
On Monday, February 18, 2002, at 09:17 PM, Phillip S. Baker wrote:
> Now first question is - how secure is this?
>
> Second question - what is a better more secure way to handle this. Then
> most importantly where do I get information on how to go about doing
> that?
> I know nothing about se
I had this same problem. It's very aggravating. Jason G's solution won't
work, because $oRow will always be true as long as there is more
results, NOT if there are less than 3 results left.
Why don't you true something like this
0) {
//echo your row with 3 cells
$numevenrows = $
I just wanted to come to grips with how sockets/SMTP works. Is it like
this...
1. I open the socket to the SMTP server
2. I fire the mail through - a few thousand emails
3. I close the socket
Also, is step 3 necessary?
Regards,
Matthew Delmarter
--
PHP General Mailing List (http://www.php.
Phillip S. Baker wrote:
> Okay Gents and Ladies,
>
> I am looking for more information on how best to do this.
>
> I have a MyQSL back end.
> It houses a users user_name and password.
>
> I have a secure area of the site that I only want members to view.
>
> The way I have it now is that the u
Please Cc: me on replies...
I recently installed PHP 4.1.0 + PDF 4.0.1 on my development box.
I can't seem to get the PDF fonts to work properly at all...
Here are a lot of details about things I understand, and a lot of
remarks about what I half-understand.
Note that, as a rule, font technol
does anybody know how to have the browser serve up the page that is
posted
to using curl?
i mean, instead of the script waiting for the results, is there a way to
jump to that
url like with a form post?
is there a setopt for this?
thanks.
--
PHP General Mailing List (http://www.php.net/)
To
I just wanted to come to grips with how sockets/SMTP works. Is it like
this...
1. I open the socket to the SMTP server
2. I fire the mail through - a few thousand emails
3. I close the socket
Also, is step 3 necessary?
Regards,
Matthew Delmarter
--
PHP General Mailing List (http://www.php.
im working on a login script. the problem is more with the form
itself, PHP, and or my server.
The same page displays the login form and handles the login operation
itself. The submit button is named "login" and in my PHP, if $login
exists it will set the cookie and display the right page. oth
Hello,
Eric wrote:
>
> I have a PHP webstore that I want to call my web service that is running on
> an IIS machine. The web service returns XML.
>
> Has anyone called or written a web service with PHP?
http://phpclasses.upperdesign.com/browse.html/class/33/
--
PHP General Mailing List (htt
If you use the following code it should work well. I used 2 counters, one
for the columns and one for the row. It's a bit messy but it works.
Cheers
NB: Code is untested but copied from a working example with unnecessary bits
removed.
\n";
$counterRow = 0;
$counterCol = 0;
$counterResults = m
> Hi there,
>
> someone have some experience with this class??
I've never used that one, but I just had a wondrous experience with:
http://ros.co.nz/pdf/
I downloaded it, and got it running and working (as a non-privileged user
in a SAFE_MODE environment) in about 15-20 minutes. No extra mod
try this - in pseudo-code, can't do everything for you :)
max = 3
col = 0
echo "table"
while (row = db_results)
if (col == 0) echo "tr"
echo "td data /td";
if (col == max - 1) echo "/tr"
col = (col + 1) % max
wend
if col > 0
for i = 1 to max - col
echo "td nbsp td"
next
ec
A way i've done things like this is to setup sessions, and
when a user logs in correctly, issue a randomly generated
value "id" and set that as a cookie. in the database,
there's a row "id" (same as the cookie) that holds the
user name and any other data that i might want to store.
Since none o
David,
I hope that Robbie was able to solve your problem. But, if not, try
isolating the variables from the text in the header. e.g.
header("Location: ".$relative."/...?II=".$II."");
Hugh
- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, F
Hello. I just finished creating a simple input form in
which the contents of a textarea get written to a file
which in turn gets read by a particular page. is there
anyway to "disable" any html or php tags that the user
might have typed in? it seems pretty dangerous to
allow a user to enter any am
Would strip_tags() do?
On Mon, 2002-02-18 at 21:47, Police Trainee wrote:
> Hello. I just finished creating a simple input form in
> which the contents of a textarea get written to a file
> which in turn gets read by a particular page. is there
> anyway to "disable" any html or php tags that the
> Hello. I just finished creating a simple input form in
> which the contents of a textarea get written to a file
> which in turn gets read by a particular page.
This is a Really Bad Idea(tm).
> it seems pretty dangerous to allow a user to enter any
> amount of php programming at their will.
> Would strip_tags() do?
Easily gotten-around then by not closing your PHP tags.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Okay Gents and Ladies,
>
> I am looking for more information on how best to do this.
>
> I have a MyQSL back end.
> It houses a users user_name and password.
>
> I have a secure area of the site that I only want members to view.
>
> The way I have it now is that the user logs in.
> If user_name
> > Use this to identify Netscape 4.x:
> >
> > if(strstr($HTTP_USER_AGENT,"Mozilla/4") &&
> > !strstr($HTTP_USER_AGENT,"MSIE")){
> > // is Netscape 4
> > } else {
> > // is something else
> > }
> >
>
> Is that going to catch the Mozilla spoofers, like webtv and opera?
Err, no... if they
> Found this article and need the experts to consult on the statement "avoid
> the session mechanism". Is this a true problem? And what should we do if
> we cannot have a dedicated server to ourselves?
>
> http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/php.html
>
>
> Avoid the ses
> I have RH 7.2 with Apache and PHP. The mail() function in PHP worked
> out of the box!! Fantastic! The setting in the php.ini is being over
> written with Apache.
>
> Where can I change the setting?
What setting is being overwritten by apache? the mta setting?
On my RH 7.2 box, my php.ini i
> When I execute the code below, why is PHP_SELF undefined? I will
appretiate
> any help on this. I can get its value by:
> echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
Is your PHP install >= version 4.1.0 ?
You can test with a call to phpinfo();
If your version is less than 4.
> Hello. I just finished creating a simple input form in
> which the contents of a textarea get written to a file
> which in turn gets read by a particular page. is there
> anyway to "disable" any html or php tags that the user
> might have typed in? it seems pretty dangerous to
> allow a user to
Greg -
On careful reading of the php.ini file, I now realize that the settings
for the "From" is for WIN32 *only*. So, as a newbie to the world or
Linux/Unix, I am not sure where I place the setting for the default
"From". I can add it as the fourth argument in the mail() function, but
I would
I had this problem while running PHP under windows. I solved (well,
rounded :) the problem with $SCRIPT_NAME (if I remember it right) which
gives the very same result.
Niklas
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: 19. helmikuuta 2002 8:05
To: [EMAIL PROT
Yes, there is a function strip_tags(). Also look at the functions,
htmlentities() and htmlspecialchars().
Janet
- Original Message -
From: "Police Trainee" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 9:47 PM
Subject: [PHP] "nullifying" php and html t
Hello,
I'm using FreeBSD 4 on an intel machine.
I'd like to use phpgroupware. It makes use of IMAP. How can I find out
that PHP4 on my server is compiled with the IMAP option?
I tried to compile the PHP4 source, and it complains about an rfc822.h file.
What IMAP sources should I install?
Marc
thx.
but i know imagemagick. the problem:
IM needs about 3 hours to convert a tiff group 4 image to a jpeg-image
and that is too much time.
maybe there is a other way..
greets
> -Ursprüngliche Nachricht-
> Von: Meir Kriheli [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 18. Februar 20
101 - 185 of 185 matches
Mail list logo