php-windows Digest 27 Sep 2003 09:25:42 -0000 Issue 1930

Topics (messages 21573 through 21579):

page cannot be displayed error
        21573 by: Jim
        21574 by: Mike Brum
        21578 by: Jim

Re: Writing to a file
        21575 by: Gerardo Rojas

Testing Email Mpdules on Win2000
        21576 by: Arijit Chaudhuri

overwrite a single line of text
        21577 by: Gerardo Rojas

Re: Last Critical Upgrade
        21579 by: Svensson, B.A.T. (HKG)

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

I receive a "Page cannot be displayed error" (404 error)when I try to access
a .php file from my server. I have windows server 2003, IIS 6.0, and php
4.3.3. I have checked and double checked my registry settings, permissions
and file placements, and still nothing seems to work. Any help would be
appreciated.

Thanks,

Jim

--- End Message ---
--- Begin Message ---
Now, if you put a .htm, .txt, .jpg or other file (anything NOT .php), then
do you see those files when placed in the same directory?

-M

-----Original Message-----
From: Jim [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 2:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] page cannot be displayed error


Hello,

I receive a "Page cannot be displayed error" (404 error)when I try to access
a .php file from my server. I have windows server 2003, IIS 6.0, and php
4.3.3. I have checked and double checked my registry settings, permissions
and file placements, and still nothing seems to work. Any help would be
appreciated.

Thanks,

Jim

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

--- End Message ---
--- Begin Message ---
Yes, I can see other file formats in the directory.

-Jim

"Mike Brum" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Now, if you put a .htm, .txt, .jpg or other file (anything NOT .php), then
do you see those files when placed in the same directory?

-M

-----Original Message-----
From: Jim [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 2:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] page cannot be displayed error


Hello,

I receive a "Page cannot be displayed error" (404 error)when I try to access
a .php file from my server. I have windows server 2003, IIS 6.0, and php
4.3.3. I have checked and double checked my registry settings, permissions
and file placements, and still nothing seems to work. Any help would be
appreciated.

Thanks,

Jim

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

--- End Message ---
--- Begin Message ---
MG29,

this doesn't work.  It will still write the new line after the line (I matched).  
Everytime I read a line from a file, the $fd gets incremented, so when I say fwrite, 
$fd is already pointing to the next line in the file?  Any suggestions as to working 
around this?  I can't rewrite the entire file (design time controls on page, they 
wouldn't work if I did).  As soon as I fix the Cascading Style Sheet line, I want to 
get out of the file.



-----Original Message-----
From: GaguWD [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 6:17 PM
To: Gerardo Rojas
Subject: RE: [PHP-WIN] Writing to a file


You should use regex (regular expressions) to do this, because is simpler.

You can get the contents of the files into a variable:

<?
$file = "any_file.txt";
$op = fopen($file,"w+");
 if($op) {
  while(!feof($op)) {
  $read .= fread($op,1024);
  }
 }
 if(preg_replace("/something i don't want/i",$sthiwant,$read)) {
 echo "It's done!";
 } else {
 echo "Something didn't work, complain to the person who gave you this code
;-)";
 }
?>

Hope it helps!

Byes!
MG29


-----Mensaje original-----
De: Gerardo Rojas [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 25 de Septiembre de 2003 03:09 p.m.
Para: [EMAIL PROTECTED]
Asunto: [PHP-WIN] Writing to a file


I'm am able to open the file read and write to it.  The problem is that I
want to replace a line of text with another line.  My function is actually
writing my new line after the line I wanted to change.  Can we do arithmetic
on the $fd (file handle or file descriptor)?  To tell PHP to write where (
$fd - 1 ) points to?



--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
For testing email generating modules on Win2000, I presently need to be
online and send out emails to an external account address and verify that
with a mail client or webmail interface. On Linux, emails like
[EMAIL PROTECTED] could be used for testing which could be checked very fast
and without delays in waiting for emails to arrive.

I am working on Win2000 Professional with IIS 5.0 and SMPT. However, I use
Apache for server keeping the SMTP going (IIS has problems with setting
cookies and redirecting). Can I set up a [EMAIL PROTECTED] email account
somehow to check the emails generated by php pages without having to go
online?

Thanks,
Arijit Chaudhuri

--- End Message ---
--- Begin Message ---
I'm having problems overwriting a single line of text.  If the line I'm replacing is 
shorter then the new line.  The subsequent line gets truncated into the line above.  
Note example below (</head> tag)?

I've been able to fix it, if the new line is shorter, i keep adding spaces. (not ideal 
fix)!

Why do I have to do this, isn't there a way to rewrite the entire line up to the 
"\r\n"?

------

<html>
<head>
<title>Fix the damn css link</title>
<link rel="stylesheet" type="text/css" href="basic.css">/head>
<body>
<h1>css link</h1>
<hr>
<p>something goes here.
<br>

--- End Message ---
--- Begin Message ---
>Am I the only one receiving this stuff?  Can somebody tell me what the
>(*&^%$ is it?  Is it real?

>Forget it, that's an Internet worm like Klez, spreading thanks to
>Microsoft Internet Explorer. I get hundreds of KB of this b..sh.. every
day.

Well, at least it a change from having spam mail filling 
the mailbox with subjects about penis growth and viagra. ;)

--- End Message ---

Reply via email to