php-windows Digest 16 Jul 2002 19:25:26 -0000 Issue 1244

Topics (messages 14780 through 14800):

Re: [PHP] Problem on file_exists()
        14780 by: David Redmond
        14785 by: Chris Hewitt

mail in WIN2K
        14781 by: MAAS

kompilieren mit VC++
        14782 by: Marco Glatz
        14783 by: Luis Ferro

compiling an extension
        14784 by: Marco Glatz

Re: Apache 2.0.39 and PHP 4.2.1 install problem (PHP won't let apache
        14786 by: Hendrik

PHP debugger
        14787 by: Jan Hanèiè
        14788 by: Mikey

Forward
        14789 by: João
        14790 by: Piotr Pluciennik
        14791 by: Rich Gray

exec(), passthru()
        14792 by: Matt Babineau
        14793 by: Mikey
        14794 by: Matt Babineau
        14795 by: Mikey

automated billing script
        14796 by: Camelia Moldovan
        14797 by: Vail, Warren

Handling Multi-Select form lists
        14798 by: R.S. Herhuth
        14799 by: Dash McElroy
        14800 by: Shrock, Court

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Jack, try using forward slashes instead of backslashes;eg

$fp = fopen("//nedcoraa/pdf_reports/dealing/filename.ext", "r+");

Cheers

-----Original Message-----
From: Jack [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 16 July 2002 5:02 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Problem on file_exists()


Dear all
I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing
room\report) it stores a lot of PDF reports in there.
I'm trying to use the file_exists() function to detect if a specific file
exist in this folder, but i got a problem is :
It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go
through (dealing room) folder. i had made test on it, i moved a file into
(\\nedcoraa\pdf_reports), then php can detect it, but if i move it to
(\\nedcoraa\pdf_reports\dealing room), then it can't detect the file! why?

I'm using php in windows NT IIS environment!

Please help me!

--
Thx a lot!
Jack
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Jack wrote:

>Dear all
>I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing
>room\report) it stores a lot of PDF reports in there.
>I'm trying to use the file_exists() function to detect if a specific file
>exist in this folder, but i got a problem is :
>It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go
>through (dealing room) folder. i had made test on it, i moved a file into
>(\\nedcoraa\pdf_reports), then php can detect it, but if i move it to
>(\\nedcoraa\pdf_reports\dealing room), then it can't detect the file! why?
>
>I'm using php in windows NT IIS environment!
>
I think you will need to escape the space, usually with a \

HTH
Chris


--- End Message ---
--- Begin Message ---

Hi

Iam trying to use mail in WIN2K PRO, I use IIS. But I only get this in my
browser

Warning: Server Error in c:\inetpub\wwwroot\log.php on line 23

I use code like this. But what should I use for headers?

mail($recipient, $subject, $msg, $mailheaders);

Should I do anything in php.ini? I have configurate it with my snmp mail
server.





--- End Message ---
--- Begin Message ---
Hallo,


ich wollte den Beispiel-Code für ein Modul aus dem Manual kompilieren. Mit
Borland hat es überhaupt nicht funktioniert. Mit VC++ kassiere ich folgende
Fehlermeldungen:

c:\_source_\php-source\main\php_config.h(3) : warning C4005: 'ZEND_API' :
Makro-Neudefinition
        c:\_source_\php-source\zend\zend_config.h(72) : Siehe vorherige
Definition von 'ZEND_API'
c:\_source_\php-source\main\php_config.h(4) : warning C4005: 'ZEND_DLEXPORT'
: Makro-Neudefinition
        c:\_source_\php-source\zend\zend_config.h(75) : Siehe vorherige
Definition von 'ZEND_DLEXPORT'
c:\_source_\php-source\main\php_config.h(2115) : warning C4005: 'zend_isnan'
: Makro-Neudefinition
        c:\_source_\php-source\zend\zend_config.h(52) : Siehe vorherige
Definition von 'zend_isnan'
c:\_source_\php-source\main\php_config.h(2136) : warning C4005:
'zend_finite' : Makro-Neudefinition
        c:\_source_\php-source\zend\zend_config.h(51) : Siehe vorherige
Definition von 'zend_finite'
c:\_source_\php-source\main\snprintf.h(29) : warning C4005: 'vsnprintf' :
Makro-Neudefinition
        c:\_source_\php-source\zend\zend_config.h(49) : Siehe vorherige
Definition von 'vsnprintf'
c:\_source_\php-source\ext\mod_test1\test.cpp(17) : error C2065:
'ZEND_DEBUG' : nichtdeklarierter Bezeichner
Fehler beim Ausführen von cl.exe.

Ist der Beispiel-Code fehlerhaft oder wurde inzwischen wieder was an der API
geändert ?

Hoffe mir kann jemand helfen.


Mit freundlichen Grüssen

Marco Glatz



Dose Maschinenbau GmbH
Industriestrasse 5
77839 Lichtenau

Fon: +49 7227 50 637
Fax: +49 7227 21 89
Mail: mailto:[EMAIL PROTECTED]
URL: http://www.dose.com 
--- End Message ---
--- Begin Message ---
English please???

Luis Ferro


Marco Glatz wrote:

>Hallo,
>
>
>ich wollte den Beispiel-Code für ein Modul aus dem Manual kompilieren. Mit
>Borland hat es überhaupt nicht funktioniert. Mit VC++ kassiere ich folgende
>Fehlermeldungen:
>
>c:\_source_\php-source\main\php_config.h(3) : warning C4005: 'ZEND_API' :
>Makro-Neudefinition
>        c:\_source_\php-source\zend\zend_config.h(72) : Siehe vorherige
>Definition von 'ZEND_API'
>c:\_source_\php-source\main\php_config.h(4) : warning C4005: 'ZEND_DLEXPORT'
>: Makro-Neudefinition
>        c:\_source_\php-source\zend\zend_config.h(75) : Siehe vorherige
>Definition von 'ZEND_DLEXPORT'
>c:\_source_\php-source\main\php_config.h(2115) : warning C4005: 'zend_isnan'
>: Makro-Neudefinition
>        c:\_source_\php-source\zend\zend_config.h(52) : Siehe vorherige
>Definition von 'zend_isnan'
>c:\_source_\php-source\main\php_config.h(2136) : warning C4005:
>'zend_finite' : Makro-Neudefinition
>        c:\_source_\php-source\zend\zend_config.h(51) : Siehe vorherige
>Definition von 'zend_finite'
>c:\_source_\php-source\main\snprintf.h(29) : warning C4005: 'vsnprintf' :
>Makro-Neudefinition
>        c:\_source_\php-source\zend\zend_config.h(49) : Siehe vorherige
>Definition von 'vsnprintf'
>c:\_source_\php-source\ext\mod_test1\test.cpp(17) : error C2065:
>'ZEND_DEBUG' : nichtdeklarierter Bezeichner
>Fehler beim Ausführen von cl.exe.
>
>Ist der Beispiel-Code fehlerhaft oder wurde inzwischen wieder was an der API
>geändert ?
>
>Hoffe mir kann jemand helfen.
>
>
>Mit freundlichen Grüssen
>
>Marco Glatz
>
>
>
>Dose Maschinenbau GmbH
>Industriestrasse 5
>77839 Lichtenau
>
>Fon: +49 7227 50 637
>Fax: +49 7227 21 89
>Mail: mailto:[EMAIL PROTECTED]
>URL: http://www.dose.com 
>
>  
>



--- End Message ---
--- Begin Message ---

hi there,

i tried to compile the example-code for an extension from the php-manual.
first i trief compiling it with borland c++ builder, but that didn't work.
so i tried to compile it with vc++, but the i get the following errors:


c:\_source_\php-source\ext\mod_test1\test.cpp(17) : error C2065:
'ZEND_DEBUG' : no declared constant.

is the example-code wrong or are there some changes in the api ?

hope somone can help me out.

greets, marco
--- End Message ---
--- Begin Message ---
the apache2 imp is just EXPERIMENTAL.
ya my english sucks..


Dash McElroy schrieb:
> Due to the CERT notification about the Apache Web Server Chunk Handling
> Vulnerability, I decided to update my Apache2 version from 2.0.35 to 2.0.39.
> I have tried this on Win2000Pro SP2 and WinNT4 workstation SP6a.
> 
> The web server installs fine. PHP itself just comes from the zip file and I
> put it in C:\PHP.
> 
> Here are the error messages I get.
> 
> * This one is from NT4.0 workstation SP6a:
> _____
> 
> C:\Program Files\Apache Group\Apache2\bin>apache -t
> Syntax error on line 173 of C:/Program Files/Apache
> Group/Apache2/conf/httpd.con
> f:
> Cannot load C:/php/sapi/php4apache2.dll into server: The specified module
> could
> not be found.
> 
> C:\Program Files\Apache Group\Apache2\bin>
> _____
> 
> * This is what Win2k tells me:
> _____
> 
> C:\Program Files\Apache Group\Apache2\bin>apache -t
> apache: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not
> compa
> tible with this version of Apache.
> Please contact the vendor for the correct version.
> 
> C:\Program Files\Apache Group\Apache2\bin>
> _____
> 
> * When I try a net start apache2 (on both platforms) I get this:
> _____
> 
> C:\Program Files\Apache Group\Apache2\bin>net start apache2
> The Apache2 service is starting.
> The Apache2 service could not be started.
> 
> A service specific error occurred: 1.
> 
> More help is available by typing NET HELPMSG 3547.
> 
> 
> C:\Program Files\Apache Group\Apache2\bin>
> _____
> 
> ACK!!!
> 
> Apache will serve up HTML pages fine if I take out all the PHP related items
> in httpd.conf. Unfortunately, this does wonders for my PHP :). I have no
> huge rush as this machine is my testbed for apache/PHP and I can easily load
> 2.0.35 again...
> 
> -Dash
> 
> Experience is what causes a person to make new mistakes instead of old ones.


--- End Message ---
--- Begin Message ---
Hi

I am wondering if there is a debugger for PHP.

I am using the Programmer studio wich supports many languages, and have a 
menu called Debugg.
But I must define a debigger.
But is there any for PHP ?



LP
JaN
www.3delavnica.com
www.ks-con.si
  

--- End Message ---
--- Begin Message ---
Zend Studio allows for debugging, but AFAIKis a standalone tool and won't
integrate with other dev environments... http://www.zend.com

Mikey

> -----Original Message-----
> From: Jan Haneie [mailto:[EMAIL PROTECTED]]
> Sent: 16 July 2002 23:14
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP debugger
>
>
> Hi
>
> I am wondering if there is a debugger for PHP.
>
> I am using the Programmer studio wich supports many languages, and have a
> menu called Debugg.
> But I must define a debigger.
> But is there any for PHP ?
>
>
>
> LP
> JaN
> www.3delavnica.com
> www.ks-con.si
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>


--- End Message ---
--- Begin Message ---
How can I forward the user to another page?

Thanks,
JP

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--- End Message ---
--- Begin Message ---
Hi,

As I understand, you want to redirect user to a
different page. Try header("Location:
http://www.yourdomain.com/";); 

Your Header function MUST be called before any output
is send, so take care about that (spaces before
opening php tag, any HTML code and so on..). Otherwise
you will get an error - "headers already sent" or
something like that. It is very important!!! 

Read the manual for more precise explanation of this
function. 

HTH 
Piotr


--- João Paulo Batistella <[EMAIL PROTECTED]>
wrote:
> How can I forward the user to another page?
> 
> Thanks,
> JP
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--- End Message ---
--- Begin Message ---
Try -> header("location: <next page>")

-----Original Message-----
From: Joco Paulo Batistella [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 14:40
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Forward


How can I forward the user to another page?

Thanks,
JP

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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

--- End Message ---
--- Begin Message ---
I am trying to run one command, then run a second command to pull the
results from the first command. is there a way to do this? Its seems
when I run the first command like
 
passthru(command1)
 
then run the second command to get the results from the first
 
passthru(command2)
 
the results of command2 are not what command1 processed, so they are not
interacting how I need them to. Does anyone know of a solution to this?
 
Matt Babineau
MCWD / CCFD
-----------------------------------------
e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
 
--- End Message ---
--- Begin Message ---
How about:

passthru ("command1 > command2");

or

passthru ("command1 | command2");

HTH

Mikey

> -----Original Message-----
> From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Sent: 16 July 2002 16:26
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] exec(), passthru()
> 
> 
> I am trying to run one command, then run a second command to pull the
> results from the first command. is there a way to do this? Its seems
> when I run the first command like
>  
> passthru(command1)
>  
> then run the second command to get the results from the first
>  
> passthru(command2)
>  
> the results of command2 are not what command1 processed, so they are not
> interacting how I need them to. Does anyone know of a solution to this?
>  
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>  
> 

--- End Message ---
--- Begin Message ---
What does that operator do?

Matt Babineau
MCWD / CCFD
-----------------------------------------
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105


-----Original Message-----
From: Mikey [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 11:41 AM
To: Matt Babineau; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] exec(), passthru()


How about:

passthru ("command1 > command2");

or

passthru ("command1 | command2");

HTH

Mikey

> -----Original Message-----
> From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Sent: 16 July 2002 16:26
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] exec(), passthru()
> 
> 
> I am trying to run one command, then run a second command to pull the 
> results from the first command. is there a way to do this? Its seems 
> when I run the first command like
>  
> passthru(command1)
>  
> then run the second command to get the results from the first
>  
> passthru(command2)
>  
> the results of command2 are not what command1 processed, so they are 
> not interacting how I need them to. Does anyone know of a solution to 
> this?
>  
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX 
> 601 Manchester, NH 03105
>  
> 


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

--- End Message ---
--- Begin Message ---
These are standard command line operators, I am not sure if you can use the
pipe '|' operator in windows, but I know you can use the '>' operator to
redirect the output from one program into another... I have since realised
that this would be completely useless for you if the first command cannot
redirect it's output to STDOUT (i.e. the console window)

> -----Original Message-----
> From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Sent: 16 July 2002 17:12
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] exec(), passthru()
>
>
> What does that operator do?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e: [EMAIL PROTECTED]
> p: 603.943.4237
> w: http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>
> -----Original Message-----
> From: Mikey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 11:41 AM
> To: Matt Babineau; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] exec(), passthru()
>
>
> How about:
>
> passthru ("command1 > command2");
>
> or
>
> passthru ("command1 | command2");
>
> HTH
>
> Mikey
>
> > -----Original Message-----
> > From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> > Sent: 16 July 2002 16:26
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] exec(), passthru()
> >
> >
> > I am trying to run one command, then run a second command to pull the
> > results from the first command. is there a way to do this? Its seems
> > when I run the first command like
> >
> > passthru(command1)
> >
> > then run the second command to get the results from the first
> >
> > passthru(command2)
> >
> > the results of command2 are not what command1 processed, so they are
> > not interacting how I need them to. Does anyone know of a solution to
> > this?
> >
> > Matt Babineau
> > MCWD / CCFD
> > -----------------------------------------
> > e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> > p: 603.943.4237
> > w:  <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX
> > 601 Manchester, NH 03105
> >
> >
>
>
> --
> 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
>
>
>
>


--- End Message ---
--- Begin Message ---

Is there any free script for automated billing (through IBill, Verisign ,Paypal etc ).

Or , maybe you can tell me how can be developed a script like this.

Thanks a lot,

C.



---------------------------------
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
--- End Message ---
--- Begin Message ---
check out

http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/


Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658


-----Original Message-----
From: Camelia Moldovan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] automated billing script



Is there any free script for automated billing (through IBill, Verisign
,Paypal etc ).

Or , maybe you can tell me how can be developed a script like this.

Thanks a lot,

C.



---------------------------------
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
--- End Message ---
--- Begin Message ---

I am using a multi-select form list...how do I go about retrieving the
multiple values?  My current script only pulls the first value using:

$_POST['multi_select'];

Thanks,
Ron
--- End Message ---
--- Begin Message ---
I have a field like this as well. I believe you have to make the variable
name with brackets at the end like this:

<input type=multiple (or however that works) name=multi_select[] blah blah>

That seems to do the trick. It'll make the variable multi_select an array
(obviously).

-Dash

-----Original Message-----
From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 11:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Handling Multi-Select form lists



I am using a multi-select form list...how do I go about retrieving the
multiple values?  My current script only pulls the first value using:

$_POST['multi_select'];

Thanks,
Ron

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This is the correct form:

<select multiple type="select" name="choices[]">
  <option value="1">Option 1</option>
  <option value="2">Option 2</option>
</select>


When the above is submited, $_POST['choices'] will be an array that contains
the selected options.  If you have register_globals = On in your php.ini,
$choices will also be an array of selected options.

> -----Original Message-----
> From: Dash McElroy [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 16, 2002 11:30 AM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Handling Multi-Select form lists
> 
> 
> I have a field like this as well. I believe you have to make 
> the variable name with brackets at the end like this:
> 
> <input type=multiple (or however that works) 
> name=multi_select[] blah blah>
> 
> That seems to do the trick. It'll make the variable 
> multi_select an array (obviously).
> 
> -Dash
> 
> -----Original Message-----
> From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 16, 2002 11:30 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Handling Multi-Select form lists
> 
> 
> 
> I am using a multi-select form list...how do I go about 
> retrieving the multiple values?  My current script only pulls 
> the first value using:
> 
> $_POST['multi_select'];
> 
> Thanks,
> Ron
> 
> -- 
> 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
> 
--- End Message ---

Reply via email to