Re: [PHP-WIN] Outputting a string from mysql database

2002-04-21 Thread jeff

J B's Supermarket is correct and it was inserted into tthe database without
using a form and php.

"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are you sure that that last field truly contains "J B's Supermarket" in
the
> database?  Are you sure the error wasn't produced while INSERTING the data
> into the database, thus resulting in only "J B" being put into the
> database?  You should view your database data directly, like by using a
> webmin utility.  If you do $row_info = mysql_fetch_row($result), and then
> show the row with the company name, a single quote (') shouldn't mess it
> up.  But single quotes can mess up a query.  Because if you think about
> your query, if you do it like this:
> INSERT INTO table (Name) VALUES ('J B's Supermarket')
> you can see how the single quote in the Name is messing up the query for
> MySQL -- it's making MySQL think it's the end of the value for Name.  You
> need to escape single quotes when inserting them into a MySQL database.
If
> you do it via a form and have magicquotes turned on in your PHP.INI, then
> it's done automatically.  Otherwise, you have to do it yourself.
>
> At 05:15 AM 4/16/2002 -0400, q wrote:
> >I have a field in a mysql table called table which is called names.
> >Examples of the information in this column :
> >
> >
> >Name
> >
> >Lottery Company
> >Mark MiniMark
> >J B's Supermarket
> >
> >
> >I connect to the datbase successful and I use the following php line to
> >get the information from the row: $row_info=mysql_fetch_row($result)
> >
> >Howevere when I try to output J B's Supermarket to the web page all I get
> >is J B. How can I get the entire display on the screen including the ' in
> >the name?
> >quincy
>
>
> Mike Flynn - Burlington, VT
> http://www.mikeflynn.net/ - [EMAIL PROTECTED]
> home=>work=>home=>store=>home [repeat daily]
>



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




[PHP-WIN] Unable to load php_apc.dll on IIS6

2010-02-22 Thread Jeff
I am unable to get APC (php_apc.dll) to load on my Windows 2003 IIS6 webserver 
running PHP Version 5.2.5, PHP running in ISAPI mode (not cgi mode).

Please advise,

Thank you


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



[PHP-WIN] Re: Unable to load php_apc.dll on IIS6

2010-02-22 Thread Jeff
Jeff  yahoo.com> writes:

> 
> I am unable to get APC (php_apc.dll) to load on my Windows 2003 IIS6 
webserver 
> running PHP Version 5.2.5, PHP running in ISAPI mode (not cgi mode).
> 
> Please advise,
> 
> Thank you
> 

Please note that I tried each of the dlls located here:

http://downloads.php.net/pierre/

And of course, I included this in the 'Windows Extension' section:

extension=php_apc.dll

and at the bottom tried different setting such as:

[APC]
apc.cache_by_default = On
apc.enable_cli = Off
apc.enabled = On
apc.file_update_protection = 2
apc.filters = 
apc.gc_ttl = 3600
apc.include_once_override = Off
apc.max_file_size = 1M
apc.num_files_hint = 1000
apc.optimization = Off
apc.report_autofilter = Off
apc.shm_segments = 1
apc.shm_size = 30
apc.slam_defense = 0
apc.stat = On
apc.ttl = 0
apc.user_entries_hint = 100
apc.user_ttl = 0
apc.write_lock = On

The problem though is that the dll does not load.


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



[PHP-WIN] Passing an array into a COM function

2002-03-29 Thread Jeff Bendixsen

Hi

I have an example in ASP calling a COM objectr that looks like this:

...
redim vArray(1,1)
vArray(0,0)="Name1"
vArray(1,0)="Value1"
vArray(0,1)="Name2"
vArray(1,1)="Value2"
res=obj.SomeFunction(vArray,arrRes,CInt(100))
...

So far the authors will only tell me that they use Variant arrays. 

ofcousre it all starts off like:
$obj = new com("SynWeb.Application") or die("Error");
 if (is_object($obj)) {
  $res = $obj->ConnectToRep($repository, $server);
  ...

Thats all fine and works. The problem comes with invoking this
function that takes 2 arrays, Variant array to be more precise.
I tried this:

$SearchCriteria[0][0] = "Name1";
$SearchCriteria[0][1] = "Value1";
$SearchCriteria[1][0] = "Name2";
$SearchCriteria[1][1] = "Value2";
$Result = array();
$res = $obj->SomeFunction($SearchCriteria, $Result, 10);

or:

$SearchCriteria[0][0] = "Name1";
$SearchCriteria[1][0] = "Value1";
$SearchCriteria[0][1] = "Name2";
$SearchCriteria[1][1] = "Value2";
$Result = array();
$res = $obj->SomeFunction($SearchCriteria, $Result, 10);

or:

$SearchCriteria[0] = array("Name1" => "Value1");
$Result = array();
$res = $obj->SomeFunction($SearchCriteria, $Result, 10);

I get:

Warning:  Invoke() failed: Exception occurred.
 Source: SynWeb Description: Subscript out of range in
c:\apache\htdocs\myscript.php on line 22

plus about 50 other things I coulkd think of. Does anyone know if this
is possible with PHP and how?

BTW the ASP code does work I have had it running.

Jeff

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




[PHP-WIN] Re: Passing an array into a COM function

2002-04-01 Thread Jeff Bendixsen

So let me answer my question.. 

You idiot, RTFM!!!

There is documentation on the use of Variants in the COM section. Lots
of good support even for passing ByRef.

An example of using a COM array is like this:

  $PSearchCriteria[0] = "THIS";
  $PSearchCriteria[1] = "THAT";
  $SearchCriteria = new Variant($PSearchCriteria, VT_ARRAY);

Here is a result array passed by reference:

  $PResult = array();
  $Result = new Variant($PResult, VT_ARRAY | VT_BYREF);

There is no support for multi dimensioanl arrays

Jeff

On Thu, 28 Mar 2002 13:56:13 GMT, [EMAIL PROTECTED] (Jeff Bendixsen)
wrote:

>Hi
>
>I have an example in ASP calling a COM objectr that looks like this:
>
>...
>redim vArray(1,1)
>vArray(0,0)="Name1"
>vArray(1,0)="Value1"
>vArray(0,1)="Name2"
>vArray(1,1)="Value2"
>res=obj.SomeFunction(vArray,arrRes,CInt(100))
>...
>
>So far the authors will only tell me that they use Variant arrays. 
>
>ofcousre it all starts off like:
>$obj = new com("SynWeb.Application") or die("Error");
> if (is_object($obj)) {
>  $res = $obj->ConnectToRep($repository, $server);
>  ...
>
>Thats all fine and works. The problem comes with invoking this
>function that takes 2 arrays, Variant array to be more precise.
>I tried this:
>
>$SearchCriteria[0][0] = "Name1";
>$SearchCriteria[0][1] = "Value1";
>$SearchCriteria[1][0] = "Name2";
>$SearchCriteria[1][1] = "Value2";
>$Result = array();
>$res = $obj->SomeFunction($SearchCriteria, $Result, 10);
>
>or:
>
>$SearchCriteria[0][0] = "Name1";
>$SearchCriteria[1][0] = "Value1";
>$SearchCriteria[0][1] = "Name2";
>$SearchCriteria[1][1] = "Value2";
>$Result = array();
>$res = $obj->SomeFunction($SearchCriteria, $Result, 10);
>
>or:
>
>$SearchCriteria[0] = array("Name1" => "Value1");
>$Result = array();
>$res = $obj->SomeFunction($SearchCriteria, $Result, 10);
>
>I get:
>
>Warning:  Invoke() failed: Exception occurred.
> Source: SynWeb Description: Subscript out of range in
>c:\apache\htdocs\myscript.php on line 22
>
>plus about 50 other things I coulkd think of. Does anyone know if this
>is possible with PHP and how?
>
>BTW the ASP code does work I have had it running.
>
>Jeff


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




[PHP-WIN] problems with imap_mail()

2002-04-08 Thread Jeff Vandenberg

I'm having problems trying to get the imap_mail() function working. I have
the imap dll extention loaded up, and all of the other imap functions work
just fine.. open, close, check, popen, etc.  But when i try to use
imap_mail, one of the more important functions, it spits out at me.
"Warning: imap_mail() is not supported in this PHP build in c:\program
files\apache group\apache\htdocs\test.php on line 20
"

I'm running php 4.1.1 as a module for apache 1.3.22 on a win2k pro box.

I've tried to use the regular mail(), but that's been giving me problems as
well, but of a different sort, which I can work around, but would like to
get the imap functions working so that I can make a couple of other scripts.

Jeff


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




RE: [PHP-WIN] PHP and ZIP

2002-04-15 Thread Jeff Waldock

What's wrong with using the Winzip command line utility then?
(http://www.winzip.com/wzcline.htm)

Jeff

|-Original Message-
|From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
|Sent: 12 April 2002 17:33
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] PHP and ZIP
|
|I thought I had seen some functions for creating zip files with PHP. I
|can't
|find what I'm looking for to specifically create .zip files that are
|decompressable by, say, winZip.
|
|Anyone have experience creating .zip files with PHP? If so, could you
point
|me to the name of the function for doing this?
|
|I found ZLib, but this doesn't seem to do what I want.
|
|Much appreciated and TIA!
|
|--
|Nicole Amashta
|Web Application Development
|ABOL Software, Inc.
|[EMAIL PROTECTED]
|
|
|
|
|
|--
|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] Cant get PHP to run on Win 98

2002-04-30 Thread Jeff Britts

I just started learning PHP and have looked to solve this issue, but haven't
got the correct answer yet.

I installed the latest version of PHP on my Win98 machine running PWS.

I can do php_info(), so it seems the installation is correct.

Now I'm trying a simple form get and all I receive is the following:

Notice: Undefined variable: C in d:\www\php\test.php on line 2
The url reads:http://localhost/php/test.php?C=foo

and test.php contains:


I found a suggestion to turn down the error reporting, which stopped the
error from being displayed, but didn't stop the error itself.

Any help would be appreciated





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




[PHP-WIN] Windows with Oracle

2002-05-03 Thread Jeff Lutes

Hello,

New to the list and have a PHP-sized headache.

I'm attempting to connect to an Oracle DB and, being totally new to PHP, was 
looking for a pre-built script.  What I have been finding doesn't seem to 
want to run.  I keep getting ORA-03121 - no interface driver connected.  
Below is the snippit I've been playing with:

";
echo "
  Customer Number
  PO
  Date
  Oder Number
  Wanted Delivery
  
  ";

// format results by row
while (Ora_Fetch($sql_statement)) {
echo "";
for ($i = 0; $i < $num_columns; $i++) {
$column_value = Ora_Result($sql_statement,$i);
echo "$column_value";
}
echo "";
}

echo "";

// free resources and close connection
Ora_FreeStatement($sql_statement);
Ora_Logoff($connection);

?>


TIA for any assistance,

Jeff Lutes
I.S. Support Specialist
MOUS Word/Excel Expert
Hopkins Mfg. Corp.


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: [PHP-WIN] php_gd.dll and Windows XP

2002-05-13 Thread Jeff Waldock

Alan
I think the dll has been re-named to php_gd2.dll.  Just rename the
extension in your php.ini to this and re-start the web server and you
should find it works.
Jeff

|-Original Message-
|From: Alan Hale [mailto:[EMAIL PROTECTED]] 
|Sent: 13 May 2002 18:24
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] php_gd.dll and Windows XP
|
|
|I've recently upgraded to XP Pro from Windows Me. I previously 
|had PHP running with the gd extension on Omnihttpd server, but 
|found with the same configuration gd would not work (Error 
|messages: First: " The procedure entry point add_assoc_long 
|could not be located in the dll php4ts.dll" Then: "Unable to 
|locate dll 'c:\httpd\php\php_gd.dll' - the specified procedure 
|could not be found".
|
|I've also tried installing with Easywindows on IIS - again, gd 
|does not work (though no helpful error messages).
|
|So I'm coming to the conclusion there some incompatability 
|between XP and the php_gd.dll. Does anyone have this working 
|on XP? Can anyone suggest how I can fix this? 
|
|Many thanks
|
|Alan Hale
|
|


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




[PHP-WIN] Spell check query

2002-05-16 Thread Jeff Waldock

I would like to be able to run a spell check on information being
entered by users on a web form handled by PHP.  I have seen that PHP
supports the Pspell library, and have downloaded this, but the problem
for me is that it appears that the Windows binary does not by default
provide Pspell support (although the version that came with RedHat 7.2
on my Linux machine does).
How can I add this support to the windows binary?  Is the only way to
compile a new PHP binary from source?  If so, this might prove beyond
me, since looking at the source for both PHP and Pspell, it's not at all
obvious how to do this.  Are there any other freeware/opensource
solutions to spell checking that anyone knows of?

Many thanks in advance for any help with this!

-
Jeff Waldock
Division of Mathematics
School of Science and Mathematics
Sheffield Hallam University
Howard Street
SHEFFIELD, S1 1WB, UK


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




[PHP-WIN] yet another upgrade question

2002-07-28 Thread Jeff Vandenberg

I'm upgrading to PHP4.2.2 on a box with apache 1.3.26 and have now been
bashing my head against the wall for a couple of hours, intermixed with a
couple periods of restfulness. I am experiencing a couple of problems

1) I.E. is hiccuping on some of the pages giving an HTTP 500 error on random
pages, not all of them just about approximately 25% of them. With little
rhyme or reason that I have been able to find so far.  Other browsers, like
Opera and NS have no issues with the pages.

2) Session variables are not being preserved. I put in a new php.ini file
after backing up previous and retailored the bare minimums of it to my site.
I reverted to previous php.ini file and it works, everything is the same in
the
section that deals with session variables

Thanks,

Jeff V





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




Re: [PHP-WIN] PDF Files...

2002-11-12 Thread Jeff Pearson
If you are running on Windows, ActivePDF (www.activepdf.com) works pretty
well and will do what you want it to do.

Jeff Pearson
Advanced Digital Technology



"Jim Hunter" <[EMAIL PROTECTED]> wrote in message
news:3D576EE5.10.00832@;WORKSTATION...
There are two major PDF libraries available. One from www.pdflib.com and one
from www.fastio.com. The PDFLib is supposed to be better supportive of PHP.
You can create PDF, but I'm not sure how much editing of one you are going
to be able to do, perhaps you can. And you can definitely use a form to get
data from to create a PDF. Check out Larry Ullmans book, Advanced PHP for
the WWW (ISBN: 0-201-77597-2). It has an entire chapter devoted to creating
and manipulating PDFs.

Jim Hunter
Diamond Computing

---Original Message---

From: Brian McGarvie
Date: Monday, August 12, 2002 01:08:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PDF Files...

Looking for some insight into which is the best PDF library to use,
commercial/non-commercial.

If possible I would like to be able to;

* edit a PDF file,
* use an existing PDF file to insert text into form fields,
* create and fill PDF documents with form fields.

Any advice as to which of the above is possible/not possible and if not any
ways to *mimic* anything.

TIA...



--
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] WebHosts with PHP4 and MySql

2001-04-25 Thread Jeff Pearson

I use www.eaccounts.net/jp52950052/ for all of my sites. Have not had a
problem yet...And they are very cheap. They charge you ONLY for the
actual resources that you use.

Jeff Pearson

> -Original Message-
> From: PHPWIN [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 8:23 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] WebHosts with PHP4 and MySql
>
>
> Hi there
>  Does anyone know any good sites with php4 and MySql? May or may
> not be free, but must be reliable and fast. Like always available
> and non-hanging kind of  performance.
>
> Free sites seem to be overloaded at the database end, very
> detrimental to the site function.
>
> Any good paid for webhosts?
>
> Cheers
>
> Xon
>


-- 
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] Win2000+Apache+PHP4+oracle help

2001-04-30 Thread Jeff Brewster

Hello,

I've spent all day going through archive after archive of messages trying to
find what all needs to be done to get PHP4 to remotely connect to OCI8.  I'm
downloading the client libraries from Oracle right now.  www.php4win.de is
down and I cannot get the distribution with OCI8 pre-compiled.  Is there any
alternative to getting this distribution?  I saw some old messages from
someone about writing a nice tutorial to get PHP4+Windows+Oracle working,
but I never found a link to it.  Does this exist?  Sorry I'm really
stressing today over many things but if anyone can provide any help I'd
appreciate it.

Thanks,
Jeff


-- 
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] php4win.de distribution

2001-05-01 Thread Jeff Brewster

Are there any sites that mirror this distribution of php4 for NT/2000,
with oracle pre-compiled?  I need this distribution for a large project
and the www.php4win.de site is down.  If anyone can provide a link to
download this I would greatly appreciate it.

Jeff


-- 
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] Anybody have an example of connecting MSSQL?

2001-08-13 Thread Jeff Howard

I have been extremely successful using ASP and MS-SQL for a long time, but
am making a transition to PHP.  I've tried connecting to the SQL Server
database, but have been unsuccessful.  The way a data source is called in
ASP is:

database.open "Provider=SQLOLEDB;User Id=user;Password=password;Initial
Catalog=mydatabase;Data Source=DATABASESERVER\SQLSERVER"

How can I translate this into PHP?



-- 
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 vs. PERL; Compatibility issues

2001-08-13 Thread Jeff Howard

Being new to PHP, I was wondering what the benefits of PHP are over PERL?
Seems to me it's easier than PERL, but what else is there?  Are there
benefits over ASP?  Is it compatible with Netscape AND IE?

Jeff



-- 
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] How do you step through a database?

2001-08-13 Thread Jeff Howard

I've used Visual Basic for years and have never had a problem with this
issue.  I can use the following code to do this:

do until (rs.eof)
...
rs.movenext
loop

Does anybody know how to step through a database in PHP?





-- 
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] Where to find php_mcrypt.dll?

2001-08-16 Thread Jeff Howard

Does anybody know where to find the php_mcrypt.dll file?  It doesn't come
with the download for php.



-- 
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] How do I get information from a URL?

2001-08-21 Thread Jeff Howard

I'm trying to get information from a URL in a way similar to utilizing GET
in ASP.  I know how to get information by submitting a form and going to a
new page, but how can I use the form to stay on the same page, yet be able
to retrieve the information?

For example:

I start on http://www.mypage.com.  I have a form to submit some information,
but want to remain on this page.  The result of the query looks like:

http://www.mypage.com?id=5

I want to be able to extract the 5



-- 
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] Closing Excel using DCOM and Release()

2001-09-09 Thread Jeff Waldock

I cannot seem to get PHP to recognise the Release function when tring to
close an instance of Excel or Word opened using DCOM.

This is the error message returned..

Warning: Unable to lookup release: The object invoked has disconnected from
its clients. in d:\wwwroot\studentdata\word.php on line 21

The code on line 21 is just
$word->Release();

The full code is::
Version}\n";

//bring it to front
$word->Visible = 1;

//open an empty document
$word->Documents->Add();

//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");

//closing word
$word->Quit();

//free the object
$word->Release();
$word = null;

?>

Where am I going wrong?

Jeff Waldock


-- 
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] Closing Excel using DCOM and Release()

2001-09-10 Thread Jeff Waldock

Thanks for the comment, but this code was lifted from an example on
PHPbuilder.com!  The central problem is that the instance of Excel (or Word)
does not quit following $word->Quit(); I expected that the ->Release()
function would release the memory associated with the object, but it clearly
doesn't function because, as you say, it is not part of the Excel or Word
object model.  In which case ... how do it destroy the object?
Jeff Waldock

-Original Message-
From: Alain Samoun [mailto:[EMAIL PROTECTED]]
Sent: 09 September 2001 21:55
To: Jeff Waldock
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Closing Excel using DCOM and Release()


As it said, your COM connection is closed, in addition 'release' is not a
member in the word object as well as in  the excel object.
Alain

On Sun, Sep 09, 2001 at 02:20:35PM +0100, Jeff Waldock wrote:
> I cannot seem to get PHP to recognise the Release function when tring to
> close an instance of Excel or Word opened using DCOM.
>
> This is the error message returned..
>
> Warning: Unable to lookup release: The object invoked has disconnected
from
> its clients. in d:\wwwroot\studentdata\word.php on line 21
>
> The code on line 21 is just
> $word->Release();
>
> The full code is::
> 
> // starting word
> $word = new COM("word.application") or die("Unable to instanciate Word");
> print "Loaded Word, version {$word->Version}\n";
>
> //bring it to front
> $word->Visible = 1;
>
> //open an empty document
> $word->Documents->Add();
>
> //do some weird stuff
> $word->Selection->TypeText("This is a test...");
> $word->Documents[1]->SaveAs("Useless test.doc");
>
> //closing word
> $word->Quit();
>
> //free the object
> $word->Release();
> $word = null;
>
> ?>
>
> Where am I going wrong?
>
> Jeff Waldock
>
>
> --
> 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]




RE: [PHP-WIN] Closing Excel using DCOM and Release()

2001-09-10 Thread Jeff Waldock

Ok thanks!  That works fine for Word, but a similar techniques fails for
Excel.
I want to pull data from a spreadsheet - and have been trying to test out
the technique using something like the code below.  Thiw works fine, insofar
that the data are correctly displayed on the browser, but Excel is still
running afterwards.  No error is give, but I need to be able to destroy the
Excel object, or I will be quickly running out of resources!

The code is ...

Processing Form
This is a test";

$xlApp = new COM("Excel.Application") or Die ("Did not connect");
$workbook = "d:\wwwroot\studentdata\xl1.xls";
$wkb = $xlApp->Workbooks->Open($workbook) or Die ("Did not open");
$sheets =  $wkb->Worksheets("Sheet1");
$cell = $sheets->Cells(1,1);
print "Cell Value = {$cell->value} ";

$xlApp->ActiveWorkbook->Close("False");
$xlApp->quit();
$xlApp = null;

echo "";

?>

-Original Message-
From: Alain Samoun [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 19:04
To: Jeff Waldock
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Closing Excel using DCOM and Release()


To close Word, you should use:
$word->quit();
You are right, my PHPBuilder example has an error, thanks for pointing it to
me ;)
Alain

On Mon, Sep 10, 2001 at 06:30:20PM +0100, Jeff Waldock wrote:
> Thanks for the comment, but this code was lifted from an example on
> PHPbuilder.com!  The central problem is that the instance of Excel (or
Word)
> does not quit following $word->Quit(); I expected that the ->Release()
> function would release the memory associated with the object, but it
clearly
> doesn't function because, as you say, it is not part of the Excel or Word
> object model.  In which case ... how do it destroy the object?
> Jeff Waldock
>
> -Original Message-
> From: Alain Samoun [mailto:[EMAIL PROTECTED]]
> Sent: 09 September 2001 21:55
> To: Jeff Waldock
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Closing Excel using DCOM and Release()
>
>
> As it said, your COM connection is closed, in addition 'release' is not a
> member in the word object as well as in  the excel object.
> Alain
>
> On Sun, Sep 09, 2001 at 02:20:35PM +0100, Jeff Waldock wrote:
> > I cannot seem to get PHP to recognise the Release function when tring to
> > close an instance of Excel or Word opened using DCOM.
> >
> > This is the error message returned..
> >
> > Warning: Unable to lookup release: The object invoked has disconnected
> from
> > its clients. in d:\wwwroot\studentdata\word.php on line 21
> >
> > The code on line 21 is just
> > $word->Release();
> >
> > The full code is::
> >  >
> > // starting word
> > $word = new COM("word.application") or die("Unable to instanciate
Word");
> > print "Loaded Word, version {$word->Version}\n";
> >
> > //bring it to front
> > $word->Visible = 1;
> >
> > //open an empty document
> > $word->Documents->Add();
> >
> > //do some weird stuff
> > $word->Selection->TypeText("This is a test...");
> > $word->Documents[1]->SaveAs("Useless test.doc");
> >
> > //closing word
> > $word->Quit();
> >
> > //free the object
> > $word->Release();
> > $word = null;
> >
> > ?>
> >
> > Where am I going wrong?
> >
> > Jeff Waldock
> >
> >
> > --
> > 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 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] Pop-Up Windows

2001-11-04 Thread Jeff Waldock

PHP could output a suitable bit of Javascript to do this  (using
window.open)
Jeff

-Original Message-
From: GreatKent [mailto:[EMAIL PROTECTED]]
Sent: 04 November 2001 05:45
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Pop-Up Windows


Hi guys,
I wonder if PHP can open a Pop-Up Window?

Kent




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

2001-12-15 Thread Jeff Waldock

For what it's worth, I have been running PHP ISAPI (versions 4.0.6 and
earlier) on Win2k and WinNT4 (SP6) for quite a while - 12 months and approx
2 years, respectively, and have had not a single problem - totally
fault-free.  I have to say that I am not using IIS though - these machines
are running Sambar server, version 5 (It's free, and I can highly recommend
it! - http://www.sambar.com).  I have upgraded the WinNT machine to PHP
4.1.0, and so far, there have been no problems, all seems fine, but it is
only a few days ...!

Jeff Waldock

-Original Message-
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: 15 December 2001 02:25
To: Flint Doungchak; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] ISAPI Status


At 12:27 PM 12/14/2001 -0800, Flint Doungchak wrote:
>I was just wanting to see what people are experiencing with the ISAPI
module
>for IIS 5.0 with PHP 4.1.0.

Sorry I don't have an answer to your question, but just a related question
of my own.  I've seen lots of people refer to 4.1.0 as "finally a stable
ISAPI dll".  Are people having that much trouble with the previous
versions?  I don't have a lot of experience running PHP on Windows, but I
have been toying with 4.0.6 as an ISAPI dll running on NT/IIS 4.0 for about
three weeks now.  It's done some funky things, usually right after I start
the server, but if I manage to get it started it seems to stay running.

I'm just wondering if my experience is common or not...right now I don't
have a super compelling reason to immediately upgrade because 4.0.6 is
pretty solid for me...

Of course, I'm just doing development on this machine, and it's only me and
about three other people who hit it regularly.  Should I be expecting it to
explode when I start putting it into production?



--
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] Getting PHP to work within an aliased folder

2002-01-18 Thread Jeff Waldock

I cannot get PHP files stored in aliased folders to work correctly.  I am
getting an error:
Warning: Failed opening 'e:/wwwroot/units/test.php' for inclusion
(include_path='') in Unknown on line 0

The root folder of the web tree is e:\wwwroot and I have a folder whose real
path is e:\units but which is mapped (in the server config file) to /units.
HTTP requests to http://localhost/units then work fine, but clearly PHP
scripts do not.  The PHP interpreter is obviously expecting to find the
aliased folder within the root folder of the web tree.

The script is OK - if I move test.php to anywhere within the main directory
tree it works fine.

I have searched the help files but can only find information relating to
Apache (and some relating to IIS).  I am using SAMBAR server, ver 5.0,
together with the ISAPI version of PHP.

Is this a web server issue, or a PHP issue?  That is, is there some use of
the include_file or server_root directives (or other directive) that can
tell PHP to recognise aliased directories?

Many thanks in advance for any help!

-----
Jeff Waldock
Division of Mathematics
School of Science and Mathematics
Sheffield Hallam University
Howard Street
SHEFFIELD, S1 1WB, 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]




[PHP-WIN] Problems getting PHP to work (IIS5/XP Pro)

2002-12-30 Thread Jeff Lewis
I don't understand why I'm having issues, I installed PHP 4.1 and below just fine in 
this very same set up.

However, I am receiving the following error:

 No input file specified. 

I have tried some of the suggested methods of fixing this but have not been able to 
solve it. Does anyone have a link or some info on how to fix this?

Jeff



[PHP-WIN] Question about Mail()

2003-01-12 Thread Jeff Vandenberg
I'm needing to debug a mailer script on my site as it has recently started
to throw up several time out errors. When I put in some timing code and
observed the results, I found that a call to the mail() function was taking
17 seconds to execute, which does not seem right under any definition of
right, no matter how creative it may be.  My specific question for the
PHP-Windows list is:

Is there any particular substantial overhead for mail? I did not expect 17
seconds of overhead, seems like a little bit much for an email that is less
than 1 k in size, being sent through the localhost.


My setup is as follows:

Win 2k Prof
Apache 1.3.23
PHP 4.2.2
Mail Server: Mail Enable 1.613


PHP INI Snipet:
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only

; For Win32 only.
sendmail_from = [EMAIL PROTECTED] ; for Win32 only

thanks,

Jeff


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




[PHP-WIN] escapeshellarg() that works for cmd.exe?

2003-06-11 Thread Jeff Stewart
I'm finding that escapeshellarg() doesn't protect against malicious strings
used against Windows' shell, cmd.exe.  Is there a function in PHP for
escaping strings according to the Windows shell's rules?

--
Jeff S.



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



[PHP-WIN] Why is PHP not recommended with Apache 2.0?

2003-06-25 Thread Jeff Waldock
Can anyone explain why the message:

"Do not use Apache 2.0 and PHP in a production environment neither on
Unix nor on Windows. "

appears prominently on the following PHP documentation page - for the
installation of PHP with Apache 2?
(http://uk.php.net/manual/en/install.apache2.php)

I can find no explanation, and our web administrator is refusing to
install PHP on our University's main web server as a result.

Many thanks
Jeff Waldock


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



[PHP-WIN] Re: Phpinfo.php

2003-06-27 Thread Jeff Stewart
Try  instead.

--
Jeff S.


"Mathias" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I use Microsoft Windows XP Pro, and PHP4. Im reading the book Sams teach
> yourself PHP, Mysql and Apache.
> I setup mysql apache2 and php4. I cannot get  to work. Can
> anyone HELP PLEASE?!?!???
>
>



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



[PHP-WIN] User Group

2003-09-02 Thread Jeff Myers
any one know of any articles to share with a computer user group or post in a local 
paper about linux for newbies?


Thanks

Jeff

[PHP-WIN] Newbie Error Logging Question

2003-11-28 Thread Jeff Anderson
Hello All,

I'm a newbie.  I tried searching for an answer to my question, but didn't
find anything.  I have the following config:

Win2003 Server w/ IIS 6 installed on C: partition
ISAPI PHP 4.3.4 installed on D: partition (D:\PHP)
MySQL installed on D: partition (D:\MySQL)
Website roots hosted on D: partition (D:\siteA , D:\siteB, etc.)

Everything seems to be working just fine (MySQL access, php code, etc)
except for logging.  When I began learning PHP error messages where by
default displayed to the screen.  With the current version(s), that option
is turned off and by un-commenting error_log = syslog, errors should be sent
to the Windows Event Log (right?).  This would be great to me, except it
doesn't seem to be working.  Also, according to what I have read I should be
able to put something like error_log = d:\phpErrs.txt and all php errors
would be sent to this file.  This doesn't work either.  The only thing that
works for me is error_log = phpErrs.txt, which creates a phpErrs.txt file in
each script directory that generates an error.  Maybe this is proper
behavior, but it doesn't seem to be from what I have read.  I also
configured the server w/ ISAPI PHP run from C:\PHP instead of my current
install of D:\PHP.  This didn't make a difference.

Thanks for taking the time to read my post  :)

Jeff

Here is the Error handling and logging section from my php.ini file (I have
turned on displaying errors - however, I have tested the above with this on
and off, both ways resulting the no log messages sent to a central spot or
the Windows Event Log):

;;
; Error handling and logging ;
;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE  - run-time notices (these are warnings which often
result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to
an
; empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING- warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING- user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors
;
error_reporting  =  E_ALL

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web
site
; may reveal security information to end users, such as file paths on your
Web
; server, your database schema or other information.
display_errors = on

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = on

; Log errors into a log file (server-specific log, stderr, or error_log
(below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = on

; Set maximum length of log_errors. In error_log information about the
source is
; added. The default is 1024 and 0 allows to not apply any maximum length at
all.
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on
same
; line until ignore_repeated_source is set true.
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this
setting
; is On you will not log errors with repeated messages from different files
or
; sourcelines.
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; Disable the inclusion of HTML tags in error messages.
;html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You ca

RE: [PHP-WIN] PHP 5.0.0 Released!

2004-07-14 Thread Jeff Waldock
I tried installing PHP5 and immediately had a problem with the PDF extension
- php_pdf.dll does not exist in the PHP5 distribution.
Can anyone tell me how to enable PDF in PHP5?  It works fine with 4.3.8!

Jeff Waldock

-Original Message-
From: Andi Gutmans [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2004 00:22
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP 5.0.0 Released!


The PHP development team is proud to announce the official release of PHP 5.

Some of the key features of PHP 5 include:
- The Zend Engine II with a new object model and dozens of new features.
- XML support has been completely redone in PHP 5, all extensions are now 
focused around the excellent libxml2 library (http://www.xmlsoft.org/).
- A new SimpleXML extension for easily accessing and manipulating XML as 
PHP objects. It can also interface with the DOM extension and vice-versa.
- A brand new built-in SOAP extension for interoperability with Web
Services.
- A new MySQL extension named MySQLi for developers using MySQL 4.1 and 
later. This new extension includes an object-oriented interface in addition 
to a traditional interface; as well as support for many of MySQL's new 
features, such as prepared statements.
- SQLite has been bundled with PHP. For more information on SQLite, please 
visit their website (http://www.sqlite.org/).
- Streams have been greatly improved, including the ability to access 
low-level socket operations on streams.
- And lots more...

Enjoy!

PHP Development Team

-- 
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] PHP 5.0.0 Released!

2004-07-14 Thread Jeff Waldock
I'm very stupid to not see that - thanks!
Jeff

-Original Message-
From: Zac Barton [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2004 11:03
To: 'Jeff Waldock'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP 5.0.0 Released!


Jeff,

Have a look for it in the "Collection of PECL modules for PHP 5.0.0"

http://uk.php.net/get/pecl-5.0.0-Win32.zip/from/a/mirror

Zac

-Original Message-
From: Jeff Waldock [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 10:59 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP 5.0.0 Released!


I tried installing PHP5 and immediately had a problem with the PDF extension
- php_pdf.dll does not exist in the PHP5 distribution.
Can anyone tell me how to enable PDF in PHP5?  It works fine with 4.3.8!

Jeff Waldock

-Original Message-
From: Andi Gutmans [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2004 00:22
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP 5.0.0 Released!


The PHP development team is proud to announce the official release of PHP 5.

Some of the key features of PHP 5 include:
- The Zend Engine II with a new object model and dozens of new features.
- XML support has been completely redone in PHP 5, all extensions are now 
focused around the excellent libxml2 library (http://www.xmlsoft.org/).
- A new SimpleXML extension for easily accessing and manipulating XML as 
PHP objects. It can also interface with the DOM extension and vice-versa.
- A brand new built-in SOAP extension for interoperability with Web
Services.
- A new MySQL extension named MySQLi for developers using MySQL 4.1 and 
later. This new extension includes an object-oriented interface in addition 
to a traditional interface; as well as support for many of MySQL's new 
features, such as prepared statements.
- SQLite has been bundled with PHP. For more information on SQLite, please 
visit their website (http://www.sqlite.org/).
- Streams have been greatly improved, including the ability to access 
low-level socket operations on streams.
- And lots more...

Enjoy!

PHP Development Team

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

2004-07-16 Thread Jeff Hill
I hope someone will see this thru all the spam (isn't there any way to
control that?!)

I have a server running Win2K server and Sybase EAServer (aka Jaguar). IIS
and Apache are installed, but this is primarily a component server, so
EAServer could also provide the http listener on port 80, meaning I could
dispense with Apache and IIS altogether.

I'd been told (in a phpBB forum) that php5 would natively support EAServer
as the http server. Is this true? If so, where can I find configuration
information?

If this is NOT supported, should I go with Apache or IIS? I will be
installing pbpBB, but will not be using ASP. My database is MS-SQL2K.

Also, are there plans for a windows installer version of php5?

Thanks,
  Jeff

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



Re: [PHP-WIN] PHP5 questions

2004-07-16 Thread Jeff Hill
Thanks, Phil. I'll try it tonite.
...Jeff
"Phil Driscoll" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 16 July 2004 23:44, Jeff Hill wrote:
>
> > Also, are there plans for a windows installer version of php5?
> I have prepared the installer for php5 which is being tested at the
moment.
> You can download a copy from
> http://www.dialsolutions.com/phil/php/php-5.0.0-installer.exe
>
> Let me know if you have any problems with it.
>
> Cheers
> -- 
> Phil Driscoll

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



Re: [PHP-WIN] PHP5 questions

2004-07-17 Thread Jeff Hill
Phil,
Here's what I've encountered so far. In all cases I've selected Advanced so
I could see what was being set by default, and to set the SMTP stuff.

* Install.txt still refers to InstallShield, but you're using Wise. Is this
an oversight, or is the distributed copy of Install.txt back-level?

* it appears that "php.ini-dist" is being installed rather than
"php.ini-recommended". Is this by design?

* on my system IIS4+ was initially selected. Does this indicate that it
detected IIS5, or is it just a default value?

* I then selected IIS6 (carelessly, as I have it running on a different
box). Near the end of the install a system dialog was displayed complaining
about missing file C:\WinNT\system32\iisext.vbs. After responding to the
dialog, the install hung and had to be killed via task manager. The Install
log never got created so I could not run the uninstall.

I reran the install and selected IIS4 which completed normally. I next
walked thru the manual steps in Install.txt to check what Install did (or
didn't) do:

- Install.txt recommends setting security on php.ini to give Everyone read
access. Had to do this manually. Should the installer have done it?

- The section on IIS/PWS covers registry settings and mentions a reg file,
"pws-php5cgi.reg". This file was not present in either the installer or the
full zip version.

- the text refers to adding the ScriptMap string value; I assume the
"example" value should refer to "php-cgi.exe" (not "php.exe")? Or, see
next...

- The zip distribution also includes "php-win.exe", which is the same size
as "php.exe". Should the installer actually have used "php-win.exe" and
renamed it to "php.exe"??

- In the discussion of using Internet Services Manager, there are two ways
to get there:

1. If you go in thru the Computer Management MMC, you see Services and
Applications, and within that, Internet Information Services. Here it lists
the "Default Web Site", and the Properties selection in the context menu
takes you directly to the Properties so ou can access the Home Directiry
tab.

2. When you go in via Control Panel, it displays the named server, and after
you click Properties in the context menu you then need to click Master
Properties. From there you can access the Home Directory setting.

I'm not sure whether master Properties is the right way to go; perhaps
Install.txt could clarify this. Also, the Install.txt instructions had us
set the mapping manually manually on the previous page.

- In the next paragraph, the text refers to "Method Exclusions"; my dialog
has "All verbs"

When I got all done I created a test file in a test folder. I consistently
got 404's. I checked the permissions. I checked the folder name. I checked
everything three times. I put a test HTML file in the same folder and it
found that fine. I ran a command lin etest and that worked file. I verified
the php.ini location an settings.

The problem turned out to be the recommended setting for "doc_root" in
Install.txt. It says c:\inetpub, but it should be c:\inetpub\wwwroot. Not
knowing how it was going to be used internally, I didn't spot this at first.

At any rate, I'm up and running in about an hour, not having known squat
about php to start with. Nice job!
Thanks,
...Jeff

"Phil Driscoll" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 16 July 2004 23:44, Jeff Hill wrote:
>
> > Also, are there plans for a windows installer version of php5?
> I have prepared the installer for php5 which is being tested at the
moment.
> You can download a copy from
> http://www.dialsolutions.com/phil/php/php-5.0.0-installer.exe
>
> Let me know if you have any problems with it.
>
> Cheers
> -- 
> Phil Driscoll

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



[PHP-WIN] Compiling Win32 extensions (VC++)

2005-04-07 Thread Jeff Beidler

Hello,

I am trying to compile Doru Petrescu's Upload Progress Meter extension on 
Win32.  (See http://pdoru.from.ro/upload-progress-meter.)  This is a great 
extension, it works very well... on linux, for which it was designed.

I am using MS Visual Studio (Visual C++ 6.0) as my build environment, set up as 
described in the tutorial at http://www.devnewz.com/2002/0909.html.  When 
trying to compile, I get the message:  "error C2065: 'tsrm_ls' : undeclared 
identifier."  This is somewhere in PHP's TSRM (Thread Safe Resource Manager) 
code.  As I understand it, all Windows PHP extensions must be "thread safe."  
If I remove the "ZTS=1" from the preprocessor directives, the module will 
compile nicely into a .dll file... but PHP won't load with it enabled.  I 
imagine this is because I removed the thread safe stuff in order to make it 
compile.  

Anyone have any ideas on how to get the darn thing to compile in such a manner 
that will make PHP accept it and load the module?

Help greatly appreciated,

Jeff

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



[PHP-WIN] CubeCart Experience on Windows/IIS?

2006-03-18 Thread Jeff Chastain
I have very little experience with PHP, but I am looking for an
inexpensive/free shopping cart solution for my wife and came across
CubeCart.  It had everything I was looking for as well as a good price, but
I am having some difficulties with the installation.  It seems everybody on
the CubeCart forums is a Linux/Unix person and only wants to bash Windows
rather than offer much help.  So, I wanted to see if anybody here could
offer me some pointers.
 
The installation when just fine and I can access the administration part of
the cart without issue.  However, when I attempt to access the store front,
I get a series of errors like this:
 
Warning: include(language/en/home.inc.php) [function.include
<http://store.kcoutlet.com/function.include> ]: failed to open stream: No
such file or directory in
D:\Admentus\domains\kcoutlet.com\wwwroot2\includes\content\index.inc.php on
line 38

Warning: include() [function.include
<http://store.kcoutlet.com/function.include> ]: Failed opening
'language/en/home.inc.php' for inclusion (include_path='.;C:\PHP\includes')
in D:\Admentus\domains\kcoutlet.com\wwwroot2\includes\content\index.inc.php
on line 38
 
In following through the code, basically this is a nested include.  The root
index.php file has the following line:
 
include("includes/content/index.inc.php");

Then, the includes/content/index.inc.php file has the following line at line
38 which is causing the error message:
 
include("language/".$lang_folder."/home.inc.php");

$lang_folder is set to "en" in the index.php file, resulting in the
include("language/en/home.inc.php") code in the error message.  I have
checked and the file (/language/en/home.inc.php) does exist, so it is not
something that simple.
 
So, does anybody have any experience with CubeCart or could just offer me
some basic PHP debugging help to trace this issue down?
 
Thanks
-- Jeff
 
 
 


[PHP-WIN] PHP 4.4.2 Install on IIS6

2006-04-04 Thread Jeff Chastain
I am trying to install PHP 4.4.2 on a Windows 2003 IIS 6 box.  However, when
I try to browse the test php page to verify everything works, I simply get
the message "The specified procedure could not be found.".  I commented out
all of the extensions in the php.ini file, restarted IIS, and still get the
same message.  Any suggestions on where to start looking?
 
Thanks.


RE: [PHP-WIN] PHP 4.4.2 Install on IIS6

2006-04-04 Thread Jeff Chastain

Never mind, I messed up in the IIS configuration.

Thanks. 

-Original Message-
From: Jeff Chastain [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 04, 2006 9:12 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP 4.4.2 Install on IIS6

I am trying to install PHP 4.4.2 on a Windows 2003 IIS 6 box.  However, when
I try to browse the test php page to verify everything works, I simply get
the message "The specified procedure could not be found.".  I commented out
all of the extensions in the php.ini file, restarted IIS, and still get the
same message.  Any suggestions on where to start looking?
 
Thanks.

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



[PHP-WIN] PHP 4.4.2 and MySQL 5?

2006-04-05 Thread Jeff Chastain
I have MySQL 5 installed and running with several non-PHP applications on my
development server.  I am trying to install a PHP app that supposedly only
works on PHP 4 currently (not PHP 5).  So, I installed PHP 4 and everything
looks good there.  However, I cannot get it to connect with MySQL 5.
 
I have found a few postings online regarding this issue, but no solutions.
Has anybody done this and can you provide some pointers?
 
Thanks.


RE: [PHP-WIN] PHP 4.4.2 and MySQL 5?

2006-04-06 Thread Jeff Chastain

I tried this ... 
 - Overwriting the libmysql.dll/php_mysql.dll and
libmysqli.dll/php_mysqli.dll with the ones from the PHP5 zip
 - Enabling the mysql and mysqli extensions in the php.ini file

However, ever after restarting IIS, the phpInfo dump is still showing the
old 3.X api for MySQL and not the new one.  It seems like PHP4 is intent on
using its internal MySQL settings over any add-on extension.

Thanks.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 1:11 AM
To: Jeff Chastain
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] PHP 4.4.2 and MySQL 5?

You could try the following:

1) delete your existing php_mysql.dll
2) copy php_mysqli.dll into your extensions directory
3) rename php_mysqli.dll to php_mysql.dll

Then repeat steps 1-3 for the libmysql.dll/libmysqli.dll

> I have MySQL 5 installed and running with several non-PHP applications 
> on my development server.  I am trying to install a PHP app that 
> supposedly only works on PHP 4 currently (not PHP 5).  So, I installed 
> PHP 4 and everything looks good there.  However, I cannot get it to 
> connect with MySQL 5.
>
> I have found a few postings online regarding this issue, but no solutions.
> Has anybody done this and can you provide some pointers?
>
> Thanks.
>

--
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] Error: illegal character I need help

2007-07-26 Thread Jeff White
Hello Stephen,

 

At first glance, in your message I noticed that the second backslash (
\"checkbox"\ ) is after the double quote. The backslash should be before the
double quote for proper escaping in JavaScript. That could be your problem
possibly.

 

-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 26, 2007 8:24 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Error: illegal character I need help

 

I am trying to get a sample code that I got from the internet to work on my 

website. Every time that I check the error logs I get tis message:

 

Error: illegal character

Source File: http://192.168.0.102/wle_form.php?run=&;

Line: 969, Column: 55

Source Code:

   if(document.AuthChangesForm.elements[i].type == \"checkbox"\ && 

document.AuthChangesForm.elements[i].name == SwitchName )

 

Can anyone help me with this. I hope it is the only thing that is stopping 

this program from running.

 

-Stephen- 

 

-- 

PHP Windows Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-WIN] Arrays past to functions

2007-07-28 Thread Jeff White
Hello Jacob,

This may be what you're looking for:

 $Rate)
{ 
$Ret[$State] = $Amount  * ($Rate/100); 
}
return $Ret;
}

echo "Payment: " . $payment = 1500;
$taxRates = array("CA" => 5 , "WA" =>  7, "OR" => 8);
$taxresults = compute_salestax ($payment, $taxRates);
foreach($taxresults as $state => $value)
{
 print "Tax = " . sprintf("%01.2f", round($value, 2)) . " in $state.";
}

?>

Browser output results:

Payment: 1500
Tax = 75.00 in CA.
Tax = 105.00 in WA.
Tax = 120.00 in OR.

I hope this helps!!

Jeff White





-Original Message-
From: Jacob Bergman [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 27, 2007 2:07 PM
To: php-windows@lists.php.net
Subject: RE: [PHP-WIN] Arrays past to functions

Thanks a bunch guys, I'm out for the day, I will pick this back up on
Monday, have a great weekend.

Jacob Bergman
Network Technician
Pullman School District #267
(509) 432-4012
[EMAIL PROTECTED]

-Original Message-
From: Niel Archer [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 27, 2007 11:03 AM
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Arrays past to functions

Hi Jacob

Sorry, my fault entirely. I wrote it in a hurry after copy/pasting your
example. I didn't change the variable names properly or test it.

I still haven't been able to test, but this should work better now.

function compute_salestax ($Amount , $State)
{
$taxRate = array("CA" => 5 , "WA" =>  7, "OR" => 8);
return $Amount  * $taxRate($State);
}

$payment = 1500;
$locale = 'CA';
print "Tax on $amount in $locale is " . compute_salestax ($payment ,
$locale);


--
Niel Archer

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



RE: [PHP-WIN] PHP, MYSQL and Apache

2007-08-06 Thread Jeff White
Hello Keith,

I realize this may seem a bit tedious, but is your PHP directory in the
Windows PATH environment variable? And, if so, is the "libmysql.dll" file in
the PHP directory? 

Jeff



-Original Message-
From: KM [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 06, 2007 9:22 PM
To: 'Carlton Whitehead'
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] PHP, MYSQL and Apache

Configuration File (php.ini) Path  C:\WINDOWS  
Loaded Configuration File  C:\WINDOWS\php.ini  

This is indeed the ini file I am editing and saving.
And yes, any time I've made changes to it, I have restarted apache.

Thanks
Keith



-Original Message-
From: Carlton Whitehead [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 06, 2007 9:01 PM
To: KM
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] PHP, MYSQL and Apache

Keith,

Are you sure that's the same php.ini that is referenced by your 
phpinfo(); script?

Have you restarted Apache since you enabled the extensions?

Regards,
Carlton Whitehead


KM wrote:
> Here is the section of my php.ini that contains the information
> 
> ;extension=php_bz2.dll
> ;extension=php_curl.dll
> ;extension=php_dba.dll
> ;extension=php_dbase.dll
> ;extension=php_exif.dll
> ;extension=php_fdf.dll
> ;extension=php_gd2.dll
> ;extension=php_gettext.dll
> ;extension=php_gmp.dll
> ;extension=php_ifx.dll
> ;extension=php_imap.dll
> ;extension=php_interbase.dll
> ;extension=php_ldap.dll
> ;extension=php_mbstring.dll
> ;extension=php_mcrypt.dll
> ;extension=php_mhash.dll
> ;extension=php_mime_magic.dll
> ;extension=php_ming.dll
> ;extension=php_msql.dll
> ;extension=php_mssql.dll
> extension=php_mysql.dll
> extension=php_mysqli.dll
> ;extension=php_oci8.dll
> ;extension=php_openssl.dll
> ;extension=php_pdo.dll
> ;extension=php_pdo_firebird.dll
> ;extension=php_pdo_mssql.dll
> ;extension=php_pdo_mysql.dll
> ;extension=php_pdo_oci.dll
> ;extension=php_pdo_oci8.dll
> ;extension=php_pdo_odbc.dll
> ;extension=php_pdo_pgsql.dll
> ;extension=php_pdo_sqlite.dll
> ;extension=php_pgsql.dll
> ;extension=php_pspell.dll
> ;extension=php_shmop.dll
> ;extension=php_snmp.dll
> ;extension=php_soap.dll
> ;extension=php_sockets.dll
> ;extension=php_sqlite.dll
> ;extension=php_sybase_ct.dll
> ;extension=php_tidy.dll
> ;extension=php_xmlrpc.dll
> ;extension=php_xsl.dll
> ;extension=php_zip.dll
> 
> Is there something else I am missing?
> 
> Keith
> 
> 
> -Original Message-
> From: Carlton Whitehead [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 06, 2007 5:11 PM
> To: KM
> Cc: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] PHP, MYSQL and Apache
> 
> Keith,
> 
> Browse to your phpinfo(); page, and search it for mysql.  Is it listed?
If not, the mysql module isn't enabled, and you shouldn't expect a
mysql_connect command to work.  You may need to edit your php.ini and enable
the php_mysql.dll module.  
> 
> Refer to the results of phpinfo(); for the path to the active php.ini
file, since sometimes this can be an unexpected location on Windows
machines, at least in my experience.
> 
> Regards,
> Carlton Whitehead
> 
> - Original Message -
> From: "KM" <[EMAIL PROTECTED]>
> To: php-windows@lists.php.net
> Sent: Monday, August 6, 2007 4:58:36 PM (GMT-0500) America/New_York
> Subject: [PHP-WIN] PHP, MYSQL and Apache
> 
> I am attempting to use the following together..
> 
>  
> 
> MYSQL 5.0
> 
> Apache 2.2.4
> 
> PHP 5.2.3
> 
>  
> 
> PHP info I can get.  I get the following statement whenever trying to get
to
> mysql
> 
>  
> 
>  
> 
> Here is the PHP code for what I'm trying to do.
> 
>  
> 
>  
>  // Connect to the database
> 
>  $dbhost = 'localhost';
> 
>  $dbusername = 'root';
> 
>  $dbpasswd = 'joker';
> 
>  $database_name = 'simple';
> 
>  $connection = mysql_connect("$dbhost","$dbusername","$dbpasswd")
> 
>   or die ('Couldn\'t connect to server.');
> 
>  $db = mysql_select_db("$database_name", $connection)
> 
>   or die('Couldn\'t select database.');
> 
>  
> 
>  // Generate SQL code to store data on database.
> 
>  $insert_sql = 'INSERT INTO simple_table (text) VALUES (\'test text,
> 1,2,3\')';
> 
>  
> 
>  // Execute SQL code.
> 
>  mysql_query( $insert_sql )
> 
>   or die ( 'It Didn\'t Work: ' . mysql_error() );
> 
>  
> 
>  // Tell User we are done.
> 
>  echo 'Code Inserted';
> 
> ?>
> 
>  
> 
>  
> 
> Fatal error: Call to undefined f

RE: [PHP-WIN] Permissions on Server 2003

2007-10-10 Thread Jeff White
Hello Alexis,

I use PHP on our LAN at work using Windows authentication. If you want to
restrict HTTP access to the directory using Windows permissions you'll have
to:

1. Uncheck the Anonymous user authentication in IIS (in IIS 5.1: site
properties > "Directory Security" > "Anonymous access and authentication
control" > "Edit"). 
2. Check "Integrated Windows Authentication" in the lower part of the
dialog. That will allow users to run the PHP script in the security context
of their username.
3. Set permissions on the folder or files to whomever's account or groups
you wish. 
4. Use the Windows domain name account (username only, no passwords) in PHP
for authentication to the folders/files possibly using a (My)SQL database or
(maybe) through LDAP. I can't confirm the LDAP method as I've not had much
success using Active Directory with PHP, but only read of it.

I hope this helps your situation.

Jw


-Original Message-
From: Alexis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 5:02 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Permissions on Server 2003

Hi,

I am trying to read the contents of a directory on a Server 2003 network.

I have removed the 'General Users' from the set of permissions on the 
directory, as only the owner of the directory is allowed to access it. 
In this case myself.

Now by doing this I am obviously stopping PHP scripts from accessing 
this directory. How can I get around this? Can I pass the Username and 
password through the scripting, or do I need to set up a new user group 
and assign it to the PHP scripts as it were. In either case how would I 
go about doing it?


TIA
Alexis

-- 
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] Ajax and PHP

2007-10-10 Thread Jeff White
Hello Matt,

I read this book and reference it often:
"AJAX and PHP: Building Responsive Web Applications"
Packt Publishing - 2006 ( http://www.packtpub.com )
ISBN 1-904811-82-5

As far as sites to check, I have used Prototype 
( http://www.prototypejs.org/ ) more than anything else. There is somewhat
of a learning curve depending on your level of expertise, but after you get
the hang of it, you'll probably love using it.

Just my 2¢ worth. Hope it helps...

JW



-Original Message-
From: Matthew Gonzales [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 5:41 PM
To: PHP-Windows Group
Subject: [PHP-WIN] Ajax and PHP

Has anyone out there conquered Ajax and PHP? Do you recommend any books 
or websites that provide good tutorials? Thanks!

Matt
-- 
Matthew Gonzales
IT Professional Specialist
Enterprise Information Technology Services
University of Georgia
Email: [EMAIL PROTECTED] 
Phone: (706)542-9538

-- 
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] PHP Install problems

2007-10-16 Thread Jeff White
Hello Bob,

Regarding the "MSI" file, it seems that you have downloaded the Apache
'source code' used for compiling into executable binaries. I believe that
you want the precompiled Win32 binaries available at this link:
http://apache.tradebit.com/pub/httpd/binaries/win32/apache_2.2.6-win32-x86-n
o_ssl.msi

Delete the Apache files that you have now and install the .msi file from the
link above; ensure that the lines below are in your httpd.conf file.
Hopefully that will get you going in the right direction.

These lines should be present in your Apache httpd.conf file:
In the section:
 
AddType application/x-httpd-php .php .html


# Other PHP-specific parameters at the end of httpd.conf:
# the path to PHP on your machine may be different
PHPIniDir "C:/PHP/"
# again your path may be different
LoadModule php5_module "C:/PHP/php5apache2_2.dll"

Jeff



-Original Message-
From: rjdani [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 15, 2007 3:36 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP Install problems

I'm trying to work my way through the "Beginning PHP5, Apache, MySql Web
Development" book by Elizabeth Naramore, et. al. -- i.e. a newbie. I'm
having trouble getting Apache to recognize my php code files on my HP
Windows XP machine.  It has service pack 2 and is current with updates.

I followed the examples in the book and added a documentroot line and a
directory line to the httpd.conf file.  The index.html file worked witn IE7
but not with Fire Fox when I used the http://localhost URL.  Next I created
the second check which had me create a php testing file phptest.php in the
same directory as the index.html file. Which included the following code: --



PHP Testing


really<-i> did it!";
?>



When I used the http://localhost/phptest.php a 404 url not found message
resulted.
was when I unzipped the httpd-2.2.6-win32-src-r2.zip file I do not see the
MSI file mentioned in Appendix I of the book.  Can any one help me.

RJD (bob daniels)

-- 
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] mail() Incorrect Address Format when using IIS7/FastCGI

2008-01-29 Thread Jeff White
I have had success with IIS/SMTP using the following function that I found
on the PHP website function list (I've only slightly optimized the original
with some constants). Apparently, IIS/SMTP doesn't like the added '<' and
'>' around the "from" address, but it can be coerced into it with this
function. I've tested successfully with Outlook and Thunderbird.

 

JW

 

');

$headers = '';

$mime_boundary = md5(time());

  

# Common Headers

$headers .= "From: "  . $fromname . LT . $fromaddress .
GT . EOL;

$headers .= "Reply-To: "  . $fromname . LT . $fromaddress .
GT . EOL;

$headers .= "Return-Path: "   . $fromname . LT . $fromaddress .
GT . EOL;

$headers .= "Message-ID: <"   . time(). "-" . $fromaddress .
GT . EOL;

$headers .= "X-Mailer: PHP v" . phpversion(). EOL;

  

# Boundary for marking the split & Multitype Headers

$headers .= 'MIME-Version: 1.0' . EOL . EOL;

$headers .= "Content-Type: multipart/mixed; boundary=\" ".
$mime_boundary . "\"" . EOL . EOL;

  

# Open the first part of the mail

$msg = "--" . $mime_boundary . EOL;



$htmlalt_mime_boundary = $mime_boundary . "_htmlalt"; //we must
define a different MIME boundary for this section

# Setup for text OR html -

$msg .= "Content-Type: multipart/alternative; boundary=\"" .
$htmlalt_mime_boundary . "\"" . EOL . EOL;

  

# Text Version

$msg .= "--" . $htmlalt_mime_boundary . EOL;

$msg .= "Content-Type: text/plain; charset=iso-8859-1" . EOL;

$msg .= "Content-Transfer-Encoding: 8bit" . EOL . EOL;

$msg .= strip_tags(str_replace("", "\n", substr($body,
(strpos($body, "") + 6 . EOL . EOL;

  

# HTML Version

$msg .= "--" . $htmlalt_mime_boundary . EOL;

$msg .= "Content-Type: text/html; charset=iso-8859-1" . EOL;

$msg .= "Content-Transfer-Encoding: 8bit" . EOL . EOL;

$msg .= $body . EOL . EOL;

  

//close the html/plain text alternate portion

$msg .= "--" . $htmlalt_mime_boundary . "--" . EOL . EOL;

  

if ($attachments !== FALSE)

{

  for($i = 0; $i < count($attachments); $i++)

  {

if (is_file($attachments[$i]["file"]))

{   

  # File for Attachment

  $file_name = substr($attachments[$i]["file"],
(strrpos($attachments[$i]["file"], "/") + 1));

  

  $handle   = fopen($attachments[$i]["file"], 'rb');

  $f_contents = fread($handle,
filesize($attachments[$i]["file"]));

  $f_contents = chunk_split(base64_encode($f_contents));
//Encode The Data For Transition using base64_encode();

  $f_type   = filetype($attachments[$i]["file"]);

  fclose($handle);

  

  # Attachment

  $msg .= "--" . $mime_boundary . EOL;

  $msg .= "Content-Type: " . $attachments[$i]["content_type"] .
"; name=\"" . $file_name . "\"" . EOL;  // sometimes i have to send MS Word,
use 'msword' instead of 'pdf'

  $msg .= "Content-Transfer-Encoding: base64" . EOL;

  $msg .= "Content-Description: " . $file_name . EOL;

  $msg .= "Content-Disposition: attachment; filename=\"" .
$file_name . "\"" . EOL . EOL; // !! This line needs TWO end of lines !!
IMPORTANT !!

  $msg .= $f_contents . EOL . EOL;

}

  }

}

  

# Finished

$msg .= "--" . $mime_boundary . "--" . EOL . EOL;  // finish with
two eol's for better security. see Injection.



# SEND THE EMAIL

ini_set(sendmail_from, $fromaddress);  // the INI lines are to force
the From Address to be used !

$mail_sent = mail($to, $subject, $msg, $headers);



ini_restore(sendmail_from);



return $mail_sent;

  }

?>

 

 

 

 

 

-Original Message-
From: Dan Richfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 29, 2008 11:58
To: php-windows@lists.php.net
Subject: [PHP-WIN] mail() Incorrect Address Format when using IIS7/FastCGI

 

When using IIS7 with PHP 5.2.5 with the FastCGIModule, the mail()

function returns the following error message when trying to use anything

but a plain email address (ex. [EMAIL PROTECTED]) in the From or To

headers:

 

PHP Warning: mail() [function.mail]: SMTP server response: 501 Incorrect

Address Format

 

If you use a plain email address it works fine.  An example of what

causes this problem is as follows:

 

Test <[EMAIL PROTECTED]>

 

The problem is that PHP is formatting the header incorrectly but adding

additional < and > tags around the entire address.  This is illustrated

in this excerpt from my mail server log:

 

16:28:05.79 5 SMTPI-39353([XXX.XXX.XXX.XXX]) inp: MAIL FROM:>

 

With a plain em

RE: [PHP-WIN] Running under Windows Vista?

2008-05-12 Thread Jeff White
Hello Alan,

I have Apache2.2/MySQL/PHP on Vista Home working. Here are a few lines from
my httpd.conf to consider:

In the "LoadModule" section:
LoadModule php5_module "C:/php/php5apache2_2.dll"
In the "" section:
AddType application/x-httpd-php .php
At the end of httpd.conf:
PHPIniDir "C:/PHP/"

Of course, if you have PHP installed into a different directory than noted
here, you'll have to make the necessary adjustments to the paths.

Jeff





-Original Message-
From: Alan M Dunsmuir [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 12, 2008 4:45
To: php-windows@lists.php.net
Subject: [PHP-WIN] Running under Windows Vista?

Is there some trick to getting PHP5 to install properly under Windows Vista?

I had a successful Windows 'localhost' installation of Apache/MySQL/PHP 
about a year ago, and I've been trying to get the same thing up under Vista 
(Home Premium). MySQL and Apache2 install fine, but I just cannot get Apache

to recognise php coding. If I try to run phpinfo() as a "Hello, World!" 
example, I get the full contents of the source file displayed on the 
monitor:



I've made what I thought were the required changes to httpd.conv, and 
stopped and restarted Apache, but php just won't kick in.

Would somebody please hold my hand, and walk me through what I need to do 
step by step?

Many thanks. 


-- 
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] Using php5ts.lib in 5.3.0beta2-dev snapshot

2009-03-16 Thread Jeff McKenna

Hello,

I am using the 'php5ts.lib' file included in the "VC9 x64 Thread Safe" 
5.3.0beta2-dev snapshot (from http://windows.php.net/snapshots/), 
downloaded 2009-Mar-15, to build a module...but when I try to load the 
module using those same PHP binaries I get the following error:


  >php -v
PHP Warning:  PHP Startup: MapScript: Unable to initialize module
Module compiled with build ID=API20090115,TS
PHPcompiled with build ID=API20090115,TS,VC9
These options need to match

Is it possible that the 'php5ts.lib' file included in that snapshot was 
not used to make those binaries?  Or, does someone see my mistake? 
(where is this mysterious "VC9" ID coming from?)


thanks for any advice.

-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] Using php5ts.lib in 5.3.0beta2-dev snapshot

2009-03-16 Thread Jeff McKenna

Keisial wrote:

Jeff McKenna wrote:

Hello,

I am using the 'php5ts.lib' file included in the "VC9 x64 Thread Safe"
5.3.0beta2-dev snapshot (from http://windows.php.net/snapshots/),
downloaded 2009-Mar-15, to build a module...but when I try to load the
module using those same PHP binaries I get the following error:

  >php -v
PHP Warning:  PHP Startup: MapScript: Unable to initialize module
Module compiled with build ID=API20090115,TS
PHPcompiled with build ID=API20090115,TS,VC9
These options need to match

Is it possible that the 'php5ts.lib' file included in that snapshot
was not used to make those binaries?  Or, does someone see my mistake?
(where is this mysterious "VC9" ID coming from?)

thanks for any advice.

-jeff

Did you use Visual C++ 9 to build that module?
VC9 means that it was made with Visual C++ 9, and thus use a different C
library.




Yes I built the module with VC9 also.  My question is: how is this extra 
parameter "VC9" set on the build ID?


-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] Using php5ts.lib in 5.3.0beta2-dev snapshot

2009-03-16 Thread Jeff McKenna

Jeff McKenna wrote:

Hello,

I am using the 'php5ts.lib' file included in the "VC9 x64 Thread Safe" 
5.3.0beta2-dev snapshot (from http://windows.php.net/snapshots/), 
downloaded 2009-Mar-15, to build a module...but when I try to load the 
module using those same PHP binaries I get the following error:


  >php -v
PHP Warning:  PHP Startup: MapScript: Unable to initialize module
Module compiled with build ID=API20090115,TS
PHPcompiled with build ID=API20090115,TS,VC9
These options need to match

Is it possible that the 'php5ts.lib' file included in that snapshot was 
not used to make those binaries?  Or, does someone see my mistake? 
(where is this mysterious "VC9" ID coming from?)


thanks for any advice.

-jeff




For the record, this build_id value is set in the /main/config.w32.h 
file, such as:


  /* Compiler compatibility ID */
  #define PHP_COMPILER_ID "VC9"

That magic did the trick for me :)

-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



RE: [PHP-WIN] php pages not appearing

2009-03-28 Thread Jeff White

I suggest XAMPP as an all-in-one package for development work.

It includes the following (free of charge):
• Apache HTTPD 2.2.11 + Openssl 0.9.8i (Web server)
• MySQL 5.1.30 (database)
• PHP 5.2.8
• phpMyAdmin 3.1.1 (Database Management)
• FileZilla FTP Server 0.9.29
• Mercury Mail Transport System 4.52

URL: http://www.apachefriends.org/en/xampp-windows.html

For a simple (and free) PHP and SQL editor, Notepad++ is my choice. If you
find that does not meet your needs, there are many others such as NuSphere,
Zend Studio, ActiveState Komodo, Eclipse, etc. All have their good and
not-so-good attributes that will spark debate ad infinitum.


Jeff


-Original Message-
From: Ariel Kastanova [mailto:ariel_kastan...@yahoo.com] 
Sent: Saturday, March 28, 2009 15:11
To: php-windows@lists.php.net
Subject: [PHP-WIN] php pages not appearing

I am teaching myself how to program in php.  What do I need to load into my
laptop so I can review in a browser what I've composed? 
 
Tannera Kane
Urban archeologist, photographer, and writer

http://groups.yahoo.com/group/Ariel_Kastanova


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



[PHP-WIN] Compiling PHP on Windows

2009-04-28 Thread Jeff McKenna
Can someone point me to the latest installation instructions for 
building PHP on Windows with Visual C++ 9 (2008)?  Developers seem to 
point to the Wiki at 
http://wiki.php.net/internals/windows/stepbystepbuild but it is incomplete.


Thanks.

-jeff

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/






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



Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Jeff McKenna




http://docs.php.net/manual/en/install.pecl.downloads.php "At this time
the PHP project does not compile Windows binaries for PECL extensions.
However, to compile PHP under Windows see the chapter titled building
PHP for Windows."




Small world: that chapter "Building PHP for Windows" is exactly why I 
sent a message yesterday to the php-windows list asking where the most 
uptodate instructions are for building PHP with VC 9 on Windows (that 
chapter has broken links to the build tools, and the Wiki page, 
http://wiki.php.net/internals/windows/stepbystepbuild, is incomplete). 
So it seems we're in limbo for building!


-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] Re: [PHP-DEV] Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Jeff McKenna

Philip Olson wrote:
If the documentation is wrong/outdated then please report 
a bug.




I notice that every time someone files a bug about the broken links in 
the "Building PHP for Windows" documentation, a PHP developer closes the 
bug and says to follow the Wiki notes instead 
(http://wiki.php.net/internals/windows/stepbystepbuild) which are 
unfortunately not complete...hence my confusion.


-jeff





--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] Re: Win32 PECL pre-built binaries.

2009-04-29 Thread Jeff McKenna

Philip Olson wrote:


I see one such bug, are there others?

  - http://bugs.php.net/bug.php?id=46021



Here are some:

http://bugs.php.net/bug.php?id=47008
http://bugs.php.net/bug.php?id=46259
http://bugs.php.net/bug.php?id=46069

Needless to say that the issue has been driving people crazy for a 
while...someone needs to fix those links.


Thanks.

-jeff




--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



[PHP-WIN] dbase extension for PHP 5.3.0

2009-07-21 Thread Jeff McKenna
I'm searching for a pre-compiled dbase extension for PHP 5.3.0 on 
Windows.  I have read that the extension has been moved to the PECL 
repository for the 5.3.0 release, but I was disappointed to read on the 
PECL site that "at this time the PHP project does not compile Windows 
binaries for PECL extensions".  Someone must have hit this wall before 
me...is anyone distributing a dbase extension for PHP 5.3.0 ?


thanks.

-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-07-21 Thread Jeff McKenna

Jeff McKenna wrote:




http://docs.php.net/manual/en/install.pecl.downloads.php "At this time
the PHP project does not compile Windows binaries for PECL extensions.
However, to compile PHP under Windows see the chapter titled building
PHP for Windows."




Small world: that chapter "Building PHP for Windows" is exactly why I 
sent a message yesterday to the php-windows list asking where the most 
uptodate instructions are for building PHP with VC 9 on Windows (that 
chapter has broken links to the build tools, and the Wiki page, 
http://wiki.php.net/internals/windows/stepbystepbuild, is incomplete). 
So it seems we're in limbo for building!




Unfortunately months later I am back at the same problem I reported 
months ago and the same wiki 'stepbystep' page is incomplete :(


-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] RE: [PHP-DEV] Re: Win32 PECL pre-built binaries.

2009-07-21 Thread Jeff McKenna




Unfortunately months later I am back at the same problem I reported 
months ago and the same wiki 'stepbystep' page is incomplete :(




The guys in the IRC chat room (#php-dev-win on freenode.net) are editing 
the page now with additions 
(http://wiki.php.net/internals/windows/stepbystepbuild)...thanks everyone!


-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] dbase extension for PHP 5.3.0

2009-07-21 Thread Jeff McKenna

Sascha Meyer wrote:

the dBase extension has been removed because the extension was no longer 
maintained actively. If there is a demand for dbase support with PHP 5.3, a 
PECL package will be created [1].
If you need to switch, please contact the developers on the PECL mailing list 
[2].



Hi Sacha,

I just built php (with the great instructions at 
http://wiki.php.net/internals/windows/stepbystepbuild) and my only 
missing extension is dbase...but the PECL instructions for compiling 
point back to the same PHP compiling instructions...so my question is 
how to compile the PECL dbase extension on Windows.  I will ask on the 
PECL mailing list.


-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] dbase extension for PHP 5.3.0

2009-07-21 Thread Jeff McKenna




I just built php (with the great instructions at 
http://wiki.php.net/internals/windows/stepbystepbuild) and my only 
missing extension is dbase...but the PECL instructions for compiling 
point back to the same PHP compiling instructions...so my question is 
how to compile the PECL dbase extension on Windows.  I will ask on the 
PECL mailing list.




With the help of Pierre in the #php-dev-win IRC channel (on 
freenode.net), I used the 'Quick n dirty' steps listed here 
http://wiki.php.net/internals/windows/stepbystepbuild and then here were 
the rest of my steps:


**
Adding PECL extensions (using 'dbase' as an example):

  - cd C:\php-sdk\php53dev\vc9\x86
  - get the dbase extension code through Subversion
  - svn co http://svn.php.net/repository/pecl/dbase/trunk pecl/dbase
  - cd php5.3-xyz
  - buildconf
  - executing 'configure --help' should now contain a dbase option
  - configure --enable-cli --enable-dbase
  - nmake
  - test the binary with a 'php -m' command, to make sure dbase exists
**

Hopefully this helps someone else in the future!

-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] dbase extension for PHP 5.3.0

2009-07-22 Thread Jeff McKenna

gunawan wrote:
Suddenly I thinking about ODBC.. how about using ODBC to help reading 
dbase?


jeff:
Is there a limit or something if you using ODBC for your source?


In my case I maintain an installer that contains several old 
applications (relying on the dbase functions), so instead of modifying 
all that code (that I don't know a thing about) I'll just use the 
PECL:dbase extension.


-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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



[PHP-WIN] "CLI has stopped working"

2010-11-18 Thread Jeff Dege
I'm trying to run a command-line php script, using php.exe version 5.2.6 (This 
is the version of PHP that is included with MS4W 2.3.1):

F:\ms4w\Apache\cgi-bin>php.exe -v
PHP 5.2.6 (cli) (built: May  2 2008 18:02:07)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Running under Windows Server 2007 SP2, I get an error: "CLI has stopped 
working."

Browsing around, I see reports of this problem as far back as 2007, but nobody 
seems to have a definitive answer as to why this is happening, or when it was 
fixed.  Various reports of "fixes" are reported, following by other folks 
saying it hadn't worked for them.

Does anyone have a clear explanation for what is going on?  Is it a 
configuration problem?  Or is it a bug that has been fixed?  Or a bug that 
hasn't yet been fixed?

I'm stumbling around in the dark, and my customer is getting demanding.



RE: [PHP-WIN] "CLI has stopped working"

2010-11-19 Thread Jeff Dege
> On Thu, Nov 18, 2010 at 5:41 PM, Jeff Dege 
> wrote:
> > I'm trying to run a command-line php script, using php.exe version 5.2.6
> (This is the version of PHP that is included with MS4W 2.3.1):
> >
> > F:\ms4w\Apache\cgi-bin>php.exe -v
> > PHP 5.2.6 (cli) (built: May  2 2008 18:02:07) Copyright (c) 1997-2008
> > The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend
> > Technologies
> >
> > Running under Windows Server 2007 SP2, I get an error: "CLI has stopped
> working."
> >
> > Browsing around, I see reports of this problem as far back as 2007, but
> nobody seems to have a definitive answer as to why this is happening, or
> when it was fixed.  Various reports of "fixes" are reported, following by 
> other
> folks saying it hadn't worked for them.
> >
> > Does anyone have a clear explanation for what is going on?  Is it a
> configuration problem?  Or is it a bug that has been fixed?  Or a bug that
> hasn't yet been fixed?
> >
> > I'm stumbling around in the dark, and my customer is getting demanding.

> -Original Message-
> From: Richard Quadling [mailto:rquadl...@gmail.com]
> Sent: Thursday, November 18, 2010 11:16 AM
> To: Jeff Dege
> Cc: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] "CLI has stopped working"
> 
> On 18 November 2010 16:41, Jeff Dege  wrote:
> > has stopped working
> 
> Do you have anything in the Event Application log?
> 
> Error reporting enabled? If so, anything in the PHP Error logs?
> 
> I don't think the error message is generated by PHP, but by Windows.
> If this is so, then I'd expect Windows to be reporting it somewhere.
> 
> Have you added new extensions recently?

This isn't a new error - I've found multiple references to it when running PHP 
CLI on Windows Vista and Windows 7 that go back a number of years.  But I've 
not been able to find an official bug report, or a discussion of a fix.

I wasn't looking for help in tracking it down, I was hoping someone would be 
familiar with it.

> -Original Message-
> From: Pierre Joye [mailto:pierre@gmail.com]
> Sent: Thursday, November 18, 2010 10:58 AM
> To: Jeff Dege
> Cc: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] "CLI has stopped working"
> 
> hi,
> 
> Download a decent PHP version from http://windows.php.net and try again
> (I have no idea what MS4W is :).
> 
> Cheers,

MS4W is "MapServer for Windows", a bundled package of Apache, PHP, and the 
Mapserver mapping application software.  It's latest non-beta version includes 
PHP version 5.2.6.

I just tried the latest beta version of MS4W, which includes PHP version 5.6.3, 
and this no longer has the problem.




[PHP-WIN] PHP Wiki Windows StepByStepBuild

2011-04-01 Thread Jeff McKenna

Hello everyone,

I see that the PHP Wiki has been down, and I want to access the 
wonderful StepByStepBuild instructions there 
(http://wiki.php.net/internals/windows/stepbystepbuild).  (I even 
contributed to that page)  But I need to follow the steps again now and 
I did not record them locally.  Is there another host of those exact 
same wiki instructions somewhere?


Thanks everyone,

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] PDo or MySQLi

2012-02-20 Thread Jeff McKenna

On 12-02-20 3:35 PM, Gavin wrote:

All,

Not sure if i am about to stir a hornets nest, but hey ho.

I have started learning OOP PHP, and it seems there is a lot of debate
in the db area.

What is peoples preference in db?? Do you use PDO over MySQLi or visa
versa?

What are the main differences?



No question here: PHP with PostgreSQL (and since I am in the geospatial 
realm, with PostGIS as well).


-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



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



Re: [PHP-WIN] PHP 5.4 extension building problem

2012-09-25 Thread Jeff McKenna
Hello Carlo,

I hit issues with PHP 5.4 with an extension for the MapServer project; I
believe the errors/changes could be similar (not Windows specific
however), so you can see the changes in our case needed at
https://github.com/mapserver/mapserver/commit/0d68cd5c06fa97a9d403c11e66d3ab99a16bc78d

Hope that helps.

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 12-07-23 9:01 AM, Carlo Pastorino wrote:
> Hello everybody,
> 
> I have a project which uses a custom made php extension which adds some
> "native" functionalities and classes to the php framework on Windows.
> In order to build this extension I use a Visual Studio solution correctly
> configured (I guess) to add the correct php headers and preprocessor
> definitions.
> My problem is that my extension (and my Visual Studio project), which was
> working fine using php5.2 and php5.3, is giving me linking errors using
> php5.4.5.
> 
> In particular, I get the following error when building the extension:
> 
> unresolved external symbol "__declspec(dllimport) char const * (__cdecl*
> zend_new_interned_string)(char const *,int,int,void * * *)"
> (__imp_?zend_new_interned_string@@3P6APBDPBDHHPAPAPAX@ZA)
> 
> this symbol is used by the INIT_CLASS_ENTRY macro and should be defined in
> the zend_string.h header but, here I am totally guessing, I think some
> missing "#define" in my code is preventing my extension to be linked
> correctly.
> 
> However, enough with the talk, I prepared a simple Visual Studio 2010
> solution containing a very simple extension implementation which should let
> you see the problem.
> You can find it here:
> 
> http://neologica.it/test_ext.7z
> 
> Everything needed to build is contained with the archive. 
> The solutions contains 2 main configuration, *._5.3 and *.5.4 which
> respectively use php5.3 headers and lib, and php5.4(.5) headers and lib. By
> "lib" I mean the php5ts.lib found inside the php binary package under the
> "dev" folder.
> The first one builds and works fine producing the dll for the extension
> while the second one should display the error.
> 
> Can anyone help me with this issue? Or, at least, point me to someone (or
> somewhere) where I can find any help?
> 
> Thank you in advance,
> Regards
> Carlo Pastorino.
> 
> 
> 
> 


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



[PHP-WIN] mail() gives Unknown error from command line...

2002-01-15 Thread Jeff D. Hamann

Why does this one line script execute when run from the web browser and not
from the command line? That is to say, when I run this one line script in a
web browser, the code executes, mail is sent, and I'm happy. When I attempt
to execute the script from the command line "php < mailtest.php", it doesn't
work.



this yields when run from the command line...

X-Powered-By: PHP/4.0.6
Content-type: text/html


Warning:  Unknown error in - on line 2

I would like to run this from the command line.

jeff.


--
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
[EMAIL PROTECTED]
www.hamanndonald.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-WIN] Re: mail() gives Unknown error from command line...

2002-01-15 Thread Jeff D. Hamann

I mean...





"Jeff D. Hamann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why does this one line script execute when run from the web browser and
not
> from the command line? That is to say, when I run this one line script in
a
> web browser, the code executes, mail is sent, and I'm happy. When I
attempt
> to execute the script from the command line "php < mailtest.php", it
doesn't
> work.
>
>  mail( [EMAIL PROTECTED], "subject", "test" );
> ?>
>
> this yields when run from the command line...
>
> X-Powered-By: PHP/4.0.6
> Content-type: text/html
>
> 
> Warning:  Unknown error in - on line 2
>
> I would like to run this from the command line.
>
> jeff.
>
>
> --
> Jeff D. Hamann
> Hamann, Donald & Associates, Inc.
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> Bus. 541-753-7333
> Cell. 541-740-5988
> [EMAIL PROTECTED]
> www.hamanndonald.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-WIN] command line are -c doesn't work on win2k?

2002-01-17 Thread Jeff D. Hamann

I've been trying to figure out what was wrong with my script...



from the command line,

php mail_test.php

and getting,

X-Powered-By: PHP/4.0.6
Content-type: text/html

attempting to deliver the mail
Warning:  Unknown error in mail_test.php on line 3

Then I found a solution at http://bugs.php.net/bug.php?id=6742 ,

[22 Nov 2000 5:21am] [EMAIL PROTECTED]
After a few emails this really got solved.
Adding -c/path/to/phpini/ (command line)
was the solution.

--Jani
but, when I tried it,
php -c c:\php mail_test.php,
Again, the results were,
X-Powered-By: PHP/4.0.6Content-type: text/html

attempting to deliver the mail
Warning:  Unknown error in mail_test.php on line
3


So, I tried a gazillion permitations on -c, -c /php, -c
c:/php -c:\php\php.ini, etc, etc, etc, to no avail...

I finally moved the script into the same dir as php.exe and it worked fine.
The problem is that I need to run the script from the "normal" path and not
from c:\php...

Does the -c switch actually work? How can I run this script from another
dir? Is this a bug?

Thanks,
Jeff.


--
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
[EMAIL PROTECTED]
www.hamanndonald.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]




Re: [PHP-WIN] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann

the path to php is already in the PATH variable...

I'm not doing anything different that http://bugs.php.net/bug.php?id=6742
,but for some reason the -c doesn't make a difference...

Jeff.


"Dl Neil" <[EMAIL PROTECTED]> wrote in message
0d4f01c1a00e$87036ee0$2916100a@jrbrown">news:0d4f01c1a00e$87036ee0$2916100a@jrbrown...
> Jeff,
>
> The following batch files works for me (WinNTWS 4.0 SP6a):-
>
> cd c:\program files\php
> php.exe -q c:\.path.\w.php >>c:\.path.\webute.log
>
> NB the first line reflects my PHP config - your mileage may vary!
>
> Of course the other possibility is to add the PHP folder into the PATH
environment variable...
>
> Regards,
> =dn
>
>
> - Original Message -
> From: "Jeff D. Hamann" <[EMAIL PROTECTED]>
> To: <>; <[EMAIL PROTECTED]>
> Sent: 18 January 2002 07:00
> Subject: [PHP-WIN] command line are -c doesn't work on win2k?
>
>
> > I've been trying to figure out what was wrong with my script...
> >
> >  > mail("[EMAIL PROTECTED]", "Subject", "command line mail() test");
> > ?>
> >
> > from the command line,
> >
> > php mail_test.php
> >
> > and getting,
> >
> > X-Powered-By: PHP/4.0.6
> > Content-type: text/html
> >
> > attempting to deliver the mail
> > Warning:  Unknown error in mail_test.php on line
3
> >
> > Then I found a solution at http://bugs.php.net/bug.php?id=6742 ,
> >
> > [22 Nov 2000 5:21am] [EMAIL PROTECTED]
> > After a few emails this really got solved.
> > Adding -c/path/to/phpini/ (command line)
> > was the solution.
> >
> > --Jani
> > but, when I tried it,
> > php -c c:\php mail_test.php,
> > Again, the results were,
> > X-Powered-By: PHP/4.0.6Content-type: text/html
> >
> > attempting to deliver the mail
> > Warning:  Unknown error in mail_test.php on line
> > 3
> >
> >
> > So, I tried a gazillion permitations on -c, -c /php, -c
> > c:/php -c:\php\php.ini, etc, etc, etc, to no avail...
> >
> > I finally moved the script into the same dir as php.exe and it worked
fine.
> > The problem is that I need to run the script from the "normal" path and
not
> > from c:\php...
> >
> > Does the -c switch actually work? How can I run this script from another
> > dir? Is this a bug?
> >
> > Thanks,
> > Jeff.
> >
> >
> > --
> > Jeff D. Hamann
> > Hamann, Donald & Associates, Inc.
> > PO Box 1421
> > Corvallis, Oregon USA 97339-1421
> > Bus. 541-753-7333
> > Cell. 541-740-5988
> > [EMAIL PROTECTED]
> > www.hamanndonald.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]




[PHP-WIN] kermit? getting data from comm port?

2002-01-23 Thread Jeff D. Hamann

I'm not sure if this is really a php question or not?

I've got an application (win32, apache, php, mysql) where users download
data from a data recorder, using kermit (x/y/z modem), onto a server
(preferrably not going from the data recorder to a file on the hard disk,
then from the file to the upload form then into the database).

I would really like to be able to go directly from the data recorder (has to
go through comm port at least for now) through a php script into the
database using my php functions). Is it possible to get access to the comm
port using php? Or am I stuck with all the intermediate steps which would
be.

1) start the tx from the data recorder.
2) start exec() from php script from form  button
3) when exec() is finished, then read the downloaded file into the mysql
database...

this has to be done on the server machine. is it possibleto do this from a
client (browser)?

Jeff.

--
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
[EMAIL PROTECTED]
www.hamanndonald.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-WIN] monster form and compression?

2002-12-27 Thread Jeff D. Hamann
I have a monster form (really a funky grid - hey the client is always right)
that does not display entirely each time the form is displayed. Some times,
quite repeatably, the bottom half of the form's select boxes will be blank
(not good). Is there a way to compress the web page before it gets sent, or
any method to ensure the page will display correctly?

Jeff.

--
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
[EMAIL PROTECTED]
www.hamanndonald.com




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