[PHP-WIN] USER_AGENT wrong thanks to proxy cache! Help!

2002-04-30 Thread Roderick Martin

I've got a script that calls the USER_AGENT variable and uses it to select a CCS
file to load. Problem is, as I move from browser to browser, apparently the
HTTP_USER gets stuck in the proxy cache and some browsers identify themselves as
other browsers.

Here's what I've found out. 

I have an .htm with several SSI's, one of which calls a .php. The .php runs fine
- no problem.

I upload the file to the server (Netscape Enterprise on NT) and load the page
through the proxy (which reports the HTTP_USER) on IE for Mac. HTTP_USER is
correct. I load the same page through the proxy on Mozilla for Mac. HTTP_USER is
correct. I can switch back and forth between these as many times as I like and
the info is correct.

Now I switch to Windows and load on IE6 through proxy. HTTP_USER is correct.
Netscape on Win? Correct. Now if I go back to the Mac and try IE again, it
reports the HTTP_USER as IE6 on Windows NT. 

We have a couple Win boxes that don't go through the proxy, so I ran this same
test again with a renamed file and then the HTTP_USER is correct.

So... I apparently can jump between browsers on Macs with no ill side-effects.
If I avoid the proxy on Windows I'm safe, but as soon as I hit a Windows browser
through the proxy, the HTTP_USER is stuck on that browser identity when I return
to the Mac side.

Our server admin has blocked .php and .css files from being cached in the proxy,
but it seems to have no effect. He personally wants to know if there is anything
else he can block that might help.

Me? I'm baffled, which isn't hard as I'm relatively new to PHP.

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




RE: [PHP-WIN] USER_AGENT wrong thanks to proxy cache! Help!

2002-05-01 Thread Roderick Martin

The proxy server is a Compaq TaskSmart server (C1500) with the latest updates.

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




[PHP-WIN] Mixing include path styles. How do I do this???

2002-10-23 Thread Roderick Martin
We recently switched from Netscape Enterprise to IIS and I now need to 
make a lot of changes to over 600 htmls - mostly in include statements. 
We're doing two things here, switching servers and switching all our 
SSI's to PHP includes.

Under Enterprise, I could define a path just by putting it into the 
include from the root, ie:



I used a global Find and Replace app to change all these (each html has 
about eight includes) to:



and now they don't work. If I replace the whole path with a Windows 
path structure (C:\...) to the included file, it does work.

Here's the problem as I see it. I can easily do another Find and 
Replace to add in the first part of the directory tree to the web 
directory. What I cannot easily do is change the "/" to "\" inside the 
path for the part of the path that's already there.

Is there some way to define the path to the web directory using "\", 
maybe in a variable and then somehow/way switch over to "/" so I don't 
have to mess with the paths I already have?

Or maybe there's a solution I'm not even aware of. Thank you.


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



Re: [PHP-WIN] Mixing include path styles. How do I do this???

2002-10-23 Thread Roderick Martin
My bad! Windows is definitely not a strong suit with me. I did not know 
I could do the drive paths with the reverse slashes. I tried it and it 
worked flawlessly! Thank you!!!

All I have to do now is add the drive path up to the web directory to 
the replace.

Thanks again! Easier than I could have hoped for.

Rod

On Wednesday, October 23, 2002, at 10:13  AM, Rich Gray wrote:

Roderick

Have you tried just changing '/acc/includes/headstart.htm' to
'c:/acc/includes/headstart.htm'? i.e. leaving the unix style slashes in
place...

There is a nasty bug in the latest versions of PHP on Win32 affecting 
the
include statement with absolute paths.
The above is a workaround solution - once the bug is fixed you should 
be
able to remove the 'c:' stuff.

HIW!
Rich
-----Original Message-
From: Roderick Martin [mailto:maillist@;network23.com]
Sent: 23 October 2002 15:43
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Mixing include path styles. How do I do this???


We recently switched from Netscape Enterprise to IIS and I now need to
make a lot of changes to over 600 htmls - mostly in include statements.
We're doing two things here, switching servers and switching all our
SSI's to PHP includes.

Under Enterprise, I could define a path just by putting it into the
include from the root, ie:



I used a global Find and Replace app to change all these (each html has
about eight includes) to:



and now they don't work. If I replace the whole path with a Windows
path structure (C:\...) to the included file, it does work.

Here's the problem as I see it. I can easily do another Find and
Replace to add in the first part of the directory tree to the web
directory. What I cannot easily do is change the "/" to "\" inside the
path for the part of the path that's already there.

Is there some way to define the path to the web directory using "\",
maybe in a variable and then somehow/way switch over to "/" so I don't
have to mess with the paths I already have?

Or maybe there's a solution I'm not even aware of. Thank you.


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




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




[PHP-WIN] MySQL security hole - how to fix??

2003-10-02 Thread Roderick Martin
According to this article, there is a major security leak in all 
versions of MySQL...

http://www.eweek.com/article2/0,4149,1306270,00.asp

The article provides a link to a patch, but I find two things 
confusing...

1. All the patches on that page are ancient. Why wouldn't these patches 
have been incorporated into MySQL by now, or is the article incorrect.

2. I can't tell which of the patches I need to fix MySQL running on 
Windows 2000 under IIS.

Can someone more knowledgeable than I shed some light on these?

Thanks!

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


[PHP-WIN] MySQL security hole - how to fix??

2003-10-03 Thread Roderick Martin
According to this article, there is a major security leak in all 
versions of MySQL...

http://www.eweek.com/article2/0,4149,1306270,00.asp

The article provides a link to a patch, but I find two things 
confusing...

1. All the patches on that page are ancient. Why wouldn't these patches 
have been incorporated into MySQL by now, or is the article incorrect.

2. I can't tell which of the patches I need to fix MySQL running on 
Windows 2000 under IIS.

Can someone more knowledgeable than I shed some light on these?

Thanks!

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


[PHP-WIN] MySQL service won't start

2003-10-27 Thread Roderick Martin
I followed the installation instructions for MySQL (installing MySQL 4 
on a Windows NT 4 box), it appeared to install fine, and the initial 
launch from command line produced the correct response, but we have 
been unable to install it as a service, getting this error...

Could not start the MySQL service on \\xxx. Error 1067: process 
terminated unexpectedly.

Any ideas?

Thanks!

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


[PHP-WIN] Re: Error connecting to MySQL Database

2003-10-28 Thread Roderick Martin
Michael Hollmann,

We tried deleting all the keys (some LEGACY-MYSQL would not delete no 
matter what we tried), deinstalling, trying to delete the keys that 
wouldn't delete before again, and reinstalling.

Same error.

We can run it using "mysqld --console", and it SAYS it's installed as a 
service, but it won't run. We've tried searching through the registry 
for all mysql instances and making sure the path is correct. Still no 
go.

Other items that might help... PHP was installed on this machine before 
(3.23.48, I think), but we removed all traces of it before installing 
PHP4. We are also trying to install it on our D: drive, rather than our 
C: drive.

Shadow,

What do you mean try it from root? And if I want to uninstall the 
driver, what file is that exactly? Thanks!
On Oct 27, 2003, at 1:09 PM, Shadow wrote:

Did you try from the root?  Is the driver in services? Check and 
seeif
you can't start if from services... Go to /mysql/bin and uninstall the
driver then reinstall it. http://www.mysql.com/doc/en/Installing.html
Shadow

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


[PHP-WIN] Why is phpinfo giving me these version numbers?

2003-11-05 Thread Roderick Martin
I had PHP 4 and MySQL 3 installed on a Windows NT4 server running 
Netscape Enterprise. Two weeks ago, I went in, wiped out all traces I 
could find of MySQL and installed MySQL 4. Everything went okay except 
it refuses to run as a service.

Today I ran phpinfo and under mysql, I have these values...

MySQL Support: enabled
Active Persistent Links: 0
Active Links: 0
Client API version: 3.23.32
DirectiveLocal Value			Master Value

mysql.allow_persistent  On  On
mysql.default_host  no valueno 
value
mysql.default_password  no valueno value
mysql.default_port  no valueno 
value
mysql.default_socketno valueno 
value
mysql.default_user  no valueno 
value
mysql.max_links Unlimited   
Unlimited
mysql.max_persistentUnlimited   
Unlimited
My first question is; shouldn't the Client API version show me the 
4.x.x of MySQL that I installed?

My second question is why are almost all the other directives have no 
value?

And might this indicate why it won't run as a service?

Re: [PHP-WIN] Why is phpinfo giving me these version numbers?

2003-11-06 Thread Roderick Martin
Which log should I be looking at? MySQL appears to maintain several 
logs.

On Nov 5, 2003, at 11:59 AM, Eric COLINET wrote:

Hi !

I'm not familiar with the services of windows but for:

- The first question: The version number shown is the version 
number of the client API ie the part of the code that was compiled 
with PHP (ext/mysql).
   under windows the mysql librairy that is bundled with the 
PHP distribution is always compiled in.
   I don't now if it's an issue with MySQL 4 but i don't think 
so and PHP itself can't stop your MySQL4 service

- The second question: The directives are set in your php.ini 
file that is somewhere on your system, check the PHP documentation but 
it's safe to let the default values (ie: no value).

For the problem that MySQL won't run as a service you should check the 
log of your MySQL server, the reason could be trivial.

Good luck ;)

Eric

At 16:40 05/11/2003, Roderick Martin wrote:
I had PHP 4 and MySQL 3 installed on a Windows NT4 server running 
Netscape Enterprise. Two weeks ago, I went in, wiped out all traces I 
could find of MySQL and installed MySQL 4. Everything went okay 
except it refuses to run as a service.

Today I ran phpinfo and under mysql, I have these values...

MySQL Support: enabled
Active Persistent Links: 0
Active Links: 0
Client API version: 3.23.32
Directive   Local Value   
  Master Value

mysql.allow_persistent  On
  On
mysql.default_host  no value  
  no value
mysql.default_password  no value  
  no value
mysql.default_port  no value  
  no value
mysql.default_socketno value  
  no value
mysql.default_user  no value  
  no value
mysql.max_links Unlimited  Unlimited
mysql.max_persistentUnlimited  Unlimited

My first question is; shouldn't the Client API version show me the 
4.x.x of MySQL that I installed?

My second question is why are almost all the other directives have no 
value?

And might this indicate why it won't run as a service?


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


[PHP-WIN] Fatal error, but include_path seems correct?

2003-11-13 Thread Roderick Martin
My setup:
PHP 4.0.6
Windows NT 4.0
Netscape-Enterprise/3.6 SP3
Installed phpMyAdmin to the root of the server, which is  
d:/Netscape/SuiteSpot/docs/phpMyAdmin254/

I get the error: Fatal error: Failed opening required  
'./libraries/grab_globals.lib.php'  
(include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: 
\Netscape\SuiteSpot\docs\phpMyAdmin254\libraries')  
ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9

As you can see, I've added the path to phpMyAdmin in my include_path,  
but it still errors out.

Yes, there is a /libraries folder containing grab_globals.lib.php.

Any suggestions?

Re: [PHP-WIN] Fatal error, but include_path seems correct?

2003-11-13 Thread Roderick Martin
Tried it. Same error message...

Fatal error: Failed opening required './libraries/grab_globals.lib.php'  
(include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: 
\Netscape\SuiteSpot\docs\phpMyAdmin254')  
ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9

On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote:

Try :
D: \Netscape\SuiteSpot\docs\phpMyAdmin254
Instead of :
D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries
for your include path.
Eric

At 16:34 13/11/2003, Roderick Martin wrote:
My setup:
PHP 4.0.6
Windows NT 4.0
Netscape-Enterprise/3.6 SP3
Installed phpMyAdmin to the root of the server, which is
d:/Netscape/SuiteSpot/docs/phpMyAdmin254/
I get the error: Fatal error: Failed opening required
'./libraries/grab_globals.lib.php'
(include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:  
\Netscape\SuiteSpot\docs\phpMyAdmin254\libraries')
ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9

As you can see, I've added the path to phpMyAdmin in my include_path,
but it still errors out.
Yes, there is a /libraries folder containing grab_globals.lib.php.

Any suggestions?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] Fatal error, but include_path seems correct?

2003-11-14 Thread Roderick Martin
Toby,

Maybe this is something.

$cfg['PmaAbsoluteUri'] is set to  
"http://www.myserver.com/phpMyAdmin254";  (of course, myserver being my  
real server)
$cfg['Servers'][$i]['host']  = 'localhost';

Both of these were set this way already (before your suggestion).

Now, mysql runs locally in a console with its setting pointing to  
"localhost". Might the problem be that PmaAbsoluteUri is not set to the  
"localhost" equivalent, but the "external" URL?

If so, how do I figure out where "http://localhost/"; points to so I can  
complete the path? I tried entering "http://localhost/"; in IE on the  
source computer, but I got an error.

thanks!!!

On Nov 13, 2003, at 11:54 PM, toby z wrote:

hay rod

locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file
and put the path by which ur trying to access myadmin . like
 'http://localhost/myadmin/';

then
$cfgServers[$i]['host'] = 'localhost';
and 3rd  u need-not include path to myadmin in ur include_path in
php.ini :)
good luck

toby

configurtion is a rather hair-tearing and mind-repairing process 
bare with it :)
 --- Roderick Martin <[EMAIL PROTECTED]> wrote: > Tried it.
Same error message...
Fatal error: Failed opening required
'./libraries/grab_globals.lib.php'
(include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:
\Netscape\SuiteSpot\docs\phpMyAdmin254')
ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9
On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote:

Try :
D: \Netscape\SuiteSpot\docs\phpMyAdmin254
Instead of :
D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries
for your include path.
Eric

At 16:34 13/11/2003, Roderick Martin wrote:
My setup:
PHP 4.0.6
Windows NT 4.0
Netscape-Enterprise/3.6 SP3
Installed phpMyAdmin to the root of the server, which is
d:/Netscape/SuiteSpot/docs/phpMyAdmin254/
I get the error: Fatal error: Failed opening required
'./libraries/grab_globals.lib.php'
(include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:
\Netscape\SuiteSpot\docs\phpMyAdmin254\libraries')
ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9
As you can see, I've added the path to phpMyAdmin in my
include_path,
but it still errors out.

Yes, there is a /libraries folder containing
grab_globals.lib.php.
Any suggestions?
--  
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



___ 
_
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

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

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


[PHP-WIN] Using PHP to reload a page w/variable.

2003-11-19 Thread Roderick Martin
I'm finding it hard to believe this is as difficult as it appears, but 
everywhere I search indicates that what I want to do is not an easy 
task.

How do you code this?

You have a user signup page and the user fills it out, filling out two 
password fields to ensure they typed it in properly and hit Submit.

How in PHP do you evaluate the password strings (or other strings like 
checking email for a valid email address) and if something is wrong, 
reload the page.

In my case, I have one page that does multiple things and I pass 
variables to determine what parts of the page load, so ideally, I'd 
like to reload the page and pass a variable so I can reveal some text 
like "Please retype your password".

Is it really as difficult as some sites make it out to be? It seems to 
be a pretty common thing to do.

Thanks!

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


Re: [PHP-WIN] Re: Sending Mail with PHP.

2003-11-25 Thread Roderick Martin
Can anyone tell me how to configure the SMTP server in the .ini file? 
For instance, does it take an IP address, or what? We are running 
WindowsNT 4 and our SMTP line is set to 'localhost' which I am almost 
sure is incorrect.

Any help would be great!

Thanks!

On Aug 31, 2003, at 10:53 PM, Manuel Lemos wrote:

Hello,

On 08/31/2003 03:26 PM, [EMAIL PROTECTED] wrote:
Hi all, I've been using PHP over the last year now, and have become 
quite capable with the language, but, there is one function/feature 
that I have yet to try/use, and that is the mail() function.
I am gonna start to learn it to night, but was wondering if there was 
any adjustments that were needed within the php.ini file before I 
actually start writing up the code.
The function seems staright forward enough to execute, but are there 
any other things i should know that is required to send email via PHP 
scripts.
I am using AOL to send and recieve emails.
You need to configure the SMTP server and the sendmail_from address in 
the php.ini file. If your SMTP server requires authentication you may 
get errors and it does not deliver messages.

The mail() function is mostly to send simple messages. To send more 
complex messages (HTML, images, attachments, etc..) you may want to 
try this class that makes your task easier and compliant with the 
e-mail standards. The class also comes with a sub-class specialized in 
deliverying via SMTP with authentication support if necessary:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

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