php-windows Digest 26 Dec 2001 18:50:02 -0000 Issue 920

Topics (messages 11124 through 11132):

mssql_pconnect() access violations
        11124 by: Peter Vereshagin

Re: File question...
        11125 by: Steve Yates

Real dumb newbie question...
        11126 by: VivoAnt
        11128 by: LaserJetter

Re: [PHP] PHP software tool
        11127 by: Alexander Skwar
        11129 by: Svensson, B.A.T. (HKG)

Re: MSSQL connect
        11130 by: Thomas \"omega\" Henning
        11131 by: Svensson, B.A.T. (HKG)
        11132 by: Thomas \"omega\" Henning

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 ---
I wonder how could I get the module name causing instability in PHP4.0.5
ISAPI module (binary distro) under w2k.
After my admins updated and fixed the win2k server I've noticed some
'Access violations at 0x######' errors on the script only after calling
one second and more time.
The only thing lead me to guess that it was persistent connections error
was that script works fine first time after some minutes. And
connections 'as usual' was a workaround solution.
How could I be sure whether it is the admins' or IIS or PHP bug?
--- End Message ---
--- Begin Message ---
> From: Anthony Ritter
>
> >Using PHP, could I type in the updated fishing report in a
> >simple text filecalled: fishingreport.txt
> >and then... save that file to the server every time there is an
update
> where
> >a php script (or function) could be called to read or write to that
file
> >(fishingreport.txt) without the need of publishing the file every
time

    A variation on this that I've seen (with Perl I think though) was to
mark a section of an HTML file with a specific comment like
"<!--myfishystuffgoeshere-->Fishy fishy fishy
fish<!--myfishystuffgoeshere-->".  Then you or the user could
interactively edit the text from another PHP page, retreiving,
displaying, and replacing the text between the comments.

 - Steve Yates
 - SRT Enterprises
 - My hard disk is full!  Maybe I'll try this message section thing.

/ Taglines by Taglinator - www.srtware.com /



--- End Message ---
--- Begin Message ---
I'm totally new to this PHP thing... (and apache...) so I tried doing one of those 
tutoral thingies... I stuck stuck on some problem that is like this:

I try to access the page on my own server (phpinfo.php) and for some reason instead of 
loading it on IE6.0 it tries to download it from my own harddrive... How do I prevent 
this? (It worked just fine before...) I can still load PHP pages from other sites on 
the net except the one I made... I tried deleting it and making a new PHP page but it 
still does the same thing... Any help is appreciated :)))

(I'm on MSN Messenger too... [EMAIL PROTECTED])
--- End Message ---
--- Begin Message ---
Its nothing to do with the browser, you need to tell Apache that .php files
need to be sent to a browser and are not downloaded.
By default, Apache handles .htm and .html files but you need to tell it to
send .php files to the PHP program. Apache then sends the output from PHP to
the browser window as it would with a normal web page.

There is a section in the install.txt file which tells you how to change the
apache/conf/httpd.conf file


"Vivoant" <[EMAIL PROTECTED]> wrote in message
003901c18dda$c3d2bec0$5bc3e60c@VivoAnt">news:003901c18dda$c3d2bec0$5bc3e60c@VivoAnt...
I'm totally new to this PHP thing... (and apache...) so I tried doing one of
those tutoral thingies... I stuck stuck on some problem that is like this:

I try to access the page on my own server (phpinfo.php) and for some reason
instead of loading it on IE6.0 it tries to download it from my own
harddrive... How do I prevent this? (It worked just fine before...) I can
still load PHP pages from other sites on the net except the one I made... I
tried deleting it and making a new PHP page but it still does the same
thing... Any help is appreciated :)))

(I'm on MSN Messenger too... [EMAIL PROTECTED])



--- End Message ---
--- Begin Message ---
So sprach »LaserJetter« am 2001-12-22 um 18:46:46 -0000 :
> Does anybody know of or can recommend any freeware text editing tools for
> editing PHP code in Win32?

vim

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.iso-top.de      |     Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                       Uptime: 6 days 18 hours 0 minutes
--- End Message ---
--- Begin Message ---
>So sprach »LaserJetter« am 2001-12-22 um 18:46:46 -0000 :
>> Does anybody know of or can recommend any freeware text editing tools for
>> editing PHP code in Win32?
>
>vim

Hey, what's wrong with notepad now then?
--- End Message ---
--- Begin Message ---
<?php
$h = "server adr"; //don't forget 2 change this
$u = "user"; //don't forget 2 chage this
$p = "passw"; //don't forget 2 change this
$b = "db"; //don't forget 2 change this
$connexion = mssql_connect("$h", "$u", "$p");

 Why do you uses quotes here?

mssql_select_db($b);

$sql_temp = "select * from test";
//.^^^^
$result = mssql_query("$sql_temp");
//                      ^^^^^^^^^^

//??????

mssql_close($connexion);
?>

Here is the problem $sql != $sql_temp
so the $result = NULL; because mssql_query(" ") has no query to send to the
MsSQL server.
This should work try it out!!!

Thomas "omega" Henning



--- End Message ---
--- Begin Message ---
You must be an extremely intelligent person, almost literary quoting my
answer, and then pinpointing down things I already pointed out! Moron...

>From: Thomas "omega" Henning
>Sent: Wednesday, December 26, 2001 8:50 AM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
>[EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] MSSQL connect
>
>
><?php
>$h = "server adr"; //don't forget 2 change this
>$u = "user"; //don't forget 2 chage this
>$p = "passw"; //don't forget 2 change this
>$b = "db"; //don't forget 2 change this
>$connexion = mssql_connect("$h", "$u", "$p");
>
> Why do you uses quotes here?
>
>mssql_select_db($b);
>
>$sql_temp = "select * from test";
>//.^^^^
>$result = mssql_query("$sql_temp");
>//                      ^^^^^^^^^^
>
>//??????
>
>mssql_close($connexion);
>?>
>
>Here is the problem $sql != $sql_temp
>so the $result = NULL; because mssql_query(" ") has no query 
>to send to the MsSQL server.
>This should work try it out!!!
>
>Thomas "omega" Henning
--- End Message ---
--- Begin Message ---
I don't know who's a moron that can;t even see straight
"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
27E647E5629ED211BF78009027289C6302157DAB@mail1">news:27E647E5629ED211BF78009027289C6302157DAB@mail1...
> You must be an extremely intelligent person, almost literary quoting my
> answer, and then pinpointing down things I already pointed out! Moron...
>
> >From: Thomas "omega" Henning
> >Sent: Wednesday, December 26, 2001 8:50 AM
> >To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> >[EMAIL PROTECTED]
> >Subject: Re: [PHP-WIN] MSSQL connect
> >
> >
> ><?php
> >$h = "server adr"; //don't forget 2 change this
> >$u = "user"; //don't forget 2 chage this
> >$p = "passw"; //don't forget 2 change this
> >$b = "db"; //don't forget 2 change this
> >$connexion = mssql_connect("$h", "$u", "$p");
> >
> > Why do you uses quotes here?
> >
> >mssql_select_db($b);
> >
> >$sql_temp = "select * from test";
> >//.^^^^
> >$result = mssql_query("$sql_temp");
> >//                      ^^^^^^^^^^
> >
> >//??????
> >
> >mssql_close($connexion);
> >?>
> >
> >Here is the problem $sql != $sql_temp
> >so the $result = NULL; because mssql_query(" ") has no query
> >to send to the MsSQL server.
> >This should work try it out!!!
> >
> >Thomas "omega" Henning


--- End Message ---

Reply via email to