[PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook

You may already be doing it like this, but I think I found a new way to
make select boxes auto-select (what data they put in) a lot easier. All you
have to do is put a variable in each select tag that is equal to the value
of the select option i.e.:  -- then all you
have to do is base the variable on that  $$interest =
"selected"; quick and easy with out having to loop through an if elseif
statement.  Let me know if you like that method or have any objections.

Full example below.

print("\n");
// creates a variable with a name based on
// the value of interest with a value of "selected"
$$interest = "selected";
print("- Select One -\n");
print("Teacher\n");
print("Lego Enthusiast\n");
print("Student\n");
print("Homeschool Parent\n");
print("Browsing\n");
print("Afterschool\n");
print("Boys & Girls Club\n");
print("YMCA\n");
print("  \n");

[ Nathan Cook | [EMAIL PROTECTED] ]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook

> // buildSelect -- return a Select box named $selectName based on key
value array $selectArray
> ...
> // $arr = array('MD'=>'selected','DC'=>'','VA'=>'');

How are you able to quickly and painlessly determine which key gets the
selected value, from form submission data, when building the initial array?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook

From: "Johnson, Kirk" <[EMAIL PROTECTED]>
> Do you know what happens here if the error reporting is set to max?
> Are a bunch of "unitialized variables" warnings issued?

That would be my assumption.  I suppose you could initialize the variables
first to circumvent that. I was more or less looking for a quick and dirty
way to accomplish the task.

However, it looks like some good functions have been submitted to the list
which would solve the error reporting.  Something along the lines of
building an array and then calling a function to loop through the array
pieces and build a select menu.

In my case, I wasn't looking to create another function, just a quick
statement.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: New way to make select boxes auto select

2002-07-26 Thread Nathan Cook

> From: "lallous" <[EMAIL PROTECTED]>
> I use javascript for that! :)

I try to steer away from javascript as much as possible (and anything else
client-side), unless I know my audience extremely well and they are locked
into a certain browser and version, i.e. internal applications.  But I like
that method very much!

 [ Nathan Cook | [EMAIL PROTECTED] ]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Fw: [PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Nathan Cook

> So my specific problem is this: How do I create a new
> user account on a *NIX system to have permissions to
> send and receive email, for a web based email system.

In theory, and in my case, I couldn't have PHP do this because PHP is
running on apache with the user status of nobody.  So here is my
long-winded solution:

User requests e-mail account to be created.  PHP inserts their name into a
text file (or db, doesn't matter).  I compiled command line php
(./configure without the --with-apache).  I setup command line php to run a
php script through cron with root permissions every 5 mins.  The php script
moves the text file to a temporary location (so that I don't have people
added to it as I am reading it) and then the php script parses through the
usernames and passwords in the text file and issues system() commands to
create the users.  It is not the most secure solution but there are some
ways to secure it through data validation.

Does that make sense?

Hope so,
Nathan Cook


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] CyberCash Libraries?

2001-01-15 Thread Nathan Cook

Nevermind, cybercash.com has an MCK (Merchant Kit) that has the libs in it.

Thx, though.
-nc
---
.:: Nathan Cook- Network/Security Admin
office:  208.343.3110   - Web Programmer
email:   [EMAIL PROTECTED] - Qmail Admin
pager:  208.387.9983   - MIS Admin
---
- Original Message - 
From: "ncook" <[EMAIL PROTECTED]>
To: "Php List" <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 10:49 AM
Subject: [PHP] CyberCash Libraries?


> Where can I get the Cybercash Libraries?
> 
> -nc
> 
> 
> -- 
> 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] BC Math

2001-01-15 Thread Nathan Cook

BC Math, Arbitrary Precision Numbers?

Can someone shed some light on these functions for me?
Thanks.
---
.:: Nathan Cook- Network/Security Admin
office:  208.343.3110   - Web Programmer
email:   [EMAIL PROTECTED] - Qmail Admin
pager:  208.387.9983   - MIS Admin
---


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

2001-01-16 Thread Nathan Cook

You may want to try exploding on the ".":

$fooPieces = explode($foo, ".");

That way everything before the dot, is in the first piece of the array and
everything after is in the second part of the array.  However this may cause
issues if filenames will contain dots.  But if you follow an 8.3 or 8.4
character filename structure you will be fine.

.:: Nathan Cook
- Original Message -
From: "Tait Grove" <[EMAIL PROTECTED]>
To: "PHP GENERAL" <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:01 PM
Subject: [PHP] string replace


How can I strip everything past a certain character in a string?

i.e.:

$foo = "test.gif";

// strip past the .gif

$foo = "test";

// again

$foo2 = "test.jpeg";

// strip past the .jpeg

$foo2 = "test";


Tait



-- 
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] How to keep unauthorized viewers out

2001-01-16 Thread Nathan Cook

I would put it in the subsequent include page.

if($PHP_AUTH_USER)
 {
includes();
 }
else
 {
print("You are not authorized to view this page");
 }
---
.:: Nathan Cook- Network/Security Admin
office:  208.343.3110   - Web Programmer
email:   [EMAIL PROTECTED] - Qmail Admin
pager:  208.387.9983   - MIS Admin
---
- Original Message -
From: "Miles Thompson" <[EMAIL PROTECTED]>
To: "Nathan Cook" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 5:13 PM
Subject: Re: [PHP] How to keep unauthorized viewers out


> Nathan,
>
> Thanks for your reply ...
>
> At 04:53 PM 01/16/2001 -0700, Nathan Cook wrote:
> >how do they authenticate?  VIA http or a subsequent page?
>
> HTTP authentication,using
>   Header("WWW-authenticate: basic realm=\"Business Today\"")
>
> >Whichever it is, there are variables associated with each check for those
> >variables before loading.
>
> Yes I'm using $PHP_AUTH_USER and $PHP_AUTH_PW. But I can only check for
> those within a script, not in a straight HTML page. (Although I suppose I
> could change all the page extensions to .php and put a check for these
> var's at the very top and redirect to  the login script if they are not
> present.)
>
> Alternately, I suppose I could create a session ID, following a successful
> login. I really don't want to invoke .htaccess.
>
> Miles
>
> >---
> >.:: Nathan Cook- Network/Security Admin
> >office:  208.343.3110   - Web Programmer
> >email:   [EMAIL PROTECTED] - Qmail Admin
> >pager:  208.387.9983   - MIS Admin
> >---
> >- Original Message -
> >From: "Miles Thompson" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, January 16, 2001 4:49 PM
> >Subject: [PHP] How to keep unauthorized viewers out
> >
> >
> > > I'm using a pretty simple linking system for a subscription-based
> > > newsletter site.
> > >
> > > Stories and articles are in straight html files, reached by links from
the
> > > front page. Clicking on a link passes a story number. So the second
story
> > > on the index page would have this link: 
> > >
> > > and story.php consists of just these lines:
> > >
> > >  > > include "header.inc" ;
> > > include $storynum.".htm" ;
> > > include "footer.inc" ;
> > > ?>
> > >
> > > If someone comes in the "right way", through the index page, they will
> >have
> > > to be authenticated, then the header, article and page footer are
> >displayed.
> > >
> > > There's nothing, however, to stop someone from typing an URL like
this:
> > > http://www.somepub.ca/2.htm and seeing the article. I assume they
could
> > > also come in that way via a search engine.
> > >
> > > Any suggestions on how to stop that? Resources I should look at? I do
want
> > > to keep the stories in straight html as the editor is struggling now
with
> > > basic layout, etc.
> > >
> > > Regards - Miles Thompson
> > >
> > >
> > >
> > > --
> > > 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] Ultimate Editor

2001-01-18 Thread Nathan Cook

If I may make a session download phped.com or find another editor (notepad)
and then use that in conjunction with ftp net drive (look for it on the web
somewhere), it will allow you view the ftp servers drive, copy and paste and
save directly to the server... works very nice.

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
phone == 208.343.3110 :: pager == 208.387.9983
- Original Message -
From: "Chris Aitken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 5:10 PM
Subject: [PHP] Ultimate Editor


> At 06:47 PM 18/01/2001, you wrote:
>
> >What I'd like an editor to do for me is help out with how the page looks.
> >One I set up a page that looks half-way decent - even if I use stock
> >templates or style sheets - I can always plop the code in later by hand
and
> >that's no biggie. It's just that initial setting up of tables and stuff
that
> >is kind of tedious and I want to get away from that so I can concentrate
on
> >the code.
>
>
> Personally, I would love to find an editor which had colour coded code
> ability, a nice windows cut/paste/undo/redo feature, much akin to say
> Homesite, but the most important thing would be that it can simulate a
> telnet connection (or any connection for that matter) to the web server im
> working on and use it just like the current editors view/use/display the
> local hard drive. When you save a file, it instantly saves it on the
> server. Ive seen some editors which have a supposed publish option but
they
> are either very lame, or made by microsoft (nuff said).
>
> I like the ability to have a simple keystroke(s) to instantly update the
> file so I can reload it direct off the webserver and test it out. Infact,
I
> didnt mind how nedit worked when I was running my FreeBSD box at home, but
> it too couldnt allow me to work on remote files live.
>
>
>
> 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]




Re: [PHP] Local Path of Script

2001-01-22 Thread Nathan Cook

I just do:
$LocalScript = $DOCUMENT_ROOT . $PHP_SELF;


.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message -
From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 9:41 AM
Subject: [PHP] Local Path of Script


> How do I obtain the path of the local script?  Or do I have to build it
from
> the $DOCUMENT_ROOT?
>
>
> --
> 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] easy question.

2001-01-24 Thread Nathan Cook

I have always wrote code this like:

if(($fname) && ($lname) && ($email)) 
  {  echo "test"; }

Is there an easier way to write the IF line?

Thank You

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]


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

2001-03-09 Thread Nathan Cook

I haven't used opay.com.

However I was looking at using cybercash for up and coming software I am
writing.

Their website talks extensively about a merger with a 'Network 1' company
and now a buyout and a chapter 11 filing.  The buyout, or "merger" press
release says: "CyberCash Internet Payment Processing Service to Continue
without Interruption."

Is this incorrect?  When you say that it 'died', what are you referring to?

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
PCS Edventures.com
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message -
From: "Rick St Jean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 3:27 PM
Subject: [PHP] payment


> How to people typically integrate payment processors with PHP?
> And what processors are used most often?  I know that a number
> of people are scrambling after cybercash died.  There is a site out
> there www.opay.com that says it supports payment processors
> on any platform, anyone ever use it?
>
> Rick
> ##
> #  Rick St Jean,
> #  [EMAIL PROTECTED]
> #  President of Design Shark,
> #  http://www.designshark.com/
> #  Quick Contact:  http://www.designshark.com/messaging.ihtml
> #  Tel: 905-684-2952
> ##
>
>
> --
> 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] Radio Button Returns (Pleasre Read)

2001-03-16 Thread Nathan Cook

This question baffles me.  Just to clarify do you have at least two radio
buttons on this page and are they both under the same name?

It also could be if the HTML you mailed the list is the same you have in
your generated page then you may want an '=' sign between the value"index"

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
PCS Edventures.com
Programmer :: Systems & Network Administrator
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]

\"You know you\'re in big trouble when you try to escape character your
e-mail\'s\"

- Original Message -
From: "Fred" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 4:22 PM
Subject: [PHP] Radio Button Returns (Pleasre Read)


> this is the code:
>$page .= " value\"$info[PageID]\">";
>
> this is the html source generated:
> 
>
> and this is what $pageid returns:
> 'on'
>
> 2 questions is
> why? and how do i fix it?
>
> thanks to all who take the time to awnser :-)
> ~Fred
>
>
>
> --
> 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] String Type Unknown

2001-04-30 Thread Nathan Cook

I have this string:

0ffac0ffed0005737200146a6176612e7574696c2e50726f7065727469657339120f
fd07a70363e0ff980200014c000864656661756c74737400164c6a6176612f7574696c2f5072
6f706572746965733b787200136a6176612e7574696c2e486173687461626c65130ffbb0f252
14a0ffe40ffb803000246000a6c6f6164466163746f724900097468726573686f6c64787
03f48770800030002740005696d61676574004a3c494d47205352433d226
87474703a2f2f6d6564696162616e6b2e656476656e74757265732e636f6d2f656476656e7475726
5732f6c6162732f627269636b735f7765622e6a7067223e740004746578747402024974206973206
96d706f7274616e7420746f20656d70686173697a652074686174206120666163696c697461746f7
220646f6573206e6f74206e65656420746f20626520616e2065787065727420696e2074686520766
172696f7573207375626a6563742061726561732c206275742073686f756c64206265636f6d65206
6616d696c6961722077697468207468652070726f6a6563747320616e64206d6174657269616c732
0746861742073747564656e74732077696c6c20626520646f696e672c20616e64206265206177617
265206f6620686f7720746f206765742068656c70206f72206c6f6f6b207570207465726d7320616
e6420616e73776572732e2020496e20706172746963756c61722c2066616d696c696172697479207
769746820746865204c45474f3c7375703e267265673b3c2f7375703e20656c656d656e747320697
320686967686c79207265636f6d6d656e6465642e20205043532068617320646576656c6f7065642
06120736570617261746520636f7572736520666f637573696e67206f6e2074686520757365206f6
620746865204c45474f3c7375703e267265673b3c2f7375703e206d6174657269616c732e2020416
c6c20666163696c697461746f72732073686f756c64207363686564756c652074696d6520746f207
4616b652074686973206164646974696f6e616c20636f757273652e7870

And I don't know what type it is.  It is it a binary string?  Can I convert it
to text and if so, how?

Thank You,
Nathan Cook
[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] String Type Unknown

2001-05-02 Thread Nathan Cook

>From a field in an instantdb database (http://instantdb.enhydra.org)

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Anuradha Ratnaweera" <[EMAIL PROTECTED]>
To: "Nathan Cook" <[EMAIL PROTECTED]>
Cc: "Php List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 11:03 PM
Subject: Re: [PHP] String Type Unknown


>
> Since it contains only digits 0-9 and letters a-f, it looks like
> hexadecimal. Why don't you try to read two characters at a time and either
> convert them to binary or check their ascii values. There seem to be many
> ascii values however.
>
> Where did you get this from?
>
> Anuradha
>
> On Mon, 30 Apr 2001, Nathan Cook wrote:
>
> > I have this string:
> >
> >
0ffac0ffed0005737200146a6176612e7574696c2e50726f7065727469657339120f
> >
fd07a70363e0ff980200014c000864656661756c74737400164c6a6176612f7574696c2f5072
> >
6f706572746965733b787200136a6176612e7574696c2e486173687461626c65130ffbb0f252
> > 14a0ffe40ffb803000246000a6c6f6164466163746f724900097
> >
> > And I don't know what type it is.  It is it a binary string?  Can I convert
it
> > to text and if so, how?
> >
> > Thank You,
> > Nathan Cook
> > [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]
>
>


-- 
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] String Type Unknown

2001-05-02 Thread Nathan Cook

Thank you, for your help it works great!

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Rudolf Visagie" <[EMAIL PROTECTED]>
To: "Nathan Cook" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 4:47 AM
Subject: RE: [PHP] String Type Unknown


Nathan,

Another way to do it (but much less fun):




Read Hex dump






Rudolf Visagie
QEDI

-----Original Message-
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: 01 May 2001 11:16
To: Rudolf Visagie
Subject: Re: [PHP] String Type Unknown


How were you able to convert that?

Thanks!
Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Rudolf Visagie" <[EMAIL PROTECTED]>
To: "Nathan Cook" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 2:53 AM
Subject: RE: [PHP] String Type Unknown


Hi Nathan,

It's a hex dump and it reads:

ÿÿúÀÿÿÿí sr java.util.Properties9ÿÿý§càÿÿÿ~ L defaultst
Ljava/util/Properties;xr java.util.Hashtableÿÿû°òR ÿÿÿäÿÿûEUR0 $`
¦ÆöDf7F÷$ -F?&W6?öÆG??@ w      t imaget Jhttp://mediabank.edventures.com/edventures/labs/bricks_web.jpg";>t
texttIt is important to emphasize that a facilitator does not need to be
an expert in the various subject areas, but should become familiar with the
projects and materials that students will be doing, and be aware of how to
get help or look up terms and answers.  In particular, familiarity with the
LEGO® elements is highly recommended.  PCS has developed a
separate course focusing on the use of the LEGO® materials.
All facilitators should schedule time to take this additional course.xp

Rudolf Visagie
QEDI

-Original Message-
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: 30 April 2001 10:31
To: Php List
Subject: [PHP] String Type Unknown


I have this string:

0ffac0ffed0005737200146a6176612e7574696c2e50726f7065727469657339120f

fd07a70363e0ff980200014c000864656661756c74737400164c6a6176612f7574696c2f
5072
6f706572746965733b787200136a6176612e7574696c2e486173687461626c65130ffbb0
f252
14a0ffe40ffb803000246000a6c6f6164466163746f724900097468726573686f6c6
4787
03f48770800030002740005696d61676574004a3c494d47205352433
d226
87474703a2f2f6d6564696162616e6b2e656476656e74757265732e636f6d2f656476656e747
5726
5732f6c6162732f627269636b735f7765622e6a7067223e74000474657874740202497420697
3206
96d706f7274616e7420746f20656d70686173697a652074686174206120666163696c6974617
46f7
220646f6573206e6f74206e65656420746f20626520616e2065787065727420696e207468652
0766
172696f7573207375626a6563742061726561732c206275742073686f756c64206265636f6d6
5206
6616d696c6961722077697468207468652070726f6a6563747320616e64206d6174657269616
c732
0746861742073747564656e74732077696c6c20626520646f696e672c20616e6420626520617
7617
265206f6620686f7720746f206765742068656c70206f72206c6f6f6b207570207465726d732
0616
e6420616e73776572732e2020496e20706172746963756c61722c2066616d696c69617269747
9207
769746820746865204c45474f3c7375703e267265673b3c2f7375703e20656c656d656e74732
0697
320686967686c79207265636f6d6d656e6465642e20205043532068617320646576656c6f706
5642
06120736570617261746520636f7572736520666f637573696e67206f6e20746865207573652
06f6
620746865204c45474f3c7375703e267265673b3c2f7375703e206d6174657269616c732e202
0416
c6c20666163696c697461746f72732073686f756c64207363686564756c652074696d6520746
f207
4616b652074686973206164646974696f6e616c20636f757273652e7870

And I don't know what type it is.  It is it a binary string?  Can I convert
it
to text and if so, how?

Thank You,
Nathan Cook
[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] PC MAG article

2001-05-09 Thread Nathan Cook

I don't like PC Magazine, I don't think they offer unbiased reports.  Most often
they are blatantly incorrect.  I was a subscriber for 3 years and cancelled 1
year ago...

BTW, I guess I must be an apache/Unix expert since I can install php from
source, WAHOO!! (Can I put that on my resume?)

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Mike" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 6:19 PM
Subject: [PHP] PC MAG article


> As a devoted php programmer I was surprised how bad PC MAG blasted php this
> month.It sound as if it doesnt scale very well(Ive never had more than a few
> people on my site at once).Any comments???
>
> Thanks
> Mike
> [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] PC MAG article

2001-05-09 Thread Nathan Cook

Did you notice how they mentioned nothing to the fact that PHP _does_ support
ODBC?

To think if they keep printing articles like that then macromedia just might
advertise with them...

Nathan Cook
[EMAIL PROTECTED]
- Original Message - 
From: "Ryan Christensen" <[EMAIL PROTECTED]>
To: "Philip Olson" <[EMAIL PROTECTED]>; "Mike" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 6:31 PM
Subject: Re: [PHP] PC MAG article


> Lol..
> 
> quoted..
> "PHP proponents argue that abstraction layers dumb down and slow down access
> to databases, but we think they can increase developer productivity,
> facilitate application migration, and cut training costs. "
> 
> Cut training costs? Yeah.. let's use an inefficient system just so we can
> save some money? (even though PHP is already free!!!)
> 
> hehe..
> 
> 
> Ryan Christensen
> OlyPen Technical Support
> [EMAIL PROTECTED]
> 360.457.3000
> 800.303.8696
> 
> 
> - Original Message -
> From: Philip Olson <[EMAIL PROTECTED]>
> To: Mike <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 5:26 PM
> Subject: Re: [PHP] PC MAG article
> 
> 
> > for informational purposes, it can be seen here :
> >
> >   http://www.zdnet.com/pcmag/stories/reviews/0,6755,2713481,00.html
> >
> > no comment. :)
> >
> > regards,
> > philip
> >
> >
> > On Wed, 9 May 2001, Mike wrote:
> >
> > > As a devoted php programmer I was surprised how bad PC MAG blasted php
> this
> > > month.It sound as if it doesnt scale very well(Ive never had more than a
> few
> > > people on my site at once).Any comments???
> > >
> > > Thanks
> > > Mike
> > > [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]
> >
> >
> 
> 
> -- 
> 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] running a stand-alone PHP program

2001-05-16 Thread Nathan Cook

Assuming you are running linux...

Just remove the "--with-apache", from the ./configure statement... should look
something like this

# ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
# make
# make install

Should install to:
# /usr/local/bin/php

then you can run scripts by:
# /usr/local/bin/php /path/to/script/scriptname

Have Fun!
Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "midget2000x" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 2:52 PM
Subject: RE: [PHP] running a stand-alone PHP program


> I suppose I need to be more clear.  I already have PHP running, but I want to
> run actual PHP code that I write as a stand-alone program.  Is this what
you're
> doing?
>
> On Wed, 16 May 2001, you wrote:
> > yeah.  i run it as a CGI.
> >
> > compile it as a binary, then edit the apache config...
> >
> > that's it
> >
> > > -Original Message-
> > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] running a stand-alone PHP program
> > >
> > >
> > > I apologize if this has already been covered...I can't seem to find it in
the
> > > archives...
> > >
> > > can PHP be coded and run as a stand-alone program?  If so, where can I get
more
> > > info on that?
> > >
> > > I am running Linux and would like to pass some data to PHP from a
> > > CGI program.
> > >
> > > Thanks!
> > >
> > > Rory
> > > ---
> > > providing the finest in midget technology
> > >
> > > --
> > > 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]
> --
> ---
> providing the finest in midget technology
>
> --
> 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] Get page height?

2001-05-16 Thread Nathan Cook

 DRN <[EMAIL PROTECTED]> 
> Hi, I was wondering if it would be possible to get the page height using php?

This solution is sloppy but in theory it works.  I would lean towards using an
fopen() to read the bytes of the page on the server, then based on bytes have
your script decide what to do.

 Chris Lee <[EMAIL PROTECTED]> 
> plus to compound the fact, JavaScript might be able to get this data
> (cant confirm) but JavaScript will only know what the dimensions are,
> after the page is loaded. you could get the data from JavaScript  and
> use a header_redirect to give php that data. sorry I don't have a code
snippet.

JavaScript (AFAIK) can only tell the dimensions of the window/frame the page is
being drawn in.

Nathan Cook
[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] math - somethings wrong

2001-05-16 Thread Nathan Cook

There are some comments below.  I hope this will point you in the right
direction.

/* Yours :: $percentage=(($target_score/($fleet_score+$total_score))*.4)*100; */

/* From looking at the math you do on the calculator you may want to try this
instead. */
$percentage=(($target_score/($fleet_score+$total_score)*.4))*100;

/* or break it apart */
$divisor = ($fleet_score + $total_score) * .4;
$divide = $target_score / divisor;
$percentage = $divide * 100;

if ($percentage >= 10) {
$percentage='10';
$capped=$target_roids*($percentage/100);
// Print the vars to check math! ;-)
print("Percentage: $percentage | Capped: $capped");
} else {
$capped=$target_roids*($percentage/100);
// Print the vars to check math! ;-)
print("Percentage: $percentage | Capped: $capped");
}

Good Luck!
Nathan Cook
[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] preprocessing

2001-05-17 Thread Nathan Cook

Try going to the page with the vars you need in the URL.  i.e.:
http://www.www.com/cgi-bin/script?var1=test&var2=testing

If that works then just use a simple header location forward in script 'b':
// process vars
header("LOCATION:http://www.www.com/cgi-bin/script?var1=test&var2=testing";);

That way the user will never have to interact with page 'b'.  Note: do not start
any output before the header command.

If that doesn't work then there should be some other way of assembling cgi-post
headers with the header() function.

Good Luck.
Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 11:18 AM
Subject: [PHP] preprocessing


>
> I have what I feel to be a strange problem (I'm most likely wrong here).
> I have page A, which is an internal page, which posts to page C which is
external (belongs to another company). What I would like is to insert a
preprocessing script (let's call it page b). So, the end result would be, users
input data to page a, page a then posts to page b, page b processes all
variables etc and then posts to page c. I don't want the customer, to ever
really have to interact with page b. Is that possible?
> If there is a command to do this, which I must've missed, that would really be
all I need ;)
>
> Louis G
>
> --
> 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] running a stand-alone PHP program

2001-05-17 Thread Nathan Cook

Not if you are currently running it as an apache module.  If you are running it
as a cgi, then it might.  But it sounds as if you are running it as an apache
module.

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "midget2000x" <[EMAIL PROTECTED]>
To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 10:38 AM
Subject: Re: [PHP] running a stand-alone PHP program


> OK, thanks.  This is great.  But will this affect my existing installation of
> PHP?  excuse the newbie questions!
>
> I appreciate your help.
>
> Thanks,
>
> Rory
>
> On Wed, 16 May 2001, Nathan Cook wrote:
> > Assuming you are running linux...
> >
> > Just remove the "--with-apache", from the ./configure statement... should
look
> > something like this
> >
> > # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> > # make
> > # make install
> >
> > Should install to:
> > # /usr/local/bin/php
> >
> > then you can run scripts by:
> > # /usr/local/bin/php /path/to/script/scriptname
> >
> > Have Fun!
> > Nathan Cook
> > [EMAIL PROTECTED]
> > - Original Message -
> > From: "midget2000x" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 16, 2001 2:52 PM
> > Subject: RE: [PHP] running a stand-alone PHP program
> >
> >
> > > I suppose I need to be more clear.  I already have PHP running, but I want
to
> > > run actual PHP code that I write as a stand-alone program.  Is this what
> > you're
> > > doing?
> > >
> > > On Wed, 16 May 2001, you wrote:
> > > > yeah.  i run it as a CGI.
> > > >
> > > > compile it as a binary, then edit the apache config...
> > > >
> > > > that's it
> > > >
> > > > > -Original Message-
> > > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [PHP] running a stand-alone PHP program
> > > > >
> > > > >
> > > > > I apologize if this has already been covered...I can't seem to find it
in
> > the
> > > > > archives...
> > > > >
> > > > > can PHP be coded and run as a stand-alone program?  If so, where can I
get
> > more
> > > > > info on that?
> > > > >
> > > > > I am running Linux and would like to pass some data to PHP from a
> > > > > CGI program.
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Rory
> > > > > ---
> > > > > providing the finest in midget technology
> > > > >
> > > > > --
> > > > > 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]
> > > --
> > > ---
> > > providing the finest in midget technology
> > >
> > > --
> > > 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]
> > >
> > >
> --
> ---
> providing the finest in midget technology
>


-- 
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: Re: [PHP] preprocessing

2001-05-17 Thread Nathan Cook

In that case you may be able to assemble the headers of a get using the header()
function.  I will look up a few more things for you and get back to you after
lunch! :)

Nathan Cook
[EMAIL PROTECTED]

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 11:51 AM
Subject: RE: Re: [PHP] preprocessing


>
> This is a fairly solid suggestion, and it may be what I have to do. But,
unfortunately, Page C is expecting a POST, not a GET, which may make it not
work. Also, I would like to avoid this if possible due to some of the sensitive
information that will be being passed to and fro. Even if it will be done using
SSL.
>
> >Try going to the page with the vars you need in the URL.  i.e.:
> >http://www.www.com/cgi-bin/script?var1=test&var2=testing
> >If that works then just use a simple header location forward in script 'b':
> >// process vars
> >header("LOCATION:http://www.www.com/cgi-bin/script?var1=test&var2=testing";);
> >That way the user will never have to interact with page 'b'.  Note: do not
start
> >any output before the header command.
> >If that doesn't work then there should be some other way of assembling
cgi-post
> >headers with the header() function.
> >Good Luck.
> >Nathan Cook
> >[EMAIL PROTECTED]
> >- Original Message -
> >From: <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, May 17, 2001 11:18 AM
> >Subject: [PHP] preprocessing
> >>
> >> I have what I feel to be a strange problem (I'm most likely wrong here).
> >> I have page A, which is an internal page, which posts to page C which is
> >external (belongs to another company). What I would like is to insert a
> >preprocessing script (let's call it page b). So, the end result would be,
users
> >input data to page a, page a then posts to page b, page b processes all
> >variables etc and then posts to page c. I don't want the customer, to ever
> >really have to interact with page b. Is that possible?
> >> If there is a command to do this, which I must've missed, that would really
be
> >all I need ;)
> >>
> >> Louis G
> >>
> >> --
> >> 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: Re: [PHP] preprocessing

2001-05-17 Thread Nathan Cook

This looks like it will do it.  I haven't tested it, so don't take my word for
it.

http://www.holotech.net/
 *  December 1999
 *
 /

  function PostIt($DataStream, $URL) {

//  Strip http:// from the URL if present
$URL = ereg_replace("^http://";, "", $URL);

//  Separate into Host and URI
$Host = substr($URL, 0, strpos($URL, "/"));
$URI = strstr($URL, "/");

//  Form up the request body
$ReqBody = "";
while (list($key, $val) = each($DataStream)) {
  if ($ReqBody) $ReqBody.= "&";
  $ReqBody.= $key."=".urlencode($val);
}
$ContentLength = strlen($ReqBody);

//  Generate the request header
$ReqHeader =
  "POST $URI HTTP/1.1\n".
  "Host: $Host\n".
  "User-Agent: PostIt\n".
  "Content-Type: application/x-www-form-urlencoded\n".
  "Content-Length: $ContentLength\n\n".
  "$ReqBody\n";

//  Open the connection to the host
$socket = fsockopen($Host, 80, &$errno, &$errstr);
if (!$socket) {
  $Result["errno"] = $errno;
  $Result["errstr"] = $errstr;
  return $Result;
}
$idx = 0;
fputs($socket, $ReqHeader);
    while (!feof($socket)) {
  $Result[$idx++] = fgets($socket, 128);
}
return $Result;
  }
?>

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Nathan Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Php List" <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 11:54 AM
Subject: Re: Re: [PHP] preprocessing


> In that case you may be able to assemble the headers of a get using the
header()
> function.  I will look up a few more things for you and get back to you after
> lunch! :)
>
> Nathan Cook
> [EMAIL PROTECTED]
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, May 17, 2001 11:51 AM
> Subject: RE: Re: [PHP] preprocessing
>
>
> >
> > This is a fairly solid suggestion, and it may be what I have to do. But,
> unfortunately, Page C is expecting a POST, not a GET, which may make it not
> work. Also, I would like to avoid this if possible due to some of the
sensitive
> information that will be being passed to and fro. Even if it will be done
using
> SSL.
> >
> > >Try going to the page with the vars you need in the URL.  i.e.:
> > >http://www.www.com/cgi-bin/script?var1=test&var2=testing
> > >If that works then just use a simple header location forward in script 'b':
> > >// process vars
> >
>header("LOCATION:http://www.www.com/cgi-bin/script?var1=test&var2=testing";);
> > >That way the user will never have to interact with page 'b'.  Note: do not
> start
> > >any output before the header command.
> > >If that doesn't work then there should be some other way of assembling
> cgi-post
> > >headers with the header() function.
> > >Good Luck.
> > >Nathan Cook
> > >[EMAIL PROTECTED]
> > >- Original Message -
> > >From: <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Thursday, May 17, 2001 11:18 AM
> > >Subject: [PHP] preprocessing
> > >>
> > >> I have what I feel to be a strange problem (I'm most likely wrong here).
> > >> I have page A, which is an internal page, which posts to page C which is
> > >external (belongs to another company). What I would like is to insert a
> > >preprocessing script (let's call it page b). So, the end result would be,
> users
> > >input data to page a, page a then posts to page b, page b processes all
> > >variables etc and then posts to page c. I don't want the customer, to ever
> > >really have to interact with page b. Is that possible?
> > >> If there is a command to do this, which I must've missed, that would
really
> be
> > >all I need ;)
> > >>
> > >> Louis G
> > >>
> > >> --
> > >> 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]
>
>


-- 
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] running a stand-alone PHP program

2001-05-17 Thread Nathan Cook

Does your script happen to look like this?

#!/usr/local/bin/php

To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 3:15 PM
Subject: Re: [PHP] running a stand-alone PHP program


> Excellent.  I got this working.  From a command line the standalone PHP
> scripts work well, but if I hit them via http, it renders the path to PHP at
the
> top of the page (but does execute the code).  Any fix for that?
>
> Thanks,
>
> Rory
>
> On Thu, 17 May 2001, Nathan Cook wrote:
> > Not if you are currently running it as an apache module.  If you are running
it
> > as a cgi, then it might.  But it sounds as if you are running it as an
apache
> > module.
> >
> > Nathan Cook
> > [EMAIL PROTECTED]
> > ----- Original Message -
> > From: "midget2000x" <[EMAIL PROTECTED]>
> > To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Thursday, May 17, 2001 10:38 AM
> > Subject: Re: [PHP] running a stand-alone PHP program
> >
> >
> > > OK, thanks.  This is great.  But will this affect my existing installation
of
> > > PHP?  excuse the newbie questions!
> > >
> > > I appreciate your help.
> > >
> > > Thanks,
> > >
> > > Rory
> > >
> > > On Wed, 16 May 2001, Nathan Cook wrote:
> > > > Assuming you are running linux...
> > > >
> > > > Just remove the "--with-apache", from the ./configure statement...
should
> > look
> > > > something like this
> > > >
> > > > # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql]
> > > > # make
> > > > # make install
> > > >
> > > > Should install to:
> > > > # /usr/local/bin/php
> > > >
> > > > then you can run scripts by:
> > > > # /usr/local/bin/php /path/to/script/scriptname
> > > >
> > > > Have Fun!
> > > > Nathan Cook
> > > > [EMAIL PROTECTED]
> > > > - Original Message -
> > > > From: "midget2000x" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, May 16, 2001 2:52 PM
> > > > Subject: RE: [PHP] running a stand-alone PHP program
> > > >
> > > >
> > > > > I suppose I need to be more clear.  I already have PHP running, but I
want
> > to
> > > > > run actual PHP code that I write as a stand-alone program.  Is this
what
> > > > you're
> > > > > doing?
> > > > >
> > > > > On Wed, 16 May 2001, you wrote:
> > > > > > yeah.  i run it as a CGI.
> > > > > >
> > > > > > compile it as a binary, then edit the apache config...
> > > > > >
> > > > > > that's it
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: midget2000x [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: Wednesday, May 16, 2001 4:18 PM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: [PHP] running a stand-alone PHP program
> > > > > > >
> > > > > > >
> > > > > > > I apologize if this has already been covered...I can't seem to
find it
> > in
> > > > the
> > > > > > > archives...
> > > > > > >
> > > > > > > can PHP be coded and run as a stand-alone program?  If so, where
can I
> > get
> > > > more
> > > > > > > info on that?
> > > > > > >
> > > > > > > I am running Linux and would like to pass some data to PHP from a
> > > > > > > CGI program.
> > > > > > >
> > > > > > > Thanks!
> > > > > > >
> > > > > > > Rory
> > > > > > > ---
> > > > > > > providing the finest in midget technology
> > > > > > >
> > > > > > > --
> > > > > > > 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]
> > > > > --
> > > > > ---
> > > > > providing the finest in midget technology
> > > > >
> > > > > --
> > > > > 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]
> > > > >
> > > > >
> > > --
> > > ---
> > > providing the finest in midget technology
> > >
> --
> ---
> providing the finest in midget technology
>
> --
> 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] Line Breaks in

2001-06-28 Thread Nathan Cook

Hello-

I am selecting a value from a blob field in a mysql db.  The value looks like
this:

Test 12...3 \r \n  %0%D Test

When I print that value in a $value -- The textarea returns
exactly what you see above.  I am trying to get it to display a line break (so
that I can store the line breaks in the db).  If you can shed any light on this
subject, please share.

Thank You,
Nathan Cook
[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] Credit card number checker?

2001-07-16 Thread Nathan Cook

I ran across this function awhile back and it is what we use.
---
function CCValidationSolution ($Number) {
global $CardName;

# 1) Get rid of spaces and non-numeric characters.
$Number = OnlyNumericSolution($Number);

# 2) Do the first four digits fit within proper ranges?
# If so, who's the card issuer and how long should the number be?
$NumberLeft = substr($Number, 0, 4);
$NumberLength = strlen($Number);

if ($NumberLeft >= 4000 and $NumberLeft <= 4999) {
   $CardName = "Visa";
   if ($NumberLength > 14) {
   $ShouldLength = 16;
   } elseif ($NumberLength < 14) {
   $ShouldLength = 13;
   } else {
   return FALSE;
   }
} elseif ($NumberLeft >= 5100 and $NumberLeft <= 5599) {
$CardName = "MasterCard";
$ShouldLength = 16;
} else {
return FALSE;
}


# 3) Is the number the right length?
if ($NumberLength <> $ShouldLength) {
$Missing = $NumberLength - $ShouldLength;
if ($Missing < 0) {
} else {
}
return FALSE;
}


# 4) Does the number pass the Mod 10 Algorithm Checksum?
if (Mod10Solution($Number) == TRUE) {
return TRUE;
} else {
 return FALSE;
}
}

function OnlyNumericSolution ($Number) {
   # Remove any non numeric characters.
   # Ensure number is no more than 19 characters long.
   return substr( ereg_replace( "[^0-9]", "", $Number) , 0, 19);
}

function Mod10Solution ($Number) {
$NumberLength = strlen($Number);
$Checksum = 0;

# Add even digits in even length strings
# or odd digits in odd length strings.
for ($Location = 1 - ($NumberLength % 2); $Location < $NumberLength;
$Location += 2) {
$Checksum += substr($Number, $Location, 1);
}

# Analyze odd digits in even length strings
# or even digits in odd length strings.
for ($Location = ($NumberLength % 2); $Location < $NumberLength; $Location
+= 2) {
$Digit = substr($Number, $Location, 1) * 2;
if ($Digit < 10) {
$Checksum += $Digit;
} else {
$Checksum += $Digit - 9;
}
}

# Is the checksum divisible by ten?
return ($Checksum % 10 == 0);
}

// Usage
if (CCValidationSolution($Number) == TRUE) {
echo "GOOD";
} else {
echo "Bad card!";
}
---

Good Luck!

Nathan Cook
[EMAIL PROTECTED]

- Original Message -
From: "Dr. Evil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 4:12 PM
Subject: [PHP] Credit card number checker?


>
> I know that credit cards have standard formats: There's a standard
> number of digits, and whether the card is Visa, MC, Amex, etc is
> encoded in the number, and there is some kind of checksum, and I think
> the expiration is also encoded in the number.  All of this is obvious
> stuff that anyone designing such a system would do.
>
> I'm wondering if anyone can refer me to a site that describes what
> this format is, so I can write some PHP code that will check to see if
> a credit card number format is correct.  I don't even want to try to
> run the card through my merchant account if the format is obviously
> wrong.  I assume that banks check the rejection rate on their merchant
> accounts, and too many bogus cards would not look good.
>
> I did a quick search on the web, and there are a vast number of
> "hacker" credit card number generators, but that isn't exactly what
> I'm looking for.
>
> Thanks
>
> --
> 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] note to PHP developers

2001-07-17 Thread Nathan Cook

On a side note, qmail has a wrapper that pretends to be sendmail. You can
overwrite the /bin/mail with it and it will behave and accept mail just like
sendmail, but send it through qmail-smtp.

Nathan Cook
[EMAIL PROTECTED]

- Original Message -
From: "Michael Geier, CDM Systems Admin" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 9:20 AM
Subject: [PHP] note to PHP developers


> I have noticed on the list over the past two months, an increasing number of
> problems with the mail() function.
>
> Mostly, people having this problem don't have sendmail installed.  It would
> seem that PHP's mail() function was written around sendmail.  Is there a way
> to resolve this, with either configuration flags or by re-writing the mail()
> function install to look for alternative MTAs???
>
> Just thought I would point it out.
>
> My solution:
>
> - OS RH 7.1 w/Sendmail install
> - installed PHP 4.x
> - removed Sendmail
> - installed Qmail
> - changed php.ini path -> qmail path
>
> ---
> Michael Geier
> CDM Sports, Inc. - Systems Administrator
> email: [EMAIL PROTECTED]
> phone: 314.991.1511 x 6505
> pager: 314.318.9414
>
>
> --
> 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] Big difference?

2001-07-25 Thread Nathan Cook

Not if there are syntax errors like misplaced quotes (", ').

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Henrik Hansen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 3:54 PM
Subject: Re: [PHP] Big difference?


> [EMAIL PROTECTED] (Johannes Schill) wrote:
>
>  > Hello Kyle,
>  >
>  > The difference between echo and print is that print returns a boolean
value,
>  > so you can check if "blah blah" was successfully printed.
>
> hmm isen't it always succesfull printed or did I miss something?
>
> --
> Henrik Hansen
>
> --
> 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] Sorry To Repeat Repeat Repeat Repeat Re.......

2001-07-26 Thread Nathan Cook

Just check out px.sklar.com.

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Kyle Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 10:14 PM
Subject: [PHP] Sorry To Repeat Repeat Repeat Repeat Re...


Could you people please send me any scripts you have made which are not too
complecated but are quite useful without the use of mySQL?
To restore my faith in PHP


Thanks in advance
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





-- 
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] Find and Replace

2001-07-30 Thread Nathan Cook

I just setup apache to parse *.inc files through php.

Nathan Cook
[EMAIL PROTECTED]
- Original Message - 
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 1:06 PM
Subject: [PHP] Find and Replace


> This isn't exactly PHP I need help with, but it relates to what I learned
> about security.  Up until now, I have been using *.inc extensions for my
> include files.  Well, I didn't realize until recently that anyone can view
> these files.  So, I want to rename them to *.inc.php.  BUT, in almost all of
> my PHP pages, there are links to : include ('mydir/myfile.inc');
> 
> Can someone tell me how to do a recursive find and replace to look for
> /myfile.inc and replace it with myfile.inc.php?  I am running Red Hat 7.1
> 
> Thanks!
> 
> Ryan
> 
> -- 
> 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] Being a SERVER (you cant kill me, im.... DAMN!!)

2001-08-01 Thread Nathan Cook

http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/print.html

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Kyle Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 11:32 PM
Subject: [PHP] Being a SERVER (you cant kill me, im DAMN!!)


Where do i download the best software (prefebly free) to set up my computer as a
server so i can test my php scripts? (apache or whatever)


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





-- 
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] Getting MySQL Query Times.

2001-08-23 Thread Nathan Cook

IMO, you are better off printing microtime
[http://www.php.net/manual/en/function.microtime.php] before and after the
query, and after you loop through it.  This will give you a better idea of where
the hangups may be.  You may also want to sprinkle mircotimes throughout your
code to get a good idea of processing time.

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Gabe da Silveira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 10:22 AM
Subject: [PHP] Getting MySQL Query Times.


> I was looking thru the mysql functions, and there doesn't seem to be one
> that gives you the amount of time a query takes.  Is there anyway to get
> this information (since it gives it to you when you type queries
> directly into the mysql shell client)?  A script of mine is starting to
> get fairly slow (2-3 seconds for page to process) and I want to be able
> to log the query speeds so I can see if there's a database bottleneck or
> if my code is just kludgy.
>
> --
> __
> Gabe da Silveira, Web Designer
> Twin Cities Student Unions
> University of Minnesota
> http://www.coffman.umn.edu
>
> wFone: (612)624-7270
> eMail: [EMAIL PROTECTED]
> hPage: http://www.visi.com/~jiblet
>
> --
> 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] php from the command line

2001-09-25 Thread Nathan Cook

It might be a good idea to check the list archives.
http://marc.theaimsgroup.com/?l=php-general

But since I am feeling nice today (assuming you want to do it on *nix).  Then
download and un-pack the source and run:
# ./configure [... additional options here like MySQL etc...(make sure you don't
put in the webserver)]
# make
# make install

Then it will create a php executable in the /usr/local/bin/ dir.  Run that like
this:
# php -f filename.php

There is also another way to do it with magic lines I think something like this
at the top of your _executable_ file
#!/usr/local/bin/php
... Then just run your executable file like you would any other.

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: "Jimmy Bäckström" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 10:21 AM
Subject: [PHP] php from the command line


Hi!
I was wondering how you could run php from the command line, and how it works!
Just out of curiosity =)

Thanks
/Broder



-- 
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] php from the command line

2001-09-25 Thread Nathan Cook

> Simply put
> 
> /usr/local/bin/php -q to the top of your script ...
> i've written one a while ago an email roboter ... it works on command line

But you realize you have to have command line php compiled first, right?

Nathan Cook
[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] Hello

2001-01-26 Thread Nathan Cook

Isn't it the journey what makes the goal sweeter??

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message -
From: "Dallas Kropka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 26, 2001 10:24 PM
Subject: RE: [PHP] Hello


>
> What a bunch of crap hey, I know, Ill get a degree as a Computer
Science
> Major, or what the hell, Doctorate, and then all those places that
wouldn't
> hire me before because I didn't know what I was doing will pay me lots of
> money
>
> Please
>
>
>
>
>
> -Original Message-
> From: Graduate [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 27, 2001 5:26 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Hello
>
>
> UNIVERSITY DIPLOMA
>
> Obtain a prosperous future, money earning power,
> and the admiration of all.
>
> Diplomas from prestigious non-accredited universities
> based on your present knowledgeand life experience.
>
> No required tests, classes, books, or interviews.
>
> Bachelors, masters, MBA, and doctorate (PhD) diplomas
> available in the field of your choice.No one is turned
> down.
>
> Confidentiality assured. CALL NOW to receive your
> diploma within days!!!
>
> 713-866-8869
>
> Call 24 hours a day, 7 days a week, including Sundays
> and holidays.
>
> 7
>
> --
> 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] sessions with frames

2001-02-01 Thread Nathan Cook

When you define the index.php and load the frames go ahead and start the
session and then pass the variables to the frame like this:




and then on main.php if you echo $var1 it will it will print "test"

Good Luck!

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message -
From: "Chris Hayes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 1:22 PM
Subject: [PHP] sessions with frames


> hi!
> i would like to read in a txt file in the frame index page and use it
> through a session in pages.
>
> It does not work if index.php starts the session and succesfully registers
a
> var, because a php page in a frame does not recognize the var.
>
> Chris
>
>
> 
> --  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --
> 
>
>
>
> --
> 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] Dynamic Drop-down list

2001-02-08 Thread Nathan Cook

Moreover, you can put SELECTED only on the item you want to show up first.

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
- Original Message - 
From: "DanO" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 6:05 PM
Subject: RE: [PHP] Dynamic Drop-down list


> 
> the 'SELECTED' attribute will select an item in a dropdown list.
> 
> by default, with no SELECTED attribute, the first item will be shown and
> selected.
> 
> make sense?
> 
> DanO
> 
> 
> -Original Message-
> From: Todd Cary [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Dynamic Drop-down list
> 
> 
> I create a Drop-down from a DB table.  All works as expected *except*
> the default item (the one showing to the surfer) is  the last in the
> list.  Is there a way I can have the first item show?
> 
> Todd
> 
>   /* Make a drop-down */
>function make_dropdown($ddName, $itemList, $first) {
>  if (count($itemList)) {
>echo("");
>if ($first) {
>  echo('' . $first);
>};
>while (list ($key, $val) = each ($itemList)) {
>echo('' . $val);
>};
>echo("");
>  };
>};
> 
> 
> 
> --
> Todd Cary
> Ariste Software
> [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]
> 
> 


-- 
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] Web Based Project Management Tools

2001-02-08 Thread Nathan Cook

Do any of you know of a comprehensive web-based project management tool
written in php?

Thank You!
.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]


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