php-windows Digest 3 Mar 2002 03:32:29 -0000 Issue 1026

Topics (messages 12399 through 12413):

Re: error query
        12399 by: Devon Knowles

Errors when building in .NET
        12400 by: Devon Knowles

Parse error?!
        12401 by: Aleksandar Skodric
        12402 by: Devon Knowles
        12403 by: Aleksandar Skodric
        12410 by: Shrock, Court

Warning: Undefined variable
        12404 by: crizz
        12405 by: crizz
        12412 by: DL Neil
        12413 by: crizz

Re: any comment?
        12406 by: alain samoun

PHP Troubles
        12407 by: R0bin
        12408 by: alain samoun
        12409 by: Shrock, Court

Re: Dumb Question
        12411 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 ---
Try building the SQL statement outside of the query. I've usually found that
it fixes the problem.

$sql = "SELECT ID, alt FROM " . $MID . " LIMIT 10";
$newpics = mysql_query($sql);

- Devon Knowles


--- End Message ---
--- Begin Message ---
I am getting +100 errors when I try to build PHP in .NET, specifically when
compiling the following files:

d:\program files\microsoft visual studio
.net\vc7\platformsdk\include\winnt.h
d:\program files\microsoft visual studio
.net\vc7\platformsdk\include\winbase.h
d:\program files\microsoft visual studio
.net\vc7\platformsdk\include\rpcasync.h

The latter two may just error out because of problems in the first, but
either way, the build fails. If anyone knows what I am doing wrong or how to
fix this, please let me know.

Thanks in advance.

- Devon Knowles


--- End Message ---
--- Begin Message ---
Hi all...
 
This is my first posting, so if question has been already asked (and answerd) my apologise : )
 
OK, here it goes. I had Apache on Win XP. It all worked fine till some time ago... I decided to try some other web servers and now I'm running Sambar 5.1 with php 4.
 
But, I still get the following message:
 

Parse error: parse error in E:\Root\sidn\sidn_overdracht.php on line 32
and this is line 32
 
$subject = "Overdracht van de domein " .$domain;
 
If I comment this line it goes to the next one... as if everything that has $ in code is not recognised. However, Sambar is running well and PHP works (phpinfo get's the page that it should). So I suspect that it is sth in php.ini (probablt I'm wrong, but... :)
 
Could anyone help me with this one?
 
Thanx!
 
Alex
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
--- End Message ---
--- Begin Message ---
Can you post the surrounding code for us? Sometimes the line number won't literally 
match the line number in the file.

- Devon Knowles
--- End Message ---
--- Begin Message ---
Sure...
 
this is it:
 
if ($bvorm == "anders" && $bedrijfsvorm_anders == "leeg")
{
    echo "Opgegeven bedrijfsvorm is niet juist. Wilt u dit controleren en opnieuw aanvragen.";
    exit;
}
  $to  = "[EMAIL PROTECTED]" . ", " ;
  $to .= "[EMAIL PROTECTED]"; //wij sturen een e-mail naar domain-ops voor archief!!!
  
     
//dan maken wij subject voor e-mail
$subject = "Overdracht van de domein " .$domain;
 
$bodyk =
"----------------------- Provider ------------------------------
provider-id..................: 300060
provider-password............: lyconuwa
provider-ticket..............:
provider-authenticatie.......: static-password"
 
the code goes long further...
 
But every time it says parse error if it comes to $...
 
Thanx
 
-------Original Message-------
 
Date: Saturday, March 02, 2002 18:22:04
Subject: [PHP-WIN] Re: Parse error?!
 
Can you post the surrounding code for us? Sometimes the line number won't literally match the line number in the file.

- Devon Knowles

____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
--- End Message ---
--- Begin Message ---
I see a closing double-quote, but I do not see a semicolon  after that
double-quote on the last line you included:

provider-authenticatie.......: static-password"

should it be:

provider-authenticatie.......: static-password";

Can't really see anything else, but I have had some misleading errors like
this because I changed some code and forgot a closing }, ", or '.

-----Original Message-----
From: Aleksandar Skodric
To: [EMAIL PROTECTED]
Sent: 3/2/02 10:06 AM
Subject: Re: [PHP-WIN] Re: Parse error?!


Sure...
 
this is it:
 
if ($bvorm == "anders" && $bedrijfsvorm_anders == "leeg")
{
    echo "Opgegeven bedrijfsvorm is niet juist. Wilt u dit controleren
en opnieuw aanvragen.";
    exit;
}
  $to  = " [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> " . ",
" ;
  $to .= " [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> "; //wij
sturen een e-mail naar domain-ops voor archief!!!
  
      
//dan maken wij subject voor e-mail
$subject = "Overdracht van de domein " .$domain;
  
$bodyk =
"----------------------- Provider ------------------------------
provider-id..................: 300060
provider-password............: lyconuwa
provider-ticket..............:
provider-authenticatie.......: static-password"
 
the code goes long further...
 
But every time it says parse error if it comes to $...
 
Thanx
--- End Message ---
--- Begin Message ---
I'm really newbye in PHP and just installed php on my IIS on my XP. All
sample scripts I tried returns me error messages about "Warning: Undefined
variable"
It's probably something with the configuration, right?

What can i do about it ?

thanks
crizz



--- End Message ---
--- Begin Message ---
I'm really newbye in PHP and just installed php on my IIS on my XP. All
sample scripts I tried returns me error messages about "Warning: Undefined
variable"
It's probably something with the configuration, right?

What can i do about it ?

thanks
crizz


--- End Message ---
--- Begin Message ---
crizz,

> I'm really newbye in PHP and just installed php on my IIS on my XP.
All
> sample scripts I tried returns me error messages about "Warning:
Undefined
> variable"
> It's probably something with the configuration, right?


You got it!
Check out php.ini (in Windows folder).
There is a load of 'documentation' in amongst the settings/definitions.
There are a number of 'levels' for error reporting, so you can dial it
back a notch if you want.

Regards,
=dn

--- End Message ---
--- Begin Message ---
Ok, I changed error_reporting to "no". But now I take no notice about errors
at all. Any convinience mode for a novice?


"Dl Neil" <[EMAIL PROTECTED]> wrote in message
121301c1c250$9afa6d40$c200a8c0@jrbrown...">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...;
> crizz,
>
> > I'm really newbye in PHP and just installed php on my IIS on my XP.
> All
> > sample scripts I tried returns me error messages about "Warning:
> Undefined
> > variable"
> > It's probably something with the configuration, right?
>
>
> You got it!
> Check out php.ini (in Windows folder).
> There is a load of 'documentation' in amongst the settings/definitions.
> There are a number of 'levels' for error reporting, so you can dial it
> back a notch if you want.
>
> Regards,
> =dn
>


--- End Message ---
--- Begin Message ---
+1 Court ;)
First, they ignore you, then they laugh at you, then they fight you, then we
win! [Gandhi]
A+
Alain


-----Original Message-----
From: Shrock, Court [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:52 PM
To: 'John Meyer '; '[EMAIL PROTECTED] '
Subject: RE: [PHP-WIN] any comment?


re: open source and php--I agree with John

re: the article--It is a rather obvious attempt to take pressure off of
Microsoft.

The paragraph:
"In the past, Microsoft's Internet Information Server has had a slew of
problems with flaws in its components that allowed hackers and worms to
break in. This time, the software appears to be less vulnerable to the PHP
flaw."

has only one purpose, try and make microsoft look a little better.  Yes,
this is a particularly bad bug, but a link to the patch was posted WITH the
advisory.  In the microsoft world, patches are not so forcoming to their
enormous amounts of security problems--what's the average wait for a patch
from redmond to fix IIS--and more importantly, how many times has a patch
been necessary?

Nothing more than standard microsft tactics--an example:

"PHP is still a changing language. There are minor differences among PHP
releases. For example, include_once is only available from PHP 4.0 patch
level 1." from
http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechn
ol/iis/deploy/depovg/miglamp.asp

Microsoft is the king of marketing new features with their product releases
that are spread far apart.  They put a negative spin on one of the many
awesome side-effects of open source--code constantly gets better in every
release no matter how tiny; this may be a foreign concept to those used to
the endless stream of security/bug fix patches from redmond--they get to
wait years (XP SP1 took a year) for an increase in features and they still
lack the code stability that the wait was supposed to afford them.

-----Original Message-----
From: John Meyer
To: [EMAIL PROTECTED]
Sent: 3/1/02 7:55 PM
Subject: Re: [PHP-WIN] any comment?

Patch done, end of story.
----- Original Message -----
From: "Afan Pasalic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:21 AM
Subject: [PHP-WIN] any comment?


"Flaws found in PHP scripting language"

http://zdnet.com.com/2100-1105-847252.html


Any comment?


Afan

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

--- End Message ---
--- Begin Message ---
Hello,
on a tutorial i have for socket programming in php, it says "run this script
in the console"
i am not knowing what this means, and if i can do it in windows, i only have
Windows ME and Windows XP and when i run C:\php\php.exe in the ms dos
window, command.com locks up, and i have to end it in task manager, please
help.

thank you in advance.


--- End Message ---
--- Begin Message ---
To start, put your PHP testsocket file in your C:\php
Second: Open an MSDOS window from Start button
Third: At prompt CD to c:\php
Last: type "PHP testsocket.php" and enter
A+
Alain

-----Original Message-----
From: R0bin [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 12:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP Troubles


Hello,
on a tutorial i have for socket programming in php, it says "run this script
in the console"
i am not knowing what this means, and if i can do it in windows, i only have
Windows ME and Windows XP and when i run C:\php\php.exe in the ms dos
window, command.com locks up, and i have to end it in task manager, please
help.

thank you in advance.



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

--- End Message ---
--- Begin Message ---
The most likely reason it was "locking up" was that php.exe was expecting
input from STDIN since you did not specify a filename when you started it.
In the future, try pressing CTRL-Z, CTRL-D, or CTRL-C (I can't remember
which one it uses right now) to get it to terminate.

-----Original Message-----
From: R0bin
To: [EMAIL PROTECTED]
Sent: 3/2/02 12:20 PM
Subject: [PHP-WIN] PHP Troubles

Hello,
on a tutorial i have for socket programming in php, it says "run this
script
in the console"
i am not knowing what this means, and if i can do it in windows, i only
have
Windows ME and Windows XP and when i run C:\php\php.exe in the ms dos
window, command.com locks up, and i have to end it in task manager,
please
help.

thank you in advance.



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Worry not, the only dumb question is the one that is not asked [after you
have searched for an answer yourself].....if you are running php on windows
(which I assume you are because you sent it to the windows list), you do not
need to worry about the vulnerability because it only affects some
solaris/linux boxes.  The patch that you downloaded needs to be applied to
PHP's source code.  Since you (most likely), are running a binary version on
windows, the patch really won't help you, unless you compiled your binary
yourself.

If you are running linux/solaris, you need to run the command "patch" in the
appropriate directory(s) on the patch file and then recompile.  In linux, do
a "man patch" or equivalent to learn more about patch.  Some more detailed
info can be found at
http://www.math.washington.edu/~chappa/pine/faq/basic.html (of course the
context is a little different)

-----Original Message-----
From: Cary
To: PHP Win List
Sent: 3/2/02 6:44 AM
Subject: [PHP-WIN] Dumb Question

I hate to ask such a dumb question, but :-)

I downloaded the security patch for php4.1.1 but have no clue how to
apply it.
Would one of you please clue me in ?

Thanks,
Cary


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

Reply via email to