php-windows Digest 10 Jan 2002 22:04:05 -0000 Issue 946

Topics (messages 11365 through 11384):

PHP header
        11365 by: Paul Wallace

Socket timeout - not supported?
        11366 by: Greg

cant install PHP
        11367 by: Lenny Mak
        11368 by: sebbe.popmail.com
        11370 by: sebbe.popmail.com
        11373 by: Gregory Song

remote DB access
        11369 by: Paul Wallace
        11371 by: Ertan Tike
        11374 by: Pac mon

sessions???
        11372 by: Alex Elderson
        11375 by: Pac mon

Editor
        11376 by: SanjuroE
        11377 by: Asendorf, John
        11378 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK
        11379 by: Svensson, B.A.T. (HKG)
        11380 by: brother
        11381 by: Sandeep Murphy
        11382 by: Samba Sidibeh
        11383 by: Svensson, B.A.T. (HKG)

damnit! can't load PHP 4.1.0 as module on XP
        11384 by: Christian Calloway

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,
    A relative PHP newbie.
    I have developed a system using HTML/PHP, and have had it functioning
fine for some time using IIS. I am now uploading it to a web hosting service
in the USA where I am firstly running a hello world page to test it. BUT! It
does not want to load:

<html>
<head><title>Untitled</title></head>
<body>
<?php
    echo "Hello world";
?>
</body>
</html>

I have configured the hosting server to the best of my knowledge (setup a
CGI virtual domain environment, enabled permissions etc), but it still
refuses to load this rediculously simple hello world script.
    Can anyone tell me if the page to be executed containing the PHP script
requires a pathname telling the server it is a PHP page, and if so, what is
the syntax and where it is embedded in the HTML?

Many thanks

Paul Wallace
Concerto Developer/Support Consultant
ProSolutions Asia Pacific Co., Ltd.
Tel +66 2 583 6161-5
Fax +662 583 6535
www.ProSolutions-ap.com


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

Please help me.
"Warning: socket_set_timeout() is not supported in this PHP build in ....."

Can I use function socket_set_timeout() on win32?
Or may it be something in php.ini...and if not is there another way to get
around it?



Thanks,
Greg


--- End Message ---
--- Begin Message ---
hi

i m kinda bit new to PHP.....
tried to install it in my comp (which is not a server) to gain some workin
knowledge b4 moving on (i m using win 2000)
however i dun seem to be able to get anything done
nothing appears on the screen tried lookin for help at PHP.com but to no
avail pls help thanx

lenny





_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

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

I think you've got to install a server to run PHP.
I just installed IIS 5.0 and PHP 4.1.1 on Win 2000 and it works perfectly. Once I got 
around to play with the php.ini that is... ;)

       Cassiel


> hi
> 
> i m kinda bit new to PHP.....
> tried to install it in my comp (which is not a server) to gain some workin
> knowledge b4 moving on (i m using win 2000)
> however i dun seem to be able to get anything done
> nothing appears on the screen tried lookin for help at PHP.com but to no
> avail pls help thanx
> 
> lenny
> 
> 
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 


....................................
Get your own free email account from
http://www.popmail.com

--- End Message ---
--- Begin Message ---
Well, not necessarily IIS, you can install any server (I think). The php.ini is the 
PHP configuration file that sets all those interesting variables...

       Sebbe


> woah
> this means i have to install IIS 5.0 is it?
> and play ard wif php.ini.... wat is that about?
> 
> thanx
> lenny
> 
> 
> >From: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: [PHP-WIN] cant install PHP
> >Date: Thu, 10 Jan 2002 03:40:12 -0600 (CST)
> >
> >Hi,
> >
> >I think you've got to install a server to run PHP.
> >I just installed IIS 5.0 and PHP 4.1.1 on Win 2000 and it works perfectly. 
> >Once I got around to play with the php.ini that is... ;)
> >
> >        Cassiel
> >
> >
> > > hi
> > >
> > > i m kinda bit new to PHP.....
> > > tried to install it in my comp (which is not a server) to gain some 
> >workin
> > > knowledge b4 moving on (i m using win 2000)
> > > however i dun seem to be able to get anything done
> > > nothing appears on the screen tried lookin for help at PHP.com but to no
> > > avail pls help thanx
> > >
> > > lenny
> > >
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> >
> >....................................
> >Get your own free email account from
> >http://www.popmail.com
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> 


....................................
Get your own free email account from
http://www.popmail.com

--- End Message ---
--- Begin Message ---
Well, IIS is recommended anyhow, 'coz it's capable and easy to config. You may install 
PWS if you are under WIN98 system, too, but that's just too simple to be used for 
studying sth.
For the settings in the php.ini file, you can find a detailed description in PHP 
documentation, which can be downloaded from PHP.net!

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 6:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] cant install PHP
> 
> 
> Well, not necessarily IIS, you can install any server (I think). 
> The php.ini is the PHP configuration file that sets all those 
> interesting variables...
> 
>        Sebbe
> 
> 
> > woah
> > this means i have to install IIS 5.0 is it?
> > and play ard wif php.ini.... wat is that about?
> > 
> > thanx
> > lenny
> > 
> > 
> > >From: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: [PHP-WIN] cant install PHP
> > >Date: Thu, 10 Jan 2002 03:40:12 -0600 (CST)
> > >
> > >Hi,
> > >
> > >I think you've got to install a server to run PHP.
> > >I just installed IIS 5.0 and PHP 4.1.1 on Win 2000 and it 
> works perfectly. 
> > >Once I got around to play with the php.ini that is... ;)
> > >
> > >        Cassiel
> > >
> > >
> > > > hi
> > > >
> > > > i m kinda bit new to PHP.....
> > > > tried to install it in my comp (which is not a server) to gain some 
> > >workin
> > > > knowledge b4 moving on (i m using win 2000)
> > > > however i dun seem to be able to get anything done
> > > > nothing appears on the screen tried lookin for help at 
> PHP.com but to no
> > > > avail pls help thanx
> > > >
> > > > lenny
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Chat with friends online, try MSN Messenger: 
http://messenger.msn.com
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> >
> >....................................
> >Get your own free email account from
> >http://www.popmail.com
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> 


....................................
Get your own free email account from
http://www.popmail.com


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hello,
    I have the code:

#11     $db = mysql_connect("100.110.120.130", "root", "");
#12     mysql_select_db("DBname",$db);
#13     $result = mysql_query("select * from gmember where gmember_id =
'$login' and gmember_password = '$password'",$db);
#14     $nrow=mysql_num_rows($result);
#15     if ($nrow != "0") {
                my logic etc...

to establish a connection from my site hosted in the USA, to a DB which is
situated in Asia (the IP above is the IP of the DB host in Asia). When I try
to read the DB I get the error:

Fatal error: Call to unsupported or undefined function mysql_connect() in
/cgi/mydir/login/loginprocess.php on line 12

Line 12 being the mysql_select. Can anybody offer anything? I this syntax
PHP v4? If it is, that may answer it! The excerpt "undefined function
mysql_connect()" could suggest this.
    Or is it possibly the ID/passwords? Before the system was uploaded to
the remote hosting service, it was on a LAN where the syntax worked fine
accessing another computer hosting the DB on the LAN.

Thanks for any input.

Paul.







--- End Message ---
--- Begin Message ---
if you behind the any firewall you must check 1039 port is open..
you can try this with "telnet 100.110.120.130 1039" command..
if telnet is connecting, port is open.

-----Original Message-----
From: Paul Wallace [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] remote DB access


Hello,
    I have the code:

#11     $db = mysql_connect("100.110.120.130", "root", "");
#12     mysql_select_db("DBname",$db);
#13     $result = mysql_query("select * from gmember where gmember_id =
'$login' and gmember_password = '$password'",$db);
#14     $nrow=mysql_num_rows($result);
#15     if ($nrow != "0") {
                my logic etc...

to establish a connection from my site hosted in the USA, to a DB which is
situated in Asia (the IP above is the IP of the DB host in Asia). When I try
to read the DB I get the error:

Fatal error: Call to unsupported or undefined function mysql_connect() in
/cgi/mydir/login/loginprocess.php on line 12

Line 12 being the mysql_select. Can anybody offer anything? I this syntax
PHP v4? If it is, that may answer it! The excerpt "undefined function
mysql_connect()" could suggest this.
    Or is it possibly the ID/passwords? Before the system was uploaded to
the remote hosting service, it was on a LAN where the syntax worked fine
accessing another computer hosting the DB on the LAN.

Thanks for any input.

Paul.








-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
What version of PHP do you have? It sounds like the functions for mysql are 
loaded, but those functions have been built in since about 4.0 I believe.

Include the information for both of the servers.

>
>Hello,
>     I have the code:
>
>#11     $db = mysql_connect("100.110.120.130", "root", "");
>#12     mysql_select_db("DBname",$db);
>#13     $result = mysql_query("select * from gmember where gmember_id =
>'$login' and gmember_password = '$password'",$db);
>#14     $nrow=mysql_num_rows($result);
>#15     if ($nrow != "0") {
>                 my logic etc...
>
>to establish a connection from my site hosted in the USA, to a DB which is
>situated in Asia (the IP above is the IP of the DB host in Asia). When I 
>try
>to read the DB I get the error:
>
>Fatal error: Call to unsupported or undefined function mysql_connect() in
>/cgi/mydir/login/loginprocess.php on line 12
>
>Line 12 being the mysql_select. Can anybody offer anything? I this syntax
>PHP v4? If it is, that may answer it! The excerpt "undefined function
>mysql_connect()" could suggest this.
>     Or is it possibly the ID/passwords? Before the system was uploaded to
>the remote hosting service, it was on a LAN where the syntax worked fine
>accessing another computer hosting the DB on the LAN.
>
>Thanks for any input.
>
>Paul.
>
>
>
>

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

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

This works fine:

<?php
  $sessiontest = "test";
  session_start();
  session_register('sessiontest');
?>

But way does this not work???

<?php
  $session_name = "sessiontest";
  $$session_name = "test";
  session_start();
  session_register($session_name);
?>


--- End Message ---
--- Begin Message ---
Possible that because session_name is a function it puking on the 
$session_name variable you're trying to create.

Another note is this: $$session_name = "test";

Maybe I'm on crack but didn't you mean: &$session_name = "test";
Also... why did you try setting $session_name twice? Once to 'sessiontest' 
and once to 'test'? Did you mean "$sessiontest"?

>
>Hi,
>
>This works fine:
>
><?php
>   $sessiontest = "test";
>   session_start();
>   session_register('sessiontest');
>?>
>
>But way does this not work???
>
><?php
>   $session_name = "sessiontest";
>   $$session_name = "test";
>   session_start();
>   session_register($session_name);
>?>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---
--- Begin Message ---
I am looking for a light-weight editor which supports PHP tag 
highlighting and indenting.

Which editor do you recommend?

Sanjuro

--- End Message ---
--- Begin Message ---
I've started uing HTML-Kit and it's been great... I had been using the
CoffeeCup HTML editor for the past 3 years and couldn't find anything I
liked as much... until now...

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: SanjuroE [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 9:12 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Editor
> 
> 
> I am looking for a light-weight editor which supports PHP tag 
> highlighting and indenting.
> 
> Which editor do you recommend?
> 
> Sanjuro
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 
--- End Message ---
--- Begin Message ---
--- Received from FPU.WHITES1 799 3703                    10-01-02 14:10

  -> [EMAIL PROTECTED]
  -> [EMAIL PROTECTED]

I've tried Komodo and PHPCoder, but still find myself using TextPad most
of the time.

-Steve

------------------------------------------------------------------------

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 10 Jan 2002 15:11:33 +0100
Subject: [PHP-WIN] Editor

I am looking for a light-weight editor which supports PHP tag
highlighting and indenting.

Which editor do you recommend?

Sanjuro


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Financial Services Authority.
--- End Message ---
--- Begin Message ---
>Which editor do you recommend?

MS VS C++ DevStudio 6.0 Enterprise edition - supports everything you ever
(almost) needs.
 
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: SanjuroE [mailto:[EMAIL PROTECTED]] 
> 
> I am looking for a light-weight editor which supports PHP tag 
> highlighting and indenting.
> 
> Which editor do you recommend?

My personal favourite is EditPlus.

You find it at http://www.editplus.com where you can download
progrmaminglangueage extensions =)

/bro
--- End Message ---
--- Begin Message ---
try PHP COder Pro.. Light and Coool!


-----Original Message-----
From: brother [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 10 de Janeiro de 2002 14:17
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] Editor


> -----Original Message-----
> From: SanjuroE [mailto:[EMAIL PROTECTED]] 
> 
> I am looking for a light-weight editor which supports PHP tag 
> highlighting and indenting.
> 
> Which editor do you recommend?

My personal favourite is EditPlus.

You find it at http://www.editplus.com where you can download
progrmaminglangueage extensions =)

/bro

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Do you have to do any customization in VS C++ to make highlightening and all of that 
work properly?

----- Original Message ----- 
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
To: "'SanjuroE'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 3:15 PM
Subject: RE: [PHP-WIN] Editor


> >Which editor do you recommend?
> 
> MS VS C++ DevStudio 6.0 Enterprise edition - supports everything you ever
> (almost) needs.
>  
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Tjohej,

Once it recognize a keyword it colors it in a pre-configured color, or
according to your custom settings.

Ha't

>-----Original Message-----
>From: Samba Sidibeh [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 10, 2002 3:27 PM
>To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] Editor
>
>
>Do you have to do any customization in VS C++ to make 
>highlightening and all of that work properly?
--- End Message ---
--- Begin Message ---
Hey everyone,

Ok Im trying to load PHP 4.1.0 as a module on my XP(home) system. I included
the following lines in the apache httpd.conf file

AddType application/x-httpd-php .php
LoadModule php4_module c:/php4apache.dll

but when I attempt to start Apache service, I get the following message:

"The Apache service on Local Computer started and then stopped. Some
services sto automatically if they have no word to do, for example, the
Performance Logs and Alerts servce" blah blah blah...

Of course when I comment out the LoadModule line, everything loads fine. The
.dll file is in the correct path, and whats even more bewildering, I had it
working before, but I had to recently format and reload system. Any ideas?
Thanks

Christian


--- End Message ---

Reply via email to