[PHP-WIN] Freetype2 Binary

2002-03-11 Thread andy

Hi there,

I am searching for the freetype2 binary. Can anybody help on that.

Thanx andy



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




[PHP-WIN] Com Help

2001-09-21 Thread Andy

Hey,

When i try to use COM, my machine just doesn't do anything, for example, you
click a link to a php page that has the COM line in it, the browser stays
still for a while, then just times out. Does anyone know what could be
causin this? Please let me know asap please :) email is preffered.

[EMAIL PROTECTED]

thanks

Andy Doyle



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

2002-11-30 Thread Andy
Can someone please help, i think i am going mad.

I have just installed Apache, php and Mysql, it all seems to be fine, the

Apache server says it is ok, i think i have set the config file correctly,

and Mysql look to be correct, but when i typed the code (My first code)



and save it test.php when i look at it in explorer all i see the preceding

html code. What have i done wrong?

I am using windows 2000 pro.

I really want to get into this but i have fallen over the first hurdle, and
i cannot seem to get up.




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




[PHP-WIN] Warning messages

2002-12-16 Thread Andy
what do I change in my php.ini file to stop these annoying warning notices?
I have looked at the ini file but I am unsure what to change.  I still want
to see error messages but the warning notices are doing my head in.

An example would be:
Warning: fwrite(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 18

Thank you



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




Re: [PHP-WIN] Warning messages

2002-12-16 Thread Andy
Here is the code and warning messages

\nForm: Andrew Davey");

mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank you,
$name, for signing my Guestbook.", 72, "\n", 1), "Return-path:
<[EMAIL PROTECTED]>\nForm: Andrew Davey");
  echo "Thank you, " . $name . ", for signing my
Guestbook.";
  }
?>

Which give me the following errors:

Warning: fopen("guestbook.txt", "w") - Permission denied in
/home/.sites/112/site154/web/guestbook_post.php on line 15

Warning: flock(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 16

Warning: fwrite(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 18

Warning: flock(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 20

Warning: fclose(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 21

The code i used was copied directly from a book, as i am a complete
beginner, so answers need to be idiot proof
:o)

Andy


"Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
005501c2a532$17a348c0$6d00a8c0@q">news:005501c2a532$17a348c0$6d00a8c0@q...
> That means you have an error in your use of fwrite its not a proper
> 'file pointer'. Its not a setting you can change in your php.ini, as it is
> cause by a problem with your script. In fact, your script should not work
> because of the error.
>
> If you paste the code and what your script does, I may be able to help
>
> Stephen
>
> - Original Message -
> From: "Andy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 16, 2002 6:19 PM
> Subject: [PHP-WIN] Warning messages
>
>
> > what do I change in my php.ini file to stop these annoying warning
> notices?
> > I have looked at the ini file but I am unsure what to change.  I still
> want
> > to see error messages but the warning notices are doing my head in.
> >
> > An example would be:
> > Warning: fwrite(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 18
> >
> > Thank you
> >
> >
> >
> > --
> > 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




Re: [PHP-WIN] Warning messages

2002-12-16 Thread Andy
Thank you Stephen, tried it on localhost, although i would not get the
email, the only warning messages i got were tell me just that.

"Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
006a01c2a535$9910f3f0$6d00a8c0@q">news:006a01c2a535$9910f3f0$6d00a8c0@q...
> Here is your problem:
>
> Warning: fopen("guestbook.txt", "w") - Permission denied in
> /home/.sites/112/site154/web/guestbook_post.php on line 15
>
> Whats happening is for some reason your file, guestbook.txt, is not
writable
> by php. Two things could be causing this. Firstly, you may need to specify
> the full path to the file, e.g. c:/dir/dir/guestbook.txt. Note the
foreward
> slashes instead of backwards ones.
>
> The second problem could be your webserver/php isn't set up to allow you
to
> edit the file guestbook.txt. There are methods of restricting access to a
> file, but I am not familiar with them since I use my own windows host (no
> restrictions). Good luck
>
> Stephen
>
> P.S. Try calling phpinfo(32) and look for the _SERVER["COMSPEC"] or
> something similar. That should tell you the path to your file where the
.php
> file lies, then its just a matter of figuring out where the guestbook is!
>
> - Original Message -
> From: "Andy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 16, 2002 6:54 PM
> Subject: Re: [PHP-WIN] Warning messages
>
>
> > Here is the code and warning messages
> >
> >  > if (($email=="") || ($name=="") || ($phone==""))
> >  {
> >   echo "Please fill out the guestbook completely before submitting.";
> >  }
> >  else
> >  {
> >   $fp = fopen("guestbook.txt", "w"); //w will append or create a new
file
> >   flock ($fp, LOCK_EX); //lock the file
> >
> >   fwrite($fp, "$name signed the guestbook. \nHis e-mail address was
$email
> > \nHis phone number was $phone\n\n");
> >
> >  flock ($fp, LOCK_UN); //unlock the file
> >   fclose($fp);
> >
> > mail("[EMAIL PROTECTED]", "Guestbook entry added",
wordwrap("$name
> > signed the guestbook. \nHis e-mail address was $email \nHis phone number
> was
> > $phone", 72, "\n", 1), "Return-Path:
> > <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> >
> > mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank
you,
> > $name, for signing my Guestbook.", 72, "\n", 1), "Return-path:
> > <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> >   echo "Thank you, " . $name . ", for signing
my
> > Guestbook.";
> >   }
> > ?>
> >
> > Which give me the following errors:
> >
> > Warning: fopen("guestbook.txt", "w") - Permission denied in
> > /home/.sites/112/site154/web/guestbook_post.php on line 15
> >
> > Warning: flock(): supplied argument is not a valid File-Handle resource
in
> > /home/.sites/112/site154/web/guestbook_post.php on line 16
> >
> > Warning: fwrite(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 18
> >
> > Warning: flock(): supplied argument is not a valid File-Handle resource
in
> > /home/.sites/112/site154/web/guestbook_post.php on line 20
> >
> > Warning: fclose(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 21
> >
> > The code i used was copied directly from a book, as i am a complete
> > beginner, so answers need to be idiot proof
> > :o)
> >
> > Andy
> >
> >
> > "Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
> > 005501c2a532$17a348c0$6d00a8c0@q">news:005501c2a532$17a348c0$6d00a8c0@q...
> > > That means you have an error in your use of fwrite its not a
proper
> > > 'file pointer'. Its not a setting you can change in your php.ini, as
it
> is
> > > cause by a problem with your script. In fact, your script should not
> work
> > > because of the error.
> > >
> > > If you paste the code and what your script does, I may be able to help
> > >
> > > Stephen
> > >
> > > - Original Message -
> > > From: "Andy" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, December 16, 2002 6:19 PM
> > > Subject: [PHP-WIN] Warning messages
> > >
> > >
> > > > what do I change in my php.ini file to stop these annoying warning
> > > notices?
> > > > I have looked at the ini file but I am unsure what to change.  I
still
> > > want
> > > > to see error messages but the warning notices are doing my head in.
> > > >
> > > > An example would be:
> > > > Warning: fwrite(): supplied argument is not a valid File-Handle
> resource
> > > in
> > > > /home/.sites/112/site154/web/guestbook_post.php on line 18
> > > >
> > > > Thank you
> > > >
> > > >
> > > >
> > > > --
> > > > 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 Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Two questions

2001-01-18 Thread andy

I'm a newcomer to PHP, and I'm trying to use it to simplify the process of 
creating an HTML help file.
I have two questions: the first is, is there any way to change the newline 
string that the "\n" escape produces? At the moment it is outputting 0x0A, 
while I would prefer it if it would produce 0x0D 0x0A.

My second question is related to the following .php source:



Normal HTML stuff goes here



The problem is that this produces an error message from the second include():
  Fatal error: Cannot redeclare myfunc() in myinc.php on line 2
However, if I remove this second include statement, then the second php script 
doesn't appear to call myfunc(). Can anyone help?

Thanks in advance,

Andrew


---
This message was sent mekong webmail.
https://mekong.southcom.com.au/mailman/



-- 
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] Re: R: [PHP-WIN] Two questions

2001-01-18 Thread andy


> The second question sound strange:
> try:
>  include("myinc.php") /* think double quotes are needed */
> ?>
> 
>  myfunc(); /* myfunc defined in myinc.php */
> ?>
> 
> Normal HTML stuff goes here
>  myfunc();
> ?>
 
Silly me: First I forgot those quotes when I was typing the example, and then I 
realised what was going wrong -- nothing with PHP, just my own density: the 
function myfunc() output the  and  tags, which caused the browser 
to stop rendering.

Anyway, thanks for your help.



---
This message was sent mekong webmail.
https://mekong.southcom.com.au/mailman/



-- 
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] Blank Window - Apache and BadBlue. PHP 4.1.1 WinME

2002-03-14 Thread Andy Seabrook

Can anybody help! trying to setup SAPI module on apache 1.3, also tried cgi
on bad blue, niether seem to be passing php, OS is ME.



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




Re: [PHP-WIN] Blank Window - Apache and BadBlue. PHP 4.1.1 WinME

2002-03-15 Thread Andy Seabrook

Hi Alain
apache_1.3.23-win32-x86-no_src.exe: followed default prompts.
php-4.1.1-Win32.zip: PHP installed manually as per the sapi module
instructions. Including editing the apache configuration file.
badblue98.exe: carried out the standard install of the Personal edition,
adding the services section as per instructions.
I have only tried Badblue to be sure that the PHP install was working
correctly, it is really the apache server that I am looking to run.
Andy
"Alain" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Which install procedure did you follow for each product? (Did you use an
> install program for PHP? If yes which one?)
> A+
> Alain
>
> On Wed, Mar 13, 2002 at 10:20:15AM -, Andy Seabrook wrote:
> > Can anybody help! trying to setup SAPI module on apache 1.3, also tried
cgi
> > on bad blue, niether seem to be passing php, OS is ME.
> >
> >
> >
> > --
> > 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




Re: [PHP-WIN] Blank Window - Apache and BadBlue. PHP 4.1.1 WinME

2002-03-16 Thread Andy Seabrook

Hi Alain,
No previous install of PHP, so neither file previously in the system.
Perhaps you are misunderstanding the problem PHP appears to run OK, the
phpinfo() test works as expected in the way that you prescribe. The problem
is getting a server at localhost (either apache or badblue) to pass the
script via the PHP interpreter.
It doesn't appear to be doing so and as a consequence if the test page is
displayed in a browser http://localhost/phptest.php
etc the result is a blank page in the browser. This is the same with either
of the two servers running.

Best regards,
Andy Seabrook
and Sophie Lambropoulou

P.S. If you have taken the mobile number from here on previous occasion it
was wrong please note the amendment.

Living in Athens, Greece.
Tel: +301 06512775
Mobile: +309 748537179
Email: [EMAIL PROTECTED]

Redundant email address? find Andrew Seabrook on http://people.yahoo.com/

-Original Message-
From: alain samoun [mailto:[EMAIL PROTECTED]]
Sent: 15 March 2002 17:15
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Blank Window - Apache and BadBlue. PHP 4.1.1
WinME


If you have installed a previous version of PHP, look for stale versions of
php.ini or php.exe in your system, they are the usual suspects. Otherwise,
run a simple test with phpinfo()that you place on the php.exe's directory,
from the command line:
Open an MSDOS window, cd to your php.exe dir (c:\php or whatever)
enter: php yourtest.php
And see what happens.
A+
Alain


-Original Message-----
From: Andy Seabrook [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 5:26 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Blank Window - Apache and BadBlue. PHP 4.1.1
WinME


Hi Alain
apache_1.3.23-win32-x86-no_src.exe: followed default prompts.
php-4.1.1-Win32.zip: PHP installed manually as per the sapi module
instructions. Including editing the apache configuration file.
badblue98.exe: carried out the standard install of the Personal edition,
adding the services section as per instructions.
I have only tried Badblue to be sure that the PHP install was working
correctly, it is really the apache server that I am looking to run.
Andy

"Alain" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Which install procedure did you follow for each product? (Did you use an
> install program for PHP? If yes which one?)
> A+
> Alain
>
> On Wed, Mar 13, 2002 at 10:20:15AM -, Andy Seabrook wrote:
> > Can anybody help! trying to setup SAPI module on apache 1.3, also tried
cgi
> > on bad blue, niether seem to be passing php, OS is ME.
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php



"Andy Seabrook" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Alain
> apache_1.3.23-win32-x86-no_src.exe: followed default prompts.
> php-4.1.1-Win32.zip: PHP installed manually as per the sapi module
> instructions. Including editing the apache configuration file.
> badblue98.exe: carried out the standard install of the Personal edition,
> adding the services section as per instructions.
> I have only tried Badblue to be sure that the PHP install was working
> correctly, it is really the apache server that I am looking to run.
> Andy
> "Alain" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Which install procedure did you follow for each product? (Did you use an
> > install program for PHP? If yes which one?)
> > A+
> > Alain
> >
> > On Wed, Mar 13, 2002 at 10:20:15AM -, Andy Seabrook wrote:
> > > Can anybody help! trying to setup SAPI module on apache 1.3, also
tried
> cgi
> > > on bad blue, niether seem to be passing php, OS is ME.
> > >
> > >
> > >
> > > --
> > > 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] Re: Blank Window - Apache and BadBlue. PHP 4.1.1 WinME

2002-03-16 Thread Andy Seabrook

By the way I should mention that view source on the browser, makes all php
tags disappear, unyet in fact they are still present in the script.


"Andy Seabrook" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can anybody help! trying to setup SAPI module on apache 1.3, also tried
cgi
> on bad blue, niether seem to be passing php, OS is ME.
>
>



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




[PHP-WIN] ZZip an .TAR

2002-03-28 Thread Andy Muth

I'm just curious if anyone has gotten ZZIPlib libraries to work under
Windows, or Linux for that matter? I can't seem to get either of them to
work.

On another note, does anyone know of a way to read a .TAR file using PHP?

Thanks
    Andy



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




[PHP-WIN] problem with mssql_fetch_array

2002-04-02 Thread Andy Muth

I'm having some problem upgrading my PHP from 4.0.6 to 4.1.2, when I try
executing the function mssql_fetch_array, the script stops responding.  I've
tested the script and isolated it to this one function, it connects to the
database just fine, its only when I try to get retrieve a record set is when
it stops responding.

I'm using mssql 7.0, with the latest service patches on Windows 2000.

Any help would be greatly appreciated!

Andy




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




[PHP-WIN] Re: appear in Text file

2001-08-27 Thread Andy Ladouceur

Hi Jack,
The 'black box' you see is a newline, which can be removed by doing this:
$string=str_replace("\n","",$string);
$string=str_replace("\r","",$string);

That will replace \n (The newlines) and \r (The returns) with nothing,
getting rid of your problem. Hope this helps,
-Andy
Jack <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dear all
> I'm writing a script which will greb the data from a user input form into
a
> text file (txt file), but the problem is that when the data had passed to
> the txt file, there will be some thing like the  and black square
appear
> inside the file. This is affecting to display the data from that txt file
to
> the text box in (input box).
> Is there anyway that i can do to avoid grebing the  from txt file to
my
> input box's value? or anyway that i can delete the  when the data is
> greb from input box to txt file??
>
> Thanks a lot
>
> Jack
> [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] Why parse error in mysql command?

2002-02-02 Thread Andy Ziem

Hi,

I am trying to retreive stored data, and I can't figure out why I receive
this PHP error--even after reading PHP documentation and looking at
examples--

"Parse error: parse error in c:\vol\php\e.php on line 10"

The following is my simplified code:





--
Andy Ziem
Is Jesus Your Answer?
http://www.ChristianAnswers.net/gospel






Get a FREE E-Mail account at http://www.ACMEmail.net

-- 
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] Why parse error in mysql command?

2002-02-02 Thread Andy Ziem

The error is on the line
 "$result = mysql_query("SELECT * FROM names WHERE id=$id");"

I have checked many things and can't figure out the error.  MySQL is running.  
The database exists.  The table names is valid. $id is defined as 1.  


Thanks,
Andy


Quoting Mike Flynn <[EMAIL PROTECTED]>:

> If the error is on line 10, please show us the entire code so we can see
> 
> line 10. :)
> 
> At 09:26 AM 2/2/2002 -0800, you wrote:
> >Hi,
> >
> >I am trying to retreive stored data, and I can't figure out why I
> receive
> >this PHP error--even after reading PHP documentation and looking at
> >examples--
> >
> > "Parse error: parse error in c:\vol\php\e.php on line 10"
> >
> >The following is my simplified code:
> >
> > >
> >mysql_connect("localhost", "root");
> >
> >mysql_select_db("volunteers");
> >
> >$result = mysql_query("SELECT * FROM names WHERE id=$id");
> >
> >&line = mysql_fetch_row(&result);
> >
> >$first = $line["first"];
> >$middle = $line["middle"];
> >$last = $line["last"];
> >
> >$street = $line["street"];
> >$city = $line["city"];
> >$zip = $line["zip"];
> >
> >?>
> >
> >
> >
> >--
> >Andy Ziem
> >Is Jesus Your Answer?
> >http://www.ChristianAnswers.net/gospel
> >
> >
> >
> >
> >
> >
> >Get a FREE E-Mail account at http://www.ACMEmail.net
> >
> >--
> >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]
> 
>-=- Mike Flynn - Burlington, VT -=-
> [EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
>   ...maintaining lawns, watching televised sports, birthing
>   children, listening to Top 40 music, and collecting
>   stuffed animals...
> 
> 
> 




Andy Ziem
http://www.springsrescuemission.org


Get a FREE E-Mail account at http://www.ACMEmail.net

-- 
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] Re: [PHP] Run a script for 20minutes

2001-02-12 Thread Andy Woolley

Something doesn't seem right here.

I've executed scripts that have taken 4 hours to complete in the past and
the only thing I had to set was:

set_time_limit(0);

Are you echoing anything to the screen, if not maybe you should after every
loop increment, you may also need to use the flush() command.

Hope this helps.

Andy Woolley
www.databasewatch.com

- Original Message -
From: "Martin E. Koss" <[EMAIL PROTECTED]>
To: "Dominick Vansevenant" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 12:08 PM
Subject: RE: [PHP] Run a script for 20minutes


> I'm using a mySQL database but to be honest I think the only thing that
was
> timing out was the browser, since hacking the registry to eliminate that
> timeout the only thing I can do is wonder why it only finishes half what
it
> is supposed to do.
>
> I'll try it on a faster machine later - it's on a AMD K6-2/366 with 128mb
> ram. I have a Athlon 900 that I could run it on but that's not a machine I
> want to tinker too much with - will go for a trusty old 450 first.
>
> Is it a surprise that it might take up to 20 or 30 minutes to build over
> 20,000 simple HTML files?
>
> Martin.
>
> -Original Message-
> From: Dominick Vansevenant [mailto:[EMAIL PROTECTED]]
> Sent: 12 February 2001 11:54
> To: Martin E. Koss; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] Run a script for 20minutes
>
>
> I think there are timeouts on php as well:
>
> This is taken from the php.ini file.
>
> max_execution_time = 30 ; Maximum execution time of each script, in
> seconds
>
> I hope this helps you, you can find php.ini in your windows directory.
>
> If you are using a database, also check that for timeouts.
>
> D.
>
> -Original Message-
> From: Martin E. Koss [mailto:[EMAIL PROTECTED]]
> Sent: maandag 12 februari 2001 12:51
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Run a script for 20minutes
>
>
> Hi,
> I have PHP3 and MySQL on Win98 and am trying to run a script that loops
> through a file making process and it needs about 20 - 30 minutes to run.
It
> generates static HTML files based on content in a database. I've increased
> Internet Explorer's timeout to allow for this but for some reason only
about
> half the processing is done before everything seems to just stop.
>
> Does anyone know of a very basic way of executing a PHP script on a Win98
> machine without the need for a browser? Or, another way of running this
> script that will take some time and create some 22,000 files through the
> process.
>
> Thanks,
>
> Martin.
>
>
> --
> PHP General 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 General 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 General 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] windows mail problem

2004-05-24 Thread Andy Tawse
Hi there,
I've been having difficulty sending emails from Windows machines. I've 
seen this problem in a few places before but I can't seem to fix it on 
my machine. When I try to use mail() I get :

mail(): "sendmail_from" not set in php.ini or custom "From:" header missing
The code I'm using is :
$headers = "From: $email\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
$headers .= "X-Mailer: My Application";
$ok = @mail($friendMail, $CHALLENGE_MAIL_SUBJECT, $mailText, $headers);
This has worked on my linux server before. It is saying I haven't set a 
From header but as you can see I have and my php.ini looks like this :

[mail function]
; For Win32 only.
SMTP = localhost
sendmail_from = [EMAIL PROTECTED]
The mail server is running and should be accepting connections. I've 
tried the IIS SMTP server and also Argosoft, set both of them to accept 
connections but it doesn't seem to get as far as the SMTP server.

I've tried it on my local machine (XP Pro, IIS 5, PHP 4.3.6) and on the 
production server (Win 2003, IIS 6, PHP 4.3.6). I've restarted and done 
all the things I've found suggested for this problem but no joy.

Can anyone help?
Thanks for your time,
Andy Tawse.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] windows mail problem

2004-05-24 Thread Andy Tawse
That works great, thanks a lot.
David Felton wrote:
The Win32 implementation of mail() is notoriously flaky. the approach I take
is to write the raw email directly out to the pickup folder in mailroot. A
function along these lines should help you out:
function sendMail($mailto, $mailfrom, $subject, $text, $format)
{
$maildrop="c:\\inetpub\\mailroot\\pickup\\";//change this to the
location of your mailroot
$filename=;
$fp=fopen($maildrop.$filename, "w");
//different headers for different mail types
if($format=="plain")
fwrite($fp,"Content-Type: text/plain\r\nFrom:
$mailfrom\r\n");
else if($format=="html")
fwrite($fp,"Content-Type: text/html;
charset=iso-8859-1\r\nFrom: $mailfrom\r\n");
//write the email out to the file
fwrite($fp,"To: <$mailto>\r\n");
fwrite($fp,"Subject: $subject\r\n");
fwrite($fp,"\r\n");
fwrite($fp,"$text\r\n\r\n");
fclose($fp);
}
hope that helps.
-Original Message-
From: Andy Tawse [mailto:[EMAIL PROTECTED]
Sent: 24 May 2004 10:14
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] windows mail problem
Hi there,
I've been having difficulty sending emails from Windows machines. I've 
seen this problem in a few places before but I can't seem to fix it on 
my machine. When I try to use mail() I get :

mail(): "sendmail_from" not set in php.ini or custom "From:" header missing
The code I'm using is :
$headers = "From: $email\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
$headers .= "X-Mailer: My Application";
$ok = @mail($friendMail, $CHALLENGE_MAIL_SUBJECT, $mailText,
$headers);
This has worked on my linux server before. It is saying I haven't set a 
From header but as you can see I have and my php.ini looks like this :

[mail function]
; For Win32 only.
SMTP = localhost
sendmail_from = [EMAIL PROTECTED]
The mail server is running and should be accepting connections. I've 
tried the IIS SMTP server and also Argosoft, set both of them to accept 
connections but it doesn't seem to get as far as the SMTP server.

I've tried it on my local machine (XP Pro, IIS 5, PHP 4.3.6) and on the 
production server (Win 2003, IIS 6, PHP 4.3.6). I've restarted and done 
all the things I've found suggested for this problem but no joy.

Can anyone help?
Thanks for your time,
Andy Tawse.
 


--
Andy Tawse | Head Programmer
New Media Collective | www.newmediacollective.com
[EMAIL PROTECTED]
0870 4202313 | 07958 578399
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: PHP and FLASH Remoting - can it be done?

2004-05-24 Thread Andy Tawse
Our company has done quite a few projects with Flash and PHP and they 
work great together. There's a number of ways to make them communicate. 
Remoting (though I've haven't done much of this myself) is when you use 
Flash to call objects in PHP directly. The other ways to do it are by 
passing XML or name-value pairs between the Flash and PHP using (I 
think) LoadVars and XML objects in Flash. You request a URL (a PHP 
script) and it returns either XML or name-value pairs to Flash.

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