php-windows Digest 11 Jan 2002 11:36:34 -0000 Issue 947
Topics (messages 11385 through 11389):
Re: damnit! can't load PHP 4.1.0 as module on XP
11385 by: Christian Calloway
syntax, 3 or 4?
11386 by: Paul Wallace
Re: cant install PHP
11387 by: Michael Caldwell
unescape
11388 by: Paul Wallace
11389 by: Ford, Mike [LSS]
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 ---
nevermind.. im stupid
"Christian Calloway" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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 ---
--- Begin Message ---
Hello,
Can anyone clarify if this code below is indeed PHP v4 or 3? It will
save significant rigmarole.
Where can I find online documentation for v3? I have this 'PHP 4 Bible'
by IDG Books, but it's for the version the name suggests.
Many thanks
Paul.
> 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.
--- End Message ---
--- Begin Message ---
There are a number of servers available that run on Win systems.
many are "Open Source" or even freeware.
Alternatives to IIS 5.0 are Apache from http://www.apache.org and
Ominhttpd from http://www.omnicron.ab.ca/httpd/
Apache is the most widely used server. Omnihttpd is very easy to install
and configure.
MC
--- End Message ---
--- Begin Message ---
Hello,
To read a database field with space characters in it from a MySQL
database, and out put that result in HTML I have the PHP:
<td>$topic_description</td>
I get the HTML output as:
about%20this%20forum
And so on for subsequent space characters. In the past I have had to remove
'%20' output using 'unescape' when scripting with Javascript.
What is the PHP equivalent to unescape to remove space characters (%20)
in HTML output, extracted from DBs? My 'Bible' has no apparent entry for
this.
Many thanks
Paul.
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Paul Wallace [mailto:[EMAIL PROTECTED]]
> Sent: 11 January 2002 09:42
>
> about%20this%20forum
>
> And so on for subsequent space characters. In the past I have
> had to remove
> '%20' output using 'unescape' when scripting with Javascript.
> What is the PHP equivalent to unescape to remove space
> characters (%20)
> in HTML output,
Try urldecode() (see http://www.php.net/manual/en/function.urldecode.php) or
rawurldecode() (see http://www.php.net/manual/en/function.rawurldecode.php).
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--- End Message ---