php-windows Digest 9 Nov 2004 13:41:20 -0000 Issue 2461

Topics (messages 24937 through 24947):

Re: running an exe
        24937 by: Jason Barnett
        24940 by: Mike

Re: mail function not working
        24938 by: Miha Nedok

Re: Recommended PHP search engine?
        24939 by: Manuel Lemos
        24945 by: Zareef Ahmed

Re: Time Zones for windows
        24941 by: Gryffyn, Trevor
        24942 by: Kim

cannot delete libmysql.dll
        24943 by: MW
        24944 by: Mike
        24946 by: Murray . PlanetThoughtful.org

Re: 2 sites accessing 1 db - problem
        24947 by: Sudeep

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]


----------------------------------------------------------------------
--- Begin Message ---
Please send all responses to the list, not to me personally.  Thanks.

*** Begin e-mail message ***

This is only for use on local intranet!!

The problem is I want to install the software which comprises of 4 files
(setup.exe,setup.w02,setup.w03,setup.w04) from a link on the intrAnet.
It works fine on the local machine, but as soon as I try across the network,
it obviously wont find the second file to install. Ie. Access the link from
a remote machine, and install locally on that remote machine.

Is the best way to copy the files locally, or is there a better method?

> yes, I would just copy the files locally unless you have a *lot* of updates to
> do (either often or just a lot of machines).  Just not worth the risk IMO...
> even if it's only an intranet right now, this would be very easy to forget
> about if / when you start making outside connections.



-----Original Message-----
From: Jason Barnett [mailto:[EMAIL PROTECTED]
Sent: 05 November 2004 09:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: running an exe

Why would you want to do this?  Blindly installing applications from web
links
is *a bad idea* and dialog boxes are there to help protect users.  Heck from
the
way you asked your question I'm not even sure - are you the user or the
provider?  Give us a little more than this to go on and we'll see if we
can't
help you out more.

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I would have to agree with the blurb below your message.

Unless those files are *huge*, there shouldn't be a problem copying them
locally and running them from there. If you're writing the .exe's, you may
even want to have a small one that gets downloaded, gets ran and it goes to
the web address and downloads the files it needs automatically. (depending
how fancy you want to get)

The other option is to make one big file that gets run and doesn't look for
other files. That'd do without the dependency.

The two factors to consider are these:

1) LAN speed. If the local intranet is all on the LAN, then any of those
options should be fine. 100baseT should be able to handle that. If some are
across the WAM, that'd be something to consider.

2) If you're only doing the install once, you might want to sacrifice speed
for reliability. Better to get it done right than to muck it up. But if this
will be a frequently ran process from the web location, speed may be
optimal.

-M

-----Original Message-----
From: Jason Barnett [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 08, 2004 1:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: running an exe

Please send all responses to the list, not to me personally.  Thanks.

*** Begin e-mail message ***

This is only for use on local intranet!!

The problem is I want to install the software which comprises of 4 files
(setup.exe,setup.w02,setup.w03,setup.w04) from a link on the intrAnet.
It works fine on the local machine, but as soon as I try across the network,
it obviously wont find the second file to install. Ie. Access the link from
a remote machine, and install locally on that remote machine.

Is the best way to copy the files locally, or is there a better method?

 > yes, I would just copy the files locally unless you have a *lot* of
updates to
 > do (either often or just a lot of machines).  Just not worth the risk
IMO...
 > even if it's only an intranet right now, this would be very easy to
forget
 > about if / when you start making outside connections.



-----Original Message-----
From: Jason Barnett [mailto:[EMAIL PROTECTED]
Sent: 05 November 2004 09:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: running an exe

Why would you want to do this?  Blindly installing applications from web
links
is *a bad idea* and dialog boxes are there to help protect users.  Heck from
the
way you asked your question I'm not even sure - are you the user or the
provider?  Give us a little more than this to go on and we'll see if we
can't
help you out more.

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

--- End Message ---
--- Begin Message ---


localhost ( loopback ): 12.0.0.1

Typo fix :)

-Mike


On Mon, 8 Nov 2004, Sean S. Karshis wrote:

Date: Mon, 8 Nov 2004 08:36:23 -0500
From: Sean S. Karshis <[EMAIL PROTECTED]>
To: William Lee <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: mail function not working

Also make sure that relaying is open on localhost (127.1.1.1).

-----Original Message-----
From: Manuel Lemos [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 10:30 PM
To: William Lee
Cc: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: mail function not working

Hello,

On 11/07/2004 11:48 PM, William Lee wrote:
My system:
Windows XP
Apache
SMTP server: MailEnable
PHP 5.0.2

Whenever I try to use the mail function, it returns me a value of
"false".

My php.ini settings are: [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25

Here's the function I'm using:
<?php
    $r = mail("[EMAIL PROTECTED]", "my subject", "line1")
;
    var_dump($r);
?>

This always returns: bool(false)

What else do I need to setup in order for this to work???

I can send a regular email through using outlook express. any ideas?

Does Outlook express use a SMTP server on localhost? If not, you need to

adjust php.ini to match the SMTP server address used by Outlook express.


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

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


--- End Message ---
--- Begin Message ---
Hello,

On 11/08/2004 04:11 PM, Anne Shroeder wrote:
I'm hoping I can get some recommendations for a search engine to implement
on my site - actually, I have two needs:

(1) Site 1:  Linux-based, 10,000+ page site, currently on shared server (no
root access) but moving to dedicated server within 2 months.  Very little-no
need for searching through database information (only .shtml and .php text
pages)
(2) Site 2:  Windows-based, 500-1000 page site, currently on shared server.
No database, just .htm and .php pages.

I've gone through about 100 listings in hotscripts.com and not yet found a
good solution, so hoping to get a recommendation through this list.

You may want to try HTDig. It works by crawling your site. So, it does not have to run in the same server where the server is running.


If you want to provide a Web interface for setup, indexing, and searching with PHP, you may want to use this ready to use class for that purpose:

http://www.phpclasses.org/htdiginterface


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--- End Message ---
--- Begin Message ---
Hi,

Visit 

http://www.mnogosearch.com/


Zareef ahmed 

-----Original Message-----
From: Anne Shroeder [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 08, 2004 11:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Recommended PHP search engine?


I'm hoping I can get some recommendations for a search engine to
implement on my site - actually, I have two needs:

(1) Site 1:  Linux-based, 10,000+ page site, currently on shared server
(no root access) but moving to dedicated server within 2 months.  Very
little-no need for searching through database information (only .shtml
and .php text
pages)
(2) Site 2:  Windows-based, 500-1000 page site, currently on shared
server. No database, just .htm and .php pages.

I've gone through about 100 listings in hotscripts.com and not yet found
a good solution, so hoping to get a recommendation through this list.

Anne

-- 

------------------------------------------------------------------------
--
Zareef Ahmed :: A PHP develoepr in Delhi ( India )
Homepage :: http://www.zasaifi.com

--- End Message ---
--- Begin Message ---
I did a real quick search and didn't find the answer quickly.   If you
have some free time and don't mind doing things the "hard way", you
could try reading the $_ENV["TZ"] variable, recording it's value,
changing the setting, lather, rinse, repeat.

I'm sure there's a list somewhere though.   It may be a standard code
list, in which case you might find the information one the following
page:

http://www.twinsun.com/tz/tz-link.htm

Good luck!  Keep us posted!

-TG

> -----Original Message-----
> From: Kim [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, November 06, 2004 6:07 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Time Zones for windows
> 
> 
> This may sound like a really dense question but I am looking 
> for a list of
> standard timezones that windows recognises using the 
> putenv("TZ") function.
> I have all the timezone definitions for Linux which are 
> stored in a database
> and called to display the time in different time zones. 
> However I have moved
> the site to a windows IIS server and require the 
> Abbreviations that windows
> understands ie: GMT0BST etc.
> 
> Does anyone know where I can get this information?
> 
> Thanks
> Kim
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Managed to find it !!!! It helps using just those right keywords after a
million goes....
http://www.steltor.com/notes/corptime-server/5_4/refmanual/refappd.htm this
is a list of all timezone notations. Thanks for your help. Thought about the
long way but it was not a pleasant thought as you may imagine, was hoping to
avoid at all costs. Hopefully this sorts it.

Thanks again
Kim
----- Original Message ----- 
From: "Gryffyn, Trevor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Kim" <[EMAIL PROTECTED]>
Sent: Monday, November 08, 2004 8:39 PM
Subject: RE: [PHP-WIN] Time Zones for windows


I did a real quick search and didn't find the answer quickly.   If you
have some free time and don't mind doing things the "hard way", you
could try reading the $_ENV["TZ"] variable, recording it's value,
changing the setting, lather, rinse, repeat.

I'm sure there's a list somewhere though.   It may be a standard code
list, in which case you might find the information one the following
page:

http://www.twinsun.com/tz/tz-link.htm

Good luck!  Keep us posted!

-TG

> -----Original Message-----
> From: Kim [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 06, 2004 6:07 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Time Zones for windows
>
>
> This may sound like a really dense question but I am looking
> for a list of
> standard timezones that windows recognises using the
> putenv("TZ") function.
> I have all the timezone definitions for Linux which are
> stored in a database
> and called to display the time in different time zones.
> However I have moved
> the site to a windows IIS server and require the
> Abbreviations that windows
> understands ie: GMT0BST etc.
>
> Does anyone know where I can get this information?
>
> Thanks
> Kim
>
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- I am trying to upgrade my php installation, but cannot overwrite the libmysql.dll fine - it seems to be in use

I have already stopped the iis admin service, anybody have any other suggestions as to which process is using the file?

MW
--- End Message ---
--- Begin Message ---
Worse case, reboot and try then and if that doesn't work, just boot into
safe mode - should be more than easy to kill it at that point.

-M

-----Original Message-----
From: MW [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 08, 2004 6:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] cannot delete libmysql.dll

I am trying to upgrade my php installation, but cannot overwrite the 
libmysql.dll fine - it seems to be in use

I have already stopped the iis admin service, anybody have any other 
suggestions as to which process is using the file?

MW

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

--- End Message ---
--- Begin Message ---
> I am trying to upgrade my php installation, but cannot overwrite the
> libmysql.dll fine - it seems to be in use
> 
> I have already stopped the iis admin service, anybody have any other
> suggestions as to which process is using the file?

Perhaps the MySQL service? Have you stopped that prior to attempting to
delete the dll?

Much warmth,

Murray
http://www.planetthoughtful.org
Building a thoughtful planet,
One quirky comment at a time.

--- End Message ---
--- Begin Message ---
Hi George,
 
You might want to setup database previleges to access db from the other 
site(other site is the one where your files are stored). So instead of 
localhost you need to give the ip address if the server where the db is hosted. 
Hope u understand this.....
 
...Sudeep....

George Pitcher <[EMAIL PROTECTED]> wrote:
Hi,

I have a master database and a customer-facing website and a staff-facing
website - both connecting to the same database. I use Smarty and PEAR::DB
and PHP5.

I have no problem connecting from one site, but the other just generates
'could not open database' on the home page. This is happening on the log-in
page.

I've checked the code and its virtually identical, except for the different
tables being queried. One works, one doesn't.

I use a config file to ease development/deployment:

"Config.php"
if($_SERVER['SERVER_NAME']=='myserversite'){
$incloc="c:\\inetpub\\wwwroot\\egret\\includes\\";
$smartyloc="c:\\php\\Smarty\\";
$incloc="c:\\inetpub\\wwwroot\\egret\\includes\\";
$server_url="http://myserversite/egret/";;
} else {
$incloc="c:\\inetpub\\wwwroot\\egret\\includes\\";
$smartyloc="c:\\php\\";
$server_url="http://localhost/egret/";;
}
if((isset($_COOKIE['access'])&&$_COOKIE['access']=='')||(isset($_POST['acce
ss'])&&$_POST['access']=='')){
header("Location: ".$server_url."home.php");
}elseif(isset($_COOKIE['access'])&&$_COOKIE['access']!='') {
$access = $_COOKIE['access'];
}
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$dbname = 'egret';
require_once( 'DB.php' );
$db =& DB::connect( "mysql://$dbuser:[EMAIL PROTECTED]/$dbname" );
?>
============================================================================
======================
"home.php"
include("includes/config.php");
require $smartyloc."Smarty.class.php";
$smarty = new Smarty;

$sql = "SELECT account_id, nickname FROM account";
$loginResult = $db->query($sql);
$recCount = $loginResult->numRows();
$i=0;
$results=array();
while ($loginRow = $loginResult->fetchRow()) {
$tmp = array(
'id' => $loginRow[0],
'hei'=> $loginRow[1]
);
$results[$i++] = $tmp;
}
$db->disconnect();
$smarty->assign('results', $results);
$smarty->display('home.tpl');
?>
======================================================================
Am I missing something obvious?

Cheers

George in Oxford

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


                        
---------------------------------
Do you Yahoo!?
 Check out the new Yahoo! Front Page. www.yahoo.com

--- End Message ---

Reply via email to