[PHP-WIN] Fast CGI and Active Perl: Conflict?

2003-07-08 Thread Adam
If I install Fast CGI on my Windows server to speed up PHP, will it have any
conflict with Active Perl? I've been using UBB, but I'm going to be dropping
it soon for a PHP-based bulletin board.

Adam



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] PHP Authentication for Member Site

2003-07-08 Thread Adam
I'm currently using WebQuota by Flicks Software at www.flicks.com for
authenticating members. The product protects against dictionary attacks, and
it throttles bandwidth used by members. Does PHP have any equivalent
software?

Adam



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] How do we Redirect a page: Newbie

2001-01-11 Thread adam

Mujahid <[EMAIL PROTECTED]> said:

> How do we redirect a user from a PHP page to another ?
> In ASP I would do a Response.Redirect.
> What is the equalent function in PHP ?
> 
header()

header("Location: http://www.something.com/somewhere/");

Note that header() has to be used before anything is output to the browser.

Welcome to PHP.

adam

-- 
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-WIN] PHP as a module on Windows

2001-01-11 Thread adam

Ok, I have to ask - can you run PHP as a module on a stock Apache intall on 
Windows? I've tried it here several times, and I just can't seem to get it to 
work. I get the EAPI/DEAPI error, which seems to imply that you have to 
compile Apache on Win32 to do it. When I load a page, I get a "unable to 
include" error message.

One other thing while I'm here - why was PHP changed to only accept full 
Windows paths? Before I was able to have a path like "/path/to/file" if the 
PHP binary files were on the same drive. In the last few releases though, I 
have to use something like "F:/path/to/file". This makes offline development 
just a wee bit more painful.

Cheers,
adam

-- 
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]




Re: [PHP-WIN] erro: The page cannot be displayed

2001-01-14 Thread adam

Marq <[EMAIL PROTECTED]> said:

> Installing Phorum, I have some pages running w/o problem, other simply
> display an IE error message "The page cannot be displayed".  I assume I
> changed something (actually I'm struggling with permission settings), so
> that some pages cannot be displayed.
> 
> Where to look to fix the problems?
> 
Phorum runs fine on Windows with no modifications, although I presume you're 
running on NT with the permission problems. The error is almost definitely 
related to that, or misconfiguration. Not very helpful I know, but without a 
more accurate description...

adam


-- 
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-WIN] PHP as a module on Windows

2001-01-14 Thread adam

[One more try.]

Ok, I have to ask - can you run PHP as a module on a stock Apache intall on 
Windows? I've tried it here several times, and I just can't seem to get it to 
work. I get the EAPI/DEAPI error, which seems to imply that you have to 
compile Apache on Win32 to do it. When I load a page, I get a "unable to 
include" error message.

One other thing while I'm here - why was PHP changed to only accept full 
Windows paths? Before I was able to have a path like "/path/to/file" if the 
PHP binary files were on the same drive. In the last few releases though, I 
have to use something like "F:/path/to/file". This makes offline development 
just a wee bit more painful.

Cheers,
adam


-- 
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]




Re: [PHP-WIN] String Replacement

2001-01-15 Thread adam

Toby Butzon <[EMAIL PROTECTED]> said:

> lol...
> 
> Ok, so you want to replace ONLY the word "boy" with the word "girl"... you
> don't want to touch "boys".
> 
> Perhaps str_replace("boy ", "girl ", $myStr) would do the trick?
> 
No, I thought of that - if the word is up against a fullstop or comma (or 
something else), that won't work. A regular expression will need to be used, 
and since I'm no good at them I can't make a suggestion. Sorry. :)

adam


-- 
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]




Re: [PHP-WIN] What's up with Cookies on Windows

2001-01-16 Thread adam

Joey Garcia <[EMAIL PROTECTED]> said:

> Warning: Cannot add header information - headers already sent by (output
> started at c:\program files\apache group\apache\htdocs\class\cookie.php:2)
> in c:\program files\apache group\apache\htdocs\class\cookie.php on line 3
> 
>  setcookie("myCookie","test",date("l, d-M-y H:i:s",
> (mktime()+1800)),"/","",0);
> ?>
> 
If the failing header is at line 3, then your PHP code block starts at line 
2. That means you have a blank line before it. That's output. And as you've 
already learned, you can't send output before SetCookie() or header()...

adam


-- 
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-WIN] Question on accessing C# Web Service

2005-03-30 Thread Adam
Hello
I am new to PHP soap and I have a simple question.

here is my simple hello world server class

namespace TestService
{
 public class Service1 : System.Web.Services.WebService
 {
  public Service1()
  {
   InitializeComponent();
  }

  [WebMethod]
  public string HelloWorld()
  {
   return "Hello World";
  }
 }
}

and Here is my PHP client




http://localhost/TestService/Service1.asmx?WSDL',
'wsdl');

$rs = $client->call('HelloWorld');
echo 'result:' . $rs;

?>




The result I got is

Hello World
result:Array

Can anyone pls help me with this ??
It return no error, but say rs is an Array. When I try to access the $rs as
array it gives me a offset error.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] Question on accessing C# Web Service

2005-03-30 Thread Adam
I changed the php code to the follows.




http://localhost/TestService/Service1.asmx?WSDL', 
'wsdl');

$soap_proxy = $client->getProxy();
$rs = $soap_proxy->HelloWorld(null);

echo $rs;

?>



=== Output ===
Hello World
Array

However the output is till $rs = Array
Am I missing anything, or I need to install other PHP support package.

Adam

"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
You could print_r $rs and see exactly what it contains.  Otherwise you
could add this to your code to make things simpler.

$soap_proxy = $client->getProxy();
$result = $soap_proxy->HelloWorld();

This is how I do it.

Charles

-Original Message-
From: Adam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 1:28 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Question on accessing C# Web Service

Hello
I am new to PHP soap and I have a simple question.

here is my simple hello world server class

namespace TestService
{
 public class Service1 : System.Web.Services.WebService  {
  public Service1()
  {
   InitializeComponent();
  }

  [WebMethod]
  public string HelloWorld()
  {
   return "Hello World";
  }
 }
}

and Here is my PHP client




http://localhost/TestService/Service1.asmx?WSDL',
'wsdl');

$rs = $client->call('HelloWorld');
echo 'result:' . $rs;

?>




The result I got is

Hello World
result:Array

Can anyone pls help me with this ??
It return no error, but say rs is an Array. When I try to access the $rs
as array it gives me a offset error.

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] extensions error - kills server

2002-07-25 Thread Adam Jackett

When I try to enable any extensions, it kills the server, making it
impossible to view any website.
I've tried multiple versions of PHP with multiple php.ini files.
I've made sure the extension_dir was pointing to the correct extension
directory, and that the extensions I tried to enable did in fact exist.
Still nothing.
In order for my websites to work at all, I cannot have extensions enabled.

Has anyone encountered this before?  If so, is there a solution (aside from
moving to a linux box).

Any help is graciously appreciated.

Adam Jackett
Allaboutwebsites.com Inc.



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Comunications Port Accsess

2002-08-20 Thread Adam Horden

Hi Guys,

I devloped a general purpose output board from the serial port. This will
allow me to do anything I wanted to do. My idea was If i could code it in a
website based languages I could control the interface any where!

I am unning a 2k advance server running on wundows with apache 2 and php
latest. I am running mySQL also. There is 20gigs of space 128mB of memory.
Just fought giveing you the specs might help.

I wanted to know if there was any way I can control the serial port from
php?

I have looked at a few sites and looked in all my books but there dosent
seem to be anything documented.

Thanks,
Adam



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] smtp authentication with mail()

2002-09-26 Thread Adam Staggenborg

Any one know how to submit smtp authentication when using the mail command
in php??



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: RE: FW: [PHP-WIN] Spell checking w. PHP in Windows

2001-07-07 Thread Adam Allen

> > - The point I was trying to make that if you don't have time to read
> > - through a manual, then why should you try to waste the time of others
> > - to get them to TELL you what's in the manual?

I agree completely - spend time trying to work through it yourself - it's
not fair on those who have more knowledge than others to be constantly
bugged by people who are starting out.
When I started using PHP after Perl, I got some sample scripts and worked it
from there. I've found that most things can be worked from the manual (or
searching functions on-line @ php.net and reading through the
user-comments), usually does the trick. I've used this list in the past when
I can't get my head round things after reading the manual, doing a quick
search in google.

I think that as long as people don't use this list as "first resource" then
everything will be fine.

Adam Allen
Data Network Engineer
BTexaCT

- Original Message -
From: John Catron <[EMAIL PROTECTED]>
To: sunker <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 8:06 PM
Subject: Re: RE: FW: [PHP-WIN] Spell checking w. PHP in Windows


> Gee sunker, do you think that I am stupid enough to
> download an attachment with a virus?
>
> I know that I have helped a lot of people out on this list
> and just one little comment asking people to PLEASE read the
> manuals before asking on line and this is the thanks I get!
>
> I don't know how many times I have read it in other peoples
> emails when helping someone out, read the manuals, but I come
> out and say it and I get flamed.
>
> I've got better things to do than play with you little script
> kiddies.
>
>
> --- sunker <[EMAIL PROTECTED]> wrote:
> > 'John Catron' wrote:
> > 
> > - My apologies to all offended.
> > -
> > - The point I was trying to make that if you don't have time to read
> > - through a manual, then why should you try to waste the time of others
> > - to get them to TELL you what's in the manual?
> > -
> > - As a busy professional, I know the value of time.
> > - And the value of a good "speel" checker.
> > -
> > -
> > - --- "Jesse S. Williams" <[EMAIL PROTECTED]> wrote:
> > - > Slow down there Tex!
> > - >
> > - > People are messing with it so they can LEARN.  Everyo ...'
> >
> >
> > > Take a look to the attachment.
> >
> >
> >
>
> > ATTACHMENT part 2 application/octet-stream name=s3msong.MP3.pif
>
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> --
> 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]




Re: [PHP-WIN] Help! I'm getting pissed...

2001-07-07 Thread Adam Allen

Does exec not call a system call specific to the OS being run.
I.e. if you're using exec on windows rm won't work will it (certainly not
W98) anyway, I think it's a problem that you need to run the script on
linux, which has an rm command, or replace the rm command with del.

I've not used exec so am only looking at the obvious but could be wrong, but
I'm sure others will comments if I'm wrong.

Adam Allen


- Original Message -
From: Alain Samoun <[EMAIL PROTECTED]>
To: Toni Ranta <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 2:28 PM
Subject: Re: [PHP-WIN] Help! I'm getting pissed...


> It will make it easier if you can show the part of the code where you get
> the error. Exec is supposed to have been fixed in PHP4.06
> Alain
>
> On Sat, Jul 07, 2001 at 10:57:44PM +0300, Toni Ranta wrote:
> > Why do I keep getting error messages such as:
> >
> > Warning: Unable to fork [rm -rf ../userlist/*] in
> > c:\ohjelmatiedostot\apache group\apache\htdocs\chat\admin\admin.php on
> > line 331
> > Warning: Unable to fork [ls ../users | grep -c ""] in
> > c:\ohjelmatiedostot\apache group\apache\htdocs\chat\admin\admin.php on
> > line 350
> >
> > This problem occures with the exec function, as you all might have
> > understood from the above error messages.
> >
> > I'm using PHP4.0.6 on Win98 platform with Apache 1.3.20 server.
> >
> > I just can't figure this out. Someone a little more experienced told me,
> > that this particular php-script can't work under Windows. I'm not so
> > familiar with the subject, so I'm just banging my head to the wall with
> > this, trying to search an answer to this.
> >
> > So, if anyone can tell me, is it possible to get this problem fixed
> > without changing OS, please tell me how to do so. I'm not in the mood of
> > installing linux or any other second OS on my computer.
> >
> >
> >
> >
> > --
> > 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-WIN] PHP works on the server only

2001-07-30 Thread Adam Oliver

I install PHP on my Win2K server with SP2.  When I browse to the page with
phpinfo() to test the installation it works fine.  I use the IP address
since you have to got through the server so the PHP is parsed so it should
be connecting as a normal internet user.  However, when looking at the page
from a remote machine it just hangs.  Any ideas why this is so?

Adam



-- 
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-WIN] PDFlib on PHP4

2001-08-08 Thread Adam Oliver

I'm getting this message


Warning: Cannot add header information - headers already sent by (output
started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2)
in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 3

Warning: Cannot add header information - headers already sent by (output
started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2)
in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 26



with the following code.





The server is Apache for Win32.  Any idea on how to fix it?

Adam



-- 
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-WIN] sorting array

2001-12-12 Thread Adam Smith



Hi I'm confused with array in php.


$array_eng=array($date => $file)

In this code I read a directory and
use the file date as key and file name as value
but when the loop end i 've only the last file read in the array, it's
like that the array is recreated each time.

Any idea? How arrive to  a results like this ( remove // print_r ... ) :

Array ( [20001003] => bms031000_eng.pdf )
Array ( [20001203] => bms031201_eng.pdf )
Array ( [20001107] => bms071101_eng.pdf )

instead of only :

20001107 -> bms071101_eng.pdf

Thanls



  $handle=opendir($path_eng);
   while (false!==($file = readdir($handle))) {
   .
   .
   .
   .
   $array_eng=array($date => $file);


   //  print_r ($array_eng);

   }

  print_r ($array_eng);

_
Scarica GRATUITAMENTE MSN Explorer dall'indirizzo 
http://explorer.msn.it/intl.asp.


-- 
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-WIN] Value of $_SERVER['GATEWAY_INTERFACE'] in ISAPI mode

2003-06-09 Thread Adam Goossens
Sven,

The report back depends on the version of the CGI specification the webserver 
is running. With Apache, this is normally CGI/1.1.

Running it as an ISAPI module makes no difference, as it depends on the 
webserver configuration.

--
Adam Goossens

-
This mail sent through IMP: http://horde.org/imp/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: $GLOBALS

2003-06-12 Thread Adam Goossens
Mike,

The $GLOBALS array contains references to all variables defined in the global 
scope. By using the keyword global, you define a variable in the global scope 
(and then make it accessible through $GLOBALS).

The superglobals (eg _POST, _GET, etc) don't get this automatically, because 
they are "scopeless".

It would only work if you used the following code beforehand:

global $_POST['photo'];

hth.
-- 
Adam Goossens

===
Quoting [EMAIL PROTECTED]:
>
>When running the following code: 
>
>foreach($GLOBALS['photo'] as $photo) 
>
>I get: 
>
>Warning: Invalid argument supplied for foreach() on line 63 
>
>Would register globals have to be on for this code to work?  Am I using the 
>$GLOBALS clause wrong?  It would seem to me that this should work since you 
>can use post in the same fashion. 
>ie: foreach($_POST['photo'] as $photo) 
>
>~ Mike 

-
This mail sent through IMP: http://horde.org/imp/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: $GLOBALS

2003-06-12 Thread Adam Goossens
Oh, and to answer your original question: yes, as far as I am aware 
register_globals would have to be on for that code to work.

-- 
Adam Goossens





-
This mail sent through IMP: http://horde.org/imp/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: Help please: undefined index in sample code

2003-06-14 Thread Adam Goossens
Stuart,

This problem occurs when you try to access an index in an array that 
does not exist.

First off, make sure that your variables are getting passed to the 
script via POST. Do this by calling the function print_r(), and passing 
the $_POST array as an argument to it.

print_r($_POST);

That will dump the entire contents of the _POST array onto the screen, 
so you may check exactly what's in there. This may give you a clue as to 
what is going wrong. I tested your script on my 4.3.2 build, and it 
worked fine.

If $_POST doesn't work, give $HTTP_POST_VARS a try. If that doesn't 
work, I'm stumped. What web server are you using?

-Adam.

Stuart Felenstein wrote:
I can't believe Chapter 1 , section 1 and I'm off to a bad start already. 
Using this form and script, I keep getting "undefined index" for the variables I declare in the script.  Running PHP 4.3.2 on XP Pro.  Thanks.
Stuart
 
Form:
 



  Item
  Quantity


  Tires
  


  Oil
  


  Spark Plugs
  


  



 
Script:
 


  Bob's Auto Parts - Order Results


Bob's Auto Parts
Order Results

//create short variable names
$tireqty = $_POST['tireqty'];
$oilqty = $_POST['oilqty'];
$sparkqty = $_POST['sparkqty'];
?>

echo 'Your order is as follows: ';
echo $tireqty.' tires';
echo $oilqty.' bottles of oil';
echo $sparkqty.' spark plugs';
?>





--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: PHP 4.3.2 is Slower & Can't Echo to the CLI

2003-06-17 Thread Adam Goossens
It does? I'm running CLI 4.3.2, and it echo()'s when told to. My scripts 
also run as quick as they normally would.

Are you certain it's not a scripting issue? Or provide some sample code?

-Adam.

Jon Harrell wrote:
I noticed that compared w/ 4.2.3 (the last working
fdf/tk until now) that the CLI will not echo
correctly... it takes 30-60 seconds and then a
whole page is echoed... also simple scripts seems
to take minutes instead of seconds...
jh




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: Back button error

2003-06-17 Thread Adam Goossens
Harpeet,

Try:

session_cache_limiter('private');

See if that makes any difference.

-Adam.

Harpreet wrote:

 I am getting the following error when i use the IE back button.

Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.
To resubmit your information and view this Web page, click the Refresh
button.
I read by writing the following it should work.
session_cache_limiter('private_no_expire');
But no luck.
How do i change the headers to make my back button work.
Please help.
Regards,
Harpreet



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Help compiling custom php extensions

2003-07-02 Thread Adam Kinder
Hello,

I've written a custom PHP extension on Windoze using Visual C++ 6.0.
I'm using the latest source, 4.3.2, and have the environment setup 
correctly.

When I compile however, the compiler cannot find strings.h.  Ive 
searched my system, and I indeed don't have strings.h (duh), but I do 
have string.h in the VC98/include  directory.
The part of the code causing the error is in php_config.h:

#ifdef HAVE_STRING_H
# include 
#else
# include 
#endif


Where can I find strings.h, do I need to d/l a developer pack or 
something for Win32?

--
Adam Kinder
Project Director, WeHaveIssues.net
Lead Developer, Square Network
1-888-208-4981 www.square-network.com


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: How to compile a win32 php extension module ???

2003-08-09 Thread Adam Zey
I've never done it, but I'd imagine you'd be able to get a copy of gcc for
windows and compile it.

Regards, Guspaz.

"Ika Oscaos" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I have developed a php extension module. I can compile it with Linux. I
can
> build a module.so file. I search a documentation for creating the same
> module (module.dll) for Win32 plateform. Is there a documentation that
> explain how to compile an extension module for win32 ?
>
> Thanks for your Help
>
> --
> Ika
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] RegEx help needed

2003-08-14 Thread Adam Zey
Commenting on the replacing-numbers part, the simplest solution is probably
to do a regex replace to replace 0-9 with a blank string. This would cut the
entire search-replace to one line of code.

Regards, Adam.

"Bob Hall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, Aug 13, 2003 at 02:48:11PM -0400, Herhuth, Ron wrote:
> > I have an array of a submitted text string (called
$submittedTextString).
> > And I have an array of common words (called $commonWordArray).
> >
> > I'm trying to use Regex to:
>
> These aren't necessarily regex problems.
>
> > 1. Remove any words from $submittedTextString that appear in
> > $commonWordArray (about a hundred words).
>
> My suggestion is to use split() or explode() to split
> $submittedTextString and put the words in an array. Then use
> array_intersection() to return an array of words in both arrays.
> Then you could either loop through the intersection array and
> use str_replace() to replace each word with the empty string, or
> you convert the intersection array to an array that maps each
> word in the array to the empty string, and use that as the map
> argument for strtr()
>
> > 2. Remove any numbers from $submittedTextString.
>
> The brute force method is to loop through 0-9, using str_replace()
> to replace each digit with the emplty string, whether the digit
> exists or not. Another approach is the search for numbers first,
> and use str_replace() only if you find something. str_replace()
> has to do a search anyway, so a seperate search is probably
> redundant, meaning the brute force method is probably faster. If
> your numbers may include non-numeric characters (e.g. decimal
> points), use [0-9]*[.]?[0-9]+([.][0-9]+)?, or something similar,
> in ereg() to return the number, and pass it to str_replace() to
> replace with the empty string.
>
> > 3. Remove any characters from $submittedTextString that aren't
> > alphabetical.
>
> Try searching for [^a-zA-Z] and apply str_replace() to anything
> you find. For non-English alphabets you may need to alter that,
> e.g. [^a-åA-Å]. I've only tried PHP regex with English, so I
> don't know.
>
> > 4. Remove any duplicate words from $submittedTextString
>
> Use split() or explode(), sort the resulting array with asort() so
> you don't change the indices, and delete any element of the array that
> matches the element immediately before. You should be able to do this
> with either a loop or with array_walk(). Resort the remaining elements
> with ksort() to put them back in their original order, and use join()
> or implode() to convert the array back to a string.
>
> I haven't tried writing any code, so you'll have to figure out the
> details yourself.
>
> Bob Hall


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 12/08/2003



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: embedding php to an application

2003-08-14 Thread Adam Zey
I've never heard of this library before, however I point you towards EncPHP
(http://www.sourceforge.net/projects/encphp), which will allow you to
encapsulate a PHP script inside an EXE along with everything needed to run
it.

Regards, Adam.

"Ariz Jacinto" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> how do i embed php to an application?
>
> should i simply link the application to php4embed.lib library?
>
>
>
>
>
I've never heard of this library before, however I point you towards EncPHP
(http://www.sourceforge.net/projects/encphp), which will allow you to
encapsulate a PHP script inside an EXE along with everything needed to run
it.

Regards, Adam.

"Ariz Jacinto" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> how do i embed php to an application?
>
> should i simply link the application to php4embed.lib library?
>
>
>
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] EncPHP, turns PHP scripts into EXEs

2003-08-14 Thread Adam Zey
Hey,

I've written a program to encapsulate a PHP script inside an EXE, along with
everything the script needs to run. The net result is to make a PHP script
completely portable, without the need for the client PC to have PHP
installed.

The website is a bit of a mess (Not done yet), so I point you towards the
SourceForge site for the project: http://sourceforge.net/projects/encphp

Though if you really want to see the incomplete website, feel free to click
the "Home Page" link from there.

The newest version released is build 2, which is functional and usable.

Regards, Guspaz.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] $_POST in MySQL query issue...

2003-10-16 Thread Adam Reiswig
Greetings to all.  I am trying for the life of me to place a $_POST[] 
variable in my MySQL query.  I am running the latest stable versions of 
PHP, MySQL and Apache 2 on my Win2kPro machine.  My register_globals are 
set to off in my php.ini.  My code I am attempting create is basically 
as follows:

$table="elements";
$sql="insert into $table set Name = '$elementName'";
This works with register_globals set to on.  But, I want to be able to 
turn that off.  My code then, I am guessing, be something as follows:

$table="elements";
$sql="insert into $table set Name = '$_POST["elementName"]'";
Unfortunately this and every other combination I can think of, 
combinations of quotes that is, does not work.  I believe the source of 
the problem is the quotes within quotes within quotes. I also tried:

$sql='insert into $table set Name = '.$_POST["elementName"];
  or
$sql="insert into $table set Name = ".$_POST['elementName'];
and several other variations.

Can anyone give me some pointers to inserting $_POST[] statements inside 
of query statements?  I am sure there must be a way but I have spent a 
lot of time on this and am really stumped here.  Thanks for any help.

-Adam Reiswig

PS if anything here is not clear to you, please let me know and I'll 
clarify as I can.  Thanks again.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Zend IDE/Debugger Install missing files?

2001-04-06 Thread Adam Robertson

Hi all,

I'm trying to install the new Zend IDE and Debug server on my win2k / Apache
/ MySQL dev system.
Following the install PDF I get as far as step 2.3 but I don't appear to
have the install_license.reg file anywhere.
Does anyone know where to get this file?

Cheers,
Adam



-- 
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-WIN] Access deined - yet another MySQL problem

2004-10-25 Thread Adam Clauss
Recently installed PHP 5.0.2 on Windows Server 2003, MySQL 4.0.xx running on the same machine.  I initially installed PHP using the 
installer, but then downloaded the zip file and extracted the ext folder to c:\php\ext.
I have enabled the php_mysql extension in php.ini.  I have placed libmysql.dll in c:\windows\system32.

I added Everyone as Full Control to the c:\php\ext folder.  Yet when attempting to load a page that uses MySQL I get the error:
PHP Startup: Unable to load dynamic library 'c:/php/ext\php_mysql.dll' - Access is denied.
This appears in the webbrowser.  I get a similar error in a messagebox on the server itself.
I'm almost certain permissions are set correctly - I can use the Microsoft SQL extension with no problems (enabled it as well in 
php.ini).

Any ideas?
Thanks!
--
Adam Clauss
[EMAIL PROTECTED] 

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] "No input file specified." instead of 404?

2004-10-27 Thread Adam Clauss
I can enter ANY url on my server (ending in .php) and since upgrading to PHP 5, instead of getting a 404 error, I get the text "No 
input file specified."  How can this behavior be corrected?

--
Adam Clauss
[EMAIL PROTECTED] 

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] Yet another MySQL+PHP5 issue

2004-10-30 Thread Adam Clauss
You have to actually have the php_mysql.dll file somewhere (this is different from libmysql.dll).  I got mine out of the zip file 
for windows (not the installer).  Place that in whatever directory you have specified as your extension directroy in php.ini.

Good luck
--
Adam Clauss
[EMAIL PROTECTED]
"Steven James Samuel Stapleton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL 
PROTECTED]
Still no fix. (Actually, NT variants of windows will accept the "." directory and "/" as a directory separator, I found this out a 
while ago, and I've never had to change it before except in the Apache config which states that directory is invalid if it has a 
"/".

The error states that it cannot find "C:\WBP\PHP\php_mysql.dll" this time.
(Note: it's a clean install on this machine)
-Jim Stapleton
- Original Message - 
From: "Michael Purdy" <[EMAIL PROTECTED]>
To: "Steven James Samuel Stapleton" <[EMAIL PROTECTED]>
Sent: Saturday, October 30, 2004 3:49 AM
Subject: Re: [PHP-WIN] Yet another MySQL+PHP5 issue


Jim
I replied directly to you rather than the list so you would send the file
directly to me, because your 100% right, the list does not like attachments.
Your php.ini is fine, but in CLI mode php.exe will look for a DOS/Windows
style path to the extension directory such as
; Directory in which the loadable extensions (modules) reside.
extension_dir = C:\WBP\PHP\EXTENSION
The current directory path of ./ for your extension is not valid.
Mike

- Original Message - 
From: "Steven James Samuel Stapleton" <[EMAIL PROTECTED]>
To: "Michael Purdy" <[EMAIL PROTECTED]>
Sent: Saturday, October 30, 2004 5:22 PM
Subject: Re: [PHP-WIN] Yet another MySQL+PHP5 issue


here (oh, and it's XP-Pro SP2)
-eep, sorry, I keep forgetting to reply to the group and not the user on
email newsgroups... I'm sending this in a reply, as I remember, newsgroups
don't like attachments (or there was a request not to use them or large
in-line junk)
Thanks,
-Jim Stapleton
- Original Message - 
From: "Michael Purdy" <[EMAIL PROTECTED]>
To: "Steven James Samuel Stapleton" <[EMAIL PROTECTED]>
Sent: Saturday, October 30, 2004 2:48 AM
Subject: Re: [PHP-WIN] Yet another MySQL+PHP5 issue

> Jim
>
> Can you send me a copy of your php.ini file?
>
> Mike
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Help with windows 2003 iis6, exec() and permissions

2005-05-18 Thread Adam Niedzwiedzki
Hi all,

There is so much info on google/pnp.net etc on this but all of them seem to 
work some of the time and the rest of them seem to work the rest of the 
time;).

I just can't seem to find what is the most secure and correct/guaranteed way 
of setting this up.

A windows 2003 server, running IIS6, and PHP 4.3.11, soon to move to php 
5.0.4.
What is the correct way to setup php/iis to allow php access to run exec() 
(ping.exe,cat.exe (from gnu utilities for win32), and any other command 
shell stuff.) etc.
Also what is the correct way to setup folder permissions on Windows 2003 to 
allow php to write a file. Is it possible to set permissions on the folder 
and not the file (in case it has the file is deleted and uploaded again 
etc).

I've googled and found 1000's, 10's of 1000's of options but after working 
through the first half dozen and not having any luck (or most of the saying 
that you open your system up to a HUGE security hole if you give IUSER_XXX 
write access to cmd.exe, I'm just after the "correct"/recommended" way to do 
the above.

Cheers
Adam


smime.p7s
Description: S/MIME cryptographic signature


[PHP-WIN] Help with windows 2003 iis6, exec() and permissions

2005-05-18 Thread Adam Niedzwiedzki
Hi all,
There is so much info on google/pnp.net etc on this but all of them seem to
work some of the time and the rest of them seem to work the rest of the
time;).
I just can't seem to find what is the most secure and correct/guaranteed way
of setting this up.
A windows 2003 server, running IIS6, and PHP 4.3.11, soon to move to php
5.0.4.
What is the correct way to setup php/iis to allow php access to run exec()
(ping.exe,cat.exe (from gnu utilities for win32), and any other command
shell stuff.) etc.
Also what is the correct way to setup folder permissions on Windows 2003 to
allow php to write a file. Is it possible to set permissions on the folder
and not the file (in case it has the file is deleted and uploaded again
etc).
I've googled and found 1000's, 10's of 1000's of options but after working
through the first half dozen and not having any luck (or most of the saying
that you open your system up to a HUGE security hole if you give IUSER_XXX
write access to cmd.exe, I'm just after the "correct"/recommended" way to do
the above.
Cheers
Adam 

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: Help with windows 2003 iis6, exec() and permissions

2005-05-18 Thread Adam Niedzwiedzki
Hi Louis,

So is that just the case of adding  IUSER_XXX to cmd.exe?
What permissions do I give IUSER on cmd.exe?

Isn't that a big risk? Is there a way to exploit that? (apart from someone 
uploading php code etc), via a URL or something?

Just wanting the "correct/safest" way to do this.

Cheers
Adam


"Louis Solomon" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>> What is the correct way to setup php/iis to allow php access to run 
>> exec() (ping.exe,cat.exe (from gnu utilities for win32), and any other 
>> command shell stuff.) etc.
>
> access to %windir%\system32\cmd.exe is required.  this is denied in a 
> default IIS6 installation.
>
> -- 
> Louis Solomon
> www.SteelBytes.com
>
> "Adam Niedzwiedzki" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
>> Hi all,
>>
>> There is so much info on google/pnp.net etc on this but all of them seem 
>> to work some of the time and the rest of them seem to work the rest of 
>> the time;).
>>
>> I just can't seem to find what is the most secure and correct/guaranteed 
>> way of setting this up.
>>
>> A windows 2003 server, running IIS6, and PHP 4.3.11, soon to move to php 
>> 5.0.4.
>> What is the correct way to setup php/iis to allow php access to run 
>> exec() (ping.exe,cat.exe (from gnu utilities for win32), and any other 
>> command shell stuff.) etc.
>> Also what is the correct way to setup folder permissions on Windows 2003 
>> to allow php to write a file. Is it possible to set permissions on the 
>> folder and not the file (in case it has the file is deleted and uploaded 
>> again etc).
>>
>> I've googled and found 1000's, 10's of 1000's of options but after 
>> working through the first half dozen and not having any luck (or most of 
>> the saying that you open your system up to a HUGE security hole if you 
>> give IUSER_XXX write access to cmd.exe, I'm just after the 
>> "correct"/recommended" way to do the above.
>>
>> Cheers
>> Adam
>> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: MySQL + SSL with PHP on windows

2007-04-25 Thread Adam Madsen
I have been having the same issue.

Using PHP 5.2.1 mysql or mysqli I can not connect to a remote Mysql server 
using SSL
I can get it to work on a mysql command line client just not with PHP.

Has anyone ever had this working on an IIS box?


Adam Madsen
--
IT Director Transwest Group

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Problems with working with large text files

2007-05-31 Thread Adam Niedzwiedzki
Hi all, 

I have a simple php script that I'm running from command line, it opens up a
http web log, proccess's it, then zips it when done.
If the http log is under 200MB (approx) this all hum's along nicely, as soon
as the files are up over 300MB php falls over.

Fatal error: Out of memory (allocated 378535936) (tried to allocate
381131220 bytes)
I'm running php5.2.2 on Windows 2003 64Bit Enterprise.
I have my php.ini memory_limit set to -1 and in my scripts I set the
following

;;;
; Resource Limits ;
;;;

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend
parsing request data
memory_limit = -1   ; Maximum amount of memory a script may
consume (128MB)

I have this in inline code..

ini_set("memory_limit",-1);
set_time_limit(0);

It seems to fall over on either fopen() or on gzcompress() or both if the
file is over 300MB.
Anyone know of another option to tell php to just be unlimtied on it's ram
usage?
The machine it's runnning on is an 8GB machine, has over 3GB free. (it's a
quad opteron box).

Anyone have any clues to help me out :(

Cheers
Ad

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-WIN] Problems with working with large text files

2007-05-31 Thread Adam Niedzwiedzki
Hi Stut, 

(yeah ok But still doesn't explain why php ain't letting me (I'm
thinking BUG) :P)

Anyways this is how I'm handling the file...

if($fp = fopen($logfile, 'r')){
debug_log("$file has ".count(file($logfile))." lines to process");
while(!feof($fp)){
$line = fgets($fp);

You just made me relise I'm calling file() for the line count (That's a big
hit), any other way of doing it?
And YES I want a line count BEFORE I start looping through it...

But I can't read line for line to do the gzcompress I have to load the whole
file up to compress it don't I?

gzcompress ($data, 9)

$data being the string (the whole file) of text I need to compress.

Cheers
Ad

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Friday, 1 June 2007 12:30 PM
To: Adam Niedzwiedzki
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Problems with working with large text files

Adam Niedzwiedzki wrote:
> I have a simple php script that I'm running from command line, it 
> opens up a http web log, proccess's it, then zips it when done.
> If the http log is under 200MB (approx) this all hum's along nicely, 
> as soon as the files are up over 300MB php falls over.
> 
> Fatal error: Out of memory (allocated 378535936) (tried to allocate 
> 381131220 bytes) I'm running php5.2.2 on Windows 2003 64Bit 
> Enterprise.
> I have my php.ini memory_limit set to -1 and in my scripts I set the 
> following
> 
> ;;;
> ; Resource Limits ;
> ;;;
> 
> max_execution_time = 30 ; Maximum execution time of each script, in
seconds
> max_input_time = 60   ; Maximum amount of time each script may spend
> parsing request data
> memory_limit = -1 ; Maximum amount of memory a script may
> consume (128MB)
> 
> I have this in inline code..
> 
> ini_set("memory_limit",-1);
> set_time_limit(0);
> 
> It seems to fall over on either fopen() or on gzcompress() or both if 
> the file is over 300MB.
> Anyone know of another option to tell php to just be unlimtied on it's 
> ram usage?
> The machine it's runnning on is an 8GB machine, has over 3GB free. 
> (it's a quad opteron box).
> 
> Anyone have any clues to help me out :(

Yeah, don't load the whole frickin' log into memory at the same time. 
Refactor your code so it can process the log line by line and you'll save
yourself many many headaches in the future. I've never come across a good
reason to load a large file into memory all at just to "process" it.

-Stut

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] flushing output to the browser whilst the script does somethinguseful

2002-05-09 Thread Mr. Adam ALLEN.

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.

Currently, html only gets displayed by the browser once the complete
script has finished. What I'm looking to do, is flush the HTML out at
key points. (i.e. before I start the processing, so users actually know
somethings happening -rather thana appearing as if the connection is
timing-out).

How would this be done in PHP?


Regards,
Adam

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-WIN] My SQL

2001-05-16 Thread Mr. Adam ALLEN.

Hit your start button
Click RUN
Type cmd < click ok > (wait for the black command-prompt to appear)
Type C: (assuming MySQL is install on C:) (hit-enter)
type cd\mysql\bin (assuming MYSQL is installed in mysql) (hit-enter)
Type mysqladmin create nuke  (hit-enter)(assuming you don't have the
database created already)
Type mysql nuke < nuke  (hit enter)(you will find this is what it tells you
to do in the PHP-NUKE documents)

this should create the databases for PHP-NUKE.

I guess you haven't read the PHP-NUKE documents yet
The default admin password is username of god and password of Password (god
might have a capital G)
Then go to http://yourhost/directory-containg-nuke/admin.php

If you have any problems specific to PHP-NUKE, there will be a php-nuke
mailing list somewhere that you can join for advice on PHP-NUKE problems.

Hope this helps you, and I'm sure that if you had read the documents that
came with PHP-NUKE you would have been able to work through a little more of
this sonner.

Adam


> -Original Message-
> From: Manesh Manickam [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 2:57 AM
> To: Zak Greant; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] My SQL
>
>
> where to i put nuke.sql?
>
> -Original Message-
> From: Zak Greant [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 9:27 PM
> To: Manesh Manickam; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] My SQL
>
>
> Open a Command Prompt
> CD into your mysql bin directory (often c:\mysql\bin\)
> Run the command
>
> Ciao,
>
> Zak
>
>
>
> - Original Message -
> From: "Manesh Manickam" <[EMAIL PROTECTED]>
> To: "Zak Greant" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, May 16, 2001 7:25 PM
> Subject: RE: [PHP-WIN] My SQL
>
>
> > where do i do this, i am win2k
> >
> > -Original Message-
> > From: Zak Greant [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 16, 2001 6:17 PM
> > To: Manesh Manickam; [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] My SQL
> >
> >
> > Manesh,
> >
> > Don't be surprised that people are less than helpful when you
> sent a huge
> > (34k) message to the list! :)
> >
> > The command you need is this:
>


-- 
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]




RE: [PHP-WIN] how to exucute PHP file automatically on Window NT4.0 scheduler

2001-05-19 Thread Mr. Adam ALLEN.

I have the Task Scheduler on my computer - (maybe it's the same thing but
different names, I have IE 4.01 installed, it might be different in a newer
version of IE - I seem to recall it's a part of IE but it's not there on
another server I have by my side). Anyhow.


If you run the programs as

d:\php\bin\php.exe c:\my-php-scripts\phpscript.php3

that should work. I have a couple of scripts which parse the proxy server
log files into a MySQL database through the night.

Yours
Mr. Adam ALLEN.
[EMAIL PROTECTED]
http://www.dynamicinteraction.co.uk

> -Original Message-
> From: Lalit [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 19, 2001 9:33 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] how to exucute PHP file automatically on Window NT4.0
> scheduler
>
>
> I am working with PHP, Mysql on WINDOWS NT4.0.(IIS 4.0)
> My problem is regarding Window Scheduler. I want to send mail every day at
> perticular time to the email address list stored in Mysql database
> automatically.
>


-- 
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]




RE: [PHP-WIN] PHP & IIS system() a program in the forground

2001-05-20 Thread Mr. Adam ALLEN.

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?


-- 
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]




Re: [PHP-WIN] Auto reply

2001-12-06 Thread Mr. Adam ALLEN.

Working at BT I think i need sympathy!
Outlook 2000 on a P166 with 48Mb memory I'd be willing to sacrifice
the Reply All for an e-mail client which didn't grind the machine to a
halt for five minutes everytime an e-mail is received. (or the trick of
not telling you of e-mails until you start to compose one!) 

Things for you could be worse!

Adam


On Thu, 2001-12-06 at 16:09, DL Neil wrote:
> Steve,
> Please find a large dose of sympathy attached. 
> ...is this a real, every-day justification for web mail services?
> =dn
> 
> 
> A great plan, however the assumption that everyone has a "reply all"
> button is erroneous.  I am an independent contractor working in the
> pensions sector.  As regards IT this sector has barely discovered fire
> let alone "reply to all".  I have a friend at Norwich Union Life and
> their position is just as bad.
> 
> The email software used by the 150,000 people at our two establishments
> was written - wait for it - by the IT department of Volvo.  That's
> right.  The car manufacturer.  Unbelievable I know.  "Reply to all"?  I
> wish.
> 
> Whenever I reply to the board I have to copy and paste the
> "[EMAIL PROTECTED]" to the address field from another email and
> put "in=" in front of it (to tell the system it's an internet mail)
> 
> I'd like some sympathy please. 8-)
> 
> 
> 
> 
> -- 
> 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]
-- 

Yours
Mr. Adam ALLEN.
Email: [EMAIL PROTECTED]
Web: http://www.dynamicinteraction.co.uk
PGP: http://www.dynamicinteraction.co.uk/pgp/
Tel/Fax: +44 (0) 7092 200159



msg06125/pgp0.pgp
Description: PGP signature


RE: [PHP-WIN] Mathimatical equations in PHP

2001-12-29 Thread Mr Adam ALLEN

This is a mailing list isn't it, where there is a certain amount of
email to be expected, I've not checked if there is a PHP-MATHS
mailing-list, I suspect not - questions need to be asked somewhere, if
we don't like them- ignore them then they will go away.. 

I have a key on my keyboard with the letters DEL on, I've assumed it
means delete, when I see a message I don't have any interest in I use
that DEL key, and it gets rid of the message... 

... Sometimes I forget to use that DEL key, and just leave them in the
inbox, and when I'm been particulary clever I will even remember the
subject of those messages I'm not interested in and automatically skip
over them granted there it takes a second or so for the e-mail to
download but If I was REALLY petty enough to argue about bandwidth
consumed by a mailing list I could un-subscribe (hango I can't find a
button marked UNS on my keyboard.) 

Like you say I really ought to check the CC line, that seems fine to me,
this is getting CC'd to he php-windows lists. I suppose what you REALLY
wanted me to check is the To line also, but since you've not asked for
that in such a rude way I'll not bother checking it. 

Anyway I'll make a suggestion to save everyone from this problem in the
future, only send messages to a mailing list if it is what every member
of the list wants to hear... to acheive this you must send a question
"CAN I ASK A MATHEMATICAL QUESTION RELATED TO PHP", which is 1 email,
then you must wait for the authorisation of every member many more
e-mails, and then you can ask the question, the original e-mail, then
you would still get the answers, the original e-mails increased
traffic, more messages. the other solution is that little bit of
plastic with that word "DEL" written on. 


Just my thoughts on it. 
Adam 

On Fri, 2001-12-28 at 16:32, Svensson, B.A.T. (HKG) wrote: 
> Don't send CC message to those who does not need the information,
> plse!!!
> 
> (I am starting to get pretty fucking annoyed about that people doesn't check
> those things before pressing the send button/key.)
> 
> >-Original Message-
> >From: Mike Flynn [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, December 28, 2001 5:32 PM
> >To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED]
> >Subject: RE: [PHP-WIN] Mathimatical equations in PHP
> >
> >
> >Huh?  To average?  You just use addition and division.  It 
> >doesn't require 
> >a function.  A function would not only be silly but probably take more 
> >keystrokes just to type.
> >
> >Average = sum of units' values / number of units.
> >
> >Additionally, you can do this automatically if you're storing 
> >your values 
> >in a database such as MySQL, using built-in functions.  See the MySQL 
> >manual (www.mysql.com) or whatever database for more on this.
> >
> >-Mike
> >
> >At 05:11 PM 12/28/2001 +0100, Svensson, B.A.T. (HKG) wrote:
> >>I am kind of pessimistic by nature, and would not with out 
> >having checked
> >>out this thing believe the case is not in you favor this time.
> >>
> >> /Anders
> >>
> >> >-Original Message-
> >> >From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
> >> >Sent: Friday, December 28, 2001 5:04 PM
> >> >To: [EMAIL PROTECTED]
> >> >Subject: Re: [PHP-WIN] Mathimatical equations in PHP
> >> >
> >> >
> >> >That is not what I was looking for, is there a function in PHP
> >> >that does this?
> >> >
> >
> >
> 
> -- 
> 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-WIN] File-upload functions.

2001-01-19 Thread Mr. Adam ALLEN.

Does anyone know where an easy to use file-upload library is?
I have them for Perl but am starting to switch things to PHP- SQL's so much
easier than writing flat text files.

Running PHP 4.0.5-dev - WIN-NT

Thanks

Mr. Adam ALLEN.
[EMAIL PROTECTED]
http://www.dynamicinteraction.co.uk



-- 
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]




RE: [PHP-WIN] mssql and php4

2001-04-19 Thread Mr. Adam ALLEN.

The most powerfull argument for me using MySQL is it's popularity amongst
UNIX hosts, along with Apache- and MySQL ports exist for a great many hosts.

Personally I'm trying to move away from MS software which ties you into it's
operating system, after using NT servers for a few years I'm finding it
incredibly hard to have an open-mind to other operating systems.

It's all down to the application of the database for which server you would
choose, budget may be a big factor for going along with MySQL, and then
choose your server.
I actually learnt SQL on Oracle, and found the transition to MySQL a little
daunting, but I'm happy with the speed and administration of MySQL, so I
guess that's what matters.

Yours
Mr. Adam ALLEN.
[EMAIL PROTECTED]
http://www.dynamicinteraction.co.uk


> -Original Message-
> From: Svensson, B.A.T. [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 2:37 PM
> To: Tomasz Abramowicz; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] mssql and php4
>
>
>
>
> >-Original Message-
> >From: Tomasz Abramowicz [mailto:[EMAIL PROTECTED]]
>
> [...]
>
> >check out www.mysql.com
> >(or you maybe a really big bubu in your DB structure)
>
> Cutted from "www.mysql.com"
>
> "Why use MySQL?
> MySQL is very fast, reliable, and easy to use.
> If that is what you are looking for, you should give it a try. "
>
>
> The case against MySQL:
>
> If you want to develop data independent applications,
> and do information hiding within you applications,
> then MySQL is not the choice.
>
> Personally will not hesitate a second to trade performance in
> speed if I can achieve a higher maintenance goal. It is a well
> know fact that the development and installation cost is just
> a fraction of the total life time cost of a system.
>
> Any responsible developer has to take these fact in account,
> when they choice the platform for their database system.
>
> Also there does NOT exists "a right way" to do things.
> A good design is a relative thing, since one has to know
> what is said in the requirement specification of the system.
>
> For example in a real-time system I would not hesitate is some
> cases to trade clarity in favor of speed, but on the other hand,
> in some other cases I might very well trade speed against clarity.
>
> Any one who claims that this or that system is "the best" without
> being able to telling from with point of view it is "the best",
> does not know what they are talking about or are trying to humbug
> you.
>
> --
> 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]




RE: [PHP-WIN] mysql

2001-04-19 Thread Mr. Adam ALLEN.

Have you changed the options in config.lib.php3 for your server

$cfgServers[1]['host'] = 'localhost';   // MySQL hostname
$cfgServers[1]['user'] = 'asduk';// MySQL user (only needed
with basic auth)
$cfgServers[1]['password'] = 'a different password';    // MySQL
password (only needed


Yours
Mr. Adam ALLEN.
[EMAIL PROTECTED]
http://www.dynamicinteraction.co.uk



> -Original Message-
> From: Manesh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 9:13 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] mysql
>
>
> when i open phpMyAdmini get this error
>
>
>
>
>
> Warning: MySQL Connection Failed: Can't connect to MySQL server on
> 'localhost' (10061) in lib.inc.php3 on line 255
> Error
> MySQL said:
> Back
>
>
> i installed the right version i think, can someone gimme a link to a file
> that i can use with a win2k PC? this is for mysql
>
> thx!
>
>
> --
> 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]




FW: [PHP-WIN] mysql

2001-04-19 Thread Mr. Adam ALLEN.

in the phpMyAdmin directory, it's called config.inc.php3 (not
config.lib.php3), I was thinking through more than one thing when I wrote
back to you).

Yours
Mr. Adam ALLEN.
[EMAIL PROTECTED]
http://www.dynamicinteraction.co.uk


> -Original Message-
> From: Manesh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 9:27 PM
> To: Mr. Adam ALLEN.
> Subject: RE: [PHP-WIN] mysql
>
>
> where is that?
>
> -Original Message-
> From: Mr. Adam ALLEN. [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 4:21 PM
> To: Manesh; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] mysql
>
>
> Have you changed the options in config.lib.php3 for your server
>
> $cfgServers[1]['host'] = 'localhost';   // MySQL hostname
> $cfgServers[1]['user'] = 'asduk';// MySQL user
> (only needed
> with basic auth)
> $cfgServers[1]['password'] = 'a different password';
>   // MySQL
> password (only needed
>
>
> Yours
> Mr. Adam ALLEN.
> [EMAIL PROTECTED]
> http://www.dynamicinteraction.co.uk
>
>
>
> > -Original Message-
> > From: Manesh [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 19, 2001 9:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] mysql
> >
> >
> > when i open phpMyAdmini get this error
> >
> >
> >
> >
> >
> > Warning: MySQL Connection Failed: Can't connect to MySQL server on
> > 'localhost' (10061) in lib.inc.php3 on line 255
> > Error
> > MySQL said:
> > Back
> >
> >
> > i installed the right version i think, can someone gimme a link
> to a file
> > that i can use with a win2k PC? this is for mysql
> >
> > thx!
> >
> >
> > --
> > 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]