473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP-WIN

Ok, I'm using php-win, and have the following file, c:\mail.php

<?
mail('e****@myaddress.com','a test','a php-win cli test');
?>

When I go to start|run or cmd and type...

php-win -f c:/mail.php

it just sends the mail, no command window popping up or anything.

I have another file, c:\test.php...

<?
exec('start php-win -f C:/mail.php');
?>

Now when I got to start|run or cmd and type...

php-win -f c:/test.php

it flashes up (very fast) a command window, obviously thats running the mail
script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
thought php-win wasn't supposed to show any cmd windows? Please help, I'm
desperate!

Cheers

Oli/M_O
Jul 17 '05 #1
5 6557
["Followup-To:" header set to comp.lang.php.]
Oli Howson wrote:
I have another file, c:\test.php...

<?
exec('start php-win -f C:/mail.php');
?>

Now when I got to start|run or cmd and type...

php-win -f c:/test.php
Try typing "help start" instead
it flashes up (very fast) a command window, obviously thats running the mail
script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
thought php-win wasn't supposed to show any cmd windows?


It is not PHP that is opening the new command window. It is the start
command. You have to tell start to NOT open the command window. "help
start" will tell you how to do that :)
--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #2
it flashes up (very fast) a command window, obviously thats running the mail
script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
thought php-win wasn't supposed to show any cmd windows?


in the php-gtk package, there si a programe called php-win.exe. it is
the same as the php.exe only without the command window.

HTH
-Tim
Jul 17 '05 #3
it flashes up (very fast) a command window, obviously thats running the mail
script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
thought php-win wasn't supposed to show any cmd windows?


in the php-gtk package, there si a programe called php-win.exe. it is
the same as the php.exe only without the command window.

HTH
-Tim
Jul 17 '05 #4
it flashes up (very fast) a command window, obviously thats running the mail
script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
thought php-win wasn't supposed to show any cmd windows?


in the php-gtk package, there si a programe called php-win.exe. it is
the same as the php.exe only without the command window.

HTH
-Tim
Jul 17 '05 #5
(1) I've tried without using START, I just exec'd php-win.exe without the
start and it did the same thing.

(2) If you look through the code I posted in my original email, I was using
php-win.exe, with php5 it comes as standard alongside php.exe

Anyone else got an idea???
"Timothy Fletcher" <ti*@wnv.fr> wrote in message
news:40************@wnv.fr...
it flashes up (very fast) a command window, obviously thats running the mailscript. I want this to GO AWAY as it's doing my head in! Anyone know how? Ithought php-win wasn't supposed to show any cmd windows?


in the php-gtk package, there si a programe called php-win.exe. it is
the same as the php.exe only without the command window.

HTH
-Tim

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
4
by: Japhy | last post by:
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
1
by: jdurden | last post by:
am currently woking on building this site: www.maverick-spirit.com. everything seems to be fine except the press releases page. When you click on one of the press releases in the left column under...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
1
by: ansc1 | last post by:
Hello, I'm new to using php coding. I need help with the following: 1. There is a submit button on the form and is saves information to my database. After clicking on "Save Measurement" it...
0
by: tsivaraman | last post by:
I am trying to build php-5.2.1 in RedHat Linux 9. I have installed libxml2-2.6.11,mysql-5.0.33,httpd-2.2.4(apache) successfully.When i do 'make' from the php directory,i get the following...
0
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along...
0
by: Benjamin Grieshaber | last post by:
Hi, I´m on SuSE 9.3 with xmlrpc-c and xmlrpc-c-devel installed (ver. 0.9.10) I tried to compile php with xmlrpc support and got the following errors: ...
3
by: jaddi1 | last post by:
Hi, I am trying to make a multi-level drop-down menu similar to what is seen here: http://www.cssplay.co.uk/menus/simple_vertical.html. My problem is that some of the menu will be populated from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.