[PHP] Testing list access - Please ignore this message

2002-10-08 Thread Dave Goodrich

testing internal relay sendmail.cf
-- 
Dave Goodrich
System Administrator
TLS.NET
Columbus IN
http://tls.net
[EMAIL PROTECTED]


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




Re: [PHP] Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-10 Thread Dave Goodrich

Look into Openlink.

We used, they still use, MSSQL with PHP running on Unix/Linux at my 
last employer. I was a happy customer not a spokesperson. It worked 
as advertised, no fuss, no problems. In a production environment that 
is what you want.

DAve

 Hi.. it's me again :)
 
 We have a few different servers here, most of which are FreeBSD,
 including our internal web server (Apache 1.3.24). We have PHP 4.2.0
 installed as well.
 
 Currently I'm running my MSSQL query scripts on a Win2k webserver, as
 I can't seem to get PHP to talk to MSSQL on the FreeBSD side. I'd
 really prefer to have my PHP scripts all running on the FreeBSD side,
 rather than on Win2k.
 
 We do have Perl able to talk to the MSSQL server using FreeTDS and the
 DBI::Sybase package on the same FreeBSD machine.
 
 My ./configure:
 
   ./configure --prefix=/usr/local
   --with-apache=/home/src/Apache/Apachetoolbox
 -1.5.56/apache_1.3.24 --enable-exif --enable-track-vars 
 --with-calendar=shared -
 -enable-safe-mode --enable-magic-quotes --enable-trans-sid
 --enable-wddx --enabl e-ftp --with-gd=/usr/local --with-zlib
 --enable-gd-native-tt --with-t1lib=/usr/l ocal
 --with-jpeg-dir=/usr/local --with-png-dir=/usr/local
 --with-zlib-dir=/usr - -with-ttf --with-freetype-dir=/usr/local
 --with-unixodbc=/usr/local/unixODBC --w ith-openssl=/usr/local
 --with-curl=/usr/local --enable-apc --with-mysql=/sw/mysq l
 --with-mssql=/usr/local/etc/freetds
 --with-sybase=/usr/local/etc/freetds
 
 (built using ApacheToolbox, 1.5.56)
 
 FreeTDS' interfaces file is located in /usr/local/etc/freetds, which
 it is/was my understanding that this is what's supposed to be there.
 Yet not only does PHP give me:
 
 Fatal error: Call to undefined function: mssql_connect() in 
 /usr/home/inweb/inside.lumeta.com/htdocs/TaskInfoCompletedProj1.php on
 line 82
 
 (and yes, if I put the sybase_connect() in I get the same error only
 it says sybase*)
 
 What am I missing here? Is there another package I need that I
 neglected to install? Am I just not configured properly? *sigh*
 Debugging this stuff is always fun :)
 
 Thanks in advance.. hope I'm not bein a PITA :)
 Glenn
 
 ---
 Glenn E. Sieb, System Administrator
 Lumeta Corp. mailto:[EMAIL PROTECTED]
 +1 732 357-3514 (V)
 +1 732 564-0731 (Fax)
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 



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




Re: [PHP] SERVER INFO

2002-03-15 Thread Dave Goodrich

Dani, you have so much to learn. There are many issues to be considered 
when creating a webserver, but all are within your grasp. I suggest a 
trip to your local bookstore to get a copy of Running Linux. Read 
every page, every single page. Then you will know the answer to your 
question, and where to find more answers to the questions you will 
certainly have after reading the book.

You will need to know about filesystems, text editors (VIM Emacs Joe 
Jed), TCP/IP, DNS, PPP, web server configuration, security, users and 
groups, make, /usr/bin/sh, etc. The list of links I would supply you 
with for information about the steps of setting up a server(LINUX) so 
that people can find a certain URL address?  would quite large. I would 
also suggest locating a local user group in your area and join a newbies 
list for your Linux distribution (I've found these to be the best 
behaved and most informative lists on the internet).

Good luck, feel free to ask me anything you like off the list. I'll try 
to be as helpfull as I can.

DAve

Dani wrote:

 Hi all,
 
 I appologise if this is off topic but I don't know who to ask. I hope
 you guys don't mind.
 
 Does any body know where I can find information about the steps of
 setting up a server(LINUX) so that people can find a certain URL
 address?
 
 I want to sent up a small server for myself from home with my machine
 but I don't know how to make it so that the web pages that I put in
 my
 server accessable by other people around the world.
 
 do I have to connect my modem into my phone line (online) all the
 time
 or...???
 
 Does my question make any sense?
 
 any help is welcome.
 
 regards,
 Dani
 
 
 



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




Re: [PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-21 Thread Dave Goodrich

Nope it fails when he removes the line. It fails on me as well, I tried
it. Also note I did say that the ouput of phpinfo() was correct. The
output showed the page had been handled by the php cgi binary, not the
module. 

The module has a large config line and several extensions
configured in, the cgi binary was compiled with nothing but ./configure
and the info page confirms this.

So it seems Apache is handling everything correct, the page gets passed to
the proper php binary, and the result is correctly served back to the
client.

DAve


On Sun, Oct 21, 2001 at 12:18:07PM -0500, Brian Mauter wrote:
 Seems to me that the problems is that you have two instances of PHP going at
 the same time.  The first is the one compiled into Apache and the second is
 the cgi module.  My bet is that the PHP compiled into Apache is catching it
 first (maybe you told all .cgi files to be parsed by the PHP parser?).  In
 that case, the first line would be treated as HTML output, not PHP.  This
 would be the reason you get that line in all of your scripts.  Here's a
 test:  remove that line from your file and then try it.  If it continues to
 work, I would seriously suspect that the built-in Apache-PHP parser is
 handling your .cgi files.
 
 -Brian
 
 -Original Message-
 From: Dave Goodrich [mailto:[EMAIL PROTECTED]]
 
  * snip
 info.cgi
 #!/usr/local/bin/php
 ?php
   phpinfo();
 ?
 

-- 
My other computer is your Windows machine...



-- 
PHP General Mailing List (http://www.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] Re-send (Download the whole directory using PHP)

2001-10-20 Thread Dave Goodrich

If you mean use PHP to download a directory of your choosing...

You could send the url to wget or lynx. This would make it easy to pass
flags as well such as dir level to get, follow links, recursive Y/N, etc.

Never done it but I think exec is what you want.

DAve




On Sun, Oct 21, 2001 at 12:54:32AM +0800, Mark Lo wrote:
 Hi Sir,
 
 I have been asking this for so many times, and I never get a reply
 for this !!!   Please help me.  I would like to know how to download the
 whole directory using PHP.  Can anyone supply me some sources code for this.
 
   I am greatly appreciate for your help.
 
 
 Best Regards,
 
 
 Mark Lo
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
My other computer is your Windows machine...



-- 
PHP General Mailing List (http://www.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/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-20 Thread Dave Goodrich

It's not you. I just built a bare cgi version of php, nothing but
'./configure' and got the same result.

I used this simple script to be sure I was in fact running the cgi binary
and it showed I was.

info.cgi
#!/usr/local/bin/php
?php
phpinfo();
?

I got the correct info page, but with the #!/usr/local/bin/php at the top
as you stated. Odd, but I've never used the cgi version so other than
confirming your problem I am afraid I'm no help.

DAve

On Sat, Oct 20, 2001 at 03:31:06PM +, Philippe wrote:
 Hi,
 I'll synthetize the problem with the response I have givven to Curt. 
 
 I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6
 I've installed PHP in Apache, it works very well
 I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's 
 
 the problem) but I've a problem. 
 
 In CGI mode, the path of PHP is always written at the top of the result 
 
 I'll take for example this script which is in the cgi-bin with the execute 
 mod (755), the extension is .cgi : 
 
 
 #!/usr/local/bin/php
 ?
 print Hello World;
 ?
  
 
 When the file is called by the browser, the result is :
 
 #!/usr/local/bin/php
 Hello World
  
 
 Does someone know the problem and the solution ?
 Have I forgotten something ? 
 
 I think that's a misconfiguration in PHP 
 
 Thanks for your help 
 
 Philippe 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
My other computer is your Windows machine...



-- 
PHP General Mailing List (http://www.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] Wget and PHP

2001-07-15 Thread DAve Goodrich

Wget works just fine for me here. The one problem I see is if you need to
complete a form for entry, session login, then it can be a problem. I solve
that by allowing a no login on our development box behind the firewall.

I'm sure it could be done use a post (php has a post class I believe) since
wget can read url inputs from a file.

What doesn't work on your end?

DAve

on 7/15/01 9:59 AM, Clayton Dukes at [EMAIL PROTECTED] wrote:

 Is there a utility available that will get PHP based websites?
 Wget doesn't do it
 
 TIA!
 
 Clayton Dukes
 CCNA, CCDA, CCDP, CCNP
 Download Free Essays, Term Papers and Cisco Training from
 http://www.gdd.net http://www.gdd.net
 
 

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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]OT I know, but WTF...

2001-07-15 Thread DAve Goodrich

on 7/15/01 9:43 AM, Chris Cocuzzo at [EMAIL PROTECTED] wrote:

 platform: win 98 se
 browser: IE 6 public beta
   
That is your problem. Tried MS website?

DAve

 proxie: not using one or whatever
 connection: LAN-mediaone
 
 -Original Message-
 From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 15, 2001 12:40 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP]OT I know, but WTF...
 
 
 Browser?
 Platform?
 Proxie?
 Connection type?
 
 DAve
 
 on 7/15/01 9:08 AM, Chris Cocuzzo at [EMAIL PROTECTED] wrote:
 
 hey-
 
 I know this is off topic, but I figured i'd ask to see if other people
 were
 experiencing similar problems. I'm having trouble accessing web
 sites/pages
 that are secure(https...obviously). I tried changing everything around in
 IE
 6, but so far nothing is working...any ideas?
 
 the error is the normal, annoying, page can't be found or dns error bull.
 
 chris
 

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Wget and PHP

2001-07-15 Thread DAve Goodrich

on 7/15/01 9:59 AM, Clayton Dukes at [EMAIL PROTECTED] wrote:
 
 Is there a utility available that will get PHP based websites?
 Wget doesn't do it
 
 TIA!
 
 Clayton Dukes
 CCNA, CCDA, CCDP, CCNP
 Download Free Essays, Term Papers and Cisco Training from
 http://www.gdd.net http://www.gdd.net

wget -A=html,php,php3 # list of accepted extensions
-r   # recursive web-suck -- use with care!
-l 3 # maximum recursion depth (0 to unlimit).
-k   # convert non-relative links to relative
-nv  # turn off verboseness, without being quiet

sysadmin@zeus:/usr/local/home/sysadmin$ wget -A=html,php,php3 -r -l 3 -k
-nv www.php.net
10:22:33 URL:http://www.php.net:80/ [18212] - www.php.net/index.html [1]
/search.php?show=nosourcepattern=%2Frobots.txt: Unknown/unsupported
protocol.
10:22:34 URL:http://www.php.net:80/downloads.php [14415] -
www.php.net/downloads.php [1]
10:22:36 URL:http://www.php.net:80/docs.php [27432] -
www.php.net/docs.php [1]
10:22:39 URL:http://www.php.net:80/FAQ.php [76465] - www.php.net/FAQ.php
[1]
10:22:40 URL:http://www.php.net:80/support.php [21866] -
www.php.net/support.php [1]
10:22:41 URL:http://www.php.net:80/bugs.php [38831] -
www.php.net/bugs.php [1]
10:22:42 URL:http://www.php.net:80/links.php [18090] -
www.php.net/links.php [1]
10:22:43 URL:http://www.php.net:80/license/ [12410] -
www.php.net/license/index.html [1]
10:22:44 URL:http://www.php.net:80/books.php [12035] -
www.php.net/books.php [1]
10:22:46 URL:http://www.php.net:80/manual/en/ [33099] -
www.php.net/manual/en/index.html [1]
10:22:46 URL:http://www.php.net:8000/manual/en/html/ [11043/11043] -
www.php.net/manual/en/html/index.html [1]

sysadmin@zeus:/usr/local/home/sysadmin/www.php.net$ ls -la
total 260
drwxr-xr-x   5 sysadmin rbldev   4096 Jul 15 10:22 ./
drwx--x--x  13 sysadmin rbldev   4096 Jul 15 10:21 ../
-rw-r--r--   1 sysadmin rbldev  76465 Jul 15 10:22 FAQ.php
-rw-r--r--   1 sysadmin rbldev  12035 Jul 15 10:22 books.php
-rw-r--r--   1 sysadmin rbldev  38831 Jul 15 10:22 bugs.php
-rw-r--r--   1 sysadmin rbldev  27432 Jul 15 10:22 docs.php
-rw-r--r--   1 sysadmin rbldev  14415 Jul 15 10:22 downloads.php
-rw-r--r--   1 sysadmin rbldev  18212 Jul 15 10:22 index.html
drwxr-xr-x   2 sysadmin rbldev   4096 Jul 15 10:22 license/
-rw-r--r--   1 sysadmin rbldev  18090 Jul 15 10:22 links.php
drwxr-xr-x  12 sysadmin rbldev   4096 Jul 15 10:23 manual/
drwxr-xr-x   2 sysadmin rbldev   4096 Jul 15 10:21 stats/
-rw-r--r--   1 sysadmin rbldev  21866 Jul 15 10:22 support.php
sysadmin@zeus:/usr/local/home/sysadmin/www.php.net$

DAve


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] apache not handling 404 errors for .php pages

2001-07-12 Thread DAve Goodrich

on 7/12/01 12:38 PM, scott [gts] at [EMAIL PROTECTED] wrote:

 I have custom 404 error handling setup on my linux apache
 box, however, there's a problem with files that have a PHP
 extension.  it seems that apache itself does not check for the
 existence of the requested .php file and fires up PHP no matter
 what.  if PHP does not find the requested file, it'll bail out
 with that dorky looking Internal Server Error *NOT* the
 custom error handler that apache uses for non-php files
 
 example: notexists.html and notexists.php both do not exist
 
 http://server.com/notexists.html
 will show me the custom 404 page
 
 http://server.com/notexists.php
 will show me the Internal Server Error, becuase apache fired
 up PHP and passed in notexists.php without checking for the
 existence of notexists.php first.
 
That would be the correct response from apache.
Add this to your httpd.conf

ErrorDocument 500 /path/to/my_error_page.html

That should get you the result you want.

DAve

P.S. http://httpd.apache.org/docs/custom-error.html.html

 A possible solution that comes to mind is to auto_prepend
 a script that will check for the existance of the file
 that PHP is attempting to execute, and die gracefully if
 it does not exist on the server but that would be a bad
 kludge hack (if it even works at all)
 
 anyone have a more elegant solution?

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Re: poor HTML syntax crashing (!) netscape

2001-07-08 Thread DAve Goodrich

Yes Netscape will be a problem for poor code and MSIE will not. HTML is very
straightforward like any other language, learn to write it properly and it
will do nothing that surprises you. A requirement for proper syntax is a
good thing in your delivery method (the browser).

PHP will roll over and die if you leave a ';' off the end of a line, but no
one claims it sucks. Don't shoot the messenger

View the offending page in MSIE, save to file, send to me directly, and I'll
be happy to take a look at it for you. We are a cross platform shop and test
everything on MSIE/Netscape 4+ on Mac, Windows, and Unix/Linux every day.

DAve

on 7/8/01 2:52 PM, Christian Calloway at [EMAIL PROTECTED] wrote:

 I've had the same problem with Netscape, where it would crash/choke on any
 platform. I never figured it out, but it has something to do with Netscape
 choking on your HTML, it has nothing to do with CSS or Javascript or PHP for
 that matter. I'm not an IE fan, but lets face it, Netscape sucks.
 
 
 Tom Carter [EMAIL PROTECTED] wrote in message
 02bb01c103fe$c51d1ac0$0a00a8c0@bjorn">news:02bb01c103fe$c51d1ac0$0a00a8c0@bjorn...
 Hi guys,
 
 I have an interesting situation at the moment... my (slightly sloppy) HTML
 is obviously missing a closing tag here or there but displays fine in
 opera,
 ie etc however when I try and view it netscape (4.x, windows, linux, any
 platform) netscape just nice and cleanly crashes!! If anyone knows of a
 bug
 which would cause netscape to do this then please let me know. The code in
 question is very dynamic (what I mean is that it can vary by quite a lot
 depending upon many many different things). Its qutie hard to debug,
 especially seeing as the page returned is browser specific.. the one thing
 I
 have ruled out is that it is JavaScript.. I removed all of that and no
 change.
 
 Any tips will be helpful... in the meanwhile I'm going to go thru all my
 functions to attempt to work out what is doing it  *yawn*
 
 TIA
 Tom.
 
 
 

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] closing window after submit

2001-06-30 Thread DAve Goodrich

on 6/28/01 3:57 PM, Richard Kurth at [EMAIL PROTECTED] wrote:

 I have a form that is in a pop up window it has an image for a submit
 button how can I close the pop up after submitting. I know I can do it
 with javascript with a standard submit button. but how can I do it when
 I use an image for a submit button
 
 
 form method=post action=?echo  $PHP_SELF;?
 input type=TEXT name=email size=30 maxlength=50
 input type=image src=fm_sub.gif width=71 height=11 border=0
 

 Best regards,
 Richard  
 mailto:[EMAIL PROTECTED]
 

Set a hidden variable within the form, then have PHP check the value when
the page reloads. if the variable is set, have PHP add a JavaScript line to
close the window immediately. !!! Note my syntax may be incorrect.

htmlheadtitleTest pagetitle
script language='Javascript'
 
?php 
  // if we have been here before, my_hidden_var = 1,
  // output some JavaScript to close the window.

  if ( $HTTP_POST_VARS[my_hidden_var] == 1 ){print window.close();}
?

/script
/head

body
form method=post action=?echo  $PHP_SELF;?
input type=TEXT name=email size=30 maxlength=50
input type=image src=fm_sub.gif width=71 height=11 border=0

!--add a hidden variable to tell PHP we have been here before---
input type=hidden name=my_hidden_var value=1


I believe this will do what you want. If the form has been submitted then
the value of my_hidden_var should cause PHP to insert the correct JavaScript
to close the window.

Is that what you are looking for?

I think a cleaner solution would be to have PHP check the value of the
my_hidden_var and redirect to a thank you page. This could be set to time
out and close if you wanted, or offer a validation step as well.

DAve

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] recompiling libphp4.so with -DEAPI

2001-06-22 Thread DAve Goodrich

on 6/22/01 8:59 AM, Tyler Longren at [EMAIL PROTECTED] wrote:

 Hello,
 
 I recompiled php/apache/openssl/mod_ssl yesterday on a server (exact same as
 I had done it before).  Before apache started up with SSL with no problem.
 Now when I start (./apachectl startssl), I get this warning:
 [Fri Jun 22 10:59:03 2001] [warn] Loaded DSO libexec/libphp4.so uses plain
 Apache 1.3 API, this module might crash under EAPI! (please recompile it
 with -DEAPI)
 
 Can I just recompile libphp4.a with DEAPI somehow and not have to recompile
 apache?  Here is the ./configure for php:
 './configure' '--with-apache=../apache_1.3.20' '--with-mysql'
 '--with-msql=/usr/local/Hughes' '--with-mcrypt' '--with-xml'
 '--disable-debug' '--enable-track-vars'
 
 Here was the ./configure from Apache:
 SSL_BASE=../openssl-0.9.6a
 ./configure --enable-module=ssl --enable-shared=ssl   --activate-module=src/
 modules/php4/libphp4.a --enable-module=php4 --enable-module=rewrite   --enab
 le-shared=rewrite --enable-module=cgi --enable-shared=cgi --enable-module=in
 clude  --enable-shared=include --prefix=/usr/local/apache
 
 Thanks everyone,
 Tyler
 

Is this the answer you need?

http://marc.theaimsgroup.com/?l=apache-modsslm=97687491607953w=2

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] List of included file names

2001-06-21 Thread DAve Goodrich

 -Original Message-
 From: Tim McGuire [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 19, 2001 2:30 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] List of included file names.
 
 
 Hi,
 
 I searched the archives for this.
 
 For debugging purposes, I want to see a list of the included files on a
 page in HTML comments.
 
 PHP_SELF and HTTP_SERVER_VARS[SCRIPT FILENAME] only returns the name +
 path of the file calling the included files.
 
 I want each included file to contribute its name to the page.  Is there
 any way to do that so that the HTML source looks like this:
 
 !-- These files contribute to this page - -
 
 !-- species_inc.php - -
 !-- db_connect_inc.php - -
 !-- constants_inc.php - - 
 
 
 Thanks
 
 Tim
 
Here is a URL for an answer I sent Tim, just in case anyone else is
interested. I posted the file rather than sending an attachment.

http://pixelhammer.com/sample.txt

It's fairly self explanatory, hope it helps.

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Apache config + PHP include paths

2001-06-21 Thread DAve Goodrich

on 6/21/01 8:14 AM, Butler, Shaun at [EMAIL PROTECTED] wrote:

 is there a way to set up a different include path per virtual host in the
 apache config or in the php.ini ?
 
 so www.blahblah.com would have /www/libs as the include path
 
 and 
 
 www.moomoo.com would have /www/moo
 
 -- Shaun

VirtualHost 123.456.789.000:80
DocumentRoot /usr/local/web/myWeb
ServerName myWeb.org
ServerAlias www.myWeb.org
php_value include_path /usr/local/web/myWeb_inc
CustomLog /usr/local/web/logs/myWeb_access_log combined
ErrorLog /usr/local/web/logs/myWeb_error_log
/VirtualHost 

That would make the include directory outside the server root. You could
just as easily put it inside and name all your files *.php. But that has
been discussed at length already ;^)

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] auto index in Apache

2001-06-19 Thread DAve Goodrich

on 6/19/01 9:03 AM, Zhu George-CZZ010 at [EMAIL PROTECTED] wrote:

 
 Please excuse me to post this Apache related question here, but I think most
 of you might be very familiar with Apache web sever and I couldn't find a
 Apache forum.
 
 In Apache, The index of a directory can come from one of two sources:
 1. A file written by the user, typically called index.html.
 
 2. A listing generated by the server. The other directives control the format
 of this listing. 
 
 My question is: if I am using the second method (i.e. using the listing
 generated by the server), how can I increase the maximum length of the
 displaying names for the files?  We have some files with long names, and the
 displaying names (not the URL) will get truncated if we use the second method.
 So, is there a way to increase the length for the displaying names?
 
 Thank you very much in advance.
 
 George
 

IfModule mod_autoindex.c

IndexOptions NameWidth=30

/IfModule 

That works, just tried it and got 30 characters. Provided you have
autoIndexing turned on.

DAve 
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.com





Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else hadproblems with php and Netscape 6?

2001-05-18 Thread DAve Goodrich

Have you tried this test with your code?

http://www.php.net/FAQ.php#7.8

The FAQ does not give a solution, but the problem is known to have affected
only select users. The problem is no-one seems to know what the selection
criteria is! Some people have the problem, some do not.

DAve


on 5/18/01 7:49 AM, Lucas Persona at [EMAIL PROTECTED] wrote:

 Jason,
 
 I've Replyed also to the lsit, because someone could help us on this...
 
 Jason Lotito wrote:
 Lucas Persona wrote:
 I was used to think on that way...
 Some time ago I have problems with Netscape 6 and PHP. It
 was not a HTML error
 but something related to PHP/Netscape 6.
 The problem was in showing correctly the source code.
 I had a page that includes another one, like a
 header/menu/footer main that includes
 a data area.
 If I just put the include (or require code) following the
 page sequence, that's ok, the Netscape 6 shows correctly the source.
 If I add something like (if (isSet($var)  $var == 10) {})
 before the include
 (or require) and $var exists and has value 10, the parser
 will process the include, show
 the page, but Netscape don't show the source code of this part.
 
 Unfortunately, I have a very hard time believing this.  Now, I can
 imagine a few instances where this might come into play, but then you
 would have to actually design for this to happen, but you didn't.  I
 would have to imagine that something was wrong with your actual code
 logic, as PHP is only as good as the HTML you code, and the logic you
 use.  If the if statement was failing, of course it would not include
 the file.  At the same time, why you used both isset() and $var == 10
 when $var == 10 would have worked fine also makes me wonder about the
 underlying code.
 
 Yeah I know...I can say that I still don't believe..but it happens! :)
 If you (or anyone here) has Netscape 6 (I'm using the 6.01) could try
 the following codes:
 
 File: netscape6.php
 ?php
 echo HTMLBODY\n;
 echo this is a test...this is the first partBR\n;
 echo this is a test...this is the second partBR\n;
 echo form method=\POST\ action=\netscape6.1.php\
 name=\netscape\\n;
 echo input type=hidden name=var value=10\n;
 echo input type=submit name=go value=\Test\\n;
 echo /form\n;
 echo /BODY/HTML\n;
 ?
 
 File: netscape6.1.php
 ?php
 echo HTMLBODY\n;
 echo 1) this is a test...this is the first partBR\n;
 echo this is a test...this is the second partBR\n;
 if ( $var == 10)
 {
 include ('netscape6.2.php');
 }
 echo this is a test...this is the last partbr\n;
 echo /BODY/HTML\n;
 ?
 
 File: netscape6.2.php
 ?php
 echo h1this is the other file.../h1\n;
 ?
 
 
 
 Ok, now that you have all the three sample files you can check for
 HTML errors...
 How I did the test:
 1. Run Netscape 6
 2. Access file netscape6.php
 3. Press the 'Test' button that POST to netscape6.1.php
 4. See the page and compare with the source code (View Page Source)
 5. Surprise! They are different...the netscape6.2.php file is not in the
 source.
 
 6. Change the netscape6.1.php file on the following lines:
 3: echo 2) this is a test...this is the first partBR\n;
 5: // if ( $var == 10)
 6: //{
 8: //}
 7. Great! Now that you just take the if statement out, clear the
 Netscape 
 Cache (Edit - Preferences - Advanced - Cache - Clear Memory Cache
 and 
 Clear Disk Cache)
 8. Access file netscape6.php again..
 9. Press the 'Test' button that POST to netscape6.1.php
 10. The result is the same that you've get before but now, when you view
 the source code, the result of netscape6.2.php is there too..
 11. Be sure to see the '2)' on the Page Source. If the '1)' is still
 there 
 you need to clean your cache.
 
 Anyone did this test? How Netscape know that there is an if statment
 there??
 Any point that I'm missing on this test?
 
 This is not a big deal when dealing with simple pages, but,
 if you have a form on this
 page, it will not work right since after the page comes to
 the browser and is shown, it
 doesn't recognize it anymore.
 It's very strange but I tested it and it happened that
 way...changing something on PHP
 code, changes the behaviour of the browser..
 
 No.  PHP does what you tell it to do, and by all accounts, I can only
 see that you were telling PHP NOT to display the code.
 
 Try the test above.. It shows the code but netscape doesn't know that.
 
 See you,
 Lucas Persona

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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

[PHP] Arg seperators

2001-05-18 Thread DAve Goodrich

According to the w3c validation program;

A URL for a CGI program that uses `' as a separator, such as
http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI
didn't think things through very carefully when they decided to use the ''
character as a separator between CGI arguments, because '' has special
status in HTML. One way to get around this is for the author of the CGI
program to use a different value between arguments, like ';' or '|', which
would allow the link to be coded as img
src=http://site/cgi?opt1=val1;opt2=val2; or whatever.

I know that php 4.0.5 has a new ini directive for this, is there any way to
change this on older versions of PHP?

Thanks,

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Arg seperators

2001-05-18 Thread DAve Goodrich

on 5/18/01 8:58 AM, Rasmus Lerdorf at [EMAIL PROTECTED] wrote:

 According to the w3c validation program;
 
 A URL for a CGI program that uses `' as a separator, such as
 http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI
 didn't think things through very carefully when they decided to use the ''
 character as a separator between CGI arguments, because '' has special
 status in HTML. One way to get around this is for the author of the CGI
 program to use a different value between arguments, like ';' or '|', which
 would allow the link to be coded as img
 src=http://site/cgi?opt1=val1;opt2=val2; or whatever.
 
 I know that php 4.0.5 has a new ini directive for this, is there any way to
 change this on older versions of PHP?
 
 That directive has been there for a long time.
 
 -Rasmus
 

Ahhh  you are right! I appologise.

I am confused now because arg_seperator...

is not in the php.ini sample (php.ini_dist),

but it is in http://www.php.net/manual/en/ref.info.php,

but it's not in http://www.php.net/manual/en/configuration.php,

But it is in the output of php.info(),

Is there a *single* source of the options and their values that can be
set/unset using php.ini, or http.conf? When/where these can be set?

Would I be able to get this info into a matrix for everyones benefit?
Something like the table at
http://www.php.net/manual/en/function.ini-set.php

Thanks,

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Netscape 6, What a piece of s$#@ , anyone else hadproblems with php and Netscape 6?

2001-05-17 Thread DAve Goodrich

Do you have a URL I could try? I've used PHP to generate a lot of dynamic js
and css.

DAve

on 5/17/01 1:50 PM, Billy Harvey at [EMAIL PROTECTED] wrote:

 1. I am not making a JavaScript version at all I don't see where I ever say
 this. ???
 
 2. If I copy the html outputted to the browser and past it into an html file
 it loads good.  When I say I suspect this to be something wrong with PHP I
 mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in it)
 
 Thanks,
 Brandon
 
 Brandon,
 
 Neither Netscape nor any other browser has any clue that PHP is being
 used on the server.  All broswers simply interpret the html,
 javascript, java, etc.that gets sent to them.  PHP is not a factor in
 whatever is causing a browser to misbehave.  For Netscape it's often
 an improperly formed table that causes trouble.  I occassionally find
 that people also use IE-centric code without realizing it (or perhaps
 without caring initially).
 
 Billy

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Netscape 6, What a piece of s$#@ , anyone else hadproblems with php and Netscape 6?

2001-05-17 Thread DAve Goodrich

You need some closing table row tags in lines 19,34,49,64,79,94.

DAve


on 5/17/01 4:21 PM, Brandon Orther at [EMAIL PROTECTED] wrote:

big snip

 
 --
 Dave Goodrich
 Director of Interface Development
 Reality Based Learning Company
 9521 NE Willows Road, Suite 100
 Redmond, WA 98052
 Toll Free 1-877-869-6603 ext. 237
 Fax (425) 558-5655
 [EMAIL PROTECTED]
 http://www.rblc.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]
 

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Unix file vs. Mac file formats

2001-05-09 Thread DAve Goodrich

on 5/9/01 9:42 AM, jon mclaughlin at [EMAIL PROTECTED] wrote:

 Help!
 
 Does anyone have any tips on how to deal with this problem I'm having:
 PHP 4.0.5 (on Redhat Linux as an Apache module) won't properly execute
 included files that are saved in the Mac file format instead of a Unix file
 format. (they use different characters to signify an end of line)
 
 The problem seems to arise with all code after a comment line declared with
 //. The code actually seems to display on the screen as HTML text. Changing
 the file to a Unix file format solves it.
 
 I'm trying to avoid changing all the files as we're moving dozens of sites
 from a previous Linux server with PHP v4.0.3pl1 to this new server. This
 problem doesn't happen on the old server.
 
 Is it an issue with the new version? Is there some sort of configuration
 switch I should be looking at? Any suggestions?
 
 Thanks!
 
 ..jon

In my experience PHP never has properly executed files in the Mac file
format. We also use Macs to code php here, but we have bbedit set to as Unix
file type.

There are several scripts out in the net both perl and bash that can do this
conversion for you, directory wide. Then tell your Mac programmers to change
their prefs and all should be well.


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] How does everyone else do this? .php in URL

2001-05-09 Thread DAve Goodrich

on 5/9/01 1:01 PM, Michael Champagne at [EMAIL PROTECTED] wrote:

 I have an area of our site where you can turn off certain 'systems' by
 clicking a button.  This is all done in HTML and it brings up a javascript box
 to verify that this is really what you want to do..  It then does a
 header(location: ...) to redirect to a .php file that locks down the site.
 The problem is that the browser saves this in the history and sometimes will
 do complete this .php file in a URL and the site is locked down by accident.
 Is there a better way to call a certain function of the site rather than doing
 a header(location: ...) redirection?  How does everyone else do this?
 
 Thanks!
 Mike

I do something like this to move files around between boxes. I have a
webpage that allows a traffic manager to select a date/time to checkout
files from CVS. This date stamp is written to a file, /tmp/doSync.tmp, and a
mail message warning of the impending checkout is sent to the traffic
manager. A cron job checks for the existence of /tmp/doSync.tmp, and if
found a CVS checkout is made to a temp directory /tmp/tempScripts/ using the
metadata from inside the file (date, time, etc).

Another cron script runs rsync to distribute the files where they belong,
and removes the /tmp/doSync.tmp script mailing the results of the rsync
script to the sysadmin.

The page that writes the original file is in PHP, and PHP scripts read the
contents of /tmp/doSync.tmp whenever a traffic manager loads the page to let
him/her know if a checkout is pending or not.

I get around your problem like this, the main page loads a form whose action
is a php script that will place the tmp file, and then redirects back to the
main page. This makes the redirect happen after the fact. I also have a lag
in the cron job to give the traffic manager a chance to intercede after
receiving the mail notification.

Does that make sense?

main.php
  form action='place_temp.php'

place_temp.php
  if ($fp=fopen('/tmp/doSync.tmp', 'w')) {
fwrite($fp,$cvsDateTime \n);
fclose($fp);
chmod(/tmp/tmp/doSync.tmp, 0666);
$message = A checkout of HTML/PHP files is scheduled \n;
$message .= If this is an error, you may cancel ;
$message .= a href='http://dev.server.com/rm_temp.php'here./a;
mail([EMAIL PROTECTED],Files moving Live!!,$message);
header(Location: main.php);

} else {

header(Location: main.php);
}

Cron jobs do the rest.


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] template solutions?

2001-04-30 Thread Dave Goodrich


On Monday, April 30, 2001, at 12:02 PM, Steven Haryanto wrote:

 Security? I do not want other people to have access to the PHP runtime
 (where they can do nasty things like stealing my database password,
 etc). PHP currently does not support any restricted execution of user
 code whatsoever.

in httpd.conf

VirtualHost 192.168.3.8
 DocumentRoot /usr/local/www/thisUser
 ServerName thisUser.myServer.com
 php_value include_path /usr/local/www/thisUser/inc
 php_value open_basedir /usr/local/www/thisUser
/VirtualHost

You could do a lot to control your users abilities/privleges in this way.

Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655
[EMAIL PROTECTED]
http://www.rblc.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] MSIE on Windows can't open PDF via SSL

2001-04-24 Thread DAve Goodrich

First off I'm aware of the service pack, installed it, no fix.

Currently we build a PDF for download to represent a hardcopy of our
customers data. It works very well so far and will likely become a standard
feature. We experienced no problems with cross-platform use until we moved
into a mod_ssl server. The PDFs are no served from within the SSL realm. We
changed no code but now MSIE on W2K and NT cannot get a PDF, MSIE complains
that the file cannot be found. The ssl_request log shows no error and the
file was served completely. All Macs, Unixes, and NAV on wintel platforms
work fine.
   

This works:
Dynamic PDF (built with php) over http MSIE/NAV PC/MAC
Dynamic PDF (built with php) over https MSIE/NAV MAC and NAV PC
Static PDF over http MSIE/NAV PC/MAC
Static PDF over https MSIE/NAV PC/MAC

This doesn't:
Dynamic PDF (built with php) over https MSIE on PC

Param strings on the URL make no difference (think sessions), failure still
occurs with the same message. That was why I tested static PDFs, just to be
sure.

We are running -
   Apache 1.3.12
   PHP 4.0.0
   CPDF 2.02-r1-2

The code in question is as follows,

?php

session_start();

   
$cpdf = cpdf_open(0);

build pdf things here

cpdf_finalize($cpdf);

header(Content-type: application/pdf);
header(Content-Disposition: attachment; filename=Results.pdf);
header(Content-Description: PHP Generated PDF );

cpdf_output_buffer($cpdf);

cpdf_close($cpdf);
?

Any thoughts, suggestions, WAGs would be appreciated.


DAve


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] RE: Word docs

2001-03-23 Thread DAve Goodrich

Sorry I deleted the message, but here are some options for converting word
docs on the fly. I'd think you could easily pipe docs through these tools to
get the output you want.

http://word2x.alcom.co.uk/

http://www.wvWare.com/

an online document converter using wv to do the conversion. Works fairly
well when I've needed it.
http://www.freeviewer.com/

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] FAQ

2001-03-15 Thread DAve Goodrich

askedagain.com/net/org are available.

on 3/15/01 9:17 AM, RBL at [EMAIL PROTECTED] wrote:

 I once thought a great product for mail lists (would require an admin
 interface, PHP?) would be a way to put into the list mail signature a random
 FAQ link. 
 
 Fill that particular FAQ with commonly asked questions and have the FAQ sent
 out each month to all subscribers. A decent threaded mail reader would make
 this reasonably easy (notice I did not say *simple*) to administer.
 


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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] Detecting JavaScript

2001-02-26 Thread Dave Goodrich

Nothing tested, just off the top of my head. The single most reliable way to
do that would be to have a page that runs JavaScript.

For instance, if the JavaScript executes, it redirects to your JavaScript
enabled page, if not, the page does a refresh to a non JavaScript enabled
page.

htmlheadtitletester/title
script language='JavaScript'
window.location('http://some.javascript.enabled.page');
/script
meta http-equiv=refresh content='5;url=http://some.nonjavascripting.page'
/head

The trick would be a matter of timing, the JavaScript must successfully
execute before the timer runs out on the refresh tag. You can of course get
much fancier, changing the redirect based on the client information that PHP
has available. PHP could effectively write the JavaScript to the page based
on the known capabilities of the client. For instance the refresh tag is
generally useless for browsers like Lynx, as is the JavaScript.

Alternatively, you could (just supposing now...) have the first page do an
instant refresh, using JavaScript to trigger a value in PHP. If the value is
set, JavaScript was enabled, if it is not, JavaScript was turned off.

But I've not tried it.

DAve

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.com


 From: Jochen Kchelin [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sun, 25 Feb 2001 05:37:17 +0100
 To: "Php-General@Lists. Php. Net" [EMAIL PROTECTED]
 Subject: [PHP] Detecting JavaScript
 
 Who can give me a PHP-Script to
 detect if JavaScript is enabled?
 
 It should work with both, IE and NN!
 
 thanks
 
 --
 Ihr WEBberater
 Stuttgarter Str.3, D-73033 Gppingen
 Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598
 http://www.wa-p.de ** mailto:[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] PHP mail as 'nobody'

2001-02-05 Thread Dave Goodrich

We have a series of subscribed e-mails that go out to customers, you know
"Forgot your password?" type thing. Theses are generated by a PHP process
and as such carry PHP/Apache's process ID.

The problem is that some of our customers are now blocking mail from user
'nobody', regardless if the account exists or not. I can have PHP write the
complete headers but that doesn't stop the 'from' header in Sendmail being
written (the true user process). I have two choices as I see it.

1) Use 'masquerade_envelope' feature in Sendmail
2) Change the process name PHP/Apache is running under
(ex: change the unprivledged user 'nobody' to 'fantasic-elastic')

Has anyone experienced this yet? Any suggestions as to which would be the
best solution? I'm leaning towards changing the user of PHP/Apache simply
because it doesn't cause a reliance on Sendmail.

Thanks,

DAve
--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.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]