php-windows Digest 27 Jun 2001 01:48:04 -0000 Issue 629

Topics (messages 8039 through 8064):

Re: Testing php in Win2000?
        8039 by: David Elliott

Re: php scripts only work when connected to the internet.
        8040 by: David Elliott
        8044 by: David Elliott
        8048 by: Bryan

Problems with System DSN
        8041 by: Thomas Hove
        8061 by: Frank M. Kromann

Re: Unable to see my .php script in IE5
        8042 by: Johan Lundqvist
        8045 by: Michael
        8046 by: Michael
        8049 by: Johan Lundqvist
        8053 by: Phil Driscoll

Re: gd/apache1.3/WinNT
        8043 by: Phil Driscoll
        8064 by: Edmund

Re: mail() on Windows 2000
        8047 by: Hugo Alexandre Almeida Soares Dias

Odd SQL error when connecting to MS Access
        8050 by: Kevin Sayre

How to launch a .bat file with php.
        8051 by: Alessio Bernesco Lāvore
        8052 by: Johan Lundqvist
        8055 by: Alessio Bernesco Lāvore
        8056 by: Johan Lundqvist
        8057 by: Alessio Bernesco Lāvore

SQL error 00000 when trying to connect to MS Access
        8054 by: Kevin Sayre

Session varibles
        8058 by: Jason Belletty

system(), Access is denied
        8059 by: jong jong

preventing duplicate entries
        8060 by: Pete Kuczynski

Setting custom error_handler
        8062 by: Scott Cadillac

Re: Any information on php_dotnet.dll extension?
        8063 by: sysadmin.cheezy.net

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 PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Bryan

On 26 June 2001 at 13:58:47 +1000 (which was 04:58 where I live) Bryan
rearranged electrons to get

> Its on my laptop, and yeah, it works when I am connected to the network
> at work, or connected to the internet from home. It doesn't work at all
> when the laptop is standalone.

> Is there a workaround for this??

Yes. You need a RJ45 plug and cross over pins 1 & 3 and pins 2 & 6 .Have a
look at http://www.pin-outs.com/datasheet_72.htm and
http://www.pin-outs.com/datasheet_22.html for a nice diagram.

I am assuming that you are using Ethernet RJ45 Socket 10baseT.


- --
 Thank you for your time,  _______________________________________________
  David                   |MUA- The 1, The Only, The Bat! | E-mailaholics |
 _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International |
| This tag from Tacoma--Where it always rains on your parade.             |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 06)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBOzhomPmK8eZlD0U0EQIpUwCgq51wp9DjANars7Hzs+ryQcFoTZIAoJDV
y3a6HgD6SHhRdgbiIG1QoLFC
=Zy+p
-----END PGP SIGNATURE-----





-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Bryan

On 25 June 2001 at 22:27:06 +1000 (which was 13:27 where I live) Bryan
emanated these words of wisdom

> I have a problem where I can only view the output in my browser from the
> php files when I am connected to the Internet. When I am not connected, I
> get the standard error page in the broswer.

> Hope someone can help??

If you are not connecter to a LAN then W2K has a nasty habit of turning off
the TCP/IP bits. There will be an error message in the system tray. So what
you need to do is fool into turning them back on.

You need a RJ45 plug and cross over pins 1 & 3 and pins 2 & 6 .Have a look
at http://www.pin-outs.com/datasheet_72.htm and
http://www.pin-outs.com/datasheet_22.html for a nice diagram.

I am assuming that you are using Ethernet RJ45 Socket 10baseT.

HTH

- --


 BBFN,                     _______________________________________________
  David                   |MUA- The 1, The Only, The Bat! | E-mailaholics |
 _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International |
| * <- Tribble _ <- Tribble after unfortunate steam roller accident.      |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 06)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBOzhtpPmK8eZlD0U0EQLDLgCg191HU4KFAZ4B75ZZW+G+j03slOEAoPcZ
rzpb9b1C9Tkj/dzbDVIyJeMp
=G7T4
-----END PGP SIGNATURE-----





Hello Bryan

On 25 June 2001 at 22:27:06 +1000 (which was 13:27 where I live) Bryan
might have written

> I have a problem where I can only view the output in my browser from the php
> files when I am connected to the Internet.
> When I am not connected, I get the standard error page in the broswer.

> Hope someone can help??

If you are not connecter to a LAN then W2K has a nasty habit of turning off
the TCP/IP bits. There will be an error message in the system tray. So what
you need to do is fool into turning them back on.

You need a RJ45 plug and cross over pins 1 & 3 and pins 2 & 6 .Have a look
at http://www.pin-outs.com/datasheet_72.htm and
http://www.pin-outs.com/datasheet_22.html for a nice diagram.

I am assuming that you are using Ethernet RJ45 Socket 10baseT.

-- 
 Regards,                  _______________________________________________
  David                   |    David  Elliott    |   Software Engineer    |
 _________________________|  [EMAIL PROTECTED] | PGP Key ID 0x650F4534  |
|      ...you hear your family mumbling, "She's still doing taglines."    |





A big thank you to all that replied!!

I was given a number of solutions and have so far tested two and found both
of these to fix the problem.

1. Instead of using http://mylocalhostname/filename.php, I used
http://127.0.0.1/filename.php and it processed OK when I wasn't connected.

2. Try working offline.
This one took me a while to figure out;
You'll have to pardon my ignorance here, but I thought there must have been
an option with the IIS, and couldn't find it, so as a last straw attempt, I
tried the browser work offline option and presto, when I tried
http://mylocalhostname/filename.php the php file processed OK when working
offline.

Again thankyou to all
Bryan.


""Bryan"" <[EMAIL PROTECTED]> wrote in message
9h7agu$biv$[EMAIL PROTECTED]">news:9h7agu$biv$[EMAIL PROTECTED]...
> Hi,
>
> Win2k, IIS, 4.05
>
> I have a problem where I can only view the output in my browser from the
php
> files when I am connected to the Internet.
> When I am not connected, I get the standard error page in the broswer.
>
> Hope someone can help??
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hello...

I'm running an ApacheWebserver 1.3.20 with mod_ssl/2.8.4, OpenSSL/0.9.6a and
PHP 4.0.6.

My PHP scripts gets data from a Paradox 5.0 database currently placed on the
same pc as the Webserver. I'm using a System DSN called "MXPROCESSDB" - and
all works fine... But if I move the database to a different machine, and
makes a remote directory to the database (using the same system DSN as
before) I get the following error message when I try to connect..

Warning: SQL error: [Microsoft][ODBC Paradox Driver] Unexpected error from
external database driver (11270)., SQL state S1000 in SQLExecDirect in
F:\TH-Web\inc\DB_Functions.php on line 11

So the question is : Do I have to do something special on the file server
like installing paradox drivers or where is it it goes wrong...

Both machines are NT4 Workstations so maybe the problem could be user
authentication problems - I do not know.

Has anyone experienced the same problems ??






Hi Thomas,

The problem you are seeing has to do with access to the remote directory. The 
webserver is normally running as user IUSR_<machine name> and that user does not have 
access to the remote directory.

- Frank

> Hello...
> 
> I'm running an ApacheWebserver 1.3.20 with mod_ssl/2.8.4, OpenSSL/0.9.6a and
> PHP 4.0.6.
> 
> My PHP scripts gets data from a Paradox 5.0 database currently placed on the
> same pc as the Webserver. I'm using a System DSN called "MXPROCESSDB" - and
> all works fine... But if I move the database to a different machine, and
> makes a remote directory to the database (using the same system DSN as
> before) I get the following error message when I try to connect..
> 
> Warning: SQL error: [Microsoft][ODBC Paradox Driver] Unexpected error from
> external database driver (11270)., SQL state S1000 in SQLExecDirect in
> F:\TH-Web\inc\DB_Functions.php on line 11
> 
> So the question is : Do I have to do something special on the file server
> like installing paradox drivers or where is it it goes wrong...
> 
> Both machines are NT4 Workstations so maybe the problem could be user
> authentication problems - I do not know.
> 
> Has anyone experienced the same problems ??
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 







Just to check the obvious

A: You have restarted Apache?
B: Where did you store phpinfo.php?
C: You have set "short_open_tag = On" in php.ini?

/Johan

Michael wrote:
> 
> Please help
> 
> I am having some serious problems.  I have used a text editor to write the
> following code and saved it with a .php extension
> 
> <? phpinfo(); ?>
> 
> I saved this in the htdocs directory.
> 
> I then went into my IE5 browser and typed http://localhost/phpinfo.php
> 
> What I saw was the above code in my browser <? phpinfo() ; ?>
> 
> I also viewed the source and saw the following <? phpinfo() ; ?>
> 
> My httpd.conf file has been changed in the following places
> 
> ServerAdmin [EMAIL PROTECTED]
> ServerName localhost
> ScriptAlias /php4/ "C:/php4/"
> AddType application/x-httpd-php  .phtml  .php
> AddType application/x-httpd-php-source  .phps
> Action application/x-httpd-php /php4/php.exe
> 
> php4 is in my c drive and I know this to be the correct path
> 
> I have not listed all the httpd.conf file as nothing else was changed.
> 
> All the text files have been saved as .php  I renamed the php.ini-dst to
> php.ini and moved this file to the C:\Windows directory where my .ini files
> reside and I then put the php4ts.dll in my c:\windows\system\ directory.  I
> did not move the msvcrt.dll file over as I already had a copy of it there.
> 
> Maybe by looking at what I have typed in you will find an error somewhere.
> 
> Regards
> 
> Krysia
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




Dear Johan

In answer to your questions

A) I have restarted Apache
B) I stored it in the htdocs file within the Apache installation directory
C) I was not aware that I had to change anything on the php.ini file, what
should I do here

I have been trying to get this to work for a few days now.

I have the PHP fast and easy Web Development book, this came with the CD
which had mysql, Apache and PHP4 on.

I changed the httpd.conf file again in places putting extra spaces between
some directives, now I am getting an error message

Fatal error: Unable to open c:\program files\apache
group\apache\htdocs\phpinfo.php in Unknown on line 0

I also notice that although I have saved my file as phpinfo.php it is in
fact phpinfo.php.txt

How do I get windows to stop putting the .txt extension on, I originally
saved it as all files

I am really quite new to web design and incorporating a database withing a
website and I was told that PHP was my best option as I have Windows 98.

Kind Regards

Krysia


"Johan Lundqvist" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Just to check the obvious
>
> A: You have restarted Apache?
> B: Where did you store phpinfo.php?
> C: You have set "short_open_tag = On" in php.ini?
>
> /Johan
>
> Michael wrote:
> >
> > Please help
> >
> > I am having some serious problems.  I have used a text editor to write
the
> > following code and saved it with a .php extension
> >
> > <? phpinfo(); ?>
> >
> > I saved this in the htdocs directory.
> >
> > I then went into my IE5 browser and typed http://localhost/phpinfo.php
> >
> > What I saw was the above code in my browser <? phpinfo() ; ?>
> >
> > I also viewed the source and saw the following <? phpinfo() ; ?>
> >
> > My httpd.conf file has been changed in the following places
> >
> > ServerAdmin [EMAIL PROTECTED]
> > ServerName localhost
> > ScriptAlias /php4/ "C:/php4/"
> > AddType application/x-httpd-php  .phtml  .php
> > AddType application/x-httpd-php-source  .phps
> > Action application/x-httpd-php /php4/php.exe
> >
> > php4 is in my c drive and I know this to be the correct path
> >
> > I have not listed all the httpd.conf file as nothing else was changed.
> >
> > All the text files have been saved as .php  I renamed the php.ini-dst to
> > php.ini and moved this file to the C:\Windows directory where my .ini
files
> > reside and I then put the php4ts.dll in my c:\windows\system\ directory.
I
> > did not move the msvcrt.dll file over as I already had a copy of it
there.
> >
> > Maybe by looking at what I have typed in you will find an error
somewhere.
> >
> > Regards
> >
> > Krysia
> >
> > --
> > PHP Windows Mailing List (http://www.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 Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Dear Johan

In answer to question C, I have checked and it is set to 'ON'

"Johan Lundqvist" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Just to check the obvious
>
> A: You have restarted Apache?
> B: Where did you store phpinfo.php?
> C: You have set "short_open_tag = On" in php.ini?
>
> /Johan
>
> Michael wrote:
> >
> > Please help
> >
> > I am having some serious problems.  I have used a text editor to write
the
> > following code and saved it with a .php extension
> >
> > <? phpinfo(); ?>
> >
> > I saved this in the htdocs directory.
> >
> > I then went into my IE5 browser and typed http://localhost/phpinfo.php
> >
> > What I saw was the above code in my browser <? phpinfo() ; ?>
> >
> > I also viewed the source and saw the following <? phpinfo() ; ?>
> >
> > My httpd.conf file has been changed in the following places
> >
> > ServerAdmin [EMAIL PROTECTED]
> > ServerName localhost
> > ScriptAlias /php4/ "C:/php4/"
> > AddType application/x-httpd-php  .phtml  .php
> > AddType application/x-httpd-php-source  .phps
> > Action application/x-httpd-php /php4/php.exe
> >
> > php4 is in my c drive and I know this to be the correct path
> >
> > I have not listed all the httpd.conf file as nothing else was changed.
> >
> > All the text files have been saved as .php  I renamed the php.ini-dst to
> > php.ini and moved this file to the C:\Windows directory where my .ini
files
> > reside and I then put the php4ts.dll in my c:\windows\system\ directory.
I
> > did not move the msvcrt.dll file over as I already had a copy of it
there.
> >
> > Maybe by looking at what I have typed in you will find an error
somewhere.
> >
> > Regards
> >
> > Krysia
> >
> > --
> > PHP Windows Mailing List (http://www.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 Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Michael wrote:
> 
> Dear Johan
> 
> In answer to your questions
> 
> A) I have restarted Apache
Good..

> B) I stored it in the htdocs file within the Apache installation directory
That's like "c:\program files\apache group\apache\htdocs\", ok?

> C) I was not aware that I had to change anything on the php.ini file, what
> should I do here
Yes, there's allways good to know what's behind the scene.
I think it might be in place for you to check out these pages a little
bit closer:
http://www.php.net/manual/en/install-windows.php (Installation on
Windows 9x/Me/NT/2000 systems)
http://www.php.net/manual/en/configuration.php (Chapter 3.
Configuration)

> 
> I have the PHP fast and easy Web Development book, this came with the CD
> which had mysql, Apache and PHP4 on.
Ok, I haven't seen it...

> I changed the httpd.conf file again in places putting extra spaces between
> some directives, now I am getting an error message
> Fatal error: Unable to open c:\program files\apache
> group\apache\htdocs\phpinfo.php in Unknown on line 0
Oh, that's not good...

> I also notice that although I have saved my file as phpinfo.php it is in
> fact phpinfo.php.txt
> How do I get windows to stop putting the .txt extension on, I originally
> saved it as all files
Well, there's your problem then... Windoze and Notepad do that. It can
be avoided, but I don't know if I can explain it here in a short message
(tip: Take a look at support.microsoft.com). You might be better off
with another editor, there's alot of them out there. I preffer editor99
(www.editor99.com) with code highlightning and stuff.

Happy coding!




On Tuesday 26 June 2001 00:20, Michael wrote:
> Please help
>
> I am having some serious problems.  I have used a text editor to write the
> following code and saved it with a .php extension
>
> <? phpinfo(); ?>
I couldn't see any obvious mistakes in yout httpd.conf, but it struck me that 
if short_open_tag was not set to 'On' in your php.ini, then php would ignore 
the code and pass it out unchanged. Change your code to 
<?php phpinfo();?>
and see if that works.

Cheers
-- 
Phil Driscoll




Try running e:/apache/cgi-bin/php.exe -i from the command line. You will 
probably get an error message to tell you exacly what's wrong.

Cheers

-- 
Phil Driscoll




Phil Driscoll wrote:
> 
> Try running e:/apache/cgi-bin/php.exe -i from the command line. You will
> probably get an error message to tell you exacly what's wrong.
> 

Nope.  What I get is an "Abnormal program termination" without any
display or log as to what is making php choke.  

I know, or at least, I have a very strong suspicion that it's
the php_gd.dll file that's making php choke.  What I don't
understand why is that no one else is having that same problem.
I'd like to show some logs and stuff, but I don't even have
logs to show for it.   My WinNT is at SP3.. I know 6 is out,
but just haven't bothered fixing  it up to 6 yet.  

I'm sorry there's no other information available since I don't
even know where in php_gd.dll is screwing up php.

I'd like to have the gd library setup; but I suppose this was
not meant to be.

Edmund
-- 
email: [EMAIL PROTECTED] | "boku wa ima mo, hashiri tsuzukeru."





Well i would like to know one thing.

Do you get the emails that are sent? 
if so you have a problem different from the case you don't get any e-mails.

if you don't get any emails, you need to know a SMTP adrress (from your
ISP) and go to php.ini and search for [mail]. There you can find something
like:

SMTP =      ; some text

there you should put the SMTP server address (e.g. 123.123.123.123) from
your ISP.

SMTP= 123.123.123.123

Ruslan Ohitin writes:

> Hello Matt,
> 
> Nac> I am using the mail function and everything seems to be working correctly as 
>far as the mail
> Nac> being sent of; however, I always get the following error:
> Nac> Fatal error: Maximum execution time of 30 seconds exceeded in ...
> 
> Your script run more then 30 seconds. This is maximum execution time
> by default. Try to add this line at the beginning of the script:
> set_time_limit(60); // or 0 for no limit
> 
> Nac> Can anyone offer any suggestions?
> 
> Nac> Matt
> 
> 
> -- 
> Best regards,
>  Ruslan Ohitin
>  mailto:[EMAIL PROTECTED]
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


Hugo Alexandre Dias
Eng. Sistemas Informática
[EMAIL PROTECTED]




Ok, I'm stumped.  I get this error when I try to connect to an MS Access
database through ODBC:

Warning: SQL error: , SQL state 00000 in SQLConnect in
c:\inetpub\wwwroot\help\lib\connect.inc on line 2

I'm stumped because if you look up that error code, it stands for success.
Hmm, error code?  Here's the connect I'm using (username and password
changed of course):

$cid = odbc_connect("help_database", "username", "password",
"SQL_CUR_USE_ODBC");

Any ideas?  Thanks for any help.

Kevin Sayre






Hi,
I've a batch file on the server, how can i launch it and know when it's
finished.

Thanks everyone,

Alessio.






Hi,

That's a tricky one... dunno if it really could be done without many
security issues and ugly workarounds.

I think you got it a bit backwards...

If I ask you like this:
What is it that you need in the batch file, that can't be done in PHP?

/Johan

"Alessio Bernesco Lāvore" wrote:
> 
> Hi,
> I've a batch file on the server, how can i launch it and know when it's
> finished.
> 
> Thanks everyone,
> 
> Alessio.
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




Well...
I've to execute by the command line a program called "HTTrack" that will
parse all the site and recreate it with just simple html pages in another
folder, where all the site can be downloaded for off-line consulting. To
minimize the creation time the application (HTTrack) will run directly from
the server pointing to "localhost/website/etc..". The fact is how to allow
the remote administrator to launch the application remotely.

What do you think?

Thanks a lot.

Alessio.



"Johan Lundqvist" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> That's a tricky one... dunno if it really could be done without many
> security issues and ugly workarounds.
>
> I think you got it a bit backwards...
>
> If I ask you like this:
> What is it that you need in the batch file, that can't be done in PHP?
>
> /Johan
>
> "Alessio Bernesco Lāvore" wrote:
> >
> > Hi,
> > I've a batch file on the server, how can i launch it and know when it's
> > finished.
> >
> > Thanks everyone,
> >
> > Alessio.
> >
> > --
> > PHP Windows Mailing List (http://www.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 Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Have a look at "Program Execution functions" in PHP manual.
There you will find the syntax et.c. for exec(), system(), passthru()
that might be interesting to you.

Happy coding.

/Johan

"Alessio Bernesco Lāvore" wrote:
> 
> Well...
> I've to execute by the command line a program called "HTTrack" that will
> parse all the site and recreate it with just simple html pages in another
> folder, where all the site can be downloaded for off-line consulting. To
> minimize the creation time the application (HTTrack) will run directly from
> the server pointing to "localhost/website/etc..". The fact is how to allow
> the remote administrator to launch the application remotely.
> 
> What do you think?
> 
> Thanks a lot.
> 
> Alessio.
> 
> "Johan Lundqvist" <[EMAIL PROTECTED]> ha scritto nel messaggio
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > That's a tricky one... dunno if it really could be done without many
> > security issues and ugly workarounds.
> >
> > I think you got it a bit backwards...
> >
> > If I ask you like this:
> > What is it that you need in the batch file, that can't be done in PHP?
> >
> > /Johan
> >
> > "Alessio Bernesco Lāvore" wrote:
> > >
> > > Hi,
> > > I've a batch file on the server, how can i launch it and know when it's
> > > finished.
> > >
> > > Thanks everyone,
> > >
> > > Alessio.
> > >
> > > --
> > > PHP Windows Mailing List (http://www.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 Windows Mailing List (http://www.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 Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




It works.

Thanks a lot Johan.

Alessio.

"Johan Lundqvist" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Have a look at "Program Execution functions" in PHP manual.
> There you will find the syntax et.c. for exec(), system(), passthru()
> that might be interesting to you.
>
> Happy coding.
>
> /Johan
>
> "Alessio Bernesco Lāvore" wrote:
> >
> > Well...
> > I've to execute by the command line a program called "HTTrack" that will
> > parse all the site and recreate it with just simple html pages in
another
> > folder, where all the site can be downloaded for off-line consulting. To
> > minimize the creation time the application (HTTrack) will run directly
from
> > the server pointing to "localhost/website/etc..". The fact is how to
allow
> > the remote administrator to launch the application remotely.
> >
> > What do you think?
> >
> > Thanks a lot.
> >
> > Alessio.
> >
> > "Johan Lundqvist" <[EMAIL PROTECTED]> ha scritto nel messaggio
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi,
> > >
> > > That's a tricky one... dunno if it really could be done without many
> > > security issues and ugly workarounds.
> > >
> > > I think you got it a bit backwards...
> > >
> > > If I ask you like this:
> > > What is it that you need in the batch file, that can't be done in PHP?
> > >
> > > /Johan
> > >
> > > "Alessio Bernesco Lāvore" wrote:
> > > >
> > > > Hi,
> > > > I've a batch file on the server, how can i launch it and know when
it's
> > > > finished.
> > > >
> > > > Thanks everyone,
> > > >
> > > > Alessio.
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.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 Windows Mailing List (http://www.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 Windows Mailing List (http://www.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 Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Ok, I get the following error when attempting to connect to an MS Access
database:

Warning: SQL error: , SQL state 00000 in SQLConnect in
c:\inetpub\wwwroot\help\lib\connect.inc on line 2

I have the following as my connect:

$cid = odbc_connect("database", "username", "password");

and I looked up that error code, and it claims that the 00000 is a success
error code, so what's with that?  Anyone else had this problem?  I'm running
this on an IIS server also.

Thanks,
Kevin Sayre






Hi Everybody,
 
I'm a php newbie - (best to warn you straight away!!!)
 
How do I use session variables?
 
In asp its just:    session("somevariable")
 
Thanks in advance,
Jason.
 
 
---------------------------------------------
Jason Belletty
Software Development
w: www.spinoffproducts.com
e:  [EMAIL PROTECTED]
p:  01403 268299
f:   01403 268013
---------------------------------------------
 




Hi,
I am a Win NT4.0 user and just start to use PHP. I
don't have much web programming experience. Now I need
your help.

I try to use system() to run a batch file which
sitting on a mapped network drive like
this :
  system("e:\\tmp\file.bat")
but it gives me "Access is denied".

I can run this batch file in "Command Prompt" window
successfully. When system()
works with the files sitting on server machine, no
problem at all.

I will appreciate if you can help me this. 

Wen

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




I want to prevent duplicate entries into my mysql database which holds
invertory of all network eqpt at my site. Engineers access it thru
netscape and the query insert is done via pdp [below].

I will place the script into php, any pointers on this would be
appreciated.



THX!

Pete


<html>
     <body>
     <?php

     require("fedb.inc");

     mysql_connect(localhost,$user,$password);

     @mysql_select_db($db) or die( "Unable to select database");

     /*Insert into database */
     

     mysql_query ("INSERT INTO asset (site_id, hostname, device, model,
serial, ip,
                   dept, mhz, ram, hd_size, os_ver, status, data_port,
pp_port, hub_port,
                   digi_port, csmim_port, tprmim_port, xyplex_port,
comments, fe) 
                    VALUES ('$site_id', '$hostname', '$device',
'$model', '$serial', '$ip', 
                             '$dept', '$mhz', '$ram', '$hd_size',
'$os_ver', '$status', 
                             '$data_port', '$pp_port', '$hub_port',
'$digi_port',
                             '$csmim_port', '$tprmim_port',
'$xyplex_port', 
                             '$comments', '$fe')
                  ");



      print ("Thanks for submitting your device.");

  ?>

    <a href='index.html'><b>Home</b></a> 
     
     
     </body>
     </html>
-- 
_______________________________________
Pete Kuczynski
Principal Field Engineer
DHL Airways Inc.
Infrastructure Technology & Services
(773)-462-9758
24/7 Helpdesk 1-800-434-5767




NT 4.0 / IIS 4.0 / PHP 4.0.5

I'm new to PHP and I think it's great.

I am trying to set a custom error_handler function, but when I call:

error_reporting(0);
$old_error_handler = set_error_handler('new_error_handler');

$old_error_handler always returns FALSE.

I know my new_error_handler() function works, because I can call it directly
along with all 5 parameters.

Could be something in the php.ini file?

Any help would be appreciated

Cheers...

--
Scott Cadillac
Manager of Web Application Development
Plus International Corp.
604-942-1020 ext. 226
[EMAIL PROTECTED]
http://www.plusinternational.com

Does your company have an Enterprise Information Portal? Check out Salsa at
www.plusinternational.com/flash/salsa.htm

Vancouver * Victoria * Kelowna * Windsor * Chicago * Wisconsin *
Seattle * Michigan * Santa Barbara







I have a bit of an inside track at MS camp, and would be very careful about
using this module. dotNet seems to change every 5 minutes, even though they
are supposed to be past the making big changes point. I'm not sure how
internal class changes would affect the php_dotnet.dll, but just thought I'd
give a heads-up.

In other news, dotNet Beta 2 has just ben released (both Framework and
Visual Studio) - they were aiming at making this a stable, almost RC'able
version.

=)

-james.

-----Original Message-----
From: Scott Cadillac [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 17:11
To: [EMAIL PROTECTED]
Subject: Any information on php_dotnet.dll extension?


Hi Folks,

I was just wondering if anyone knows anything about the work being done the
php_dotnet.dll extension?

Where is it at, and what is planned for it?

I found the following link from Google:

http://www.seismo.unr.edu/ftp/pub/updates/bankert/php-4.0.4pl1/ext/dotnet/

Which lists Sam Ruby in the credits - anybody have an email address for him?

Thank you and Cheers...

--
Scott Cadillac
Manager of Web Application Development
Plus International Corp.
604-942-1020 ext. 226
[EMAIL PROTECTED]
http://www.plusinternational.com

Does your company have an Enterprise Information Portal? Check out Salsa at
www.plusinternational.com/flash/salsa.htm

Vancouver * Victoria * Kelowna * Windsor * Chicago * Wisconsin *
Seattle * Michigan * Santa Barbara






Reply via email to