http://us4.php.net/switch
if/else/else/else/else is ridiculously hard to read. for more then
if/elseif/else use switch.
~pj
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
Does anyone know of a way to jump from one php script to
another without going through th
When you solve your own problem it is best to post a short synopsis of the
solution so that people who search the group later can learn from your
mistake.
~phillip jackson
"Brian V Bonini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> nevermind I got it.
&
Parker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Phillip Jackson <mailto:[EMAIL PROTECTED]>
on Tuesday, February 24, 2004 11:47 AM said:
first of all i'd like to say that my comments below are based upon the
way i understand things to be. i could ve
what you describe is called 'normalization'; if you'll always only have 20
people in a table it may not be worth it for you - though it's poor practice
to continue to design tables in this fashion. come up with a nice naming
convention and design tables that break contact information such as name,
u're interested.
~phillip jackson
"Catalin Trifu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> You have to make the code yourself,
>
> After session_start you should check the session for some
> var
o the function explicitly:
function myclass($var){
//do stuff with $var
}
~Phillip Jackson
"Nick Wilson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> * and then Nick Wilson declared
> > > $myconfig=TRUE;
> >
> > class myclass {
> &
if your do_login script doesn't require any cookies or session information
you can just redirect right after auth:
http://www.somewebsite.com";;
//do stuff
if($loggedin == true){
header("Location: " . $url);
}
else{
//possible postback with get var error i.e: header("Location:
do_login.p
"Jake McHenry" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> - Original Message -
> From: "Phillip Jackson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, February 07, 2004 4:37 AM
> Subject: Re:
Please post your solution to the group for reference.
~phillip
"Jake McHenry" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> - Original Message -
> From: "Marek Kilimajer" <[EMAIL PROTECTED]>
> To: "Jake McHenry" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday
down
straight to the logout.
to handle the alt+F4-happy crowd i devised a way to pop a special logout
window when the browser is closed. this child window destroys sessions and
makes database logs; this window closes itself.
this happened to work for me, YMMV.
~phillip jackson
"Craig"
I would do it like this:
$build = " '%s','%s','%s','%s'\n";
$build = sprintf($build,$field1,$field2,$field3,$fieldN);
you could also try escaping the comma. if this doesn't work you can always
just dump to html tables and save the file as *.xls (excel spreadsheet);
excel understands html tables a
i have a function that does authentication of a user, whose user/pass are
stored in an md5($var ) fashion. i query these from the mysql db in an
authentication (if !$user || !pass) function checking against md5($pass).
my thinking is that classes would be better suited to grab object
properties, s
it's this easy with register_globals off:
$_SESSION['order'] = "someValue";
no need to name the session.
~Phillip
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Randall Perry wrote:
>
> > Ok, with register globals on, this works ('order' being a php object):
> >
>
PHP Manual:
If register_globals is enabled, then each global variable can be registered
as session variable. Upon a restart of a session, these variables will be
restored to corresponding global variables. Since PHP must know which global
variables are registered as session variables, users need t
so i could not call $_SESSION...
~pj
"Justin French" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Monday, February 2, 2004, at 10:14 AM, Phillip Jackson wrote:
>
> > these errors are foreign to me as i have combed my code 100's of times
> &
i don't use register_globals - i have a function that massages data that
mimics register globals' behaivior via dynamically named variables.
which one should i set it to - E_NOTICE?
~Phillip Jackson
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message
ne
Hi all,
It seems that the version on my local apache installation is more strict
than the version on my production server. How can i counteract this without
potentially having to upgrade 300+ pages in my entire app? is there a
setting in php.ini that i could locally kill some of this debugging inf
> Personally, I think this is a bad approach, regardless of how well it is
> implemented. I think you will give yourself a false sense of security.
what, then, do you yourself do in such an application requiring a response
from the user to massage the data? reject all input that doesn't conform to
great point about the array; to make the script more portable i will most
definitely detect magic quotes.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Phillip Jackson wrote:
> >
> > function escape(){
> > wh
excel can read html tables with partial formatting through stylesheets
output html tags and save the file as an *.xls file. i
redirect back to the file after writing to it - ie doesn't display it,
rather it prompts to download.
~phillip
"Leon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PR
i have developed my own "register globals" function that mimics the action
of register globals, but only for $_POST... i do this to ensure that all
incoming communication is escaped for use in scripts to account for, and to
avoid, SQL injection. below is the code... any suggestions would be welcom
21 matches
Mail list logo