[PHP] Can someone explain this????

2001-09-21 Thread Dallas K.


 try this when u get a sec. 
>its weird... 
> 
>In Microsoft Word, start with a blank page and type the letters NYC 
> 
> >in all caps. Highlight the letters and change to the largest font size, 
> >72 points. 
> > 
> >Now change the font itself to Webdings .
> > 
> >that's not all. 
> > 
> >Now change the font again, to Wingdings. (use the first version of Wingdings) 

If you ask me that's just weird.




[PHP] Worth reading

2001-09-13 Thread Dallas K.

Worth reading


Written by Leonard Pitts, a writer for the Miami Herald. 
 Published Wednesday, September 12, 2001 

 We'll go forward from this moment.

 It's my job to have something to say. 

 They pay me to provide words that help make sense of that which troubles the American 
soul. But in this moment of airless shock when hot tears sting disbelieving eyes, the 
only thing I can find to say, the only words that seem to fit, must be addressed to 
the unknown author of this suffering. 

 You monster. You beast. You unspeakable bastard.  What lesson did you hope to teach 
us by your coward's attack on our World Trade Center, our Pentagon, us? What was it 
you hoped we would learn? Whatever it was, please know that you failed. 

 Did you want us to respect your cause? You just damned your cause.  

Did you want to make us fear? You just steeled our resolve. 

 Did you want to tear us apart? You just brought us together. 

 Let me tell you about my people. We are a vast and quarrelsome family, a family rent 
by racial, social, political and class division, but a family nonetheless. We're 
frivolous, yes, capable of expending tremendous emotional energy on pop cultural 
minutiae -- a singer's revealing dress, a ball team's misfortune, a cartoon mouse. 
We're wealthy, too, spoiled by the ready availability of trinkets and material goods, 
and maybe because of that, we walk through life with a certain sense of blithe 
entitlement.

We are fundamentally decent, though -- peace-loving and compassionate. We struggle to 
know the right thing and to do it. And we are, the overwhelming majority of us, people 
of faith, believers in a just and loving God. 

 Some people -- you, perhaps -- think that any or all of this makes us weak. You're 
mistaken. We are not weak. Indeed, we are strong in ways that cannot be measured by 
arsenals. 

 IN PAIN 

 Yes, we're in pain now. We are in mourning and we are in shock. We're still grappling 
with the unreality of the awful thing you did, still working to make ourselves 
understand that this isn't a special effect from some Hollywood blockbuster, isn't the 
plot development from a Tom Clancy novel. Both in terms of the awful scope of their 
ambition and the probable final death toll, your attacks are likely to go down as the 
worst acts of terrorism in the history of the United States and, probably, the history 
of the world. You've bloodied us as we have never been bloodied before.  But there's a 
gulf of difference between making us bloody and making us fall. This is the lesson 
Japan was taught to its bitter sorrow the last time anyone hit us this hard, the last 
time anyone brought us such abrupt and monumental pain. When roused, we are righteous 
in our outrage,  terrible in our force. When provoked by this level of barbarism, we 
will bear any suffering, pay any cost, go to any length, in the pursuit of justice.  I 
tell you this without fear of contradiction. I know my people, as you, I think, do 
not. What I know reassures me. It also causes me to tremble with dread of the future. 

 In the days to come, there will be recrimination and accusation, fingers pointing to 
determine whose failure allowed this to happen and what can be done to prevent it from 
happening again. There will be heightened
security, misguided talk of revoking basic freedoms. We'll go forward from this moment 
sobered, chastened, sad. But determined, too. Unimaginably determined. 

 THE STEEL IN US 

 You see, the steel in us is not always readily apparent. That aspect of our character 
is seldom understood by people who don't know us well. On this day, the family's 
bickering is put on hold. 

 As Americans we will weep, as Americans we will mourn, and as Americans, we will rise 
in defense of all that we cherish. 

 So I ask again: What was it you hoped to teach us? It occurs to me that maybe you 
just wanted us to know the depths of your hatred. If that's the case, consider the 
message received. And take this message in exchange:

You don't know my people. You don't know what we're capable of.  You don't know what 
you just started. 

 But you're about to learn. 




[PHP] Time.com Interactive Memorial for the WTC Attack

2001-09-13 Thread Dallas K.

http://www.time.com/time/nation/article/0,8599,174659,00.html




[PHP] Fw: Show of American Solidarity - Read & pass on

2001-09-13 Thread Dallas K.


- Original Message -
From: "Steve Walker" <[EMAIL PROTECTED]>
To: "Info" <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 11:09 AM
Subject: Show of American Solidarity - Read & pass on


>
> Tomorrow is U.S. Color day. Red, White & Blue should be worn in honor of
our
> fellow Americans that died. The goal is to get the whole nation to
> participate. Send this to 10 other people.
>
> In memory of all those who perished; the passengers and the pilots on the
> United Air and AA flights, the workers in the World Trade Center and the
> Pentagon, and all the innocent bystanders. Our love goes out to the
friends
> and families of the deceased. Send this to at least 10 people to show your
> support. DONT BREAK IT!! GOD BLESS AMERICA and the freedom it
> represents.
>
> Try to be wearing as much red white and blue as you can. (jeans are blue,
> everyone owns a white t-shirt, etc.) Send this message to as many other
> people you know. Lets get the whole country into it. And remember to be
kind
> to our fellow Arab-American citizens, who are as American as we.
>
>
>
>


-- 
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] Trunkated zeros..... how to fix?

2001-09-05 Thread Dallas K.

I am having the problem that Mysql is truncating the zeros from both the int and char 
fields when I try to insert How can I fix this.

example:

0123 in PHP = 123 in mysql
3210 in PHP = 321 in mysql 

but I need that zero  how do I keep mysql from doing this?



Re: [PHP] Newbie Question: Forcing a page load with no click

2001-08-21 Thread Dallas K.

use require_once(""); to include the page

or use header("Location: "); to redirect to a different page








- Original Message -
From: "LB" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 10:58 AM
Subject: [PHP] Newbie Question: Forcing a page load with no click


> I've built a small login script (code fragment below), and want to force a
> page load depending on if the login was valid or not. How do I make PHP
> redirection to a new page? Ideally, I want the equivalent of building an
> query string such as "goodpage.php?Username=" and
forcing
> it to load.
>
> if (trim($CheckPW) == $Password) {
> echo ("Good Login!");
> }
> else {
> echo ("Bad Login");
> }
>
> Thanks in advance
>
>
>
> --
> 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]




Re: [PHP] Directory Listing in an Array

2001-08-20 Thread Dallas K.

This is what I use


file://DIR to start looking in
$basedir = "C:/Inetpub/wwwroot/_ActiveClientFiles/GLS/portfolio/";
file://working DIR or the dir to change to.
$wdir = "web/";
// list of DIRs var
$dirlist;
$filelist;
$add_dir ;


/***
***
// Load Online Directorys

**/
chdir($basedir . $wdir.'online/');
file://open the dir
$online=opendir(".");

while ($files = readdir($online))
{ 
 if(is_dir($files) && ( $files !== "." && $files !== ".." ) )
 { 
  $online_dir[$files] = $files; file://add files
 }
}

if(count($online_dir))  file://sort
{ asort($online_dir); 
}
rewinddir($online);
closedir($online);



?>
- Original Message - 
From: "Chris Aitken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 8:05 PM
Subject: [PHP] Directory Listing in an Array


> Hey all,
> 
> Just something I havent been able to sort out in the archives, but what im 
> wanting to do it this. Do a listing of all files in a directory, and load 
> up an array with each returned filename.
> 
> Am I pissing into a windy pipe dream or is there a simple solution for this ?
> 
> 
> 
> Cheers
> 
> 
> Chris
> 
> 
> --
>  Chris Aitken - Administration/Database Designer - IDEAL Internet
>   email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
>   __-__
>*** Big Brother ***
> It just shows that the dull will rule the world. And we will be watching it.
> 
> 
> -- 
> 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]




Re: [PHP] Variables

2001-07-10 Thread Dallas K.

don't use the quotes

if($test1 == $test2)
{echo "True";
}
else
{echo "False";
}



- Original Message -
From: "James Bartlett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 7:21 PM
Subject: Re: [PHP] Variables


No it doesn't seem to like that either...

The weird thing is that if I used <> instead of = it's fine...although that
is not the result I want...
  - Original Message -
  From: Tyler Longren
  To: James Bartlett
  Cc: [EMAIL PROTECTED]
  Sent: Wednesday, July 11, 2001 3:21 AM
  Subject: Re: [PHP] Variables


  Try
  if($text1 == "$text2")
  {
  echo "The variables are equal";
  }
  else
  {
  echo "The variables are not equal";
  }

  notice the change in the if()

  Tyler


  On Wed, 11 Jul 2001 03:12:56 +0100
  "James Bartlett" <[EMAIL PROTECTED]> wrote:

  > Hi,
  >
  > This might sound really simple but plz humour me :)
  >
  > How can I tell if two text variables are equal to one another?
  >
  > If I use..
  >
  > if($text1 = $text2)
  > {
  > echo "The variables are equal";
  > }
  > else
  > {
  > echo "The variables are not equal";
  > }
  >
  > then the code in the else state is always printed even if I know for a
fact that the variables are equal...
  >
  > Any suggestions?
  >
  > James
  >


  --
  Tyler Longren
  [EMAIL PROTECTED]
  Currently Unemployed
  www.noworkfortyler.com


  --
  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] Name of an array???

2001-07-09 Thread Dallas K.

I need to echo the NAME of an array to the browser. when I try this all I get is 
"Array". when I try to : echo $$array_name; I get nothing.

How can I get the NAME of an array to the browser?

Thanks.



Re: [PHP] Which DB abstraction ?

2001-06-22 Thread Dallas K.

Check out the ADODB.. They support 9 (maybe 11) different db's the
code is easy and it works


http://php.weblogs.com/ADODB

We use their script .works well.


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Robert Mena" <[EMAIL PROTECTED]>; "php mailing list"
<[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 7:08 AM
Subject: RE: [PHP] Which DB abstraction ?


> Robert,
>
> Whichever you choose, using ODBC will further insulate you from the 'pain'
> of adopting other databases.  Also, ODBC by itself will give you a great
> deal of db abstraction.
>
> There are HOWTO's on setting up PHP with the iODBC Driver Manager (needed
to
> use ODBC drivers) at www.iodbc.org
>
> Best regards,
> Andrew Hill
> Director of Technology Evangelism
> OpenLink Software  http://www.openlinksw.com
> Universal Data Access & Data Integration Technology Providers
>
> > -Original Message-
> > From: Robert Mena [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 20, 2001 11:47 PM
> > To: php mailing list
> > Subject: [PHP] Which DB abstraction ?
> >
> >
> > Hi,
> >
> > I am in a middle of the process of chosing which DB
> > will be used for future projects.  I've been using
> > Mysql for almost 5 years (coupled with php of course)
> > but it seems to have reached it's limits (actually the
> > lack of some features).
> >
> > The other options include some traditional comercial
> > dbs and postgresql.  I am about to choose postgresql
> > because it seems to support the features I need
> > (foreign key, transaction, triggers, stored
> > procedures) and is open source with active
> > development.
> >
> > Even tough I'd like to receive (perhaps in private)
> > personal thought about this decision I would not like
> > to start a war...so my focus here is : which db
> > abstraction layer is ready for use ? disavantages ?
> >
> > I am considering : Manuel Lemos' Metabase, Phplib and
> > Pear.
> >
> > So far I've played a little bit with pear, and read
> > about metabase and phplib with no real experience in
> > both.
> >
> > The ideia is to start using it right away so the
> > adption of other DB would be painless (almost).
> >
> > Thanks,
> > RT
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> >
> > --
> > 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]




Re: [PHP] bad form...

2001-06-20 Thread Dallas K.

On a previous shopping cart, some of our "fantastically complex" scripts got
so big that WE couldn't follow the logic too many conditional test,
things started to conflict it was hell... so we found that it was better
to break the processing code apart from the html. but build one file
that includes all needed files into one to simulate the "One-file-one-form"
approach. this made all our lives easier. JMT.




- Original Message -
From: "Tom Carter" <[EMAIL PROTECTED]>
To: "motorpsychkill" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 3:39 AM
Subject: Re: [PHP] bad form...


> generally. no its not.. IMHO its a good thing it can help make data
> validation easier, as in people can't "fake" variables by passing them in
> the URL to the processing script.
> It also helps keeps thing tidy... so providing that the processing isn't
> fantastically complex (in which case the complexity of the processing may
> make the physical file cumbersome)
>
> HTH,
> Tom
>
>
> > hello everyone, is it 'bad form' (no pun intended) to have a form point
to
> > itself for processing, rather than forward the form variables to another
> > page?  Anybody have any input on this?  I try to have 1 page that is the
> > form and handles all the processing as well in order to keep the page
> count
> > on my site low and for easier editing, blah blah blah
> >
> > thank you for you help!
> >
>


-- 
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]




Re: [PHP] List of included file names.

2001-06-20 Thread Dallas K.

Try using $PHP_SELF to get the name of the PHP script.





- Original Message -
From: "Tim McGuire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 11:30 AM
Subject: [PHP] List of included file names.


Hi,

I searched the archives for this.

For debugging purposes, I want to see a list of the included files on a page
in HTML comments.

PHP_SELF and HTTP_SERVER_VARS["SCRIPT FILENAME"] only returns the name +
path of the file calling the included files.

I want each included file to contribute its name to the page.  Is there any
way to do that so that the HTML source looks like this:


[PHP] WHAT IF I DONT WANT TO USE ZEND......(help)

2001-04-09 Thread Dallas K.

But I still want to encode my scripts AND have them run on all differant platforms 
AND run with little or no setup by the user???

What other alternatives are out there?

I know about APC but it only seems to run on windows. I need somthing that I can 
show my client here soon. so what could I use to encode my scripts, on differant 
server platforms, with little help from the user.??


Thanks, 




Re: [PHP] Sneaky solution

2001-04-03 Thread Dallas K.

If you want to check where your submit is comming from, then you need to
check the REFERER url. do so by useing the global $HTTP_REFERER
variable.


global $HTTP_REFERER;

if($HTTP_REFERER == "YOUR_FORM_PAGE_HERE")
{
//PROCESS CODE.
}
else
{
echo"Your a hacker, so BITE ME!!!";
}




- Original Message -
From: "Plutarck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 03, 2001 7:58 PM
Subject: [PHP] Sneaky solution


> > How do you check to make sure that any
> > form submissions originate from your site?
>
> You basically can't.
>
> ...well that was easy ;)
>
>
> All you can do is assume that every single piece of data sent from the
> client is an attempt to screw up your application. After stripping
non-valid
> characters and using strlen to ensure the data is of a valid size, there
> isn't much you can do. But if you know ahead of time that the date should
> _NOT_ be 1998, just encode such a validator.
>
>
> But if you want to be really sneaky, make something like this:
>
> value1=vally|val2=vooly
>
> Then run it through some encryption feature or a home-brewed scrambler,
and
> make the whole thing one single "hidden" value.
>
> In your script you decode it, split it apart into proper variables, and
> continue along as normal.
>
>
> Still not fool proof, but I use it when I have no other better method. And
> it basically thwarts 99% of casual tinkerers, and an equal amount of
script
> kiddies, and it allows you to be really creative in your data validation,
> plus you can screw with people's heads...which of course is the most
> important function ;)
>
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
>
> --
> 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] Script Encodeing??? other than Zend.

2001-04-03 Thread Dallas K.

I need a way to encode my scripts so that others can not read them. But  I dont want 
to use the zend encoder? Is there anything else out there that can do what I need?



[PHP] Need an array parser(CONT)

2001-02-28 Thread Dallas K.

I am looking for somthing that will parse a multidimentional array of any
size, and return a key / value listing for debugging

Example:

if I have an array such as...

$arr[name] = dallas
$arr[address][city] = austin
$arr[address][state] = Texas
$arr[somthing][somthing_else][blah1]= some_value1
$arr[somthing][somthing_else][blah2]= some_value2
$arr[somthing][somthing_else][blah3]= some_value3

I would want the result to be displaied as:

ARR
name --- dallas
address --- city --- austin
address --- state --- Texas
somthing --- somthing_else --- blah1 --- some_value1
somthing --- somthing_else --- blah1 --- some_value1






[PHP] Need an array parser

2001-02-28 Thread Dallas K.

I am looking for somthing that will parse a multidimentional array of any
size, and return a key / value listing for debugging

Example:

if I have an array such as...

$arr[name] = dallas
$arr[address][city] = austin
$arr[address][state] = Texas
$arr[somthing][somthing_else][blah1]= some_value1
$arr[somthing][somthing_else][blah2]= some_value2
$arr[somthing][somthing_else][blah3]= some_value3

I would want the result to be displaied as:


-- 
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]