[PHP-WIN] Getting winamp info

2002-09-24 Thread Olivier Hubert
Hi, I would like to retrieve some Winamp information from the server running my PHP site. The objective is to show what song Winamp is currently playing (title only) if Winamp is in use. I've tried using WinampCOM but the problem is that even if Winamp is not active, when I load the PHP page,

Re: [PHP-WIN] Create Thumbnails from image

2002-09-22 Thread Olivier Hubert
Hi, Read up on the image manipulation functions of PHP at http://www.php.net/manual/en/ref.image.php You will need to install the GD library if it's not already installed and once you do you will have access to all the functions described, including the ImageCopyResized function. To read the

Re: [PHP-WIN] on W2K server

2002-09-19 Thread Olivier Hubert
If you still have a problem, try downloading PHP from: http://snaps.php.net/win32/php4-win32-latest.zip I checked the link just before sending this mail and it was still working. Using the php4apache4.dll from this package solved my problem and allowed me to use PHP as an ISAPI module with Apac

[PHP-WIN] WinampCOM problem

2002-07-05 Thread Olivier Hubert
Hiya, Just wondering if anyone else is having this problem. I am trying to control Winamp through HTTP using the WinampCOM plugin. It works fine when I call the script from the command line but not at all when the exact same script runs through HTTP (using Apache). Here is a bit of the code I

Re: [PHP-WIN] ASP and PHP

2002-05-17 Thread Olivier Hubert
has regular expressions and they work quite well. > > > PHP can send email without any additional downloads and cost >ASP can too (Server.CreateObject("CDONTS.NewMail")). I'm not sure why >companies sell products for this. > > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php Olivier Hubert Chef d'équipe informatique/IT Team leader Groupe Constructo (514) 856-6646 [EMAIL PROTECTED] <http://www.constructo.ca/>www.constructo.ca

Re: [PHP-WIN] UPDATE not working???

2002-05-10 Thread Olivier Hubert
Do you have any kind of warning or error message when executing the update query? Use mysql_error() to get an error message, if there is one. This will help in pinpointing the exact source of the problem. Olivier At 17:35 2002-05-10 +0100, James Mansfield wrote: >Beginner question this one (m

Re: [PHP-WIN] Data output

2002-05-09 Thread Olivier Hubert
I think this is normal PHP behavior. The $result variable is considered an "array" by the MySQL functions, so every time you call mysql_fetch_, you remove an element from the "array" (I don't think it's really an array but it's the best comparison I could find). My solution would be to create

Re: [PHP-WIN] flushing output to the browser whilst the script does something useful

2002-05-09 Thread Olivier Hubert
helps, Olivier Hubert At 20:29 2002-05-09 +0100, Mr. Adam ALLEN. wrote: >Wasn't sure on what the best way of describing it in a few words.. > >I have a few php scripts which outputs a good page worth of html, >then there is a long delay while something useful is done by the script. &

[PHP-WIN] Download monitor

2002-05-06 Thread Olivier Hubert
llow: - Apache 1.3.22 - PHP 4.1.1 - MySQL 3.23 something Again, my goal is to be able to tell when a given user has finished a download so I can give him permission to start another one. This could be done in anything, PHP, javascript, Java, I don't really care. Any help appreciated. Oliv

Re: [PHP-WIN] Can you use file() and rtrim() together

2002-05-06 Thread Olivier Hubert
that for the second part, you might have to put \r and then \n (e.g. "\r\n") or simply no char specified. By default PHP will strip all whitespaces, tabs and end of line/NULL bytes when you use rtrim without a second parameter. You might want to give it a try. Hope this helps, Ol

RE: [PHP-WIN] local drive

2002-02-21 Thread Olivier Hubert
ode in a file called LoadImage.php; when the user calls the script (through a form or link) the file is sent automatically. HTH Olivier At 18:12 2002-02-21 +, Sandeep Murphy wrote: >please, wud be grateful..:) > >sands >-Original Message- >From: Olivier Hubert [mailt

Re: [PHP-WIN] local drive

2002-02-21 Thread Olivier Hubert
Hi, Do you know the mime type of the document? If so, you could simply send the file through HTTP e.g. when the user presses the button, instead of accessing a web he/she accesses a script that will send the information contained in the database field. If you like I could send you sam

Re: [PHP-WIN] Limit connection/download

2002-01-25 Thread Olivier Hubert
that I can identify for sure when a user has finished a download or not. Thanks for the help :-) Olivier Hubert At 11:25 2002-01-25 -0500, Nicole Amashta wrote: >If they are registed, this means they must login, which you may then be >using database for this. Add a new field, totaldow

Re: [PHP-WIN] Limit connection/download

2002-01-24 Thread Olivier Hubert
gt;As I said, it's only the simplest system... This is a good idea, but then again, how do I know for sure when a user has finished his download and can download another file? With something like this (which I could enable in a session variable), a user can only download one file b

[PHP-WIN] Limit connection/download

2002-01-24 Thread Olivier Hubert
served, per IP address, but I do not have VC++ so I cannot compile Apache with the module. Also, I would like the user to be able to browse the files while downloading one, but giving two connections allows for two simultaneous downloads. Any ideas any one? All help is welcome :-) Olivier

Re: [PHP-WIN] new problem... problem with Query...

2001-11-19 Thread Olivier Hubert
Hi, If you mysql connection is the only one you're trying to maintain, I suggest you try $result = @mysql_query($sql) or die ("Couldn't execute query."); e.g. without passing the $connection parameter. Also, try using mysql_error to get the actual error message. HTH! Olivier At 16

Re: [PHP-WIN] Setting up MySQL for PHP

2001-10-04 Thread Olivier Hubert
H, good article for someone working with a *NIX server, but how about Windows? Olivier Hubert At 12:20 2001-10-04 -0700, Alain Samoun wrote: >Does the title: >The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP >http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/

Re: [PHP-WIN] Funny errors with IF

2001-04-12 Thread Olivier Hubert
Hi, >if ($submit) { > // here if no ID then adding else we're editing > if ($id) {... > >where id is the first field of mydb. Using other pages I can see that the >id is there in the mydb file. I also get the same error for "if ($submit..." Ok, I may be wrong here as I'm no PHP expert

Re: [PHP-WIN] HTML-Forms with the method POST

2001-04-11 Thread Olivier Hubert
That's right, check if register_global is at 1 (something equivalent should work) in your php.ini. Olivier >I think u have to read thru ur PhP.ini file.. > >There is a setting there about global vars.that should do it... > >Greetz > >M!ke >"Monello" <[EMAIL PROTECTED]> schreef in beric

Re: [PHP-WIN] Exec()

2001-04-11 Thread Olivier Hubert
At 18:03 2001-04-11 +0200, Helmut Himmelstoss wrote: >it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5 Did you check the permissions for ping.exe? Does the IUSR_[Machine name] or whatever user executes PHP.exe have the rights to read/execute ping.exe? Very often, anonymou

Re: [PHP-WIN] Session problems

2001-04-09 Thread Olivier Hubert
s a bit crappy. > >Thanks > > > >-- >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] Olivier Hubert Technicien i

Re: [PHP-WIN] Exec() In Windows

2001-04-04 Thread Olivier Hubert
Hi, You've probably already looked into this, but I just wanted to be sure: have you checked the persmissions on "Application.exe" ? I believe PHP uses IUSR_Computer (where Computer is your computer name) to exec() anything so if IUSR_Computer doesn't have the rights to read+execute the p

Re: [PHP-WIN] Uninitialized Variables

2001-03-14 Thread Olivier Hubert
What exactly is the error message? I know this sounds stupid, but are you sure it isn't just a warning? By default, PHP will output all warnings and errors to standard output (e.g. the browser). Olivier >Can PHP deal with variables that are not initialized? It is kicking out an >error when it

Re: [PHP-WIN] File download

2001-03-12 Thread Olivier Hubert
e HTTP1.1 RFC: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 Olivier Hubert >Hi, > >I'm using following code to download a file. IE5 shows the Open/Save dialogue, >if I select 'Save", it works. But if I select "Open", it again shows the same >