Re: [PHP] PHP Cron jobs

2001-01-27 Thread mick


The best way really is a cron job ... maybe you need a new ISP or a new
sysadmin.

Mick

 What would be the best way of getting the script to run on a timed basis,
 ideally the times and frequency of the script running defined in either the
 script its self, or another script.
 The Sysadmin for the server is absolutly useless, so getting him to submit a
 cron job is no good.
 any ideas??


-- 
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-27 Thread Navid

Tis the journey of long nights of sleepless hours till dawn's break, which I
don't mind really. The only thing that bothers me is that schools act like
too much of a business rather than institutes for higher education. They act
like they know the route each students want to take and they try and compete
with other schools in their community, state, or nation.

-Original Message-
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 11:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Hello


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]



-- 
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] debugger_on( ) third time!

2001-01-27 Thread Rasmus Lerdorf

 This is the third time I am posting this

 Can someone tell me the present status of debugger_on( ) function?

 Does it still exist? the documentation says it does!

The documentation is quite clear on this:

http://www.php.net/manual/en/debugger.php

-Rasmus


-- 
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-CVS] cvs: php4 /ext/ming config.m4

2001-01-27 Thread Sascha Schumann

sas Sat Jan 27 02:05:29 2001 EDT

  Modified files:  
/php4/ext/ming  config.m4 
  Log:
  This config.m4 was obviously not tested at all before being committed.
  
  s/withval/PHP_MING/
  
  
Index: php4/ext/ming/config.m4
diff -u php4/ext/ming/config.m4:1.1 php4/ext/ming/config.m4:1.2
--- php4/ext/ming/config.m4:1.1 Fri Jan 26 16:26:22 2001
+++ php4/ext/ming/config.m4 Sat Jan 27 02:05:29 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.1 2001/01/27 00:26:22 opaquedave Exp $
+dnl $Id: config.m4,v 1.2 2001/01/27 10:05:29 sas Exp $
 dnl config.m4 for extension libming
 dnl don't forget to call PHP_EXTENSION(ming)
 dnl This file is a modified version of config.m4
@@ -7,8 +7,8 @@
 PHP_ARG_WITH(ming, for ming support,
 [  --with-ming[=DIR]Include ming support])
 
-if test "$withval" != "no"; then
-  for i in /usr/lib /usr/local /usr $withval; do
+if test "$PHP_MING" != "no"; then
+  for i in /usr/lib /usr/local /usr $PHP_MING; do
 if test -r $i/libming.so; then
   MING_DIR=$i
 fi



-- 
PHP CVS 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] Transparent sid

2001-01-27 Thread Thomas Seban

Hello,

with latest windows binary package from www.php.net, transparent sid shoud
be enabled. How can i disable this feature?

Greetings from germany
Thomas Seban


-- 
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] Form data is not remembered

2001-01-27 Thread Alain Fontaine

Hi,

Actually, the reason why form data is not remembered is because I use
sessions, and when you use sessions, the browser is told not to cache
anything, which is pretty smart actually.

The easy solution is to store the user's input into a session variable to
"remember" it that way, and display the form again in case of an error with
the saved values restored into the form.

This is particularly easy if you have an object that you want to define
using your form; you can easily save the whole object as a session variable.

""Alain Fontaine"" [EMAIL PROTECTED] a écrit dans le message
news: 94m9ie$mru$[EMAIL PROTECTED]
 Hi,

 I have a page with a couple of form fields that are being POSTed to a
 processing PHP script. The page that contains these form fields is itself
a
 PHP page that uses sessions and so on.

 I have to make "server-side data validation" on the fields because of
their
 complexity. When the user hits submit and comes to the result page, if
there
 was any error I ask the user to go back to the form and correct the
 mistakes, using either his browser BACK button or by clicking on a link
that
 does a javascript:history.back().

 The problem is, when the user gets back to the form page, all of the
values
 he had typed in are gone, and he has to start all over again. Does anyone
 have an idea why this is so, and how to circumvent it without saving the
 user data into a session variable and then setting it back again once the
 user hits the form page again ? I have seen many pages where your previous
 data would stay in the form after you make a "Back" operation, but here,
it
 disappears.

 Thanks for any ideas, and have a very nice day.



 --
 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] debugger_on( ) third time!

2001-01-27 Thread [EMAIL PROTECTED]

On Sat, 27 Jan 2001, Rasmus Lerdorf wrote:

 The documentation is quite clear on this:
 
 http://www.php.net/manual/en/debugger.php
Ouch! Mea Minima Culpa,

Sorry!

The copy of docs which I have locally does not say this!

Should learn to mirror the latest docs from the web

Thanks again

Tarique

-- 
=
   B2B Application Providers
http://www.sanisoft.com
 Vortal for Nagpur http://nagpurcity.net
=


-- 
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] assigning an array to a array

2001-01-27 Thread Jimmy Bäckström

Yo!
I was wondering if it is possible to assign an array another array, I mean like this:
$arr1 = array(1, 2, 3, 4, 5);
$arr2 = array()
$arr2[0] = $arr1;

so that the element of $arr2 contains $arr1 like:
$arr2[0][0] == 1
I've tried this, but it does not work. Does anyone have any ideas how this could be 
accomplished without me not having to do like this:
$arr2[0] = $arr1[0];
$arr2[1] = $arr1[1];
etc, etc...

/Broder



[PHP] Oracle support not working

2001-01-27 Thread Jon Jacob

Apache 1.3.12
Oracle 8.1.6
Redhat 6.2
PHP 4.0.3

Well, I think I have done everything right but must have missed
something.  I installed with --with-oci8 and --with-oracle, my
LD_PRELOAD is defined properly and even has the full path to be sure,
apache has been stopped and restarted, yet when I try and run my PHP
script the very first oracle function comes back to:

Fatal error: Call to undefined function: ora_login() in
/home/jon/public_html/test.php on line 6

What could I be missing?  I am not an expert on Oracle or PHP but this
does not seem like it should be so hard.  It does not appear to be a
problem with PHP accessing Oracle because it is never getting that far. 
How do I get this right?

-- 
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] Zend IDE price plans

2001-01-27 Thread Lewis Bergman

Is anyone else dissappointed in the limited pricing options of the Zend IDE?
I would love to buy the commercial license as about half of my work would 
fall into that.

My problem is I don't want or need anything except the IDE. Are there other 
people in this same boat? 

I would like the IDE but don't want to pay for a bunch of stuff I don't 
want or need. I would think that there is some middle-goround somewhere. 
More than $50.00 for the personal license but less than the $850.00 for the 
whole big ball of wax.

I would love to hear what others are thinking on this subject.


-- 
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] Where is my contrab file located?

2001-01-27 Thread Brian V Bonini

You could just create a text file with cron commands
and then load it into cron using,
%crontab cronfile


 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 27, 2001 12:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Where is my contrab file located?


  Where is my crontrab file located?

 I dunno...

 You're really not supposed to just edit it like a normal file, cuz then
 crontab can't run it while you are editing it, I guess.

 Anyway, the man pages for sure say "Don't do that.", so don't.

 You're supposed to use:

 crontab -e

 to edit it.

 That will throw you into the editor defined in the variable
 EDITOR, I think.

 If you don't like the editor you get, you can change that EDITOR
 variable to
 be "vi" or "emacs" or "pico" or "joe" or whatever you normally use to edit
 text files.

 Now for a newbie, changing a variable is an exercise in frustation in its
 own right...

 No two shells (the program that, like, when you type "ls" it does what it
 should do) are the same for something as mind-numbingly simple as
 setting a
 darn variable.

 Easiest way to fake your way through not knowing this stuff is this:

 #1.  Cd to your home directory
 cd

 #2.  Show *all* the files in your home dir:
 ls -als

 #3.  Edit the file that has a name kinda like .bashrc or .bash_profile...

 vi .bash_profile
 *** OR 
 pico .bash_profile

 #4.  Look for something that seems to be setting a variable, like one of
 these:
 setenv PATH=blahblahblah
 PATH=blahbalbhabl
 export PATH

 #5.  Do kinda the same thing as that, only with DISPLAY and vi,
 or pico, or
 whatever.

 #6.  If you don't see anything like setting a variable, quit your
 editor and
 try another file in your home dir.

 Confession:  It took me weeks to do my first crontab, due to
 these sorts of
 things:  I'd just about wrap my poor little brain around the
 crontab format,
 and then, BAM!, I'm in some editor I can't even figure out how to use, so
 off I'd get frustrated and quit.  It was never a *need* to do the crontab
 thing, so I was trying to get it done in a 15-minute task...  Anyway, I
 think I must have stumbled through all of this 3 or 4 times
 before I finally
 could manage a block of time big enough to work it all out.



 --
 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] Why the Change in Ver 4?

2001-01-27 Thread Toby Butzon

Yea, it's true. There was a post a couple of weeks ago from Rasmus
(IIRC) that explained the reasoning: the [] form is used on strings and
arrays, so PHP has to figure out which one it's dealing with before it
can return a result. If $myAr[] and $myStr{} are seperate, the
interpretter will know instantly which one it's dealing with, and the
step can be skipped.

Also, IMO, it helps the programmer - you, too, know when you're dealing
with strings and when you're dealing with arrays, just by the indexing
operator used.

--Toby

Richard Lynch wrote:
 
 If that's even true (I dunno) maybe because strings in PHP really aren't
 arrays of characters like C...
 
 And maybe they got plans for arrays that would be too easy to confuse
 syntactically with strings or something...
 
 [shrug]
 
 --
 Visit the Zend Store at http://www.zend.com/store/
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm
 - Original Message -
 From: "Karl J. Stubsjoen" [EMAIL PROTECTED]
 Newsgroups: php.general
 Sent: Friday, January 26, 2001 10:58 AM
 Subject: [PHP] Why the Change in Ver 4?
 
Does Version 4 support either { } "squiglees" or [ ] "brackets" in
 this
code:

if($retrn{strlen($retrn)-1} == '')
-or-
if($retrn[strlen($retrn)-1] == '')
   
Yes.  This is a 4.x feature only.  The idea is that in the long run,
 []
will no longer be supported for string offsets, only {} will.
 
  What is the motivation behind this change?
 
 
  --
  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] Zend IDE price plans

2001-01-27 Thread Lewis Bergman

 lagi wrote:
 
 They can charge the big companies who pay the microsoft tax for the
 extra nannying that they need/want/expect but why give the razor free
 and then charge  $6000  per  blade? Charge a nobrainer price (for a
 limited period) and we would all jump in i predict.
 
 You mean like the Commercial Subscription ($70/month) ?? The Encoder SE
 is available with that plan. In fact, that's almost the whole idea
 behind the Commercial subscription: to allow a very low entry for
 access to the Encoder technology.
As I said before, This encoder stuff may be great for companies that sell 
software and that kind of recurring $70 cost make sense when you are 
selling a product. But, If you are an occasional freelance programmer or 
use php for just your companies sight you could probably care less about 
encoding.

I just want the debugger. Thats it. I hope they make some kind of allowance 
for this as was hinted before but that isn't what Zend told me when I 
inquired about it. They just said "No, but your opinions are considered". 
Obviously Zend can do whatever they want with their own products. I just 
think that something between illeagal and everything should be offered to 
maximize sales.

Also, Does anyone know if the IDE works on the snapshots? I didn't see 
anything to preclude it but it seemed to come packaged with a PHP version. 
I wouldn't want to give up the ability to code with the latest function to 
use an IDE. I guess I could just do without for that instance.


-- 
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] session without cookies

2001-01-27 Thread bill

I use $PHP_SESSID as a hidden variable in my forms, but when people turn off
cookies, I get

Warning: Failed to write session data (files). Please verify that the current
setting of session.save_path is correct (/tmp) in Unknown on line 0

The path looks fine and is writeable.  But no session data is saved.

I'm stumped.

kind regards,

bill

Richard Lynch wrote:

  i use the session-functions with php4 and everything works fine.
  but if a visitor turns off cookies nothing seems to work..
 
  is there a way to support a sessionid with cookies and thru the url ?

 Yes.  Compile PHP --with-trans-id (?) or just echo $PHP_SESSID (or whatever
 it is) into all your URLs and FORMs.

 --
 Visit the Zend Store at http://www.zend.com/store/
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm

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

2001-01-27 Thread Larry Jaques

At 12:17 AM 1/19/01 -0500, you wrote:
Does anyone have any suggestions on a good book for beginners. I currently
own "PHP3 Programming Browser-Based Applications" by David Medinets. I have
no regrets thus far on purchasing the book but it seems to leave a lot out
and his examples are somewhat... skewed.

Cheers

I haven't taken any classes on programming, so I was a rank amateur last July.
I've hand-coded HTML since 1995, but this is my first real language.

Julie Meloni's "PHP Essentials" got me up and running so I could complete
two sites with MySQL database connection.

Folks from this list and Leon Atkinson's "Core PHP Programming" are getting
me through the next site, which is strictly PHP/HTML and tracks 350+ variables
over 8 (4 in, 4 out) pages. After a 15 minute study between the two at a
book store, 
I preferred this book over "Professional PHP Programming" because of the many
examples cited in the book (and listings on the CD) and the author's easy
style.

I have only 700 more pages to go, too!  ;)

- 
Larry Jaques, President  1.760.941.8868
DIVERSIFY! Communications  Vista, CA  USA
1991 - Celebrating Our 10th Year in Business - 2001
Comprehensive Website Development  http://diversify.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]




Re: [PHP] Good Reads

2001-01-27 Thread Andrew Hill

Hi,

I worked as a reviewer on the recently release Wrox book, Beginning PHP
Programming.  It's has exceptionally clear examples, and covers all the
bases.  Most of the authors have great writing styles too, and the only
exception occurs towards the end of the book where the examples get very
in-depth.  If you've done half the chapters before that, you won't have any
problems.

Best regards,
Andrew


On 1/27/01 10:21 AM, "Larry Jaques" [EMAIL PROTECTED] wrote:

 At 12:17 AM 1/19/01 -0500, you wrote:
 Does anyone have any suggestions on a good book for beginners. I currently
 own "PHP3 Programming Browser-Based Applications" by David Medinets. I have
 no regrets thus far on purchasing the book but it seems to leave a lot out
 and his examples are somewhat... skewed.
 
 Cheers
 
 I haven't taken any classes on programming, so I was a rank amateur last July.
 I've hand-coded HTML since 1995, but this is my first real language.
 
 Julie Meloni's "PHP Essentials" got me up and running so I could complete
 two sites with MySQL database connection.
 
 Folks from this list and Leon Atkinson's "Core PHP Programming" are getting
 me through the next site, which is strictly PHP/HTML and tracks 350+ variables
 over 8 (4 in, 4 out) pages. After a 15 minute study between the two at a
 book store, 
 I preferred this book over "Professional PHP Programming" because of the many
 examples cited in the book (and listings on the CD) and the author's easy
 style.
 
 I have only 700 more pages to go, too!  ;)
 
 - 
 Larry Jaques, President  1.760.941.8868
 DIVERSIFY! Communications  Vista, CA  USA
 1991 - Celebrating Our 10th Year in Business - 2001
 Comprehensive Website Development  http://diversify.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]




Re: [PHP] Zend IDE price plans

2001-01-27 Thread lagi

Thats what I wanted to hear maybe the winging did it or maybe they planned
it all along ...

- Original Message -
From: "Zeev Suraski" [EMAIL PROTECTED]
To: "Lewis Bergman" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 27, 2001 3:34 PM
Subject: Re: [PHP] Zend IDE price plans


 Lewis  everyone,

 An alternative (non-subscription) plan for the IDE will be announced next
 week.  It'll be designed to make the IDE much more affordable for
everyone,
 including those who develop for commercial purposes.

 Stay tuned!

 Zeev

 At 15:22 27/1/2001, Lewis Bergman wrote:
 Is anyone else dissappointed in the limited pricing options of the Zend
IDE?
 I would love to buy the commercial license as about half of my work would
 fall into that.
 
 My problem is I don't want or need anything except the IDE. Are there
other
 people in this same boat?
 
 I would like the IDE but don't want to pay for a bunch of stuff I don't
 want or need. I would think that there is some middle-goround somewhere.
 More than $50.00 for the personal license but less than the $850.00 for
the
 whole big ball of wax.
 
 I would love to hear what others are thinking on this subject.
 
 
 --
 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]

 --
 Zeev Suraski [EMAIL PROTECTED]
 CTO   co-founder, Zend Technologies Ltd. http://www.zend.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]




RE: [PHP] Good Reads

2001-01-27 Thread Ralph Roberts

At the risk of appearing immodest (a risk I am willing to acceptg), I
think my current book project, PHP4 FOR DUMMIES (out this summer) will prove
helpful in learning PHP.

--Ralph Roberts


 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 27, 2001 11:31 AM
 To: Larry Jaques; [EMAIL PROTECTED]
 Subject: Re: [PHP] Good Reads


 Hi,

 I worked as a reviewer on the recently release Wrox book, Beginning PHP
 Programming.  It's has exceptionally clear examples, and covers all the
 bases.  Most of the authors have great writing styles too, and the only
 exception occurs towards the end of the book where the examples get very
 in-depth.  If you've done half the chapters before that, you
 won't have any
 problems.

 Best regards,
 Andrew


 On 1/27/01 10:21 AM, "Larry Jaques" [EMAIL PROTECTED] wrote:

  At 12:17 AM 1/19/01 -0500, you wrote:
  Does anyone have any suggestions on a good book for beginners.
 I currently
  own "PHP3 Programming Browser-Based Applications" by David
 Medinets. I have
  no regrets thus far on purchasing the book but it seems to
 leave a lot out
  and his examples are somewhat... skewed.
 
  Cheers
 
  I haven't taken any classes on programming, so I was a rank
 amateur last July.
  I've hand-coded HTML since 1995, but this is my first real language.
 
  Julie Meloni's "PHP Essentials" got me up and running so I
 could complete
  two sites with MySQL database connection.
 
  Folks from this list and Leon Atkinson's "Core PHP Programming"
 are getting
  me through the next site, which is strictly PHP/HTML and tracks
 350+ variables
  over 8 (4 in, 4 out) pages. After a 15 minute study between the two at a
  book store,
  I preferred this book over "Professional PHP Programming"
 because of the many
  examples cited in the book (and listings on the CD) and the
 author's easy
  style.
 
  I have only 700 more pages to go, too!  ;)
 
  -
  Larry Jaques, President  1.760.941.8868
  DIVERSIFY! Communications  Vista, CA  USA
  1991 - Celebrating Our 10th Year in Business - 2001
  Comprehensive Website Development  http://diversify.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]




Re: [PHP] Good Reads

2001-01-27 Thread Egon Schmid (@work)

Ralph Roberts wrote:
 
 At the risk of appearing immodest (a risk I am willing to acceptg), I
 think my current book project, PHP4 FOR DUMMIES (out this summer) will prove
 helpful in learning PHP.

I can't see it at Amazon.com. When you have a cover picture I will put
that book on http://php.net/books.php. Right now I update that page.

-Egon

-- 
SIX Offene Systeme GmbH   Stuttgart  -  Berlin 
Sielminger Strae 63   D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164  Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

-- 
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 Digest 27 Jan 2001 16:47:21 -0000 Issue 479

2001-01-27 Thread php-general-digest-help


php-general Digest 27 Jan 2001 16:47:21 - Issue 479

Topics (messages 36953 through 36990):

Indexing Remote Directory
36953 by: Kif

Re: Where is my contrab file located?
36954 by: Richard Lynch
36976 by: Brian V Bonini

Re: mail problems in windows2000
36955 by: Richard Lynch

Re: Strange problem
36956 by: Dustin Butler

Re: Hello
36957 by: Dallas Kropka
36958 by: Nathan Cook
36967 by: Navid

Zeros get striped off my db entrees how to stop...
36959 by: Dallas Kropka

Re: Persistent connections and transactions
36960 by: Terrence Chay

Date Comparison Question
36961 by: Martin Fernandez

Re: Zend hit (Encoder price)
36962 by: Terrence Chay

PHP Cron jobs
36963 by: James Mclean
36964 by: mick

debugger_on( ) third time!
36965 by: tarique.sanisoft.com
36968 by: Rasmus Lerdorf
36971 by: tarique.sanisoft.com

Authentication through a login form
36966 by: Peter Troll

Transparent sid
36969 by: Thomas Seban

Re: Form data is not "remembered"
36970 by: Alain Fontaine

assigning an array to a array
36972 by: Jimmy Bäckström

Oracle support not working
36973 by: Jon Jacob

Zend IDE price plans
36974 by: Lewis Bergman
36975 by: lagi
36977 by: Alain Fontaine
36978 by: Jim Jagielski
36980 by: Zeev Suraski
36981 by: Lewis Bergman
36983 by: Lewis Bergman
36988 by: lagi

Re: Why the Change in Ver 4?
36979 by: Toby Butzon

Re: I'm confused about..reffering vars $
36982 by: Toby Butzon

Re: session without cookies
36984 by: bill

Remote Directory listing
36985 by: Kif

Re: Good Reads
36986 by: Larry Jaques
36987 by: Andrew Hill
36989 by: Ralph Roberts
36990 by: Egon Schmid (.work)

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



hi,

if i want to index the filenames in a local directory its quite easy using
something like the following:

$startdir = "." ;
$the_directory = opendir($startdir) ;
  while($filename = readdir($the_directory))
{
 print("br$filename =strong ");
 print(filesize($filename));
 print("/strong");
}
closedir($the_directory);

But how can I use something like this to index a REMOTE directory?

I have tried $startdir = http://siteiwant.com/; with no joy
:(

Can someone help please
Thanks

Keith





 Where is my crontrab file located?

I dunno...

You're really not supposed to just edit it like a normal file, cuz then
crontab can't run it while you are editing it, I guess.

Anyway, the man pages for sure say "Don't do that.", so don't.

You're supposed to use:

crontab -e

to edit it.

That will throw you into the editor defined in the variable EDITOR, I think.

If you don't like the editor you get, you can change that EDITOR variable to
be "vi" or "emacs" or "pico" or "joe" or whatever you normally use to edit
text files.

Now for a newbie, changing a variable is an exercise in frustation in its
own right...

No two shells (the program that, like, when you type "ls" it does what it
should do) are the same for something as mind-numbingly simple as setting a
darn variable.

Easiest way to fake your way through not knowing this stuff is this:

#1.  Cd to your home directory
cd

#2.  Show *all* the files in your home dir:
ls -als

#3.  Edit the file that has a name kinda like .bashrc or .bash_profile...

vi .bash_profile
*** OR 
pico .bash_profile

#4.  Look for something that seems to be setting a variable, like one of
these:
setenv PATH=blahblahblah
PATH=blahbalbhabl
export PATH

#5.  Do kinda the same thing as that, only with DISPLAY and vi, or pico, or
whatever.

#6.  If you don't see anything like setting a variable, quit your editor and
try another file in your home dir.

Confession:  It took me weeks to do my first crontab, due to these sorts of
things:  I'd just about wrap my poor little brain around the crontab format,
and then, BAM!, I'm in some editor I can't even figure out how to use, so
off I'd get frustrated and quit.  It was never a *need* to do the crontab
thing, so I was trying to get it done in a 15-minute task...  Anyway, I
think I must have stumbled through all of this 3 or 4 times before I finally
could manage a block of time big enough to work it all out.






You could just create a text file with cron commands
and then load it into cron using,
%crontab cronfile


 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 27, 2001 12:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Where is my contrab file located?


  Where is my crontrab file located?

 I dunno...

 You're really not 

[PHP] php code to do ph?

2001-01-27 Thread Paul Schreiber

has anyone used PHP to talk to ph (directory) servers?

I found an old perl cgi, but i'd rather do this w/ php.

Paul

 shad 96c / 4B CS / mac activist / eda / fumbler
fan of / jewel / sophie b. / sarah slean / steve poltz / emm gryner /
   / x-files / buffy / dawson's creek / habs / bills / 49ers /
 
 t h i n k  d i f f e r e n t.

"Oh I'll be 21 and old without a clue" -- Emm Gryner, "July"


-- 
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] Transparent SID and forms (POST) ?

2001-01-27 Thread Alain Fontaine

Hi,


When I use a form that POST's information to another php page, do I have to
manually include php's session name and the session id in HIDDEN form
fields, or is this done automatically ? This applies, of course, when the
user has cookies disabled...



-- 
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] Sending Download Header

2001-01-27 Thread Natasha

Hi,

I'm making a small thing, that sends download response
to the header, so that I can build a file from some
data in the mysql, and send the data. It can be both
text and binary data, could some one help out how to
go about this ?

I know about Content-Disposition, but I don't know to
build it.

thanks.

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.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]




Re: [PHP] Zend IDE price plans

2001-01-27 Thread Zeev Suraski

At 17:37 27/1/2001, Lewis Bergman wrote:
Also, Does anyone know if the IDE works on the snapshots? I didn't see
anything to preclude it but it seemed to come packaged with a PHP version.
I wouldn't want to give up the ability to code with the latest function to
use an IDE. I guess I could just do without for that instance.

There's no guarantee that it'll work on snapshots, even though, chances are 
it will.

Zeev


--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.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]




Re: [PHP] PHP Cron jobs

2001-01-27 Thread Egan

On Sat, 27 Jan 2001 18:05:08 +1030, "James Mclean"
[EMAIL PROTECTED] wrote:

i do not have access to the cron system on my server

The Sysadmin for the server is absolutly useless, so getting him to submit a
cron job is no good.
any ideas??


My idea:

We provide user cron access with your shell account.  Apache, PHP and
MySQL hosting near the major Chicago NAP.

Send me an email and I can give you a test account.

:-)



Egan




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

2001-01-27 Thread Christian Reiniger

On Friday 26 January 2001 23:54, John Guynn wrote:
 I've always used the echo and it does work under PHP4...just tested it
 on www.teamkaos.org before I made my post.

Sure it works as well :)
But look closely at the output - with 
echo phpinfo ();
phpinfo prints out the, well, info, and *then* you echo the returnvalue 
of phpinfo () (an integer).
So the output generated by your version will have some little number at 
the end.


-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

(A)bort (R)etry (P)retend this never happened ...

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

2001-01-27 Thread Stephan Ahonen

As much as reading a book is helpful in getting you started really quick, I
was able to do most of my learning by taking a simple "web page on a
template" script, studying the syntax, and trying to improve it, keeping the
language reference nearby for the stuff I didn't know. After a couple weeks,
I had a good idea what all the functions did and only needed the reference
to look up the syntax... Now I can code most of the functions I need from my
head, and I didn't have to spend a single cent. (Sorry, book authors...)


-- 
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] A apache/php/mysql/linux security tutorial?

2001-01-27 Thread Dave Haggerty

I have read through variouos docs to learn about security issues for running
a linux/apache/mysql/php server and have learned a lot.  What I'd like,
though, is to know if there is an overall tutorial on this specific topic,
where all the info is in one place?  Hopefully aimed at the newbie?

Thanks

Dave


-- 
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] A apache/php/mysql/linux security tutorial?

2001-01-27 Thread Adrian Teasdale



 I have read through variouos docs to learn about security issues for
running
 a linux/apache/mysql/php server and have learned a lot.  What I'd like,
 though, is to know if there is an overall tutorial on this specific topic,
 where all the info is in one place?  Hopefully aimed at the newbie?

I can't actually answer your question on this, but I think a resource site
where all the info is placed together would be an excellent idea.  I know
that the Cold Fusion community has a site devoted to this.  Count me in if
you want to start developing something like this

Ade

---  i n o v i c a . c o m  
e: [EMAIL PROTECTED]
w: http://www.inovica.com

Web Apps, virtual communities and vertical portals
Hosting and dedicated servers just around the corner
Contact us for low-cost domain name registration



-- 
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] Sending Download Header

2001-01-27 Thread Bojan Gajic


header("Content-Disposition: attachment; filename=$file_name");
header("Content-Type: application/octet-stream"); //or any other MIME type

echo "Content";

HTH,
Bojan Gajic


Natasha wrote:

 Hi,

 I'm making a small thing, that sends download response
 to the header, so that I can build a file from some
 data in the mysql, and send the data. It can be both
 text and binary data, could some one help out how to
 go about this ?

 I know about Content-Disposition, but I don't know to
 build it.

 thanks.

 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great prices.
 http://auctions.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] Re: Accessing variables from other Apache modules

2001-01-27 Thread Andreas 'Count' Kotes

Hi!

I'd like to get SSL_CLIENT_S_DN from mod_ssl but don't seem to be able
to get it using getenv() or apache_note(), it doesn't even show up when
doing phpinfo() .. any hints?

this problem is a little bit more generic, I think. Besides
apache_note(), I don't see a way to get this data, but it doesn't show
up there.

   Count

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

2001-01-27 Thread Scott Gerhardt

Yes, I agree that a person can learn a lot about coding by looking at
working examples and modifying them to you specific situation.
It is also nice to have a good book for reference and a good read.



 -Original Message-
 From: Stephan Ahonen [mailto:[EMAIL PROTECTED]]
 Sent: January 27, 2001 12:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Good Reads


 As much as reading a book is helpful in getting you started
 really quick, I
 was able to do most of my learning by taking a simple "web page on a
 template" script, studying the syntax, and trying to improve it,
 keeping the
 language reference nearby for the stuff I didn't know. After a
 couple weeks,
 I had a good idea what all the functions did and only needed the reference
 to look up the syntax... Now I can code most of the functions I
 need from my
 head, and I didn't have to spend a single cent. (Sorry, book authors...)


 --
 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-CVS] cvs: php4 /ext/mssql php_mssql.c

2001-01-27 Thread Egon Schmid

eschmid Sat Jan 27 11:48:58 2001 EDT

  Modified files:  
/php4/ext/mssql php_mssql.c 
  Log:
  Fixed some protos.
  
Index: php4/ext/mssql/php_mssql.c
diff -u php4/ext/mssql/php_mssql.c:1.36 php4/ext/mssql/php_mssql.c:1.37
--- php4/ext/mssql/php_mssql.c:1.36 Thu Jan  4 09:29:50 2001
+++ php4/ext/mssql/php_mssql.c  Sat Jan 27 11:48:58 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_mssql.c,v 1.36 2001/01/04 17:29:50 fmk Exp $ */
+/* $Id: php_mssql.c,v 1.37 2001/01/27 19:48:58 eschmid Exp $ */
 
 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -796,7 +796,7 @@
 }
 
 /* {{{ proto int mssql_fetch_batch(string result_index)
-   returns the next batch of records*/
+   Returns the next batch of records */
 PHP_FUNCTION(mssql_fetch_batch) {
zval **mssql_result_index;
mssql_result *result;
@@ -836,7 +836,7 @@
 }
 /* }}} */
 
-/* {{{ proto int mssql_query(string query [, int conn_id [, int batch_size = 0]])
+/* {{{ proto int mssql_query(string query [, int conn_id [, int batch_size]])
Perform an SQL query on a MS-SQL server database */
 PHP_FUNCTION(mssql_query)
 {
@@ -969,7 +969,7 @@
 /* }}} */
 
 /* {{{ proto int mssql_rows_affected(int conn_id)
-   returns the number of records affected by the query*/
+   Returns the number of records affected by the query */
 PHP_FUNCTION(mssql_rows_affected) {
zval **mssql_link_index;
mssql_link *mssql_ptr;



-- 
PHP CVS 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] Custom Error 404

2001-01-27 Thread [ rswfire ]

I am designing a network of Internet sites on NT5 using PHP.  However, when 
I go live with the network, it will be on a Linux system using PHP.

My sites are handled somewhat uniquely.  When a visitor (or a component of 
the network) enters a URL address, the address does not really exist!  They 
are given a custom 404 error page that determines what information/site they 
are trying to view and the page is then created.

I need to know if Linux handles custom error messages the same as NT5.

Here's the scenario:

Let's say I call the following page:  
http://domain.com/site/index.html?anyvar=yeah

The page does not exist so the custom error page is called.  For now, I have 
phpinfo() in the custom error page.  On NT5, the following appears under the 
phpinfo():

SCRIPT_NAME  = name of error page
QUERY_STRING = 404;http://domain.com/site/index.html?anyvar=yeah

Is this how the query string will appear on a Linux machine?  I need to know 
in order to parse the string right...

If it will appear differently, please let me know how.  Thanks in advance!!
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] PHP Triad

2001-01-27 Thread [ rswfire ]

What is PHP Triad?  How can I learn more about it??

=
Hello guys,

I've just installed PHP and Apache on my Win2K workstation at home using
PHPTriad.

my include_path in PHP.ini has the following:

include_path= "p:\includes c:\phplib P:\other_staff" ;

Now, it does work well includ()ing any files from these directories, however
it won't let me include() a simple file unless I specify the $DOCUMENT_ROOT
for it:

Ho be more clear:

#we are in the same directory...
include('prepend.php'); #works because it is within 'c:\phplib' directory'
include("$DOCUMENT_ROOT/a/folder/a/file.php"); #works as long as file is
there...
include('a/folder/a/file.php'); #won't work at all ...

Yes, I know that the file is there - I use include() the same way since my
very beginning of programming.
What do you think I've misconfigured? Is that something with PHP on windows?
php.ini? directory specifications? apache?

Any suggestions would be very appreciated,

Thanks in advance,
Maxim Maletsky


--
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]
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] Zend IDE price plans

2001-01-27 Thread Frank Joerdens

On Sat, Jan 27, 2001 at 10:26:35AM -0500, Jim Jagielski wrote:
[ . . . ]
 You mean like the Commercial Subscription ($70/month) ?? The Encoder
 SE is available with that plan. In fact, that's almost the whole idea
 behind the Commercial subscription: to allow a very low entry for access
 to the Encoder technology.

You need to buy a whole year's subscription though. This means you don't
pay $70 a month but 12*$70=$840 a year, in monthly installments. There
is a difference between 'amount X a month' and 'amount Y a year in
monthly installments'. If X happens to be Y/12, it's still not the same.

Just my $0.02.

- Frank


-- 
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] register_shutdown_function() not working ?

2001-01-27 Thread Andrew Sitnikov

Hello php-general,

 Why this not working (php.4.0.4pl1_Linux)?
 
?
 error_reporting(E_ALL);

 $file_name = '../tmp/text.txt';

 function funct1(){
   global $file_name;
   if ($fd = fopen($file_name,'a+')){
 fwrite($fd,"Funct1\n");
 fclose($fd);
   }else{
 die("Can not open output file");
   }
 }

 function funct2(){
   global $file_name;
   if ($fd = fopen($file_name,'a+')){
 fwrite($fd,"Funct2\n");
 fclose($fd);
   }
 }

 $i = register_shutdown_function('funct2');
 funct1();
?

file have only  "Funct1" ?

Best regards,
 Andrew Sitnikov 
 e-mail : [EMAIL PROTECTED]
 GSM: (+372) 56491109



-- 
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] Custom Error 404

2001-01-27 Thread Rasmus Lerdorf

This is a web server question, not a PHP question.  You didn't say which
web server you are using on NT5, nor which one you are planning to use on
Linux.  PHP has nothing to do with how this works.

On Linux with Apache you will get the following variables when you make a
request for domain.com/blah?abc=123def=456

REDIRECT_ERROR_NOTES File does not exist: /home/rasmus/phpweb/blah
REDIRECT_QUERY_STRINGabc=123def=345
REDIRECT_REQUEST_METHOD  GET
REDIRECT_STATUS  404
REDIRECT_URL /blah
QUERY_STRING empty
REQUEST_URI  /blah?abc=123def=345

-Rasmus


On Sat, 27 Jan 2001, [ rswfire ] wrote:

 I am designing a network of Internet sites on NT5 using PHP.  However, when
 I go live with the network, it will be on a Linux system using PHP.

 My sites are handled somewhat uniquely.  When a visitor (or a component of
 the network) enters a URL address, the address does not really exist!  They
 are given a custom 404 error page that determines what information/site they
 are trying to view and the page is then created.

 I need to know if Linux handles custom error messages the same as NT5.

 Here's the scenario:

 Let's say I call the following page:
 http://domain.com/site/index.html?anyvar=yeah

 The page does not exist so the custom error page is called.  For now, I have
 phpinfo() in the custom error page.  On NT5, the following appears under the
 phpinfo():

 SCRIPT_NAME  = name of error page
 QUERY_STRING = 404;http://domain.com/site/index.html?anyvar=yeah

 Is this how the query string will appear on a Linux machine?  I need to know
 in order to parse the string right...

 If it will appear differently, please let me know how.  Thanks in advance!!
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] Custom Error 404

2001-01-27 Thread [ rswfire ]

Thank you, Rasmus.

I had a feeling I needed to provide more information.  Right now, I am 
running NT 5, with the CGI version of PHP 4, and IIS 5 as the web server.

As for the Linux machine, it will be running Apache web server.  So I'm 
assuming that the information below is what I need.  It looks like all I 
need is the REDIRECT_QUERY_STRING on Apache.  So I will only need to parse 
the NT string while I am developing the network.  Thanks again!


From: Rasmus Lerdorf [EMAIL PROTECTED]
To: "[ rswfire ]" [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Custom Error 404
Date: Sat, 27 Jan 2001 12:17:01 -0800 (PST)

This is a web server question, not a PHP question.  You didn't say which
web server you are using on NT5, nor which one you are planning to use on
Linux.  PHP has nothing to do with how this works.

On Linux with Apache you will get the following variables when you make a
request for domain.com/blah?abc=123def=456

REDIRECT_ERROR_NOTES File does not exist: /home/rasmus/phpweb/blah
REDIRECT_QUERY_STRINGabc=123def=345
REDIRECT_REQUEST_METHOD  GET
REDIRECT_STATUS  404
REDIRECT_URL /blah
QUERY_STRING empty
REQUEST_URI  /blah?abc=123def=345

-Rasmus


On Sat, 27 Jan 2001, [ rswfire ] wrote:

  I am designing a network of Internet sites on NT5 using PHP.  However, 
when
  I go live with the network, it will be on a Linux system using PHP.
 
  My sites are handled somewhat uniquely.  When a visitor (or a component 
of
  the network) enters a URL address, the address does not really exist!  
They
  are given a custom 404 error page that determines what information/site 
they
  are trying to view and the page is then created.
 
  I need to know if Linux handles custom error messages the same as NT5.
 
  Here's the scenario:
 
  Let's say I call the following page:
  http://domain.com/site/index.html?anyvar=yeah
 
  The page does not exist so the custom error page is called.  For now, I 
have
  phpinfo() in the custom error page.  On NT5, the following appears under 
the
  phpinfo():
 
  SCRIPT_NAME  = name of error page
  QUERY_STRING = 404;http://domain.com/site/index.html?anyvar=yeah
 
  Is this how the query string will appear on a Linux machine?  I need to 
know
  in order to parse the string right...
 
  If it will appear differently, please let me know how.  Thanks in 
advance!!
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.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]
 


_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] Custom Error 404

2001-01-27 Thread Rasmus Lerdorf

 As for the Linux machine, it will be running Apache web server.  So I'm
 assuming that the information below is what I need.  It looks like all I
 need is the REDIRECT_QUERY_STRING on Apache.  So I will only need to parse
 the NT string while I am developing the network.  Thanks again!

The parse_str() function will come in handy here.  See php.net/parse_str

-Rasmus


-- 
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] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]

This is a little off topic, so I apologize, but I was hoping one of the 
computer gurus here could help me.

When I go live with my network, I will be using sub-domains.  Such as:  
http://subdomain.domain.com/

In order to test this on my NT5/IIS5 system, I need to be able to use these 
subdomains.  I am programming locally, so there is no .com after my name.  
It is my computer name:  http://si-exec-cio/

Does anyone know how I can configure IIS5 to include 
http://subdomain.si-exec-cio/ ?

I am using Win 2000 Professional.

Again, I apologize for sending an off-topic message.  My network is 
primarily controlled by PHP so I hope you can understand.  =)
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] register_shutdown_function() not working ?

2001-01-27 Thread Andrew Sitnikov

Hello Andrew,

Sorry, but i forget what I have Zend Debuger :)

Problem in file path, when i use absolute path
/home/user/tmp/tmp/text.txt all works.

It appears, that in shutdown_function getcwd () == '/',
but in script getcwd () == '/home/user/public_html/'

Only not clearly why.


AS Hello php-general,

AS  Why this not working (php.4.0.4pl1_Linux)?
 
AS ?
AS  error_reporting(E_ALL);

AS  $file_name = '../tmp/text.txt';

AS  function funct1(){
ASglobal $file_name;
ASif ($fd = fopen($file_name,'a+')){
AS  fwrite($fd,"Funct1\n");
AS  fclose($fd);
AS}else{
AS  die("Can not open output file");
AS}
AS  }

AS  function funct2(){
ASglobal $file_name;
ASif ($fd = fopen($file_name,'a+')){
AS  fwrite($fd,"Funct2\n");
AS  fclose($fd);
AS}
AS  }

AS  $i = register_shutdown_function('funct2');
AS  funct1();
?

AS file have only  "Funct1" ?

AS Best regards,
AS  Andrew Sitnikov 
AS  e-mail : [EMAIL PROTECTED]
AS  GSM: (+372) 56491109






Best regards,
 Andrew Sitnikov 
 e-mail : [EMAIL PROTECTED]
 GSM: (+372) 56491109



-- 
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-CVS] cvs: php4 / configure.in

2001-01-27 Thread John Donagher

jdonagher   Sat Jan 27 13:05:41 2001 EDT

  Modified files:  
/php4   configure.in 
  Log:
  
  PR:
  Submitted by:
  Reviewed by:
  Obtained from:
  Add configure warning message when compiling --with-pfpro
  
  
Index: php4/configure.in
diff -u php4/configure.in:1.214 php4/configure.in:1.215
--- php4/configure.in:1.214 Sun Jan 21 09:26:43 2001
+++ php4/configure.in   Sat Jan 27 13:05:40 2001
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.214 2001/01/21 17:26:43 rasmus Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.215 2001/01/27 21:05:40 jdonagher Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -920,6 +920,29 @@
 | If you are unable to fix this, send the file debug.log to the  |
 | [EMAIL PROTECTED] mailing list and include appropiate  |
 | information about your setup.  |
+X
+  fi
+
+  if test "$PHP_PFPRO" != "no" ; then
+cat X
+++
+|*** WARNING *** |
+||
+| The Verisign/Signio Payflow Pro extension may cause an SSL-enabled |
+| webserver to fail to start or behave erratically during operation. |
+| The extension itself is complete and fully operational, but|
+| Verisign provides a closed SDK which implements its own SSL, which |
+| may or may not cause conflicts with the SSL implementation in your |
+| own webserver. |
+||
+| Similarly, linking the CURL extension against CURL libraries with  |
+| SSL enabled can result in the same problem.|
+||
+| Verisign has been contacted about this problem yet refuses to  |
+| acknowledge it even with a response, let alone a more compliant|
+| SDK. If you are a Verisign customer and wish to use this extension |
+| in the aforementioned configuration, you are urged to contact them |
+| and press them for a better SDK.   |
 X
   fi
 



-- 
PHP CVS 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] NT5 Sub Domains

2001-01-27 Thread Rasmus Lerdorf

Why don't you just install the Windows version of Apache?  That way your
development environment will be much closer to your production
environment.

-Rasmus

On Sat, 27 Jan 2001, [ rswfire ] wrote:

 This is a little off topic, so I apologize, but I was hoping one of the
 computer gurus here could help me.

 When I go live with my network, I will be using sub-domains.  Such as:
 http://subdomain.domain.com/

 In order to test this on my NT5/IIS5 system, I need to be able to use these
 subdomains.  I am programming locally, so there is no .com after my name.
 It is my computer name:  http://si-exec-cio/

 Does anyone know how I can configure IIS5 to include
 http://subdomain.si-exec-cio/ ?

 I am using Win 2000 Professional.

 Again, I apologize for sending an off-topic message.  My network is
 primarily controlled by PHP so I hope you can understand.  =)
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.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] verpickteEngine - alphaRelease

2001-01-27 Thread Christian Kleinhuis

(PHP3+ mySQL )
verpickte Engine,
( *warning current development language is - german* )

a content and user management system, including many feature,
user accounting with image upload, outlook of html pages
100% configurable through template system, wich uses
(currently) mySQL - SQL Results, whole directory and
article management accessible through accounting system,
yet included are :

Message Module - To let users write messages to eachother
+ Schnick Schnack Schnuck Module  - To let users play a game of
schnick-schnack-schnuck ...
vote Module - Manage online polls within the engine ...

That's it for now, to get more information visit one of the following pages
...
( mostly german language ... )

www.verpickteWG.de - Main reason for developing the engine...
www.fractalmovies.com  - another reason ...
www.digitalgott.de - yet another reason ...
www.kleinhuisbehaviours.com - another reason, but the place where you will
find more informations about the engine ...


c.kleinhuis
270101


--
verpickteWG.de - verpickt
digitalgott.de - künstlerisch
fractalmovies.com - göttlich
kleinhuisbehaviours.com - teschnisch



-- 
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] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]

I've never tried that before.  I'd be scared of doing something wrong.  Can 
I use Apache locally as an Intranet?  Can I run both IIS and Apache?  I 
wouldn't know where to begin...  =)

I can hear the answer already...  apache.com



From: Rasmus Lerdorf [EMAIL PROTECTED]
To: "[ rswfire ]" [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] NT5 Sub Domains
Date: Sat, 27 Jan 2001 13:31:34 -0800 (PST)

Why don't you just install the Windows version of Apache?  That way your
development environment will be much closer to your production
environment.

-Rasmus

On Sat, 27 Jan 2001, [ rswfire ] wrote:

  This is a little off topic, so I apologize, but I was hoping one of the
  computer gurus here could help me.
 
  When I go live with my network, I will be using sub-domains.  Such as:
  http://subdomain.domain.com/
 
  In order to test this on my NT5/IIS5 system, I need to be able to use 
these
  subdomains.  I am programming locally, so there is no .com after my 
name.
  It is my computer name:  http://si-exec-cio/
 
  Does anyone know how I can configure IIS5 to include
  http://subdomain.si-exec-cio/ ?
 
  I am using Win 2000 Professional.
 
  Again, I apologize for sending an off-topic message.  My network is
  primarily controlled by PHP so I hope you can understand.  =)
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.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]
 


_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Apache on NT5

2001-01-27 Thread [ rswfire ]

Rasmus,

I think that was a really good idea to install Apache on my system.  Thanks 
for the heads up.  I am downloading apache_1_3_14_win32_r2.exe.  Is that all 
I need?

This is scary new territory for me...  I hope this is the right file.
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Win32 - Mail SMTP ???

2001-01-27 Thread Jon Shoberg

I have PHP-4.0.1 running on my Win200 Pro devel box though the IIS DLL and
SMTP services running. I have SMTP enabled on this machine and have outlook
express configured to send mail though the local SMTP service.  I simply
told O.Express the outgoing mail server was my machine (just told it the
machine name).

Now to the PHP stuff 

I can't seem to get the mail function to work. A server error gets returned.
I am trying to run a simple script though the PHP.EXE executable. I've tried
editing the php.ini with the SMTP being localhost, my machine's name, and IP
address ... I keep getting the same error. both PHP.EXE and PHP.INI reside
in c:\winnt\system32 so there should not be a path problem 

any thoughts ??

thanks

-j


-- 
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] Thumbnails and PHP

2001-01-27 Thread Todd Cary

What is the best way to display thumbnail photos and their titles with
HTML/PHP?  Table?

Todd



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




RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp

Ah...yes you can. You're probably scared of apache because it doesn't have a
GUI! But don't fret I was in the same boat not too long ago!

1) Download the lastest version of apache (www.apache.org you were close...)
2) Install apache (it does have an installation program)
3) Configuring apache
To configure apache you need to edit the httpd.conf file (I suggest you
create a backfirst!) it's pretty self explanatory, there's lots of
documentation for it. You can run both IIS and Apache as long as they're not
running on the same ports (eg :80, so either disable the web server for IIS
on port 80 (or change it to something like 64892) or make apache run on some
other port (you set this in httpd.conf under the Port option)) So after
you've setup your httpd.conf file, you'll start apache from the command line
(you may scream now if you'd like...this is where MS is...MS...) you run the
apache deamon with a command like C:\path\to\apache.exe start
C:\path\to\httpd.conf It's something similar to that, the command prompt
window will stay open and you won't be able to do anything in that window,
so to shut down apache, open a new window and do the C:\path\to\apache.exe
stop (I haven't done this on NT in a while so those commands are probably
wrong but it should be the right direction)
4) To setup subdomains (this is the good part)
If you want to actually setup domain.com to develop on locally and the site
isn't "online" you can add an entry to your hosts file (somewhere in
C:\WINNT\) and entry like "127.0.0.1 domain.com" (or you could create a
bogus TLD like domain.dev) and that will redirect all requests for
domain.xxx to your local apache server (assuming you've set Bind to * in the
httpd.conf file to listen to all IPs) For the actual subdomains you'd set
these in the httpd.conf file under VirtualDirectories (you can either do
Name based subdomains (one IP bound to NIC  multiple domains) or IP based
subdomains (multiple IPs bound to NIC  multiple domain names) Check the
apache.org documentation on how to set them up. It's not too terribly
complex...

NameVirtualHost 127.0.0.1
VirtualHost 127.0.0.1
ServerAdmin [EMAIL PROTECTED]
ServerName subdomain.domain.com
DocumentRoot C:\path\to\your\website
/VirtualHost

Just be careful though...once you start using apache and such you'll be on
linux in no time...I have three dev servers now  two live servers...NT is
my desktop only because I use homesite to dev with and a few other winx
progs. Also if anyof you out there know a good colorcoding *nix developer
app (for PHP of couse) please let me know!

If you get stuck on anything, just holler... (i'm usually on EFNet in PHP as
codeboy)

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]


-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 1:42 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] NT5 Sub Domains


I've never tried that before.  I'd be scared of doing something wrong.  Can
I use Apache locally as an Intranet?  Can I run both IIS and Apache?  I
wouldn't know where to begin...  =)

I can hear the answer already...  apache.com



From: Rasmus Lerdorf [EMAIL PROTECTED]
To: "[ rswfire ]" [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] NT5 Sub Domains
Date: Sat, 27 Jan 2001 13:31:34 -0800 (PST)

Why don't you just install the Windows version of Apache?  That way your
development environment will be much closer to your production
environment.

-Rasmus

On Sat, 27 Jan 2001, [ rswfire ] wrote:

  This is a little off topic, so I apologize, but I was hoping one of the
  computer gurus here could help me.
 
  When I go live with my network, I will be using sub-domains.  Such as:
  http://subdomain.domain.com/
 
  In order to test this on my NT5/IIS5 system, I need to be able to use
these
  subdomains.  I am programming locally, so there is no .com after my
name.
  It is my computer name:  http://si-exec-cio/
 
  Does anyone know how I can configure IIS5 to include
  http://subdomain.si-exec-cio/ ?
 
  I am using Win 2000 Professional.
 
  Again, I apologize for sending an off-topic message.  My network is
  primarily controlled by PHP so I hope you can understand.  =)
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.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]
 


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact 

RE: [PHP] [Newbie] - @

2001-01-27 Thread Jonathan Sharp

It doesn't print out any errors or warnings generated by the function.

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED] 

-Original Message-
From: Steve Haemelinck [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] [Newbie] - @ 


What doe the @ mean in front of a functions?


-- 
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] NT5 Sub Domains

2001-01-27 Thread jeremy brand

apache.org.  :)

 I can hear the answer already...  apache.com
 
 
 
 From: Rasmus Lerdorf [EMAIL PROTECTED]
 To: "[ rswfire ]" [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: [PHP] NT5 Sub Domains
 Date: Sat, 27 Jan 2001 13:31:34 -0800 (PST)
 
 Why don't you just install the Windows version of Apache?  That way your
 development environment will be much closer to your production
 environment.
 
 -Rasmus
 
 On Sat, 27 Jan 2001, [ rswfire ] wrote:
 
   This is a little off topic, so I apologize, but I was hoping one of the
   computer gurus here could help me.
  
   When I go live with my network, I will be using sub-domains.  Such as:
   http://subdomain.domain.com/
  
   In order to test this on my NT5/IIS5 system, I need to be able to use 
 these
   subdomains.  I am programming locally, so there is no .com after my 
 name.
   It is my computer name:  http://si-exec-cio/
  
   Does anyone know how I can configure IIS5 to include
   http://subdomain.si-exec-cio/ ?
  
   I am using Win 2000 Professional.
  
   Again, I apologize for sending an off-topic message.  My network is
   primarily controlled by PHP so I hope you can understand.  =)
   _
   Get your FREE download of MSN Explorer at http://explorer.msn.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]
  
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] PHP 4.0.3 on Debian?

2001-01-27 Thread Brian Clark


Hello Thomas, 

(TW == "Thomas Wentzel") [EMAIL PROTECTED] marked:

TW I use the following configure string on both machines - only
TW differences is the paths to pgsql and apxs

snip

TW On my RedHat (which has PHP 4.0.4) I get a nice little
TW stocks.so...
TW On my Debian (which has PHP 4.0.3) I get a not so nice little
TW stocks.a

I'm not familiar with the stocks example, but..

snip

TW Is anybody able to compile .so files on Debian??

On some Debian systems you have to edit the apxs script if you didn't
install Apache via the Debian package system.

(IOW, If your server's httpd executable is called 'apache' instead of
'httpd' then you know it's from the Debian packages system rather than
an install from source tarball. By now you probably know that.)

In order to build any DSO's on a Debian system where one did not
install Apache from their package system (Ie. didn't use apt-get),
most of the time you have to edit the apxs script and correct:

my $CFG_CFLAGS_SHLIB  = q(-fpic -DSHARED_MODULE);
my $CFG_LD_SHLIB  = q(gcc);
my $CFG_LDFLAGS_SHLIB = q(-shared);

Maybe that will help your situation.

-Brian



-- 
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] Syncronizing of mysql-db

2001-01-27 Thread Brian Clark


Hello markus,

(mgn == "[EMAIL PROTECTED]") [EMAIL PROTECTED] drafted:

mgn does annybody know a tool or script which can help me to
mgn syncronize two mysql databases ? like at my isp is a database for
mgn the web, at home my local development server.. changes i do at
mgn home or online should be "syncronized" by a php script every xx
mgn houres called by cron

This may not be the simplest route, but you can use rsync to do
exactly that. http://rsync.samba.org/rsync/README.html

Another option might be to use an expect script. If you have expect
installed, check out the examples directory. There should be a script
in there called rftp. May work with a little hacking.

There may be more simple solutions, I don't know.

mgn markus

-Brian



-- 
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] Oracle support not working

2001-01-27 Thread Brian Clark


Hello Jon, 

(JJ == "Jon Jacob") [EMAIL PROTECTED] divulged:

(I'm no Oracle expert)

JJ Well, I think I have done everything right but must have missed
JJ something.  I installed with --with-oci8 and --with-oracle, my

Sometimes it doesn't pick it up correctly if you don't use the path
when referring to --with-oracle. Try

--with-oracle=/path/to/BASE/directory

-Brian



-- 
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] Thumbnails and PHP

2001-01-27 Thread Brian Clark


Hello Todd, 

(TC == "Todd Cary") [EMAIL PROTECTED] coined:

TC What is the best way to display thumbnail photos and their titles
TC with HTML/PHP? Table?

Sure.. tables are good. Or you can display them in one long vertical
line.. or..

Explain what you mean. If you mean just what the sentence above says,
well, it's just a matter of preference. Do what you think is best.

TC Todd

-Brian



-- 
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] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]


Jonathon,

Thanks so much for your help!!  Okay, I have downloaded and installed 
Apache.  And to my utter surprise...it's working!!  You're right, the fact 
that it does not have a GUI is the reason I was scared of it.  =)

I set the Apache Port option to 8080.  Is that good?  I stopped the IIS 
service.  And now I can't get it to restart, not sure why...

I set Bind to *

Should I set the ServerName directive to domain.dev?  Or does this have to 
be done in the HOSTS file you mentioned?


This is really sweet.  =)




From: "Jonathan Sharp" [EMAIL PROTECTED]
To: "[ rswfire ]" [EMAIL PROTECTED], [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: [PHP] NT5 Sub Domains
Date: Sat, 27 Jan 2001 14:14:59 -0800

Ah...yes you can. You're probably scared of apache because it doesn't have 
a
GUI! But don't fret I was in the same boat not too long ago!

1) Download the lastest version of apache (www.apache.org you were 
close...)
2) Install apache (it does have an installation program)
3) Configuring apache
To configure apache you need to edit the httpd.conf file (I suggest you
create a backfirst!) it's pretty self explanatory, there's lots of
documentation for it. You can run both IIS and Apache as long as they're 
not
running on the same ports (eg :80, so either disable the web server for IIS
on port 80 (or change it to something like 64892) or make apache run on 
some
other port (you set this in httpd.conf under the Port option)) So after
you've setup your httpd.conf file, you'll start apache from the command 
line
(you may scream now if you'd like...this is where MS is...MS...) you run 
the
apache deamon with a command like C:\path\to\apache.exe start
C:\path\to\httpd.conf It's something similar to that, the command prompt
window will stay open and you won't be able to do anything in that window,
so to shut down apache, open a new window and do the C:\path\to\apache.exe
stop (I haven't done this on NT in a while so those commands are probably
wrong but it should be the right direction)

4) To setup subdomains (this is the good part)
If you want to actually setup domain.com to develop on locally and the site
isn't "online" you can add an entry to your hosts file (somewhere in
C:\WINNT\) and entry like "127.0.0.1 domain.com" (or you could create a
bogus TLD like domain.dev) and that will redirect all requests for
domain.xxx to your local apache server (assuming you've set Bind to * in 
the
httpd.conf file to listen to all IPs) For the actual subdomains you'd set
these in the httpd.conf file under VirtualDirectories (you can either do
Name based subdomains (one IP bound to NIC  multiple domains) or IP based
subdomains (multiple IPs bound to NIC  multiple domain names) Check the
apache.org documentation on how to set them up. It's not too terribly
complex...

NameVirtualHost 127.0.0.1
VirtualHost 127.0.0.1
 ServerAdmin [EMAIL PROTECTED]
 ServerName subdomain.domain.com
 DocumentRoot C:\path\to\your\website
/VirtualHost

Just be careful though...once you start using apache and such you'll be on
linux in no time...I have three dev servers now  two live servers...NT is
my desktop only because I use homesite to dev with and a few other winx
progs. Also if anyof you out there know a good colorcoding *nix developer
app (for PHP of couse) please let me know!

If you get stuck on anything, just holler... (i'm usually on EFNet in PHP 
as
codeboy)

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]


-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 1:42 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] NT5 Sub Domains


I've never tried that before.  I'd be scared of doing something wrong.  Can
I use Apache locally as an Intranet?  Can I run both IIS and Apache?  I
wouldn't know where to begin...  =)

I can hear the answer already...  apache.com



 From: Rasmus Lerdorf [EMAIL PROTECTED]
 To: "[ rswfire ]" [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: [PHP] NT5 Sub Domains
 Date: Sat, 27 Jan 2001 13:31:34 -0800 (PST)
 
 Why don't you just install the Windows version of Apache?  That way your
 development environment will be much closer to your production
 environment.
 
 -Rasmus
 
 On Sat, 27 Jan 2001, [ rswfire ] wrote:
 
   This is a little off topic, so I apologize, but I was hoping one of 
the
   computer gurus here could help me.
  
   When I go live with my network, I will be using sub-domains.  Such as:
   http://subdomain.domain.com/
  
   In order to test this on my NT5/IIS5 system, I need to be able to use
 these
   subdomains.  I am programming locally, so there is no .com after my
 name.
   It is my computer name:  http://si-exec-cio/
  
   Does anyone know how I can configure IIS5 to include
   http://subdomain.si-exec-cio/ ?
  
   I am using Win 2000 Professional.
  
   Again, I 

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp

 I set the Apache Port option to 8080.  Is that good?  I stopped the IIS
 service.  And now I can't get it to restart, not sure why...
Hm, well 8080 is fine, I'm not sure why IIS won't start...but MS probably is
freaking out that opensource is actually taking over it's domain (no pun
intended) =)

 I set Bind to *
That's good, whatever IPs that are config'd on your box apache will bind to
on 8080

 Should I set the ServerName directive to domain.dev?  Or does this have to
 be done in the HOSTS file you mentioned?
Yes you can set ServerName to domain.dev or whatever.foo the reason that
you'll add the entry to your HOSTS file is because most likely you're not
running a DNS server to authentically map that domain to your IP. Windows
looks at HOSTS before it goes to a DNS so that way you can map that domain
to your local host without having to mess with dns or anything and simulate
a production environment (that HOSTS file is quite intersting, try the entry
"216.136.171.205 microsoft.com" and then visit microsoft.com, you'll be
surprised... =) (NOTE TO VIRUS CREATORS: That would be an interesting
hack...to add an entry to the hosts file that does that mapping...oh...that
would get the big BG mad...)

After you've been doing this for a little while, you'll have to get an old
box (like P200 or something) to stick linux on and have that be your dev
server...your EYES will be opened...trust me, the MS empire won't always be
as vast as it is, TUX is alive and moving!)

Cheers,
-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]

-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 2:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] NT5 Sub Domains



Jonathon,

Thanks so much for your help!!  Okay, I have downloaded and installed
Apache.  And to my utter surprise...it's working!!  You're right, the fact
that it does not have a GUI is the reason I was scared of it.  =)

I set the Apache Port option to 8080.  Is that good?  I stopped the IIS
service.  And now I can't get it to restart, not sure why...

I set Bind to *

Should I set the ServerName directive to domain.dev?  Or does this have to
be done in the HOSTS file you mentioned?


This is really sweet.  =)




From: "Jonathan Sharp" [EMAIL PROTECTED]
To: "[ rswfire ]" [EMAIL PROTECTED], [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: [PHP] NT5 Sub Domains
Date: Sat, 27 Jan 2001 14:14:59 -0800

Ah...yes you can. You're probably scared of apache because it doesn't have
a
GUI! But don't fret I was in the same boat not too long ago!

1) Download the lastest version of apache (www.apache.org you were
close...)
2) Install apache (it does have an installation program)
3) Configuring apache
To configure apache you need to edit the httpd.conf file (I suggest you
create a backfirst!) it's pretty self explanatory, there's lots of
documentation for it. You can run both IIS and Apache as long as they're
not
running on the same ports (eg :80, so either disable the web server for IIS
on port 80 (or change it to something like 64892) or make apache run on
some
other port (you set this in httpd.conf under the Port option)) So after
you've setup your httpd.conf file, you'll start apache from the command
line
(you may scream now if you'd like...this is where MS is...MS...) you run
the
apache deamon with a command like C:\path\to\apache.exe start
C:\path\to\httpd.conf It's something similar to that, the command prompt
window will stay open and you won't be able to do anything in that window,
so to shut down apache, open a new window and do the C:\path\to\apache.exe
stop (I haven't done this on NT in a while so those commands are probably
wrong but it should be the right direction)

4) To setup subdomains (this is the good part)
If you want to actually setup domain.com to develop on locally and the site
isn't "online" you can add an entry to your hosts file (somewhere in
C:\WINNT\) and entry like "127.0.0.1 domain.com" (or you could create a
bogus TLD like domain.dev) and that will redirect all requests for
domain.xxx to your local apache server (assuming you've set Bind to * in
the
httpd.conf file to listen to all IPs) For the actual subdomains you'd set
these in the httpd.conf file under VirtualDirectories (you can either do
Name based subdomains (one IP bound to NIC  multiple domains) or IP based
subdomains (multiple IPs bound to NIC  multiple domain names) Check the
apache.org documentation on how to set them up. It's not too terribly
complex...

NameVirtualHost 127.0.0.1
VirtualHost 127.0.0.1
 ServerAdmin [EMAIL PROTECTED]
 ServerName subdomain.domain.com
 DocumentRoot C:\path\to\your\website
/VirtualHost

Just be careful though...once you start using apache and such you'll be on
linux in no time...I have three dev servers now  two live servers...NT is
my 

[PHP] Apache on NT 5 =)

2001-01-27 Thread [ rswfire ]

I'm getting a Forbidden error when I try to access my site using Apache.  
Does anyone know what I did wrong?  This is the contents of my httpd.conf 
file:

ServerType standalone

ServerRoot "C:/Program Files/Apache"

PidFile logs/httpd.pid

ScoreBoardFile logs/apache_runtime_status

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

MaxRequestsPerChild 0

ThreadsPerChild 50

BindAddress *

Port 8080

ServerAdmin [EMAIL PROTECTED]

ServerName swifte.dev
DocumentRoot "C:/Inetpub"

Directory /
Options FollowSymLinks
AllowOverride None
/Directory

Directory "C:/Inetpub"

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny
Allow from all
/Directory

IfModule mod_userdir.c
UserDir "C:/Program Files/Apache/users/"
/IfModule

IfModule mod_dir.c
DirectoryIndex index.html
/IfModule

AccessFileName .htaccess

Files ~ "^\.ht"
Order allow,deny
Deny from all
/Files

UseCanonicalName On

IfModule mod_mime.c
TypesConfig conf/mime.types
/IfModule

DefaultType text/plain

IfModule mod_mime_magic.c
MIMEMagicFile conf/magic
/IfModule

HostnameLookups Off

ErrorLog logs/error.log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" 
combined
LogFormat "%h %l %u %t \"%r\" %s %b" common
LogFormat "%{Referer}i - %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access.log common

ServerSignature On

NameVirtualHost *

_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp

Brian! You're not helping here, i'm in the middle of a conversion! I'm
trying to help this guy find his destiny! Com'on!

rswfire: You want to get used to the command line, trust me!

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]


-Original Message-
From: Brian Clark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 2:52 PM
To: PHP is not a drug .
Subject: Re: [PHP] NT5 Sub Domains



Hello rswfire,

(r == "[ rswfire ]") [EMAIL PROTECTED] stated:

r You're right, the fact that it does not have a GUI is the reason I
r was scared of it. =)

snip

(you may scream now if you'd like...this is where MS is...MS...) you
run the apache deamon with a command like C:\path\to\apache.exe
start

Good lord! That was a lot of trimming for quoted material. :)

Anyway, you can also use Apache Manager from the Windows Tray to stop
and start Apache (without any annoying MS-DOS windows).

http://brian.threadnet.com

It's written by Brian Moon. The same guy who authored Phorum.

-Brian



--
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] NT5 Sub Domains

2001-01-27 Thread Brian Clark


Hello Jonathan, 

(JS == "Jonathan Sharp") [EMAIL PROTECTED] canalized:

JS Brian! You're not helping here, i'm in the middle of a conversion!
JS I'm trying to help this guy find his destiny! Com'on!

:)

JS rswfire: You want to get used to the command line, trust me!

I use it every day. BSDi, RedHat, Debian, OpenBSD, and sometimes from
the Run box in Windows when I actually *need* to use command.com.

But I got tired, lng ago, of fo0king around in clumsy MS-DOS.

Unless we're talking about a *real* command line here, my suggestion
still stands.. ;)

-Brian



-- 
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] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]

Thank you Brian and Jonathon.  You are both very helpful!!  I think I like 
the idea of a tray icon -- rather than an annoying DOS window I cannot get 
rid of from my task bar!  =)

No offense, Jonathon...  I agree, I need to work on my command line 
skills...

Should I install Apache as a service on NT??  Then it starts automatically, 
right?
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Amazing!!

2001-01-27 Thread [ rswfire ]

I restarted the Apache server and the Forbidden error is gone.  But it does 
not recognize PHP.  What do I need to do to make that work guys?
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] PHP 4.0.3 on Debian?

2001-01-27 Thread John Donagher

On Sat, 27 Jan 2001, Brian Clark wrote:

 On some Debian systems you have to edit the apxs script if you didn't
 install Apache via the Debian package system.
 

FYI, not the case as of the current woody. Apache 1.3.14 configured with:
./configure --enable-module=so

built a proper apxs which PHP had no problem using.

John


-- 
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 4.0.3 on Debian?

2001-01-27 Thread Brian Clark


Hello John, 

(JD == "John Donagher") [EMAIL PROTECTED] alleged:

JD FYI, not the case as of the current woody. Apache 1.3.14
JD configured with: ./configure --enable-module=so

JD built a proper apxs which PHP had no problem using.

OoOoo, my fault. :) I've been flopping in potatoes for a while now..

Then back to the problem, for which I have no answer. :(

JD John

-Brian
--
Everything should be built top-down, except the first time.



-- 
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] $B#P#CA`:n$K:$$C$?$i(B

2001-01-27 Thread Kaz Morris

--
$B-j#J#M#P$N!X#E%a!<%k#D#M!Y$r$*FO$1CW$7$^$9!#(B
--

-
$B!y(B.$B%&%#%s%Q%o!http://www.tokioinfo.co.jp/winpwr/index.htm
$B%Q%=%3%sA`:n$K$D$^$E$$$?$i(B
$BGA$$$F$_$F$/$@$5$$(B

http://www.tokioinfo.co.jp/winpwr/index.htm
-

--
$B$3$N%a!<%k$O>pJsDs6!4k6H$h$j(B
$B#J#M#P$+$iG[?.$7$F$*$j$^$9!#(B
$B-j%8%'%$%(%`%T!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] functions????

2001-01-27 Thread Nick Winfield

On Sun, 28 Jan 2001, Kumanan wrote:

 Hi,
 
 i got problem with functions 
 
 
 when i call the files with url//filename.php?action=pal
 
 all the time it says
 Fatal error: Call to unsupported or undefined function pal_edit() in
 /cfiles/memberlink.php on line 7
 

Declare your functions before the switch() statement - your switch
statement is being executed before your functions even get a chance to be
defined. :)

e.g.

function sayBlah() {
  echo "Blah!";
}

switch($task) {
  case do_stuff:
sayBlah();
break;
  case other_stuff:
# whatever
break;
  default:
# whatever
break;
}

Cheers,

Nicky W..
-[ [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] functions????

2001-01-27 Thread Joe Sheble (Wizaerd)

your function declarations must appear before you actually call them.

 code
 ...
 ?
 function pf() { echo "profile"; }
 
 function pal_edit() { echo "pal";  }

 switch ($action) {
 case "pf":
 profile();
 break;
 
 case "pal":
pal_edit();
 break;
 
 }
 
 
 
 ?

Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics, 
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=

 -Original Message-
 From: Kumanan [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 27, 2001 4:29 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] functions
 
 
 Hi,
 
 i got problem with functions 
 
 
 when i call the files with url//filename.php?action=pal
 
 all the time it says
 Fatal error: Call to unsupported or undefined function pal_edit() in
 /cfiles/memberlink.php on line 7
 
 
 
 code
 ...
 ?
 switch ($action) {
 case "pf":
 profile();
 break;
 
 case "pal":
pal_edit();
 break;
 
 }
 
 
 function pf() { echo "profile"; }
 
 function pal_edit() { echo "pal";  }
 
 ?
 
 
 
 -- 
 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] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp

Yeah, well all have our preferences...and the NT command line is NOTHING
like a good *nix one, so I guess I'll agree that the GUI is approvable by
me. =)

I would install it, I think that would take one less step out of getting to
developing when you boot your box!

-Jonathan

-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 3:07 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] NT5 Sub Domains


Thank you Brian and Jonathon.  You are both very helpful!!  I think I like
the idea of a tray icon -- rather than an annoying DOS window I cannot get
rid of from my task bar!  =)

No offense, Jonathon...  I agree, I need to work on my command line
skills...

Should I install Apache as a service on NT??  Then it starts automatically,
right?
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




RE: [PHP] Apache - PHP 4 (CGI)

2001-01-27 Thread Jonathan Sharp

Da...this one has stumped me...in *nix I'd just say compile it into Apache,
but we can't do that now can we...bummer, looks like a design flaw of NT...
8-)

-Jonathan

P.S. Now I must say, I am running 2K on this box here, and am using outlook
(go ahead and bash me) but that's all I use it for (except for photoshop,
fireworks, and such...) but I'll give linux another year or so to catch
up...it's definatly gaining...

-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 3:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Apache - PHP 4 (CGI)


I currently have PHP4 installed as a CGI on my NT5 computer.  It works with
IIS5.  I just installed Apache and it's working.  =)  But how can I make it
see my CGI version of PHP
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] Invoke PHP script from onLoad handler?

2001-01-27 Thread Chuck Mayo

OK, I've gone back through the archives and now understand the situation
with client- and server-side. I just wasn't thinking it through.

Spawning a window to let PHP query the db and somehow passing returned
values back to the parent window is something I could do, I suppose, but
it seems that what I and the other zillion people who keep asking the
same question need is a way to get to our databases using a client-side
technology like Javascript.

I recognize the shortcomings of client-side stuff like compatility
issues and on/off preferences and in this case am willing to let the
user take some reponsibility for his browsing experience.

Now I'm completely off-topic, but does anyone have any ideas regarding
database access with Javascript, perhaps by having JS run a shell or
perl script? How would JS get the values back? Something like

function getdb () {
   var mylist = execute.some.remote.program(./getmysqldata.pl);
   }

With all the traffic on this type of request, I'm surprised the FAQ
doesn't take
up the subject.

Thanks,
Chuck

- Original Message -
You *can* have a JavaScript handler invoke PHP -- but it requires
accessing
a URL and waiting for the web-server to respond, so your response time
will
not be so hot.

I'm afraid I don't recall how, but it has been posted here before...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Chuck Mayo [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Friday, January 26, 2001 10:10 AM
Subject: [PHP] Invoke PHP script from onLoad handler?


 Sorry if this has come up before.

 I want to update a select list from a mySql database whenever the
 browser window gets the focus. This is because I anticipate that the
 user will frequently use a second window to make additions to the
 database that holds the list values while filling in the form, and I
 want those additions to be in the select list when the user returns.

 At present I have PHP querying the db before I output the body tag,
and
 an onLoad() handler passes the returned records to a Javascript which
 populates the list box with the query results, but I have only figured

 out how to query the db when the page initially loads. I really need
to
 query the db and invoke the Javascript every time the window gets
focus.

 So, I guess my question is twofold: can I invoke a php function with
an
 onLoad handler, and if so, how can I have onLoad do both things - run
 the php function to query the database, then run the Javascript to
 populate the list box? Or is there another way?

 TIA,
 Chuck Mayo




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

2001-01-27 Thread Kumanan

o

thanks

kumanan
"Nick Winfield" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Sun, 28 Jan 2001, Kumanan wrote:

  Hi,
 
  i got problem with functions 
 
 
  when i call the files with url//filename.php?action=pal
 
  all the time it says
  Fatal error: Call to unsupported or undefined function pal_edit() in
  /cfiles/memberlink.php on line 7
 

 Declare your functions before the switch() statement - your switch
 statement is being executed before your functions even get a chance to be
 defined. :)

 e.g.

 function sayBlah() {
   echo "Blah!";
 }

 switch($task) {
   case do_stuff:
 sayBlah();
 break;
   case other_stuff:
 # whatever
 break;
   default:
 # whatever
 break;
 }

 Cheers,

 Nicky W..
 -[ [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] Invoke PHP script from onLoad handler?

2001-01-27 Thread Jonathan Sharp

I wrote a browser based application (yes it is an application!) (but I can't
let you see it cause it's propriatary technology) but the client side was
javascript and I had PHP save the data and read data...

I won't go into detail, but basically I had PHP print JavaScript, and then
have a variable in the main window that the child window would save the new
data to...

for example, have the javascript (which PHP generates) be something like
script
var DATAARY = new Array();
DATAARY[0] = 'Some data';
DATAARY[1] = 'Some data';
DATAARY[2] = 'Some data';
DATAARY[3] = 'Some data';
window.parent.document.MAINDATAARY = DATAARY;
/script
It was something to that extent, it works quite nicely, and it definetly
pushes the limits of the technology used.

-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]

-Original Message-
From: Chuck Mayo [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 4:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Invoke PHP script from onLoad handler?


OK, I've gone back through the archives and now understand the situation
with client- and server-side. I just wasn't thinking it through.

Spawning a window to let PHP query the db and somehow passing returned
values back to the parent window is something I could do, I suppose, but
it seems that what I and the other zillion people who keep asking the
same question need is a way to get to our databases using a client-side
technology like Javascript.

I recognize the shortcomings of client-side stuff like compatility
issues and on/off preferences and in this case am willing to let the
user take some reponsibility for his browsing experience.

Now I'm completely off-topic, but does anyone have any ideas regarding
database access with Javascript, perhaps by having JS run a shell or
perl script? How would JS get the values back? Something like

function getdb () {
   var mylist = execute.some.remote.program(./getmysqldata.pl);
   }

With all the traffic on this type of request, I'm surprised the FAQ
doesn't take
up the subject.

Thanks,
Chuck

- Original Message -
You *can* have a JavaScript handler invoke PHP -- but it requires
accessing
a URL and waiting for the web-server to respond, so your response time
will
not be so hot.

I'm afraid I don't recall how, but it has been posted here before...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Chuck Mayo [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Friday, January 26, 2001 10:10 AM
Subject: [PHP] Invoke PHP script from onLoad handler?


 Sorry if this has come up before.

 I want to update a select list from a mySql database whenever the
 browser window gets the focus. This is because I anticipate that the
 user will frequently use a second window to make additions to the
 database that holds the list values while filling in the form, and I
 want those additions to be in the select list when the user returns.

 At present I have PHP querying the db before I output the body tag,
and
 an onLoad() handler passes the returned records to a Javascript which
 populates the list box with the query results, but I have only figured

 out how to query the db when the page initially loads. I really need
to
 query the db and invoke the Javascript every time the window gets
focus.

 So, I guess my question is twofold: can I invoke a php function with
an
 onLoad handler, and if so, how can I have onLoad do both things - run
 the php function to query the database, then run the Javascript to
 populate the list box? Or is there another way?

 TIA,
 Chuck Mayo




--
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] Oracle support not working

2001-01-27 Thread Steve Haemelinck

You have to make sure your environment variable ORACLE_HOME is set !!!

CHECK: echo $ORACLE_HOME
If it isn't modify the etc/profile or /etc/profile.local

 -Original Message-
From:   Brian Clark [mailto:[EMAIL PROTECTED]] 
Sent:   zaterdag 27 januari 2001 23:25
To: PHP is not a drug .
Subject:Re: [PHP] Oracle support not working


Hello Jon, 

(JJ == "Jon Jacob") [EMAIL PROTECTED] divulged:

(I'm no Oracle expert)

JJ Well, I think I have done everything right but must have missed
JJ something.  I installed with --with-oci8 and --with-oracle, my

Sometimes it doesn't pick it up correctly if you don't use the path
when referring to --with-oracle. Try

--with-oracle=/path/to/BASE/directory

-Brian



-- 
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-CVS] cvs: php4 / configure.in

2001-01-27 Thread John Donagher

jdonagher   Sat Jan 27 16:16:55 2001 EDT

  Modified files:  
/php4   configure.in 
  Log:
  
  PR:
  Remove --with-pfpro warning. Verisign has released a beta SDK which corrects
  the problem.
  
  
Index: php4/configure.in
diff -u php4/configure.in:1.215 php4/configure.in:1.216
--- php4/configure.in:1.215 Sat Jan 27 13:05:40 2001
+++ php4/configure.in   Sat Jan 27 16:16:55 2001
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.215 2001/01/27 21:05:40 jdonagher Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.216 2001/01/28 00:16:55 jdonagher Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -920,29 +920,6 @@
 | If you are unable to fix this, send the file debug.log to the  |
 | [EMAIL PROTECTED] mailing list and include appropiate  |
 | information about your setup.  |
-X
-  fi
-
-  if test "$PHP_PFPRO" != "no" ; then
-cat X
-++
-|*** WARNING *** |
-||
-| The Verisign/Signio Payflow Pro extension may cause an SSL-enabled |
-| webserver to fail to start or behave erratically during operation. |
-| The extension itself is complete and fully operational, but|
-| Verisign provides a closed SDK which implements its own SSL, which |
-| may or may not cause conflicts with the SSL implementation in your |
-| own webserver. |
-||
-| Similarly, linking the CURL extension against CURL libraries with  |
-| SSL enabled can result in the same problem.|
-||
-| Verisign has been contacted about this problem yet refuses to  |
-| acknowledge it even with a response, let alone a more compliant|
-| SDK. If you are a Verisign customer and wish to use this extension |
-| in the aforementioned configuration, you are urged to contact them |
-| and press them for a better SDK.   |
 X
   fi
 



-- 
PHP CVS 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] Re: Conditional include based on virtual host ?

2001-01-27 Thread Alister

On Fri, 26 Jan 2001 14:52:28 +0100, you wrote:

Hello,

I have developed a large web application the contents of which (language and
data) depends on the URL the site is accessed from, e.g. en.site.com would
display the "english" site, and "fr.site.com" would display the french site

It's a good way to do it, I wrote an extension to FastTemplates (and
the phplib templates.inc) to help with such an event so you could have
multiple levels of templates, falling back eventually (and hopefully,
or it's broken) to a default set.  The defaults could be English (and
no-language, others could be fr, es, pt, Klingon, whatever.

A different name to access the site could look utterly different, just
have most of the same content on the page, in different places.  I was
going to use it to re-skin websites according to who it was for
(originally it was going to be a 'virtual bookshop' that companies
could brand for themselves).

The whole thing is "parameterized" through a set of global variables (or
defines) that reside in a file called settings.php. The question is: how can
I include the "right" settings.php file, depending on the virtual host used
to access the site?

Take a look at the output of phpinfo() for the two virtual sites,
especially 

HTTP_SERVER_VARS["HTTP_HOST"]
HTTP_SERVER_VARS["SERVER_NAME"]

Server_name is likely to be the 'main name' (www.example.com), but
http_host should be the name it's called by (not always the same
thing)

Alister

-- 
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] Thumbnails and PHP

2001-01-27 Thread Markus Fischer

On Sat, Jan 27, 2001 at 02:14:21PM -0800, Todd Cary wrote : 
 What is the best way to display thumbnail photos and their titles with
 HTML/PHP?  Table?

The html way would be to just include the photos with a small
WIDTH and HEIGHT attribute.

The php would be to read the file and use ImageCopyResized on it.

The most performant way would be to pre-generate the thumbmails
and just include them as normal images in html.

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

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

2001-01-27 Thread Gary

[ rswfire ] wrote:

 I restarted the Apache server and the Forbidden error is gone.  But it 
 does not recognize PHP.  What do I need to do to make that work guys?
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com

This should get you up and running.:)

http://hotwired.lycos.com/webmonkey/00/44/index4a_page7.html


HTH
Gary


-- 
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] Transparent SID and forms (POST) ?

2001-01-27 Thread Markus Fischer

On Sat, Jan 27, 2001 at 06:29:05PM +0100, Alain Fontaine wrote : 
 When I use a form that POST's information to another php page, do I have to
 manually include php's session name and the session id in HIDDEN form
 fields, or is this done automatically ? This applies, of course, when the
 user has cookies disabled...

If you have enabled php4 with transparent sid's
(compile-thime switch --trans-sid) it happens automatically. To
all form actions and hrefs the sid is appended.

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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-CVS] cvs: php4 /ext/pfpro pfpro.c

2001-01-27 Thread John Donagher

jdonagher   Sat Jan 27 16:45:28 2001 EDT

  Modified files:  
/php4/ext/pfpro pfpro.c 
  Log:
  
  PR:
  Clean up and add folding
  
  
Index: php4/ext/pfpro/pfpro.c
diff -u php4/ext/pfpro/pfpro.c:1.7 php4/ext/pfpro/pfpro.c:1.8
--- php4/ext/pfpro/pfpro.c:1.7  Fri Dec 22 04:57:07 2000
+++ php4/ext/pfpro/pfpro.c  Sat Jan 27 16:45:27 2001
@@ -17,8 +17,9 @@
+--+
 */
 
-/* $Id: pfpro.c,v 1.7 2000/12/22 12:57:07 zeev Exp $ */
+/* $Id: pfpro.c,v 1.8 2001/01/28 00:45:27 jdonagher Exp $ */
 
+/* {{{ includes */
 #include "php.h"
 #include "php_ini.h"
 #include "php_pfpro.h"
@@ -28,15 +29,17 @@
 #if HAVE_PFPRO
 
 #include "ext/standard/php_string.h"
+/* }}} */
 
+/* {{{ zts */
 #ifdef ZTS
 int pfpro_globals_id;
 #else
 php_pfpro_globals pfpro_globals;
 #endif
-
-/* Function table */
+/* }}} */
 
+/* {{{ Function table */
 function_entry pfpro_functions[] = {
PHP_FE(pfpro_version, NULL)
PHP_FE(pfpro_init, NULL)
@@ -45,7 +48,9 @@
PHP_FE(pfpro_process, NULL)
{NULL, NULL, NULL}
 };
+/* }}} */
 
+/* {{{ Zend module entry */
 zend_module_entry pfpro_module_entry = {
"pfpro",
pfpro_functions,
@@ -56,12 +61,15 @@
PHP_MINFO(pfpro),
STANDARD_MODULE_PROPERTIES
 };
+/* }}} */
 
+/* {{{ dl() stuff */
 #ifdef COMPILE_DL_PFPRO
 ZEND_GET_MODULE(pfpro)
 #endif
-
+/* }}} */
 
+/* {{{ initialization defaults */
 PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("pfpro.defaulthost",  "test.signio.com",  
PHP_INI_ALL, OnUpdateString,defaulthost,php_pfpro_globals, 
 pfpro_globals)
STD_PHP_INI_ENTRY("pfpro.defaultport",  "443", 
 PHP_INI_ALL, OnUpdateInt,   defaultport,
php_pfpro_globals,  pfpro_globals)
@@ -104,8 +112,9 @@
 
 return SUCCESS;
 }
-
+/* }}} */
 
+/* {{{ minfo registration */
 PHP_MINFO_FUNCTION(pfpro)
 {
php_info_print_table_start();
@@ -115,8 +124,7 @@
 
DISPLAY_INI_ENTRIES();
 }
-
-
+/* }}} */
 
 /* {{{ proto string pfpro_version()
Returns the version of the Payflow Pro library */
@@ -130,8 +138,6 @@
 }
 /* }}} */
 
-
-
 /* {{{ proto void pfpro_init()
Initialises the Payflow Pro library */
 PHP_FUNCTION(pfpro_init)
@@ -150,8 +156,6 @@
 }
 /* }}} */
 
-
-
 /* {{{ proto void pfpro_cleanup()
Shuts down the Payflow Pro library */
 PHP_FUNCTION(pfpro_cleanup)
@@ -170,8 +174,6 @@
 }
 /* }}} */
 
-
-
 /* {{{ proto string pfpro_process_raw(string parmlist [, string hostaddress [, int 
port, [, int timeout [, string proxyAddress [, int proxyPort [, string proxyLogon [, 
string proxyPassword]]])
Raw Payflow Pro transaction processing */
 PHP_FUNCTION(pfpro_process_raw)
@@ -289,8 +291,6 @@
RETURN_STRING(response, 1);
 }
 /* }}} */
-
-
 
 /* {{{ proto array pfpro_process(array parmlist [, string hostaddress [, int port, [, 
int timeout [, string proxyAddress [, int proxyPort [, string proxyLogon [, string 
proxyPassword]]])
Payflow Pro transaction processing using arrays */



-- 
PHP CVS 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] Remote Directory listing

2001-01-27 Thread Markus Fischer

On Sat, Jan 27, 2001 at 04:03:34PM -, Kif wrote : 
 I have tried $startdir = http://siteiwant.com/; with no joy
 :(

There is no real, standard think like an index. What you
see with webservers is just a component of the webserver which
makes it easier for you to access sub-dirs and sub-files, if it
is configured to do so. And thats the point, if the remote site
is not configured to list the dir in the particular path you try
to access, no way. And still even if it does, you can't use
opendir; you have to parse the (most times it will be html)
output you get.

Its easier if the directory you need a listing of is also
mapped 1:1 to ftp on the same site; then just use phps ftp
functions.

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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] CGI/PHP4

2001-01-27 Thread [ rswfire ]


Hello,

I have PHP4 installed on my NT5 system as a CGI and it is working with IIS5 
and Apache.  But I never realized that the CGI version ends up in the URL 
when I use it with Apache.  I really have a thing against this.  =)

Is there any way to prevent that?  Or do I need to use the module version?
_
Get your FREE download of MSN Explorer at http://explorer.msn.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] Problem with a regex!

2001-01-27 Thread Zack Ham

I'm trying to create a small template parser so I can fill my html pages up with data. 
 An example:  htmlheadtitle{title}/title/head/html

What I'm trying to do is run through it and replace {title} with an appropriate value. 
 I have tried running ereg_replace("{$var}",$value,$string) and 
ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do nothing or 
produce the error "Warning: invalid content of \{\}".

Any help would be appreciated,
Zack

_
Free email provided by --- http://sect0r.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]




Re: [PHP] Invoke PHP script from onLoad handler?

2001-01-27 Thread Markus Fischer

On Sat, Jan 27, 2001 at 06:04:41PM -0600, Chuck Mayo wrote : 
 Now I'm completely off-topic, but does anyone have any ideas regarding
 database access with Javascript, perhaps by having JS run a shell or
 perl script? How would JS get the values back? Something like
 
 function getdb () {
var mylist = execute.some.remote.program(./getmysqldata.pl);
}

Unless you are running a *signed* JavaScript code you
can't just call an external program (security, anyone ?). If its
just for a intranet, just let your JS code get signed to gain
higher client side access privileges and you are done; else
bummer (at least, this way).

What you could do with normal client side JS is just reload the
opener window.

As far I unterstood, you have a main window with some kind of
listbox depending on database output. Under some circumstances, a
window pops up where the use can alter some data. Just when you
have the feeling, the user has entered/altered enough data to
update the listbox in the window which spawned the popup, force
to reload the page with syntax like

opener.location.href='same_url_again';

and your php script is called again, the db-data is fetched again
and you listbox is altered (hopefully).

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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] Conditional include based on virtual host ?

2001-01-27 Thread Markus Fischer


You could use $HTTP_HOST:

if( stristr( $HTTP_POST, "fr.domain.com"))
$lang = "fr";

Just put such in your settings.php file you allready include.
Works for me.

Any other ideas very welcome too :)

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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] JavaScript/PHP Function - Apache/IIS5 - Client Properties

2001-01-27 Thread [ rswfire ]

I need to get a whole bunch of client properties from a visitor on my site 
before a page is displayed.  I do this using JavaScript.  I first determine 
if the visitor's browser supports JavaScript, and if it does I run a 
function that basically builds a temporary page and returns a bunch of 
client properties for me.

Here's the code:

if ($Browser_JavaScriptOK == TRUE)
{

echo "HTML";
echo "HEAD";
echo "TITLE[ Swift eNetwork ] eNetWizard : 
Determining Client 
Properties/TITLE";
echo "SCRIPT LANGUAGE=\"JavaScript\"";
echo "function GetProperties()";
echo "{";
echo 
"window.location.replace(\"http://".$GLOBALS["HTTP_HOST"].$GLOBALS["SCRIPT_NAME"]."?ENETWIZARD_GETCLIENT=TRUEcName=\"+escape(navigator.appName)+\"cCodeName=\"+escape(navigator.appCodeName)+\"cVersion=\"+escape(navigator.appVersion)+\"cPlatform=\"+escape(navigator.platform)+\"cLanguage=\"+escape(navigator.language)+\"cJavaEnabled=\"+escape(navigator.javaEnabled())+\"cAvailHeight=\"+escape(screen.availHeight)+\"cAvailWidth=\"+escape(screen.availWidth)+\"cColorDepth=\"+escape(screen.colorDepth)+\"cHeight=\"+escape(screen.height)+\"cWidth=\"+escape(screen.width)+\"cPixelDepth=\"+escape(screen.pixelDepth));";
echo "}";
echo "/SCRIPT";
echo "/HEAD";
echo "BODY BGCOLOR='#00' 
OnLoad=\"GetProperties()\"nbsp;";
echo "/BODY";
echo "/HTML";
exit;

}


This code is run and then goes back to the calling page with all of the 
variables.  I then process the variables and put them into a class and build 
the page.

This works on IIS5, but when I try to do this on Apache, it freezes up and 
after a time comes back with an error message saying PHP.EXE did something 
wrong and will be closed.

Can anyone tell me what is happening?  Do you know of any other way to 
reliably return client properties?

Thankz...
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




RE: [PHP] Problem with a regex!

2001-01-27 Thread Jonathan Sharp

what's the value of var? It appears that it doesn't have a value set.

-Jonathan

-Original Message-
From: Zack Ham [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with a regex!


I'm trying to create a small template parser so I can fill my html pages up
with data.  An example:  htmlheadtitle{title}/title/head/html

What I'm trying to do is run through it and replace {title} with an
appropriate value.  I have tried running
ereg_replace("{$var}",$value,$string) and
ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do
nothing or produce the error "Warning: invalid content of \{\}".

Any help would be appreciated,
Zack

_
Free email provided by --- http://sect0r.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]




RE: [PHP] JavaScript/PHP Function - Apache/IIS5 - Client Properties

2001-01-27 Thread Jonathan Sharp

Hm...I'm not sure I completely understand...but I believe that you're trying
to gather as many stats from the client as possible?

What about having a page that is somewhat transparent to the user (if they
support JS) that you have something like this...

script
function GetProperties()
{
document.theform.cVersion.value = navigator.appVersion;
etc...
document.theform.submit();
}
/script

body onLoad="GetProperties()"
form action="mainpage.php" method="POST" name="theform"
input type="hidden" name="cVersion"
/form
img src="/img/a/nice/techno/dancing/woman.gif"br
bWelcome to my beautiful site! One moment please.../b
/body

Then you'd have mainpage.php checkthrough all those values, and possibly
dump them into a DB and create a SESSIONID which each page thereafter uses
the sessionid to lookup the client settings from the db and build the page
based upon that? Depending on how long it takes to set all the hidden fields
and submit the form, it might even be transparent to the user...or...you
might just have a generic front page if no session id is set and popup
window that has all that java script and say something line "Customizing for
YOU!" and then have that page POST to itself and then have the window close
it self (and you've set a cookie with the session id of course) so then each
page that he visits thereafter has the session id set. And you can customize
for him/her...

Cheers,
-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]


-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] JavaScript/PHP Function - Apache/IIS5 - Client
Properties


I need to get a whole bunch of client properties from a visitor on my site
before a page is displayed.  I do this using JavaScript.  I first determine
if the visitor's browser supports JavaScript, and if it does I run a
function that basically builds a temporary page and returns a bunch of
client properties for me.

Here's the code:

if ($Browser_JavaScriptOK == TRUE)
{

echo "HTML";
echo "HEAD";
echo "TITLE[ Swift eNetwork ] eNetWizard : 
Determining Client
Properties/TITLE";
echo "SCRIPT LANGUAGE=\"JavaScript\"";
echo "function GetProperties()";
echo "{";
echo
"window.location.replace(\"http://".$GLOBALS["HTTP_HOST"].$GLOBALS["SCRIPT_N
AME"]."?ENETWIZARD_GETCLIENT=TRUEcName=\"+escape(navigator.appName)+\"cCod
eName=\"+escape(navigator.appCodeName)+\"cVersion=\"+escape(navigator.appVe
rsion)+\"cPlatform=\"+escape(navigator.platform)+\"cLanguage=\"+escape(nav
igator.language)+\"cJavaEnabled=\"+escape(navigator.javaEnabled())+\"cAvai
lHeight=\"+escape(screen.availHeight)+\"cAvailWidth=\"+escape(screen.availW
idth)+\"cColorDepth=\"+escape(screen.colorDepth)+\"cHeight=\"+escape(scree
n.height)+\"cWidth=\"+escape(screen.width)+\"cPixelDepth=\"+escape(screen.
pixelDepth));";
echo "}";
echo "/SCRIPT";
echo "/HEAD";
echo "BODY BGCOLOR='#00' 
OnLoad=\"GetProperties()\"nbsp;";
echo "/BODY";
echo "/HTML";
exit;

}


This code is run and then goes back to the calling page with all of the
variables.  I then process the variables and put them into a class and build
the page.

This works on IIS5, but when I try to do this on Apache, it freezes up and
after a time comes back with an error message saying PHP.EXE did something
wrong and will be closed.

Can anyone tell me what is happening?  Do you know of any other way to
reliably return client properties?

Thankz...
_
Get your FREE download of MSN Explorer at http://explorer.msn.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]




Re: [PHP] Problem with a regex!

2001-01-27 Thread Zack Ham

I had it echo off the value of $var right before it ran the ereg_replace and it echoed 
"TITLE".  So there is a value... any ideas on fixing?

--- Julian Wood [EMAIL PROTECTED]
 wrote:

Why not use the php mechanism itself? An easy way to do a template system is
make a normal php page as a template, and then include it from another page
after specifying a bunch of variables.

eg.

template.php:
=

htmlheadtitle?= $title ?/title/head/html

calling page:
=

?php

$title = "My template system";
include ('template.php');

?

Hope this helps,

Julian

on 1/27/01 6:17 PM, Zack Ham at [EMAIL PROTECTED] wrote:

 
 I'm trying to create a small template parser so I can fill my html pages up
 with data.  An example:  htmlheadtitle{title}/title/head/html
 
 What I'm trying to do is run through it and replace {title} with an
 appropriate value.  I have tried running ereg_replace("{$var}",$value,$string)
 and ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do
 nothing or produce the error "Warning: invalid content of \{\}".
 
 Any help would be appreciated,
 Zack
 
 _
 Free email provided by --- http://sect0r.com

--
Julian Wood
Learning Technologies and Digital Media
University of Calgary



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

_
Free email provided by --- http://sect0r.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-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-27 Thread Jim Winstead

jimwSat Jan 27 17:53:56 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  give zak access to phpweb
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.58 CVSROOT/avail:1.59
--- CVSROOT/avail:1.58  Fri Jan 26 18:25:48 2001
+++ CVSROOT/avail   Sat Jan 27 17:53:55 2001
@@ -1,7 +1,7 @@
 
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk,goba|phpweb
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk,goba,zak|phpweb
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw|php4/pear,pearweb,pear
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,hholzgra|functable
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.58 CVSROOT/gen_acl_file.m4:1.59
--- CVSROOT/gen_acl_file.m4:1.58Fri Jan 26 18:25:49 2001
+++ CVSROOT/gen_acl_file.m4 Sat Jan 27 17:53:55 2001
@@ -9,7 +9,7 @@
 dnl PEAR Team
 define(`php_pear', 
`jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw')dnl
 dnl PHP.NET Website
-define(`php_web', 
`cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk,goba')dnl
+define(`php_web', 
+`cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk,goba,zak')dnl
 dnl
 define(`php_pres', `rasmus,sterling,jimw')dnl
 dnl



-- 
PHP CVS 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] JavaScript/PHP Function - Apache/IIS5 - Client Properties

2001-01-27 Thread [ rswfire ]

Jonathon,

I believe I have found the cause of the problem...  But first let me explain 
what I am doing better.

Yes, I am trying to gather as many stats from the client as possible.  
Before a page is display, many classes are initialized.  This particular 
class is the session class.  After it retrieves all of the client 
properties, a session is created.  If they don't have JavaScript, there's 
not much I can do, so I just use "basic settings" and give them a session.

This is done transparently.  It creates this temporary file and then reloads 
the page with the long URI.  This time the session class retrieves all of 
the properties and does put them into a database.  Then, sets the session 
id.  Then, it reloads the page again, getting rid of the long URI and just 
leaving the session id in the URI.

Well, here's where the problem appears to be.  I believe the CGI version of 
PHP on Apache is trying to parse the page as a PHP file.  Even though it is 
a simple HTML file.  Below is the HTML that is produced from the previous 
code:

HTMLHEADTITLE[ Swift eNetwork ] eNetWizard : Determining Client 
Properties/TITLESCRIPT LANGUAGE="JavaScript"function 
GetProperties(){window.location.replace("http://swifte.dev:8080/php/php.exe?ENETWIZARD_GETCLIENT=TRUEcName="+escape(navigator.appName)+"cCodeName="+escape(navigator.appCodeName)+"cVersion="+escape(navigator.appVersion)+"cPlatform="+escape(navigator.platform)+"cLanguage="+escape(navigator.language)+"cJavaEnabled="+escape(navigator.javaEnabled())+"cAvailHeight="+escape(screen.availHeight)+"cAvailWidth="+escape(screen.availWidth)+"cColorDepth="+escape(screen.colorDepth)+"cHeight="+escape(screen.height)+"cWidth="+escape(screen.width)+"cPixelDepth="+escape(screen.pixelDepth));}/SCRIPT/HEADBODY
 
BGCOLOR='#00' OnLoad="GetProperties()"nbsp;/BODY/HTML

Notice the swifte.dev:8080 -- After that is /php/php.exe -- I hate this.  
That should not be there and the filename is not there either.  So of course 
it's having a problem.  I did a check on phpinfo() and the variable 
$SCRIPT_NAME is set to /php/php.exe.  The only other variables that have the 
filename are REQUEST_URI and PATH_INFO.  But I'm still getting the same 
problem.

I don't exactly understand your code below.  First of all, I do not want to 
use cookies at all - not anywhere on my network.  Too much controversy.  So 
I take advantage of the database in that respect.  Secondly, does the code 
example below automatically submit itself??  I've never seen that done 
before...

Robert




From: "Jonathan Sharp" [EMAIL PROTECTED]
To: "[ rswfire ]" [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] JavaScript/PHP Function - Apache/IIS5  -  Client 
Properties
Date: Sat, 27 Jan 2001 17:47:05 -0800

Hm...I'm not sure I completely understand...but I believe that you're 
trying
to gather as many stats from the client as possible?

What about having a page that is somewhat transparent to the user (if they
support JS) that you have something like this...

script
function GetProperties()
{
   document.theform.cVersion.value = navigator.appVersion;
   etc...
   document.theform.submit();
}
/script

body onLoad="GetProperties()"
form action="mainpage.php" method="POST" name="theform"
   input type="hidden" name="cVersion"
/form
img src="/img/a/nice/techno/dancing/woman.gif"br
bWelcome to my beautiful site! One moment please.../b
/body

Then you'd have mainpage.php checkthrough all those values, and possibly
dump them into a DB and create a SESSIONID which each page thereafter uses
the sessionid to lookup the client settings from the db and build the page
based upon that? Depending on how long it takes to set all the hidden 
fields
and submit the form, it might even be transparent to the user...or...you
might just have a generic front page if no session id is set and popup
window that has all that java script and say something line "Customizing 
for
YOU!" and then have that page POST to itself and then have the window close
it self (and you've set a cookie with the session id of course) so then 
each
page that he visits thereafter has the session id set. And you can 
customize
for him/her...

Cheers,
-Jonathan Sharp

Director of Technology - Imprev Inc.
Renwick Development Group - Flyerware
http://www.flyerware.com/
Phone: (425)688-9200
Cell: (425)766-1398
EPage: [EMAIL PROTECTED]


-Original Message-
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] JavaScript/PHP Function - Apache/IIS5 - Client
Properties


I need to get a whole bunch of client properties from a visitor on my site
before a page is displayed.  I do this using JavaScript.  I first determine
if the visitor's browser supports JavaScript, and if it does I run a
function that basically builds a temporary page and returns a bunch of
client properties for me.

Here's the code:

   if ($Browser_JavaScriptOK == TRUE)
   

Re: [PHP] Problem with a regex!

2001-01-27 Thread CC Zona

In article [EMAIL PROTECTED], 
[EMAIL PROTECTED] (Zack Ham) wrote:

 What I'm trying to do is run through it and replace {title} with an 
 appropriate value.  I have tried running 
 ereg_replace("{$var}",$value,$string) and 
 ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do 
 nothing or produce the error "Warning: invalid content of \{\}".

Is $var=="title" (same case, no leading/trailing whitespace, etc.)?

If so, then perhaps try:
  ereg_replace("\{" . $title . "\}",$value,$string)

If not, then perhaps one of these:
  eregi_replace("\{" . $title . "\}",$value,$string) 
  eregi_replace("\{title\}",$value,$string)

-- 
CC

-- 
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-CVS] cvs: CVSROOT / cvsusers gen_acl_file.m4

2001-01-27 Thread Rasmus Lerdorf

rasmus  Sat Jan 27 18:09:14 2001 EDT

  Modified files:  
/CVSROOTcvsusers gen_acl_file.m4 
  Log:
  CVS account for Harald to see if he can do some interesting .NET stuff
  
  
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.195 CVSROOT/cvsusers:1.196
--- CVSROOT/cvsusers:1.195  Fri Jan 26 18:25:49 2001
+++ CVSROOT/cvsusersSat Jan 27 18:09:14 2001
@@ -242,3 +242,4 @@
 opaquedaveDave Hayden [EMAIL PROTECTED] ming 
extension
 cgClemens Gutweiler   [EMAIL PROTECTED]   German 
translation
 delromDavid Elrom [EMAIL PROTECTED] Hebrew 
translation
+phantoHarald Radi [EMAIL PROTECTED]   COM/.NET
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.59 CVSROOT/gen_acl_file.m4:1.60
--- CVSROOT/gen_acl_file.m4:1.59Sat Jan 27 17:53:55 2001
+++ CVSROOT/gen_acl_file.m4 Sat Jan 27 18:09:14 2001
@@ -25,7 +25,7 @@
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
-avail|zeev|php4/ext/com
+avail|zeev,phanto|php4/ext/com
 avail|steinm|php4/ext/cpdf
 avail|evan|php4/ext/cybercash
 avail|rasmus,jimw|php4/ext/db
@@ -98,7 +98,7 @@
 avail|rasmus,zeev,ssb,sklar|php4/sapi/apache
 avail|rasmus,ssb|php4/sapi/cgi
 avail|abelits|php4/sapi/fhttpd
-avail|andi,zeev,joosters,shane|php4/sapi/isapi
+avail|andi,zeev,joosters,shane,phanto|php4/sapi/isapi
 avail|jk|php4/sapi/nsapi
 avail|thies|php4/sapi/phttpd
 avail|holger|php4/sapi/pi3web
@@ -107,5 +107,6 @@
 avail|sas|php4/sapi/apache2filter
 avail|neotron|php4/sapi/caudium
 avail|david,bbonev|php4/ext/vpopmail
+avail|phanto|php4/win32
 dnl
 dnl



-- 
PHP CVS 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] Problem with a regex!

2001-01-27 Thread Julian Wood


Maybe I'm misunderstanding something. I'm suggesting that you not bother at
all with an ereg_replace system.

If you want to do a system like you're suggesting, you would use a variable
variable. That is, ${$var} will evaluate to 'Hello' when $var = 'title' and
$title = 'Hello'.

HTH,

Julian


on 1/27/01 6:56 PM, Zack Ham at [EMAIL PROTECTED] wrote:

 
 I had it echo off the value of $var right before it ran the ereg_replace and
 it echoed "TITLE".  So there is a value... any ideas on fixing?
 
 --- Julian Wood [EMAIL PROTECTED]
 wrote:
 
 Why not use the php mechanism itself? An easy way to do a template system is
 make a normal php page as a template, and then include it from another page
 after specifying a bunch of variables.
 
 eg.
 
 template.php:
 =
 
 htmlheadtitle?= $title ?/title/head/html
 
 calling page:
 =
 
 ?php
 
 $title = "My template system";
 include ('template.php');
 
 ?
 
 Hope this helps,
 
 Julian
 
 on 1/27/01 6:17 PM, Zack Ham at [EMAIL PROTECTED] wrote:
 
 
 I'm trying to create a small template parser so I can fill my html pages up
 with data.  An example:  htmlheadtitle{title}/title/head/html
 
 What I'm trying to do is run through it and replace {title} with an
 appropriate value.  I have tried running
 ereg_replace("{$var}",$value,$string)
 and ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do
 nothing or produce the error "Warning: invalid content of \{\}".
 
 Any help would be appreciated,
 Zack
 
 _
 Free email provided by --- http://sect0r.com
 
 --
 Julian Wood
 Learning Technologies and Digital Media
 University of Calgary
 
 
 
 -- 
 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]
 
 _
 Free email provided by --- http://sect0r.com

--
Julian Wood
Learning Technologies and Digital Media
University of Calgary



-- 
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] Problem with a regex!

2001-01-27 Thread Zack Ham

I tried ereg_replace("\{" . $var . "\}",$value,$string) and it didnt return 
 an error... but it didnt replace anything.  Other ideas ?  Either {'s 
are 
 impossible to escape or php just doesnt like me...

--- CC Zona [EMAIL PROTECTED]
 wrote:
In article [EMAIL PROTECTED], 
[EMAIL PROTECTED] (Zack Ham) wrote:

 What I'm trying to do is run through it and replace {title} with an 
 appropriate value.  I have tried running 
 ereg_replace("{$var}",$value,$string) and 
 ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do 
 nothing or produce the error "Warning: invalid content of \{\}".

Is $var=="title" (same case, no leading/trailing whitespace, etc.)?

If so, then perhaps try:
  ereg_replace("\{" . $title . "\}",$value,$string)

If not, then perhaps one of these:
  eregi_replace("\{" . $title . "\}",$value,$string) 
  eregi_replace("\{title\}",$value,$string)

-- 
CC

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

_
Free email provided by --- http://sect0r.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-I18N] Leads?

2001-01-27 Thread leadsleadsmoreleads890


BUY LEADS WHOLESALE FROM US FOR YOUR BUSINESS

http://www.geocities.com/leadoffers1900/leads.htm

-- 
PHP Internationalization 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-i18n Digest 28 Jan 2001 02:35:48 -0000 Issue 47

2001-01-27 Thread php-i18n-digest-help


php-i18n Digest 28 Jan 2001 02:35:48 - Issue 47

Topics (messages 104 through 107):

Web based Time Sheets for Professionals
104 by: Web Time Sheets

You can have a  visa card .. no deposit
105 by: garey

Hello
106 by: Graduate

Leads?
107 by: leadsleadsmoreleads890.hotmail.com

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



Announcing the eTech Online Time Sheet system for gathering Employee Time over the 
Internet. 
Online TimeSheets easily integrate with Payroll, Billing  Project Management. 

Simplified Time Tracking and Project Management is a click away. 
http://www.solutioncorp.com/timesheet.shtml

Please call us or visit our site.

Thank You

Gary P. Finley
eTech SolutionCorp

voice: 817-355-8883
http://www.SolutionCorp.com


If you have recieved the message in error, we apologize.
Please click below to send a remove request to us:
mailto:[EMAIL PROTECTED]?subject=RemoveName_TimeSheet





  This company is offering a visa card with no annual fee, no deposit and 
will pay you for the people you refer.Just request the web address by
replying to :  

   [EMAIL PROTECTED]  

 Insert "request " in the subject line
Thank you




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





BUY LEADS WHOLESALE FROM US FOR YOUR BUSINESS

http://www.geocities.com/leadoffers1900/leads.htm




[PHP-CVS] cvs: CVSROOT / avail

2001-01-27 Thread Rasmus Lerdorf

rasmus  Sat Jan 27 19:23:16 2001 EDT

  Modified files:  
/CVSROOTavail 
  Log:
  Oops, forgot to m4
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.59 CVSROOT/avail:1.60
--- CVSROOT/avail:1.59  Sat Jan 27 17:53:55 2001
+++ CVSROOT/avail   Sat Jan 27 19:23:16 2001
@@ -10,7 +10,7 @@
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
-avail|zeev|php4/ext/com
+avail|zeev,phanto|php4/ext/com
 avail|steinm|php4/ext/cpdf
 avail|evan|php4/ext/cybercash
 avail|rasmus,jimw|php4/ext/db
@@ -83,7 +83,7 @@
 avail|rasmus,zeev,ssb,sklar|php4/sapi/apache
 avail|rasmus,ssb|php4/sapi/cgi
 avail|abelits|php4/sapi/fhttpd
-avail|andi,zeev,joosters,shane|php4/sapi/isapi
+avail|andi,zeev,joosters,shane,phanto|php4/sapi/isapi
 avail|jk|php4/sapi/nsapi
 avail|thies|php4/sapi/phttpd
 avail|holger|php4/sapi/pi3web
@@ -92,3 +92,4 @@
 avail|sas|php4/sapi/apache2filter
 avail|neotron|php4/sapi/caudium
 avail|david,bbonev|php4/ext/vpopmail
+avail|phanto|php4/win32



-- 
PHP CVS 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-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-27 Thread Rasmus Lerdorf

rasmus  Sat Jan 27 19:36:23 2001 EDT

  Modified files:  
/CVSROOTavail gen_acl_file.m4 
  Log:
  More karma for Harald
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.60 CVSROOT/avail:1.61
--- CVSROOT/avail:1.60  Sat Jan 27 19:23:16 2001
+++ CVSROOT/avail   Sat Jan 27 19:36:22 2001
@@ -2,11 +2,11 @@
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk,goba,zak|phpweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw|php4/pear,pearweb,pear
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm|php4,php3,php31,phpfi
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,hholzgra|functable
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw|php4/pear,pearweb,pear
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto|php4,php3,php31,phpfi
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom|phpdoc
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
 avail|NOBODY|php4/ext/calendar
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.60 CVSROOT/gen_acl_file.m4:1.61
--- CVSROOT/gen_acl_file.m4:1.60Sat Jan 27 18:09:14 2001
+++ 

[PHP-CVS] cvs: php4 /win32 php4dllts.dsp

2001-01-27 Thread Harald Radi

phanto  Sat Jan 27 19:40:28 2001 EDT

  Modified files:  
/php4/win32 php4dllts.dsp 
  Log:
  fixed unicodeconversion and parameter passing bugs in com and dotnet modules
  
Index: php4/win32/php4dllts.dsp
diff -u php4/win32/php4dllts.dsp:1.28 php4/win32/php4dllts.dsp:1.29
--- php4/win32/php4dllts.dsp:1.28   Fri Jan  5 10:06:24 2001
+++ php4/win32/php4dllts.dspSat Jan 27 19:40:28 2001
@@ -1839,10 +1839,14 @@
 # PROP Default_Filter ""
 # Begin Source File
 
-SOURCE=..\ext\com\COM.c
+SOURCE=..\ext\com\COM.cpp
 # End Source File
 # Begin Source File
 
+SOURCE=..\ext\com\conversion.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\win32\pwd.c
 # End Source File
 # Begin Source File
@@ -1863,6 +1867,10 @@
 # End Source File
 # Begin Source File
 
+SOURCE=..\ext\com\typedef_VARIANT.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\win32\wfile.c
 # End Source File
 # Begin Source File
@@ -1883,6 +1891,10 @@
 # PROP Default_Filter ""
 # Begin Source File
 
+SOURCE=..\ext\com\conversion.h
+# End Source File
+# Begin Source File
+
 SOURCE=..\win32\grp.h
 # End Source File
 # Begin Source File
@@ -1896,6 +1908,10 @@
 # Begin Source File
 
 SOURCE=..\win32\php_registry.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\ext\com\php_typedef_VARIANT.h
 # End Source File
 # Begin Source File
 



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




  1   2   >