php-windows Digest 21 May 2001 05:12:52 -0000 Issue 609 Topics (messages 7767 through 7773): Re: PHP & IIS system() a program in the forground 7767 by: Mr. Adam ALLEN. Re: Any good editor for PHP in Windows? 7768 by: John Lim Sessions: Accessing PHP session variables under PWS 7769 by: Zachary Harris 7771 by: Chris Sano Re: Why i can't write to remote file ? 7770 by: m.aprea Re: PHP/Javascript 7772 by: Chris Sano Cannot "view source" via IE browser 7773 by: John M 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] ----------------------------------------------------------------------
Are you making the system call as ("wavfile.wav"), you probably need to put the name of a player system("d:\winnt\system32\sndrec32.exe wavfile.wav") Sound recorder doesn't automatically play the sound, so you need to find another program (maybe winamp automatically plays, I can't try it out because my Soundcard has problems .) Don't use media player, it's a huge program and would take too long and too many resources to load each time a page runs. The best way, is to make this a shortcut and then you can set it to run hidden or minimized, then place the path of the shortcut in the system() call i.e. system("d:\playsound.lnk"). Yours Mr. Adam ALLEN. [EMAIL PROTECTED] http://www.dynamicinteraction.co.uk > -----Original Message----- > From: Root88 [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 19, 2001 8:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP & IIS system() a program in the forground > > > I am running PHP under Windows 2000. I want to play a .wav file on my > machine when a certain page gets loaded. I am using the system() > function. I > can get my machine to run the program, but it runs in the background. I > can't hear the .wav when it does that. Is there a way to run the > program in > the foreground?
Whoops, I just realised I posted to the wrong thread. Sorry for the confusion. If you want to see a list of editors for windows/linux, visit http://php.weblogs.com/editors "John Lim" <[EMAIL PROTECTED]> wrote in message 9e5mo7$nb2$[EMAIL PROTECTED]">news:9e5mo7$nb2$[EMAIL PROTECTED]... > Create a shortcut and run from the command-line: > > php.exe -q <scriptname> > > -q means suppress HTTP headers > > ""elias"" <[EMAIL PROTECTED]> wrote in message > 9e57sk$9k$[EMAIL PROTECTED]">news:9e57sk$9k$[EMAIL PROTECTED]... > > www.editplus.com > > www.sapien.com (PrimalScript) > > > > -elias > > > > ""news.php.net"" <[EMAIL PROTECTED]> wrote in message > > 9e4jua$526$[EMAIL PROTECTED]">news:9e4jua$526$[EMAIL PROTECTED]... > > > Hello, > > > I wondering is they any good editor for PHP in windows, like Visual > > > Interdev for ASP > > > > > > -- > > > Thank you > > > Khaimun > > > > >
I am writing an app that uses sessions and can't access them outside of the script that they were written with. I get the following error: Warning: Undefined index: userID in C:\Inetpub\wwwroot\resume\posters\default2.php on line 18 Please email me with any solutions
A code snippet would be helpful to pinpoint the problem.. -C "Zachary Harris" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am writing an app that uses sessions and can't access them outside of > the script that they were written with. > > I get the following error: > > Warning: Undefined index: userID in > C:\Inetpub\wwwroot\resume\posters\default2.php on line 18 > > Please email me with any solutions > > > -- > 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] >
Darren wrote: > > Hi Darren, > > > > i have tried omitting http, so the line 11 becomes : > > > > $fp = fopen("c:/webshare/wwwwroot/examples/datafile.txt","w"); > > > > Is does not still work, and when i run it i have the warning message: > > > > ------------------------------------------------------------------ > > Total cost of the neckties 90 > > Warning: fopen("c:/webshare/wwwwroot/examples/datafile.txt","w") - No such > > file or directory in c:\webshare\wwwroot\examples\calculate.php on line 11 > > > > Unable to open remote file for writing. > > ------------------------------------------------------------------ > > > > > > I don't understand where is the error ? > > > > Thank you in advance > > > > > > ah now I see. Try removing the extra W from the path making wwwwroot to > wwwroot > > Best of luck > > Darren > > -- > 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] Hi Darren, now with the correction you suggested it works fine, but the version with the URL does't yet work fine . I have the same error that i just said to you: Warning: fopen("http://localhost/examples/datafile.txt","w") - No error in c:\webshare\wwwroot\examples\calculate.php on line 11 How do i get right access on the directory http://localhost/examples ? What must i do into php.ini file or into http.conf of Apache ? I checked that into the php.ini file i have : allow_url_fopen=On. Thank you in advance.
Mike is right - It's best to process everything on the server side and update the client side after everything has been updated (database, etc.) This requires some more coding (setting the drop boxes, text boxes to the same values that the user chose before "submitting"), but it's the safest way to go. -C "Bob Sears" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is what my screen looks like: > > I want to order ... > description image dropdown box @ 7.95 each = [text box] > containing 0-20 > numerics > > I had been contemplating using Javascript to perform the text box extension > of the quantity * rate calculation. However, the > need is to also update a MySQL table with the session tracking number and > other pertinent information about the selection > so a purchase order can be written in a subsequent module. > > Can this be done with straight PHP or will it require a mix of Javascript > for the calculation and PHP for the data base update? > If so, what might the code look like? > > Bob > > > -- > 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 am having a problem when trying to "view source" via my IE browser. When I try I get the following error: "Cannot open the php_submit.php C:\WINDOWS\Temporary Internet Files\Content.IE5\8DMZ02HJ\www.yahoo(1) file. Make sure a disk is in the drive you specified." ** Above I just tried viewing source on Yahoo's home page as an example. Now, interestingly, the "php_submit.php" file was one of the first PHP files I created when I first started playing around with PHP on my PC. For every time I try to "view source", this file is mentioned as above. The second file (ie. 'www.yahoo(1)' ) is different for every page I try to view source on. I have checked with Microsoft's technet and found no help and tried all that was suggested. I am now thinking that maybe my PHP installation may have caused this. I do not recall this error happening JUST AFTER I installed. I think I could for awhile and then all of a sudden I could not. I am posting this question in a few other PHP newsgroups as I am unsure where this would fall under: php.dev php.doc php.general php.windows Thanks to anyone who can assist. John M.