[PHP-WIN] Re: Calling exe/cgi

2002-11-15 Thread Aaron
try this in php. put the executable in your apache/iis root dir or include the path $status1 = shell_exec("status.exe"); see here for more> http://www.php.net/manual/en/function.exec.php 'wo nurries' noize "Brennan Mann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

[PHP-WIN] Re: enter a carriage return after shell_exec()

2002-11-15 Thread Aaron
go here to see/hear what i mean http://203.79.117.34/help.php wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > how the hey do i enter a carriage return after shell_exec() > > heres the code that works: > > $status1 = shell_exec("status.exe"); > > BUT, because the exe has a windows p

[PHP-WIN] enter a carriage return after shell_exec()

2002-11-15 Thread Aaron
how the hey do i enter a carriage return after shell_exec() heres the code that works: $status1 = shell_exec("status.exe"); BUT, because the exe has a windows popup in it (because i havent registered or craked the thing yet, no time or $) the thing wont run! so, ideas any1? :-\ noize --

Re: [PHP-WIN] problem insert data into mysql

2002-11-15 Thread zeus
I make register golbals on, but it doesn't solve the problems. The wird thing is, i am using php nuke in my localhost, it can enter datas into MySQL, the form and the script it's not diffrent than mine right (phpnuke more complex). The form it self don't have any errors?? and how about the PHP

[PHP-WIN] insert into mysql

2002-11-15 Thread Zeus
i write this code, veru simple code about testing inserting into database MySQL. I found a little trouble, wich is the data i inserted in the form doesn't show up in the database, since i still new with PHP, i cannot solve this problem, what's wrong with my code?? thanks "; echo "" ."Insert Tit

Re: [PHP-WIN] problem insert data into mysql

2002-11-15 Thread Cary
I'm fairly new to PHP myslef, but I think you need to call the post variable from your form like this: $_POST["first"], $_POST["last"] etc At 10:48 AM 11/16/02, zeus wrote: I make this script. I have a problem, the data entered in the form wont insert into MYSQL, the database added new ro

[PHP-WIN] problem insert data into mysql

2002-11-15 Thread zeus
I make this script. I have a problem, the data entered in the form wont insert into MYSQL, the database added new row but with blank database. Is there something wrong with the script? because i install phpnuke and i can added new data into mysql. Thanks, i need solve this problem A.S.A.P, with

[PHP-WIN] php and mysql

2002-11-15 Thread Zeus
i write this code, veru simple code about testing inserting into database MySQL. I found a little trouble, wich is the data i inserted in the form doesn't show up in the database, since i still new with PHP, i cannot solve this problem, what's wrong with my code?? thanks "; echo "" ."Insert Tit

[PHP-WIN] Re: COM issue, problems with return type.

2002-11-15 Thread Brian 'Bex' Huff
imho, the best documentation of the COM functionality is done by the random people who post comments to the online documentation here: http://www.php.net/manual/en/ref.com.php About the return value, it might be an array, or it might just be a reference to another COM object. Try this: echo

[PHP-WIN] php - ftp_get

2002-11-15 Thread Rui Monteiro
I'm using the function ftp_get() in my ftp access. The problem is that I can't tell if the file is downloaded or not. How can I resolve this problem? The page that has this function gets the vars from an url ( ex. www.mysite.com/hello.php?name=rui&pass=superfly) Another problem to concern is the f

[PHP-WIN] Re: php - login and password

2002-11-15 Thread Brian 'Bex' Huff
I think what you are looking for isn't a JavaScript popup, but a "WWW-Authenticate" HTTP header, which is the standard broswer popup for login and password. You can do that with this PHP code at the ABSOLUTE top of every PHP page you want to secure: header('WWW-Authenticate: Basic realm="my r

Re: [PHP-WIN] set up mysql without winmysqladmin?

2002-11-15 Thread Cam Dunstan
A.J. A.J. Dash`s solution says it all - you certainly don`t need Winmysqladmin to start and stop mySQL - I just have a couple of shortcuts to batch files to start and stop apache and mysql on the desktop. You don`t need the "start" command in fact though it does no harm. stop mySQL with cd

php-windows Digest 15 Nov 2002 22:15:36 -0000 Issue 1442

2002-11-15 Thread php-windows-digest-help
php-windows Digest 15 Nov 2002 22:15:36 - Issue 1442 Topics (messages 16959 through 16976): php - login and password 16959 by: Rui Monteiro 16976 by: Cam Dunstan Re: set up mysql without winmysqladmin? 16960 by: Brian McGarvie 16961 by: Stephen Edmonds

Re: [PHP-WIN] php - login and password

2002-11-15 Thread Cam Dunstan
Rui, There are a hundred ways of doing this, popup windows are often simple client side javascript routines, but most often, serious passwording involves the use of databases. So get yourself a copy of mySQL and start by familiarlising yourself with that and PHPs unrivalled set of db connection

[PHP-WIN] Word input on client's side

2002-11-15 Thread Szilard Bokros
Hello, how can I make a page open in Word instead of the browser? If I just write: header( "Content-type: application/msword" ); won't change anything, the page opens in explorer. The file is generated on the fly, so there is no real file to open, just the output from the webserver. As far as I kno

[PHP-WIN] COM issue, problems with return type.

2002-11-15 Thread Merritt, Eric
Hello all, I am having a little problem with return types from a COM object. Basically (code follows) I get a collection back from the object and I can not figure out a way to iterate through this collection. Posted is a snippet of test code that I hope one of you can help me with. DomainDNSNam

RE: [PHP-WIN] set up mysql without winmysqladmin?

2002-11-15 Thread Dash McElroy
Make yourself a simple batch script: amp.bat: @echo off start c:\path\to\apache\apache.exe c:\path\to\mysql\bin\mysqld.exe --console echo Press ^C to stop stuff pause>NUL c:\path\to\apache\apache.exe -k stop or something (I'm guessing on the mysqld option). The start command may be particularly o

[PHP-WIN] Re: Calling exe/cgi

2002-11-15 Thread Tiny
On Fri, 15 Nov 2002 10:58:06 -0500, [EMAIL PROTECTED] (Brennan Mann) wrote: $param=escapeshellcmd($param); system("program.exe $param"); >I am sorry. I forgot to add that the CGI uses the get method to receive >data. >For example "my_cgi.exe?=1000" >The system("my_cgi.exe") call worked. But I st

RE: [PHP-WIN] Re: Calling exe/cgi

2002-11-15 Thread Michael Hazelden
to give an example ... just cos I'm nice like that: $file1=fopen("http://myserver/cgi.exe?=1000","r";); fpassthru($file1); will get your webserver to run the cgi ... and then will simply output the result back to the user. if you need to - you could even add some authentication in there and pass

RE: [PHP-WIN] Re: Calling exe/cgi

2002-11-15 Thread Michael Hazelden
Open it using the fopen command - but do it as an HTTP open to the same server your PHP is on. Then you can pass the get string along with the open request ... the Apache system (or whatever your using) should then execute the CGI with the get ... and you get read the results using fpassthru or fr

[PHP-WIN] Re: Calling exe/cgi

2002-11-15 Thread Brennan Mann
I am sorry. I forgot to add that the CGI uses the get method to receive data. For example "my_cgi.exe?=1000" The system("my_cgi.exe") call worked. But I still need to pass data to the exe. Any suggestions? Thanks again! Brennan "Brennan Mann" <[EMAIL PROTECTED]> wrote in message news:20021115145

[PHP-WIN] Re: Calling exe/cgi

2002-11-15 Thread Tiny
Try this: echo `you_script_name.exe`; or system('you_script_name.exe') >Hello everybody! > >I am new to PHP. I have several C and C++ programs that run as cgi(s). >Currently, I am just using a form on a web page to call the cgi(s). I am >running PHP on a Windows 2000 server with IIS. Can you c

[PHP-WIN] Calling exe/cgi

2002-11-15 Thread Brennan Mann
Hello everybody! I am new to PHP. I have several C and C++ programs that run as cgi(s). Currently, I am just using a form on a web page to call the cgi(s). I am running PHP on a Windows 2000 server with IIS. Can you call/invoke an exe program from a PHP script? If so, could you please show an

Re: [PHP-WIN] php com+ components on appache

2002-11-15 Thread Franco Pozzer
> I try to help to you but I do not sure if it is a correct because I > have study the problems but I do not have try it. > > For my porpose instead to use COM object I like to use C or C++ > external pgm. > > First of all, the DLL must be registred in Windows system. Mine was > because it was prov

[PHP-WIN] using tmpfile()

2002-11-15 Thread Frode Mangseth
I'd like to use the tmpfile()-function, but how can I get hold of the filename and directory? Frode -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Php Setup - begginer

2002-11-15 Thread Step Schwarz
[Hello, I didn't subscribe to this list until the 11th, so I'm sorry I can't reply to the original message.] Rob -- I recently set up PHP on a standalone computer running Windows XP Professional and IIS and I'd be happy to help. If you want to try two things, please let me know how you get on..

Re: [PHP-WIN] set up mysql without winmysqladmin?

2002-11-15 Thread Marcelo Laia
Hello, When I installed MySQL for the first time, he began automatically when the windows began. However, a beautiful day, when I was exploring the paste c:\mysql\bin, I found the file winmysqladmin.exe. I executed it to see what was. Cursed hour. Of this moment in before, whenever the windows is

Re: [PHP-WIN] set up mysql without winmysqladmin?

2002-11-15 Thread A. J. McLean
Unfortunately, I already tried this. I know that once you run WinMySQLAdmin, it puts itself in the startup folder/systray. However, I remember that in one of those PHP distros for windows (I forget which one), that if you load up Apache, it was able to connect to MySQL and PHP without loading th

Re: [PHP-WIN] set up mysql without winmysqladmin?

2002-11-15 Thread Stephen Edmonds
On my Windows XP System, I only ran WinMySQLAdmin once. Now whenever my PC loads, MySQL comes online with it. I suggest you try closing WinMySQLAdmin, restarting, then seeing if you can access the database Stephen - Original Message - From: "A. J. McLean" <[EMAIL PROTECTED]> To: <[EMAIL P

[PHP-WIN] Re: set up mysql without winmysqladmin?

2002-11-15 Thread Brian McGarvie
I think it's only possible under nt/2k http://www.mysql.com/doc/en/NT_start.html "A. J. McLean" <[EMAIL PROTECTED]> wrote in message news:20021114141034.48692.qmail@;pb1.pair.com... > Is it possible to configure mysql to load up automatically whenever apache > is run (without having to load up

[PHP-WIN] php - login and password

2002-11-15 Thread Rui Monteiro
I must say that I'm new at this php world. There are some web sites that when you enter a page, a pop-up windows appears requesting a login and password. How can I make a form in php (login page) that searches for the login and password of the page that is requested? I really don't know where th