Aside from SSL (which I wouldn't even know where to begin at this point). Is
there not a way to determine what gets sent with the headers or to block the
referring address from another site?
B.
- Original Message -
From: "Haseeb Iqbal" <[EMAIL PROTECTED]>
To: &q
uot;Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 9:49 PM
Subject: Re: [PHP] Is there a PHP for Dummies?
> After a quick search of the php manual, I came upon
> http://www.php.net/m
Thanks to all that responded on this. There are some great examples here
that I will definitely look into.
BE.
- Original Message -
From: "Kenn Murrah" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PRO
fer Goodie" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 5:07 PM
Subject: RE: [PHP] Is there a PHP for Dummies?
> That is a really, really, really poor example. Tha name says
I'm really tired of trying to figure out the PHP manual and need something
that explains things in plain straight forward English. Like
get_magic_quotes_gpc() for example - the manual says how to use it and what
it returns - but nowhere can I find out what it's for. Does it count sheep,
do a quote
Can someone explain how this works as I am in the process of doing a
login/authentication page and want to make it as secure as possible
B.
- Original Message -
From: "Haseeb Iqbal" <[EMAIL PROTECTED]>
To: "PHP General list" <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 11:48 PM
Su
- but now
the paths are all screwed up. If I click on the same link again I get file
not found. Hope I am explaining this right as this is really getting on my
nerves.
TIA
- Original Message -
From: "James E Hicks III" <[EMAIL PROTECTED]>
To: "Beauford.2002" <
Hi,
First, I fixed my other problem of the stack overflow by moving the files
back to the root directory (although I would rather have them in a login
directory). Anyway, I have a question regarding the include function. I have
a login script in a file called login.php - in this file it includes
c
Where can I find information on this (all my searches come up in
non-English). This script was working fine until I changed the directory it
was in - since I moved it I get this error.
TIA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's definitely going through the if statement as it does "reload" the
page - print($_SERVER['HTTP_REFERER']); shows
http://www.myserver.com/oldpage.html - which is correct. print("{$userlevel}
and {$neededlevel}"); also shows the correct info. $no_permission does
have a string, but even if I har
Does any one know how to calculate the difference between two dates. I need
to find out the age of a user to make sure they are over the age of 13. I
have searched for hours on this and found nothing that will help.
TIA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
{
include ($_SERVER['HTTP_REFERER']);
$message = $no_permission;
$exit;
}
...on referring page
- Original Message -
From: "Leo Spalteholz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 23, 2003 2:06 PM
Subject: Re: [PHP] reloading a p
t; <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Sunday, March 23, 2003 12:37 PM
Subject: Re: [PHP] reloading a page..
> On Sun, 23 Mar 2003 12:15:25 -0500, you wrote:
>
> >Not sure why
Not sure why things like this are so difficult. I have an authentication
script which allows users access to certain pages based on their user level.
If they click on a link to go to a page their not allowed to, I want to be
able to just reload the page their on and display a message saying they a
I'm an Apache user - I had runscripts on for the main server, but I had a
virtual host which did not - I assumed incorrectly that the virtual would
inherit the other settings. I was wrong.
B.
- Original Message -
From: "Burhan Khalid" <[EMAIL PROTECTED]>
To: &q
I just installed Win2k server and IIS (need it for a project I am doing) and
get the following error after installing PHP. All permissions are set
correctly. This appears to be a common problem as a search comes up with
hundreds of the same problem - funny though - no answers.
Any help is apprecia
> On Saturday 22 March 2003 08:09, Beauford.2002 wrote:
> > I don't quite understand this. If a user is on my site and then decides
to
> > go into his favourites and go to yahoo.com - this won't work. I think
you
> > are assuming the user is going to click on something
ck button in order to return to your website unless you define
an
> additional redirect in a conditional that states "if the session is not
> active then go here".
>
> Voodoo. *LOL*
>
> - Kevin
>
>
> - Original Message -
> From: "Beauford.2002&q
So is there anyway to do this - perl, javascript, voodo?
- Original Message -
From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]>
To: "'Justin French'" <[EMAIL PROTECTED]>; "Beauford.2002"
<[EMAIL PROTECTED]>; "PHP General" &
What about cookies - someone said if you put no time limit on a cookie it
dies when you leave the site - I'm not sure about this, but any help is
appreciated.
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL
PROTECTED]>
Sent: Friday, March 21, 2003 1:34 AM
Subject: Re: [PHP] Sessions question
> On Friday 21 March 2003 13:57, Beauford.2002 wrote:
>
> > I have read some posts to this list on sessions and have read as much as
I
> > can find on them, but one problem still exists which I ca
I have read some posts to this list on sessions and have read as much as I
can find on them, but one problem still exists which I can't figure out. How
do I kill the session when the user leaves my site. So if a user is on
www.mine.com and logs in successfully, then goes to www.hers.com - the user
What about IIS. This is what the customer is usingand I know d*** about
IIS. I would assume that there is a similar thing for IIS, but have no idea
where to even look.
- Original Message -
From: "Chris Hewitt" <[EMAIL PROTECTED]>
To: "Beauford.2002" &l
Still working on this authentication script and have a small question. Each
page on the site needs to have one line of code on it so it can't be
accessed unless you log in - is there a way to have this line in an html
file without changing the extension to .php?
On the same note, there is a small
I was snarky to anyone, I also apologize as this was
out of frustration.
B.
- Original Message -
From: "Diego Fulgueira" <[EMAIL PROTECTED]>
To: "PHP Windows" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>; "Beauford.2002&
eneral'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 2:40 PM
Subject: Re: [PHP] PHP and IIS - More info
> Beauford.2002 wrote:
>
> >Further note that it is not just this script, but many PHP scripts that I
> >run on IIS - they all work perfectly on Ap
Further note that it is not just this script, but many PHP scripts that I
run on IIS - they all work perfectly on Apache (on Windows and Linux)..
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Beauford.2002'" <[EMAIL PROTECT
-
From: "CPT John W. Holmes" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 11:21 AM
Subject: Re: [PHP] PHP and IIS 5.0
> > I am putting together a website for a custo
These are some of the errors I am getting
Notice: Undefined index: login in
C:\Inetpub\wwwroot\..\login\checklogin.php on line 74
and 75, and other similar errors.
Line 74 is: $login = $HTTP_SESSION_VARS['login'];
Line 75 is: $password = $HTTP_SESSION_VARS['password'];
Another one i
Hi,
I am putting together a website for a customer who insists on using IIS
running on Windows XP and I'm running into some problems. It appears that no
matter what PHP script I run, I'm getting tons of errors saying this
variable or that variable is undefined. I have global variables turned on in
Hi,
I am looking for a simple authentication script that uses MySQL. I have
downloaded about 10 of them (most with no instructions on it's use), but
even at that they are not what I need.
When you go to the main page of my site it will ask you to login or signup.
So I want to be able to authentic
Figured it out
echo "";
echo "window.location.href = 'viewpostats.php'";
echo "";
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTE
Hi,
I have searched around for hours on this and nothing seems to work. I want
simply to do this
if yes - goto thispage.php
if no - goto thatpage.php
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have a mysql database in which some values are loaded into an array - the
problem is that some fields may contain zeros. The problem is the following.
If there happens to be zeros in certain column's (which there will be from
time to time) then I get this error. How do I get around this?
Fun
Sorry, the line I was actually referring to is the one below. I forgot the
hidden one was even there and serves no purpose and does not resolve the
problem by removing it.
This works:
It also works if I just hardcode a value (value="Bob")
This doesn't:
They are both exactly the same other t
Hi,
I have a php script which does some stuff and at the end of the file I have
it include a file which has a form in it. The problem I am having is that it
is missing code. If you go down to the second input - it has a value="0"
field - this does not show up when I view the source from my browse
Hi,
I have a hockey database with players names in it and I want to be able to
update their stats one after the other. To be more clear - when the page is
first entered I want the first players name to automatically appear showing
his current stats (this will be in a form). Then you can update the
.
>
> Cheers!
>
> Rick
>
> Happiness is not a destination. It is a method of life. - Burton Hills
>
> > From: "Beauford.2002" <[EMAIL PROTECTED]>
> > Date: Tue, 4 Mar 2003 17:21:20 -0500
> > To: "HWG Basics" <[EMAIL PROTECTED]>
&g
Not sure if this is a PHP or HTML problem, so I have posted it to both
lists. I have a table with with 5 itmes in which I want to click on and go
to a different part of the page.
Click 1
Click 2
Click 3
Click 4
Click 5
Now this is where it gets interesting.
I have a PHP script which loops 5 time
Hi,
Is there a code validater for HTML/PHP. I have one for just HTML, but once
you introduce PHP it doesn't work.
TIA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and MySQL
> On Sunday 02 March 2003 23:34, Beauford.2002 wrote:
> > Hi,
> >
> > I have an array which I am trying to total but having some problems. Any
> > help is appreciated.
> >
> > Example: This is a hockey team and there are 20 players - I am
selectin
Kilimajer" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 11:10 AM
Subject: Re: [PHP] Arrays and MySQL
> Cannot you just make MaSQL count it?
>
> $que
Hi,
I have an array which I am trying to total but having some problems. Any
help is appreciated.
Example: This is a hockey team and there are 20 players - I am selecting
the goals, assists, and points from each player and then want to have a
grand total of all goals, assists, and points.
$quer
Yep, that did it. Thanks.
- Original Message -
From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 10:50 AM
Subject: Re: [PHP] Sorti
I have the file below which I need to sort by player and then rewrite it,
this file will then be used as part of another part of my input process on
my site. A couple of things. I am able to read the file into an array using
'file', I think, but I am not able to sort it. I have tried different
vari
Hi,
I want to be able to check to see if a file exists and if so I want to be
able to overwrite it. If it doesn't exist I want to be able to create it and
then make sure it is writable. A lot of this I have found in the PHP manual,
but I can't find anywhere on how to just create the file or overwr
Does anyone else get bounced messages saying they can't send email to
[EMAIL PROTECTED] when sending email to the list? Every email I send to
the list I get this. I don't get this when sending email to anyone else or
any other list.
TIA
--
PHP General Mailing List (http://www.php.net/)
To uns
Globals are turned on
- Original Message -
From: "Ray Hunter" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Sunday, February 16, 2003 12:15 AM
Subject: Re: [PHP] Forms Help (con
OTECTED]>
Sent: Saturday, February 15, 2003 11:34 PM
Subject: Re: [PHP] Forms Help (continued)
> This one time, at band camp,
> "Beauford.2002" <[EMAIL PROTECTED]> wrote:
>
> > Has anyone seen or used this script? It looks fairly straight forward,
but I
> > can
Has anyone seen or used this script? It looks fairly straight forward, but I
can't get it to work. It is however, exactly what I need. Any help is
appreciated.
http://codewalkers.com/tutorials.php?show=28&page=1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
doesn't get run up on every refresh, and I am sure this is similar, but I
would need some further help on how to pass the information from one page to
the next.
Any help is appreciated..
- Original Message -
From: "Chris McCluskey" <[EMAIL PROTECTED]>
To: "Beaufo
Hi,
Im trying to figure out the best way to do the following. I need to have a
series of forms that when the user finishes the first part of the form he is
sent to another page where a second form is filled out, and then a third.
Making the forms etc. is no problem, what I'm not sure of is how to
Perfect. Thanks.
- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Saturday, February 01, 2003 2:22 PM
Subject: Re: [PHP] Passing Variables
>
Hi,
Is there a way to pass a variable to a PHP script without using a form? I
want to put several links on my main page that when clicked on goes to a PHP
script - depending on what link was selected, will determine what part of
the PHP script gets executed.
TIA, Beauford
--
PHP General Maili
Here we go again.
I installed Apache and it works fine, I then installed PHP and all tests
show it works fine - but when I try to get the PHP modules loaded for Apache
in httpd.conf, the Apache server won't start again. The only error I get is
a Windows error box that says "The requested operation
the input.
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 5:59 PM
Subject: Re: [PHP] Windows vs Linux
> You give
Notice: I have given up on PHP and MySQL on Windows in E:\IIS Webs\beauford as it is a
total pain in the butt. The simplest of things I try and do are inundated with errors
- I fix one and 5 more come up. I have changed settings in php.ini as suggested and
put the @ in front of variables and wh
Hi,
I asked previously about the differences between the two and the concensus
was any differences are in the operating systems themselves and not with
PHP. Knowing this, how do I get rid of these errors that keep coming up in
Windows, that don't in Linux. One specific one is "Notice: Undefined
v
The php.ini in both are whatever the default settings for these files are. If the
defaults are different, then maybe - but I have no idea about these files, and really
don't want to get into it. If the default doesn't work on Windows I will just scrap
it. Not worth the head aches. Same with My
Hi
I just installed MySQL and PHP on Windows, and I have found that I am
getting all sorts of errors (in both) when I try to use some of the same
commands I use in the Linux versions. Are their a lot of differences in the
two, and where can I find out what these are - I just got used to using the
OK, little bit of a brain cramp here. I wasn't clueing in that
$tmp=mysql_fetch_array($res) was an array and was trying to do something
again that was already there.
Thanks for the help.
Beauford
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]&g
Great. now can you explain why this works. I'm confused at how PHP knows
this is a multidimensional array. I was trying something like $tmp[][]=???.
TIA
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
Cc: "Beauford.2002" <[EMAIL
ughton" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Thursday, December 26, 2002 6:19 PM
Subject: Re: [PHP] Nested Arrays
>
> Sure... for the longwinded approach, just do this:
>
> $ro
Hi,
Is there anyway to do a nested array, I have looked at the various array
functions and can't figure this out (if possible).
I want to be able to put each field of a row into an array, and then put
that entire row and into another array.
so when I display it, I would have:
row1 - col1 col2
, I still can't
see where the old one failed. In any event, I appreciate the help from all
who responded.
Beauford
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAI
s defined but
where it is being called from. Your saying this doesn't matter, but have not
given any reasons for my problems. If you could elaborate on this it would
be appreciated.
Beauford
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: &quo
ion
gotolastfunction()
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Sunday, December 22, 2002 11:16 PM
Subject: Re: [PHP] Undefined Functions
> A
Hi,
I previously asked a question about getting undefined function errors in my
script and someone mentioned that it may be that I am calling it from within
an if or else statement. This turned out to be the case. Now the question -
is there a way around this? What I need to do resolves around man
Olson" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 9:50 PM
Subject: Re: [PHP] Forms and PHP variables
>
> Use is_numeric()
>
> http://www.php.net/is_numeri
Hi,
First off, thanks to all those that helped out with my other questions. Not
all my problems were solved, but I'm certainly closer. Still working on the
same project I need to do the following.
I have a form where users input numbers only, is there a way I can have php
check to make sure a let
er reading.
- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "'Beauford.2002'" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Friday, December 20, 2002 11:05 AM
Subject: RE: [PHP] Problem with functions
> Hi,
Hi,
I keep getting errors in my script that says 'x' function is undefined or
'y' function is undefined. I defined it as 'function test ($a, $b)' and call
it using 'test($a, $b)' From my knowledge this is correct, but it just
simply doesn't work.
Anyone have any ideas on this?
TIA
--
PHP Gen
default : showDefault();
> }
>
> not
>
> $action = $_POST['action']
> switch (true)
> {
> case ($action == 'help'): showHelp(); break;
> default : showDefault();
> }
>
>
> > -Original Message-
> > From: Beauford.2002 [mai
At the beginning of my page I have some code which calls a function I have
created, at the bottom of the page is the function, but I keep getting the
error Fatal error: Call to undefined function: gotofunction() in .. no
matter what I do.
Any info on what's happening is appreciated.
examp
ginal Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 7:33 PM
Subject: Re: [PHP] Another problem with conditional statements
> switch
Hi,
This should be as simple as breathing, but not today. I have two variables
$a and $b which I need to compare in a switch statement in several different
ways, but no matter what I do it's wrong.
This is what I have tried, can someone tell me how it should be.
TIA
switch (true):
case ($a
(true) {
case ($fname == "Select"):
$errormessage = $error;
include ("other.html");
exit;
}
echo "Other Code";
- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[E
Hi,
Could someone clarify this for me. I want to be able to exit out of a PHP
webpage and return to the calling page if certain conditions are not met. It
appears using exit() will do this, but I am unclear exactly how to use it.
any info is appreciated.
TIA
--
PHP General Mailing List (htt
Hi,
I am having a real problem with variables in PHP and trying to query my
MySQL database. I have a form that a user inputs information and then that
info is used to query my database, but it's not working. I don't get any
errorrs and it appears every thing worked, but nothing gets displayed (see
Hi,
I have a webpage where users input information. This gets sent to a PHP page
to use this input. The first time the user inputs information it works
correctly, but the second, third, forth, etc. times does not. It appears the
information from the first time is still stored in the variables I am
Yep, pretty close to what I needed. Had to do a bit of tweaking, but
basically was able to get the results I needed.
Thanks
- Original Message -
From: "Chris Hewitt" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Hi,
Not sure if this is a PHP of a MySQL question, so I am sending it to both
groups. Basically I have a list of numbers with two decimal places in the
MySQL database, but I only want to display some of them with the decimal
points.
i.e.
70 (not 70.00)
87
51.5
46.75
12
29
5.5
-1
45
I know it's
Hi,
I'm sending this to both lists as I'm not sure where the problem is, but I
believe it is an issue with my HTML form. Here's the problem:
I have a drop-down menu form on my webpage with employee names in it. When I
choose a name and click submit it gets passed to a php page which accesses a
my
tions.
> Try '\r\n' instead of '\n'
>
>
>
> regards,
>
> Ewout de Boer
>
> - Original Message -
> From: "Beauford.2002" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Kyle Gibson" <[EMAIL PROTECTED]>
> Sent
Thanks for the reply, however, that will not work. The only line breaks you
may get with that are those layed out in a text box or from your mail
client. What if I have other variables that need to be put in the body of
the email.
i.e.
Age: 16
Height: 168
Weight: 120
etc
etc
etc.
These are vari
Hi,
Sorry, my last email got sent by mistake.
I am trying to get the message portion of the email to have line breaks,
but whatever I do it displays on one line. This is what I have.
$message = "1st Line\n";
$message .= "2nd Line\n";
$message .= "\n";
$message .= "3rd Line\n";
$message .= "\n
Hi,
Thanks to all who replied to my previous email. One more small problem. I am
trying to get the message portion of the email to have line breaks, but
whatever I do it displays on one line. This is what I have.
$message = "First Line\n";
$message = "First Line\n";
--
PHP General Mailing Lis
Hi,
I have a form where a user enters an email address. The contents of the form
are then sent to myself, which works fine. The problem is that the from
field says it is from nobody - how can I get it to say it is from the email
address the user inputted - or is this possible?
TIA
--
PHP Gene
Hi,
I have form that a user would input information and that info is sent to
a function, but I need to be able to return a result of this function
and is where I am having a problem.
For example:
testfunction($var1, $var2, $var3, $var4); //the form fills these
values.
echo $meat;
function te
89 matches
Mail list logo