php-windows Digest 22 Feb 2003 10:37:18 -0000 Issue 1600

Topics (messages 18658 through 18669):

index.php
        18658 by: Bill Rafferty
        18660 by: Matt Hillebrand

IIS and index.php issue
        18659 by: Bill Rafferty
        18661 by: Charles P. Killmer
        18662 by: Matt Hillebrand

why is this mail code not working on a windows server?
        18663 by: cathy

problema con una libreria
        18664 by: Frank

fsockopen() doesnt work
        18665 by: Arne Schumann
        18666 by: Dash McElroy

using frames
        18667 by: Andrew Ferguson
        18668 by: Matt Hillebrand

include, phpself and inline frames
        18669 by: m1nt ch3w

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 ---
My index.php simply has ;
<?php phpinfo(); ?>

if in my broser I go to;
http://localhost/ra640/    everything works fine, but
http://localhost/ra640/index.php which is the same file returns a error 500

??? what am I missing



--- End Message ---
--- Begin Message ---
You probably need to tell your web server to allow files with the .php
file extension to act as a directory index.

In Apache, find the DirectoryIndex directive:

   DirectoryIndex index.html index.php

In IIS, read the help file.

Matt

|-----Original Message-----
|From: Bill Rafferty [mailto:[EMAIL PROTECTED] 
|Sent: Friday, February 21, 2003 11:34 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] index.php
|
|
|My index.php simply has ;
|<?php phpinfo(); ?>
|
|if in my broser I go to;
|http://localhost/ra640/    everything works fine, but
|http://localhost/ra640/index.php which is the same file 
|returns a error 500
|
|??? what am I missing
|
|
|
|-- 
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|



--- End Message ---
--- Begin Message ---
My index.php simply has ;
<?php phpinfo(); ?>

if in my broser I go to;
http://localhost/ra640/    everything works fine, but
http://localhost/ra640/index.php which is the same file returns a error 500

??? what am I missing



--- End Message ---
--- Begin Message ---
I know this sounds simple but make sure that index.php is the document
that is being served.  

Either remove all other files from the web root.  Or remove all other
documents from the default documents tab in IIS.  Also make sure that
the webroot is in the right place.

Also make sure that a script mapping exists for .php

I cant think of anything else that could cause something like that.

Charles

-----Original Message-----
From: Bill Rafferty [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 21, 2003 11:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IIS and index.php issue

My index.php simply has ;
<?php phpinfo(); ?>

if in my broser I go to;
http://localhost/ra640/    everything works fine, but
http://localhost/ra640/index.php which is the same file returns a error
500

??? what am I missing



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


--- End Message ---
--- Begin Message ---
Oh, you're right. My advice doesn't appy to your problem. Sorry. I just
woke up.

Matt

|-----Original Message-----
|From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
|Sent: Friday, February 21, 2003 11:55 AM
|To: [EMAIL PROTECTED]
|Subject: RE: [PHP-WIN] IIS and index.php issue
|
|
|I know this sounds simple but make sure that index.php is the 
|document that is being served.  
|
|Either remove all other files from the web root.  Or remove 
|all other documents from the default documents tab in IIS.  
|Also make sure that the webroot is in the right place.
|
|Also make sure that a script mapping exists for .php
|
|I cant think of anything else that could cause something like that.
|
|Charles
|
|-----Original Message-----
|From: Bill Rafferty [mailto:[EMAIL PROTECTED] 
|Sent: Friday, February 21, 2003 11:36 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] IIS and index.php issue
|
|My index.php simply has ;
|<?php phpinfo(); ?>
|
|if in my broser I go to;
|http://localhost/ra640/    everything works fine, but
|http://localhost/ra640/index.php which is the same file 
|returns a error 500
|
|??? what am I missing
|
|
|
|-- 
|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 ---
Hi,
I'm getting rather desperate about this one.

Code below is working fine on one server: Apache 1.3.26 /PHP 4.1.2/Linux.
On another server (Apache 1.3.24/PHP 4.3.1/Windows 2000) I get keeping this
error:

Failed to connect to mailserver at "smtp.vt4.net" port 25, verify your
"SMTP" and "smtp_port" setting in php.ini or use ini_set() in
c:\oracle\ora91\apache\apache\htdocs\templateprobeersel\tmp47v15anqr5.php on
line 16

CODE:

$headers.="From:[EMAIL PROTECTED]";
ini_set("SMTP", "smtp.vt4.net");
ini_set("sendmail_from","[EMAIL PROTECTED]");

mail("[EMAIL PROTECTED]", "test php", "Line 1",$headers);

Can anyone help me?
Thx,
Cathy



--- End Message ---
--- Begin Message ---
Hola a todos
tengo problemas con la libreria php_oci8.dll, a partir de la versión 4.0.6 de php en 
adelante cuando cargo el modulo mediante el archivo php.ini ya sea por CGI o por 
ISAPI, me envia un error de "Unload module oci8".
yo trabajo con window nt, alguien tiene información del porque sucede y como poder 
solucionarlo?

por vuestra atención
gracias.
Frank.-

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

Ive got a problem with the fsockopen function. I want to simulate things
like Browser-Version (user_agent) to another php-Script and read its parsed
ScourceCode. Everything I read about that used fsockopen() as the main
function to access the file. So I tried this:


$fp = fsockopen ("http://www.homepage.de";, 80);


Also with /index.html in the end and with many different URLs.
This way I always get the following two errors:


Warning: fsockopen() [function.fsockopen]: php_network_getaddresses:
gethostbyname failed in D:\Programme\Apache2\htdocs\eigene\test\read.php on
line 3

Warning: fsockopen() [function.fsockopen]: unable to connect to
http://www.homepage.de:80 in
D:\Programme\Apache2\htdocs\eigene\test\read.php on line 3
$fp does not exist!


Ive already been told to leave out the http://. But in that case i got:


Fatal error: Maximum execution time of 30 seconds exceeded in
D:\Programme\Apache2\htdocs\eigene\test\read.php on line 12


Which makes me wondering,  because line 12 is the end of the script and not
the one with the fsockopen function...
My first thought was that I get timeouted, because i dont have any further
issues for the opened coonnection but the whole script is:


<?php
$fp = fsockopen ("http://www.homepage.de";, 80);
if(!$fp) {
 echo "\$fp does not exist!";
 }
else {
 fgets($fp, 1024);
 }
?>


Now I do have an fgets-statement to recieve sth from the server. And still
he gets timeouted.

So why does this happen?! And what can I do against it?!
OS is: Win 98SE
PHP: 4.3.0
Apache: 2.0.43

allow_url_fopen in the php.ini is activated...

Thx for help

--- End Message ---
--- Begin Message ---
It looks like the host cannot be resolved. Can you do a DNS query from
that machine successfully?

-Dash

Cogito cogito ergo cogito sum --
"I think that I think, therefore I think that I am."
                -- Ambrose Bierce, "The Devil's Dictionary"

On Fri, 21 Feb 2003, Arne Schumann wrote:

> Hi
>
> Ive got a problem with the fsockopen function. I want to simulate things
> like Browser-Version (user_agent) to another php-Script and read its parsed
> ScourceCode. Everything I read about that used fsockopen() as the main
> function to access the file. So I tried this:
>
>
> $fp = fsockopen ("http://www.homepage.de";, 80);
>
>
> Also with /index.html in the end and with many different URLs.
> This way I always get the following two errors:
>
>
> Warning: fsockopen() [function.fsockopen]: php_network_getaddresses:
> gethostbyname failed in D:\Programme\Apache2\htdocs\eigene\test\read.php on
> line 3
>
> Warning: fsockopen() [function.fsockopen]: unable to connect to
> http://www.homepage.de:80 in
> D:\Programme\Apache2\htdocs\eigene\test\read.php on line 3
> $fp does not exist!
>
>
> Ive already been told to leave out the http://. But in that case i got:
>
>
> Fatal error: Maximum execution time of 30 seconds exceeded in
> D:\Programme\Apache2\htdocs\eigene\test\read.php on line 12
>
>
> Which makes me wondering,  because line 12 is the end of the script and not
> the one with the fsockopen function...
> My first thought was that I get timeouted, because i dont have any further
> issues for the opened coonnection but the whole script is:
>
>
> <?php
> $fp = fsockopen ("http://www.homepage.de";, 80);
> if(!$fp) {
>  echo "\$fp does not exist!";
>  }
> else {
>  fgets($fp, 1024);
>  }
> ?>
>
>
> Now I do have an fgets-statement to recieve sth from the server. And still
> he gets timeouted.
>
> So why does this happen?! And what can I do against it?!
> OS is: Win 98SE
> PHP: 4.3.0
> Apache: 2.0.43
>
> allow_url_fopen in the php.ini is activated...
>
> Thx for help
>


--- End Message ---
--- Begin Message ---
I want to build a website with frames and have PHP call up the data from a
mySQL database. However, I also want the title to change every you click a
different link in the frame. Any ideas?



--- End Message ---
--- Begin Message ---
This is a client-side programming issue, so you would use JavaScript and
not PHP. I guess you could do something like:

  <a href="blah.php" onClick="parent.document.title='The Blah
Page'">blah</a>

It can be fun/challenging to dynamically create javascript code with
PHP. I sometimes like to use borderless iframes (not frames). That way
the client-side javascript code can interact with a server-side PHP
script in order to change the content on the screen without changing the
location of the web browser (and without the appearance of frames).

Matt

|-----Original Message-----
|From: Andrew Ferguson [mailto:[EMAIL PROTECTED] 
|Sent: Friday, February 21, 2003 7:31 PM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] using frames
|
|
|I want to build a website with frames and have PHP call up the 
|data from a mySQL database. However, I also want the title to 
|change every you click a different link in the frame. Any ideas?
|
|
|
|-- 
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|



--- End Message ---
--- Begin Message --- Howdy all,

I am trying to get a poll to work on my site. I am using Inline frames to display the content. The poll is outside of the iframe and is put in using <? include("poll.php"); ?>

What I was aiming to do was, when you click "vote" to submit your vote, the results would appear in the Iframe.

So in poll.php i have:

<form method="post" action="<?=$PHP_SELF ?>" target="Iframe">
(this isn't in between <? ?>)

I tried it by inserting the full code of poll.php into page rather than use include(), but it displayed the whole page again into the inline frame. How would I go about just getting the poll.php file to appear in the inline frame? I thought using include() would work as it does when you use it with asp.

I will eventually remove the inline frame, but for now i'm using them.

Any help is appreciated,
/m1nt


--- End Message ---

Reply via email to