php-windows Digest 3 Sep 2002 00:33:25 -0000 Issue 1320
Topics (messages 15631 through 15642):
Help on PHP-Newbie
15631 by: Suryadevara Venkata Raghavarao
Re: Help on new install please ..
15632 by: Giannis Vrentzos
all variables unset in w2k
15633 by: Lasse Riis
15634 by: Svensson, B.A.T. (HKG)
15635 by: Luis Moreira
15636 by: Lasse Riis
15639 by: Lasse Riis
15640 by: Luis Moreira
all variables unset on w2k pro.
15637 by: Lasse Riis
All variables are unset in w2k
15638 by: Lasse Riis
COM and Word, how?
15641 by: Michelle
Multiple recipients with mail();
15642 by: Davy Obdam
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 ---
Hi every one,
I'm trying to configure PHP4 with APache2.X on win2000 server. When i'm trying open
the .php file from the browser ie http://myserver:8080/setup.php ,i could able to see
the code writen in that perticular file.I think it's not executing the code from the
browser.
Is there any way to configure PHP4 without complining from VC++ ?
I did't compile the code with any one of the editor.
Can any one help me out with this issue.
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
--- End Message ---
--- Begin Message ---
Try to find DirectoryIndex in httpd.conf and check if index.php is
there.It has to look like DirectoryIndex index.html index.php
John
David Tod Sigafoos wrote:
> I am having problems on a new install of PHP and Apache
>
> Win2k, Php 4.2.2, apache 1.3.26
>
> 1) Install apache. Then browse to 127.0.0.1 and get the apache screen
> 2) unzip php and copy to c:/php
> 3) install.txt
> a) dlls are all in the /php directory with php.exe (did not copy to
> windows/system32
> b) copied ini to windows director
> c) modified ini file extension_dir = c:\php
> d) modified ini file document_root = "c:\program files\apache
> group\apache\htdocs\"
> e) no extensions
>
>
> Web Server Config: First try SAPI
>
> a) copied php4ts.dll to windows/system32 directory
> b) added following lines to httpd.conf
> LoadModule php4_module "c:/php/sapi/php4apache.dll"
> AddModule mod_php4.c
> AddType applicaton/x-httpd-php .php
>
> Start Server .. get message
> [Fri Aug 30 11:43:16 2002] [warn] module mod_php4.c is already added, skipping
> Apache/1.3.26 (Win32) running...
>
> Then bring up browse and try for phpinfo.php script in htdocs
>
> I get the 'download' screen from my netscape browser. It doesnt
> recognize php
>
>
> Web Server Config: Now try php.exe (cgi)
> a) shut down server
> b) modify http.conf.
> # out the lines mentioned above and add the following
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> c) start up server (no message as noted above)
> d) bring up browser and try for phpinfo.php script in htdocs
>
> I get a blank page. upon viewing the source it is
>
> <html><body></body></html>
>
>
> My phpinfo.php record is
>
> <html>
> <?php phpinfo(); ?>
> </html>
>
> This works well from my other server ...
>
> So .. what have I missed ..
>
>
--- End Message ---
--- Begin Message ---
Hi
I'm trying to setup php and apache on my w2k box, everything seems to
work smoothly, only I CAN'T SET ANY VARIABLES!!!!
this script for instance:
<?php
$variable = 'This is a variable!';
echo 'Variable contents: '.$variable;
?>
gives the following output:
Variable contents:
What's wrong? I've tried installing SP1 and SP2 but that makes no
difference. Both the SAPiI module and the cgi binary does it, not only
with apache, the cgi installed on IIS did the same thing. Sombeody help me!
--- End Message ---
--- Begin Message ---
> Hi
> I'm trying to setup php and apache on my w2k box, everything seems to
> work smoothly, only I CAN'T SET ANY VARIABLES!!!!
>
> this script for instance:
> <?php
> $variable = 'This is a variable!';
> echo 'Variable contents: '.$variable;
> ?>
> gives the following output:
> Variable contents:
>
> What's wrong? I've tried installing SP1 and SP2 but that makes no
> difference. Both the SAPiI module and the cgi binary does it, not only
> with apache, the cgi installed on IIS did the same thing. Sombeody help me!
Have you done the required sacrificial at full moon: decapitating two
chickens and splashed there blood over the monitor and computer box
before trying to execute the script?
--- End Message ---
--- Begin Message ---
Try
<?php
$variable = "This is a variable!";
echo "Echo Variable contents: $variable";
?>
Note that $variable is inside the pair of "
On my PC it works both ways, anyway...
----- Original Message -----
From: "Lasse Riis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 12:05 PM
Subject: [PHP-WIN] all variables unset in w2k
> Hi
> I'm trying to setup php and apache on my w2k box, everything seems to
> work smoothly, only I CAN'T SET ANY VARIABLES!!!!
>
> this script for instance:
> <?php
> $variable = 'This is a variable!';
> echo 'Variable contents: '.$variable;
> ?>
> gives the following output:
> Variable contents:
>
> What's wrong? I've tried installing SP1 and SP2 but that makes no
> difference. Both the SAPiI module and the cgi binary does it, not only
> with apache, the cgi installed on IIS did the same thing. Sombeody help me!
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
(sent this, the wrong place, so this is just to get it on the list)
Yeah, I've done all of that, and everything seems to work fine. I can
use all functions but no variables are ever set. That goes for declared
variables like the above, and post/get and cookies. No variables are
ever set. And that kind of takes the fun out of PHP.
At first I thought the problem might go away by reinstalling w2k, up
until a week ago it had been running since feb. 2000. And you know how a
M$ OS behaves when it's been running for a couple of years. On that
setup i had an older apache and php 4.0.4pl1 running smoothly. But i
needed an update cuz in php 4.2.x which is what I'm running on my RH7.3
internet box certain predefined variables are different ($HTTP_FILES[]
and stuff like that.) But on a clean install of w2k the problem
persisted.......
Someone mentioned setting the register_globals to On, but that made no
difference.
--- End Message ---
--- Begin Message ---
Well I've used both the installer and the "manual" .zip file. It makes
no difference!
--- End Message ---
--- Begin Message ---
Yeeach !!
What happens if you print the variable's LENGTH, doing
$n=strlen($variable);
print "$variable($n)";
I have a similar problem, where sometimes a variable is not printed, but as a length
greater than zero...
If $n is >0, than you could be "suffering" from a bug within PHP.
If not, I am starting to run out of ideas...
Luis
----- Original Message -----
From: "Lasse Riis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 2:09 PM
Subject: Re: [PHP-WIN] all variables unset in w2k
> Well I've used both the installer and the "manual" .zip file. It makes
> no difference!
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi everybody.
I've been trying to install php 4.2.2 on my w2k box. I'm using apache
1.3.6 or is it 1.3.26? but the problem is the same with IIS. I can add
the cgi og the sapi module, but the problem is the same. I HAVE NO
VARIABLES!!!!
This piece of code (for example):
<?php
$variable = 'This is a variable';
echo 'Variable contents: '.$variable;
?>
gives this output:
"Variable contents: "
This happens to all variables, cookies, variables passed ind the url,
every thing....
What's wrong? I tried installing SP1 and SP2 but it made no difference.
I didn't use the php installer, i used the manual install. And trying
version 4.2.1 made absolutely no difference, what's wrong?
Help
Lasse
--- End Message ---
--- Begin Message ---
Hi everybody.
I've been trying to install php 4.2.2 on my w2k box. I'm using apache
1.3.6 or is it 1.3.26? but the problem is the same with IIS. I can add
the cgi og the sapi module, but the problem is the same. I HAVE NO
VARIABLES!!!!
This piece of code (for example):
<?php
$variable = 'This is a variable';
echo 'Variable contents: '.$variable;
?>
gives this output:
"Variable contents: "
This happens to all variables, cookies, variables passed ind the url,
every thing....
What's wrong? I tried installing SP1 and SP2 but it made no difference.
I didn't use the php installer, i used the manual install. And trying
version 4.2.1 made absolutely no difference, what's wrong?
Help
Lasse Riis
--- End Message ---
--- Begin Message ---
I am new to COM and tried an example today (See bottom of post)
When I execute the code, I get is an error message and if I look in the Task
Manager, there is a WINWORD.EXE process running, which I can't end. Every
time I reload the page, a new winword is started...
How should PHP.ini be set for me to use COM Objects?
---------------------------------
Error message:
Warning: Unable to obtain IDispatch interface for CLSID
{000209FF-0000-0000-C000-000000000046}: The message filter indicated that
the application is busy. in d:\inetpub\wwwroot\incmill\ver2\readfile.php on
line 2
Unable to instantiate word
Setup:
Windows 2000 Professional
PHP 4.2.1
Office 2000
PHP.ini
COM values:
Directive, Local Value, Master Value
com.allow_dcom, Off, Off
com.autoregister_casesensitive, On, On
com.autoregister_typelib, Off, Off
com.autoregister_verbose, Off, Off
com.typelib_file, no value, no value
Code:
$word = new COM("word.application") or die("Unable to instantiate Word");
print "Loaded Word, version {$word->Version}<BR>";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
$word->Quit();
--- End Message ---
--- Begin Message ---
Hi
I have this piece of script on my site. It sends e-mail from the
feedbackform. I can only send e-mail to one recipient, but i would like
to send this e-mail to multiple recipients. Here is my code, i hope
someone can help me out. Thanks already!
//Send e-mail from feedbackform
//recipients
$recipients="[EMAIL PROTECTED]";
//Subject
$subject="Reaction from website";
//Message
$message="Reaction from website:\n\nName: $name\nAdres: $adres\nZipCode:
$zip\nCity: $city\nPhone: $phone \nEmail:
$email\n\nComments:\n\n$comments\n";
//headers
$headers="From:$name <$email>\n";
//verstuur de e-mail
$result= mail($recipients,$subject,$message,$headers);
//Controleer of e-mail verstuur is
if(!$result)
{
//Sending has failed
echo "Sending your e-mail has failed<br><br>";
echo "<a href=javascript:history.go(-1)>Back</a>\n";
} else {
//Send succesfully
echo "<b>Your e-mail is send</b><br>\n";
echo "Thanks for your time<br><br>";
echo "<a href=index.php>Back</a>\n";
}
Thanks:-)
Greetings
Davy Obdam
mailto:[EMAIL PROTECTED]
url: http:///www.davyobdam.com
--- End Message ---