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]




[PHP] debugger_on( ) third time!

2001-01-27 Thread [EMAIL PROTECTED]


Hello 

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! 

Is there someone who is really using it?

I want to know this because


1) I am writting about debugging in PHP
2) Recompiling PHP with proper options still does not allow me to do
debugger_on()
3) I read it from someone on the list that this function no longer works



Thanks in advance

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] Authentication through a login form

2001-01-27 Thread Peter Troll

Hi Patrick,

I had to implement the system you are talking about. I wanted to avoid working with 
sessions, cookies and all the stuff, just make sure it could work in all 
configurations with minimal requirements. here is what you could do:

1. Build your login page as a form
2. Check the user name and password (in my case, against a mySQL DB)
3. If credentials are OK, give access to the page(s) requested. I got the trick from 
someone in the PHP list: do a fopen like this
http://user:[EMAIL PROTECTED]/protected_stuff
Replace user name and password according to your password file. Even if users know the 
actual location of the files and they try to bypass your authentication form they will 
get the pop-up window. They need to authentify themselves before.

(You may use a sigle user name and password to satisfy all requests).

Hope this helps.

Regards,


-
I want to replace the popup dialog box that occurs when a user accesses a
password protected area, with a login screen. How do I do that?

Someone told me I had to use a cookie to say the person is logged on and
read it whenever I needed to verify their access.

Is it possible to trap the request made to the browser for a
username/password and then pass these back to the server whenever the server
requires authentication?

===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Blessed is the man who does not walk in the counsel of the
wicked or stand in the way of sinners or sit in the seat of
mockers.
-- Psalm 1:1
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010125
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/


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

2001-01-27 Thread lagi

Let's be honest they have lost the plot .. the ide would be fine. I have
bought paid for and havn't used perl studio cost $99 not bothered whether I
use it or not if I do then thats fine if not thats my problem and $99 is
neither here nor there.  Multiply this by the thousands who probably will
use it and get "hooked" and you have a revenue stream for years with people
paying you $50 a year for updates - but no support. Bill gates whatever you
say about him knows this.
He took copy protection of multiplan sales soared why? people copied
multiplan/excel gave it to there friends (illegally) but people got hooked
and wanted to be legal so microsoft started the upgrade treadmill. Zend
would not have that problem most companies that rely on a product would want
to be legal. They have smelt the money at the end of the rainbow and missed
the pot by their feet.

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.

are you listening zend?

touche about the ide is what we are interested in. I would gladly pay money
to Soysal when phped installs on 1 machine without problems - I havn't used
it properly yet but I am hopeful


My 2ps worth

Lagi

- Original Message -
From: "Lewis Bergman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 27, 2001 1:22 PM
Subject: [PHP] Zend IDE price plans


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


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




[PHP-CVS] cvs: php4 /ext/gd gd.c

2001-01-27 Thread Egon Schmid

eschmid Sat Jan 27 06:20:06 2001 EDT

  Modified files:  
/php4/ext/gdgd.c 
  Log:
  File formats in uppercase characters.
  
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.110 php4/ext/gd/gd.c:1.111
--- php4/ext/gd/gd.c:1.110  Thu Jan 25 12:52:52 2001
+++ php4/ext/gd/gd.cSat Jan 27 06:20:06 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: gd.c,v 1.110 2001/01/25 20:52:52 hholzgra Exp $ */
+/* $Id: gd.c,v 1.111 2001/01/27 14:20:06 eschmid Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, 
Cold Spring Harbor Labs. */
@@ -470,7 +470,7 @@
 /* }}} */
 
 /* {{{ proto int imagetypes(void)
-   Return the types of images supported in a bitfield - 1=gif, 2=jpeg, 4=png, 8=wbmp 
*/
+   Return the types of images supported in a bitfield - 1=GIF, 2=JPEG, 4=PNG, 8=WBMP 
+*/
 PHP_FUNCTION(imagetypes)
 {
int ret=0;  
@@ -2660,7 +2660,7 @@
 
 
 /* {{{ proto void jpeg2wbmp (string f_org, string f_dest, int d_height, int d_width)
-   Convert Jpeg image to Wbmp image */
+   Convert JPEG image to WBMP image */
 PHP_FUNCTION(jpeg2wbmp)
 {
 #ifdef HAVE_GD_JPG
@@ -2678,7 +2678,7 @@
 /* }}} */
 
 /* {{{ proto void png2wbmp (string f_org, string f_dest, int d_height, int d_width)
-   Convert Png image to Wbmp image */
+   Convert PNG image to WBMP image */
 PHP_FUNCTION(png2wbmp)
 {
 #ifdef HAVE_GD_PNG
@@ -2815,14 +2815,14 @@
case PHP_GDIMG_TYPE_JPG:
im_org = gdImageCreateFromJpeg (org);
if (im_org == NULL) {
-   php_error (E_WARNING, "%s: unable to open '%s' 
Not a valid jpeg file", get_active_function_name(), fn_dest);
+   php_error (E_WARNING, "%s: unable to open '%s' 
+Not a valid JPEG file", get_active_function_name(), fn_dest);
RETURN_FALSE;
}
break;
case PHP_GDIMG_TYPE_PNG:
im_org = gdImageCreateFromPng(org);
if (im_org == NULL) {
-   php_error (E_WARNING, "%s: unable to open '%s' 
Not a valid png file", get_active_function_name(), fn_dest);
+   php_error (E_WARNING, "%s: unable to open '%s' 
+Not a valid PNG file", get_active_function_name(), fn_dest);
RETURN_FALSE;
}
break;



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

2001-01-27 Thread Alain Fontaine

6000 (SIX THOUSAND) dollars for the encoder ??? It will be cheaper for us to
buy a complete Windows 2000 based server with all the software we need and
develop ASP components.

""lagi"" <[EMAIL PROTECTED]> a écrit dans le message news:
002001c08866$57c76160$[EMAIL PROTECTED]
> Let's be honest they have lost the plot .. the ide would be fine. I have
> bought paid for and havn't used perl studio cost $99 not bothered whether
I
> use it or not if I do then thats fine if not thats my problem and $99 is
> neither here nor there.  Multiply this by the thousands who probably will
> use it and get "hooked" and you have a revenue stream for years with
people
> paying you $50 a year for updates - but no support. Bill gates whatever
you
> say about him knows this.
> He took copy protection of multiplan sales soared why? people copied
> multiplan/excel gave it to there friends (illegally) but people got hooked
> and wanted to be legal so microsoft started the upgrade treadmill. Zend
> would not have that problem most companies that rely on a product would
want
> to be legal. They have smelt the money at the end of the rainbow and
missed
> the pot by their feet.
>
> 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.
>
> are you listening zend?
>
> touche about the ide is what we are interested in. I would gladly pay
money
> to Soysal when phped installs on 1 machine without problems - I havn't
used
> it properly yet but I am hopeful
>
>
> My 2ps worth
>
> Lagi
>
> - Original Message -
> From: "Lewis Bergman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, January 27, 2001 1:22 PM
> Subject: [PHP] Zend IDE price plans
>
>
> > 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]
> >
> >
>
>
> --
> 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 Jim Jagielski

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.

-- 
===
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
  "Casanova will have many weapons; To beat him you will
  have to have more than forks and flatulence."

-- 
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 Zeev Suraski

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]




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]




php-general@lists.php.net

2001-01-27 Thread Toby Butzon

I'll step through the following snippet - maybe it'll give you a clearer
explaination.

>   $foo = 'Bob';  // Assign the value 'Bob' to $foo
>  $bar = &$foo;  // Reference $foo via $bar.
>  $bar = "My name is $bar";  // Alter $bar...
>   echo $foo; // $foo is altered too.
>   echo $bar;
> ?>

1. $foo is assigned the value 'Bob'.
2. an alias to $foo is made. it is $bar. $foo and $bar now both have the
same value, 'Bob'.
3. $bar (and $foo) are assigned a new value; before the assignment takes
place, however, the string to be assigned is evaluated (hence $bar is
still 'Bob' at this point). The value of $bar (and $foo) becomes 'My
name is Bob'.
4. The same value is echo'd twice; thus you get 'My name is BobMy name
is Bob' as your output.

--Toby

Richard Lynch wrote:
> 
> It's not a backwards assignment.  It's more like this:
> 
> $bar = &$foo;
> 
> You now have essentially two variable names 'foo' and 'bar' pointing to the
> same chunk of memory inside the computer.
> 
> If you change one, you change the other:  They are really not two distinct
> variables -- They are the same variables, and are aliases for each other.
> 
> --
> 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: Noel Akins <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Friday, January 26, 2001 10:52 AM
> Subject: [PHP] I'm confused about..reffering vars &$
> 
> > Ok, I'm reading the manual for the new php4 stuff. Now, I'm not new to
> php.
> > I started with php/fi with a little script to add links to a database. I
> > did a little work in php3. I just don't make enough php stuff to get a
> frim
> > grip on everything. That is changing as I am building a second pc to serve
> > as a dev box for php4. Here is my first question.
> >
> > This was lifted from the Zend site from the php manual there.
> >
> > To assign by reference, simply prepend an ampersand (&) to the beginning
> of
> > the variable which is being assigned (the source variable). For instance,
> > the following code snippet outputs 'My name is Bob' twice:
> >  >  $foo = 'Bob';  // Assign the value 'Bob' to $foo
> >  $bar = &$foo;  // Reference $foo via $bar.
> >  $bar = "My name is $bar";  // Alter $bar...
> >   echo $foo; // $foo is altered too.
> >   echo $bar;
> > ?>
> >
> >What I don't see here is how this prints (echo) "My name is Bob". The
> > way I see this is that $bar = &$foo; is a backwards assignment, so that
> > when the script cycles through, it changes $foo from Bob to "My name is
> > $bar", and, to my error prone thinking, it should print out "My name is My
> > name is My name is...".
> >
> > It would make sense to me if it were:
> >
> >  >  $foo = 'Ed'; // Assign the value 'Ed' to $foo
> >  $bar = &$foo;// Reference $foo via $bar
> >  $bar = 'Bob';// changing $foo to 'Bob'
> >  $this = "My name is $bar";
> >  $that = "My name is $foo";
> >echo $this;/ /  prints out My name is
> Bob
> >echo $that;   / /   prints out My name is
> Bob
> > Maybe I'm not seeing how php rereads or cycles through the script once it
> > sees a "assign by reference"  Could someone explain please?
> > Thank you.
> >
> >
> > --
> > 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

> 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
As always, PHP and it's dedicated people come through again!
Hip, hip, HOORAY!
Thanks 


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




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]




[PHP] Remote Directory listing

2001-01-27 Thread Kif

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("$filename = ");
 print(filesize($filename));
 print("");
}
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




-- 
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 accept), 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 accept), 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 Straße 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("$filename = ");
 print(filesize($filename));
 print("");
}
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 suppos

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




Re: [PHP] Zend IDE price plans

2001-01-27 Thread Christopher Allen





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

An alternative is xemacs with the correct <.el >file.



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

2001-01-27 Thread mn_rio

Hi..

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

markus

-- 
Sent through GMX FreeMail - http://www.gmx.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] 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]




[PHP] include_path

2001-01-27 Thread Cal Evans

is there any way to determine the include_path from within a PHP script?

I want to see if a file exists within my include path before trying to do an
include.

Cal
http://www.calevans.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]




[PHP] include_path, and whatever won't let me use a simple include('file.php')

2001-01-27 Thread Maxim Maletsky

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]




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] FTP rawcommands -> FXP

2001-01-27 Thread Andreas Richter

I need a function to exec raw commands on a server, like "LIST" and esp. "LIST -al". I 
going to use it for programming a public php-fxp client.


mfg 



Re: [PHP] include_path, and whatever won't let me use a simple include('file.php')

2001-01-27 Thread Lewis Bergman

> include_path  = "p:\includes c:\phplib P:\other_staff" ;
> 
Add the directory itself. In Linux this would look like this:
include_path = .:/includes:/phplib:/other_staff
The "." is the current dir just as an ls -la or dir on windows would list. 
I don't know anything about how to configure PHP for windows but I assume 
the same problem is there.


-- 
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 Matthew Kendall

"James Mclean" <[EMAIL PROTECTED]> wrote...
> i do not have access to the cron system on my server, but
> would like to write a script that does some general housekeeping
> on my database, and various other things like removing old users,
> sending some newsletters etc...

What about putting the script in a regular PHP web page. Then you can call
up that page from any machine on the planet and the housekeeping functions
will be performed right then. So you could set up a cron job (or whatever)
on a machine you _do_ have admin access to, to simply call up the
housekeeping page on a regular basis. And you could use some basic
authentication to make sure the general public does not call up this page if
that is important to you, e.g. check the client IP address.



-- 
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] PHP/PDFLib on SCO

2001-01-27 Thread Michael Stearne

Has anyone here gotten or tried to get PHP with Pdflib working on SCO
(it's 5.0.5 I believe).  I have tried to compile PHP as a CGI but have
no luck with combining the two on SCO.  It compiles fineon Linux, but
I am looking for someone who has tried it on SCO.  PHP 4.0.4pl1/PDFLib
3.03

Thanks,
Michael


-- 
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)?
 


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=123&def=456

REDIRECT_ERROR_NOTES File does not exist: /home/rasmus/phpweb/blah
REDIRECT_QUERY_STRINGabc=123&def=345
REDIRECT_REQUEST_METHOD  GET
REDIRECT_STATUS  404
REDIRECT_URL /blah
QUERY_STRING 
REQUEST_URI  /blah?abc=123&def=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=123&def=456
>
>REDIRECT_ERROR_NOTES File does not exist: /home/rasmus/phpweb/blah
>REDIRECT_QUERY_STRINGabc=123&def=345
>REDIRECT_REQUEST_METHOD  GET
>REDIRECT_STATUS  404
>REDIRECT_URL /blah
>QUERY_STRING 
>REQUEST_URI  /blah?abc=123&def=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>   error_reporting(E_ALL);

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

AS>  function funct1(){
AS>global $file_name;
AS>if ($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(){
AS>global $file_name;
AS>if ($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 

[PHP] For India -- a fountain

2001-01-27 Thread Flupres5

For India / a fountain 

We have been working on a completely volunteer PHP/ MySQL / Linux project for 
about 6 months. It is a low-overhead way to showcase and fundraise for new 
small charitable projects.  We just received (Jan 10th) tax exemption from 
the IRS as well as clearance to give grants overseas.  We expected to 
complete work in about 2-3 months using part-time PHP coders. 

Then the earthquake happened.  

So we are asking ourselves, even though we are not prepared, if we can 
mobilize our resources and build this in time to give rebuilding grants, 
health grants, and other assistance grants to India.  It is impossible to do 
our very ambitious web-site with the handful of PHP coders and get it ready 
in time.

But I have been on PHP.net's list-serve for a few weeks and I have seen the 
*fountain* of knowledge and assistance and so I can't resist asking for your 
help.  Right now our team is distributed over the US (Virginia, California, 
Arizona) and we've had help from a coder in Croatia. And the last two to join 
are from Vitebsk, Bellarus, and Delhi, India. 

If you are interested in learning more please email me at 
[EMAIL PROTECTED] or [EMAIL PROTECTED]

I hope I didn't offend anyone for posting this non-tech notice but I had to 
ask.   If a few of you said yes, it could make it a whole different ballgame.

Mark 



Intelligence . . . is the faculty of making artificial
objects, especially tools to make tools.

--Henri Bergson



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

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


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 c

[PHP] [Newbie] - @

2001-01-27 Thread Steve Haemelinck

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]




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



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



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

2001-01-27 Thread Brian Clark


Hello Jimmy, 

(JB == "Jimmy Bäckström") [EMAIL PROTECTED] detected:

JB> $arr2[0] = $arr1[0];
JB> $arr2[1] = $arr1[1];

What is wrong with this?

$arr2 = $arr1;

Works fine for me.

-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
>
> ServerAdmin [EMAIL PROTECTED]
> ServerName subdomain.domain.com
> DocumentRoot C:\path\to\your\website
>
>
>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

Re: [PHP] NT5 Sub Domains

2001-01-27 Thread Brian Clark


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. =)



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




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
>
> ServerAdmin [EMAIL PROTECTED]
> ServerName subdomain.domain.com
> DocumentRoot C:\path\to\your\website
>
>
>Just be careful though...once you start using apache and such you'll be on
>linux in no time...I have three dev servers no

[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"


Options FollowSymLinks
AllowOverride None




Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny
Allow from all



UserDir "C:/Program Files/Apache/users/"



DirectoryIndex index.html


AccessFileName .htaccess


Order allow,deny
Deny from all


UseCanonicalName On


TypesConfig conf/mime.types


DefaultType text/plain


MIMEMagicFile conf/magic


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. =)



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

2001-01-27 Thread Kumanan

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





-- 
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 -> PHP 4 (CGI)

2001-01-27 Thread [ rswfire ]

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

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;

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 

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




  1   2   >