php-windows Digest 7 Jul 2003 10:41:25 -0000 Issue 1813
Topics (messages 20705 through 20709):
Re: fwrite error (noobie I am)
20705 by: Ron Stephenson
view pdf files as html
20706 by: Camelia Moldovan
Re: Fatal error with 'DB.php' - solution
20707 by: Sven Schnitzke
20708 by: jsWalter
Richiedo contributo per sapere come interfacciare php con un server di posta., nel mio
caso un server di posta in arrivo(POP).
20709 by: Valentina
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 ---
You ARE the man!
That was it! Thank you very much! I new it was something simple like that,
just didn't know where to look. I am forever in your debt. I had gone to
many different newsgroups and no one even came close to the solution. I wish
there was some way I could repay you. You have saved my sanity.
Thanks
Ron Stephenson
"Stephen March" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Allright, I got ya :)
>
> Open up any folder, let's say My Documents. Then go to the tools menu
> => Folder Options.
> From the "view" tab, scroll all the way down, and you should see
> something like this:
>
> http://www.enerds.ca/files/screenshots/simple_filesharing.jpg
>
> You must "uncheck" the simple file-sharing.
> Now when you right click on the count.txt file, go to properties, you
> should see a "Security tab"
>
> Hope this helps!
> ~Steve.
>
>
> Ron Stephenson wrote:
>
> >That's the part I think I'm missing because when I right click on the
file
> >and go to the properties there is no "Security" tab, button or anything.
It
> >does have two check boxes one for read only (unchecked) and one for
Hidden.
> >This is the Windows Explorer version.
> >
> >In the IIS properties there is a "File Security" tab, but it doesn't seem
to
> >help. See the attached file. (wouldn't let me send the file Too big I
guess)
> >
> >Thanks
> >
> >"Stephen March" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]
> >
> >
> >>If you right click on the file count.txt, go to properties -> security.
> >>
> >>Does "everyone" have modify/write permissions to this file? The
> >>first error it posts, is that it doesn't
> >>have permissions to alter the file. This would also account for it
> >>failing to create the stream.
> >>
> >>~Steve
> >>
> >>Ron Stephenson wrote:
> >>
> >>
> >>
> >>>I'm trying to learn PHP and I have it loaded on my PC with XP pro and
IIS
> >>>5.1. I run the following script and receive the error below.
> >>>//hit_counter1.php
> >>>$counter_file = "./count.txt";
> >>>if(!($fp = fopen($counter_file, "r"))) die ("Cannot open
> >>>
> >>>
> >$counter_file.");
> >
> >
> >>>$counter = (int) fread($fp, 20);
> >>>fclose($fp);
> >>>
> >>>$counter++;
> >>>
> >>>echo "You're visitor No. $counter.";
> >>>
> >>>$fp = fopen($counter_file, "w");
> >>>fwrite($fp, $counter);
> >>>fclose($fp);
> >>>
> >>>When run I get this error:
> >>>
> >>>You're visitor No. 126.
> >>>Warning: fopen(./count.txt) [function.fopen]: failed to create stream:
> >>>Permission denied in c:\inetpub\wwwroot\hit_counter1.php on line 12
> >>>
> >>>Warning: fwrite(): supplied argument is not a valid stream resource in
> >>>c:\inetpub\wwwroot\hit_counter1.php on line 13
> >>>
> >>>Warning: fclose(): supplied argument is not a valid stream resource in
> >>>c:\inetpub\wwwroot\hit_counter1.php on line 14
> >>>
> >>>I though I had set all necessary permissions but I seem to have missed
> >>>something. Can someone help? I have been to numerous newsgroups and no
> >>>
> >>>
> >one
> >
> >
> >>>has been able to figure it out. I know it is something I'm doing wrong.
> >>>
> >>>Ron
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
I have few pdf files stored in a folder .Is it possible to view them as html using a
php script (something like google)? I want to have two links on my page , one will
allow to see the file as pdf and one as html.
Thanks.
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
--- End Message ---
--- Begin Message ---
Hi Walter,
fyi - you DON'T HAVE TO put PHP.INI into c:\WINNT,
nothing of the like is being compiled anywhere. Where your
systems searches for PHP.INI depends on the mode PHP is
run, because it always is first searched for in the folder containing
the _processes_ .EXE file:
In CGI/EXE mode that is the folder PHP.EXE is residing in, but in
ISAPI/module mode this is the folder containing the web server
(Apache, IIS, PWS, what ever).
Next it is searched for in %WINDIR% (of whatever name, C.\WINDOWS,
D:\WINNT, ...), last in c:\PHP4 (this REALLY is hard coded).
--
Sven
> -----Ursprüngliche Nachricht-----
> Von: jsWalter [SMTP:[EMAIL PROTECTED]
> Gesendet am: Sonntag, 6. Juli 2003 00:01
> An: [EMAIL PROTECTED]
> Betreff: [PHP-WIN] Re: Fatal error with 'DB.php' - solution
>
> OK, I solved it.
>
> It seems that I **HAVE TO**, **MUST**, **NO CHOICE** place my php.ini in
> C:\WINNT (for NT and 2k) or PHP will not find it. This is a hardcoded path
> done at compile time.
>
> So, since no ini file, PHP was running on default values, thus it could not
> find DB.php since the default path there was 'C:\php4\pears'
>
> So, I copied my php.ini file to C:\winnt, renamed the added php4 to php4x
> (just to hide it to see if this would work), restarted my Apache (since the
> docs tell me that the PHP process that runs with Apache reads this file once
> at Apache startup) and I ran my script.
>
> It now works.
>
> Just thought I'd share to the next stubborn person finds this solution.
>
> Walter
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Thank! You!
Of all the documents I've read in the last 5 days, I didn't find that info
anyway (now, I'm not saying it's not there, I'm just saying I missed it)
I'm happy to get php.ini out of the windows system directory.
Thank you very much.
Walter
--- End Message ---
--- Begin Message ---
Salve spero di aver chiarito nell'oggetto del messaggio il problema.
Se così non fosse per rendere l'idea :
ho un server di posta in arrivo a cui vorrei accedere(avendo le dovute
autorizzazioni chiaramente) tramite php e sul quale vorrei poter leggere i
messaggi presenti.
Nel mio caso mi aspetto dei messaggi contenenti file xml ma questo è un
altro discorso.
Posso fare il parsing dei file una volta che sono riuscita a capire come
interfacciare con il server e con una casella di posta elettronica in
particolare ovviamente.
Se dico baggianate perdonatemi perchè è da poco che ci lavoro.
Grazie ! E tanti SALUTI!!!!
Vale.
--- End Message ---