php-windows Digest 27 Jul 2003 10:33:28 -0000 Issue 1841

Topics (messages 20910 through 20916):

Re: Install Help for a Newbie - please...
        20910 by: Jonas Thorell

Re: how to connect to a php sever through a net work
        20911 by: David Smith
        20915 by: Duane Lakoduk

$_POST issues with file  paths
        20912 by: Jon Phipps
        20913 by: Mikey
        20914 by: Jon Phipps

mysql search question
        20916 by: Bobo Wieland

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 ---
>PHP Newbie here. Hoping for some help. Yes, I searched the archives. Cannot
find the answer. Yes, I read the manual. Cannot find the answer. Here's the 
>situation...

>Running...
>Win98SE
>PHP 4.3.2 (cgi-fcgi) (obtained from command prompt)
>php.ini is installed in \windows
>php4ts.dll is in \windows ; \windows\system ; \php ;
\inetpub\wwwroot\cgi-bin
 
Okay, first off...is the webserver actually running? PHP by itself won't
serve
Any webpages.

And 2, assuming IIS or apache or whatever is running...is it configured to
pass PHP-scripts to PHP? (i.e. for the index-file, is the documents setting
for
The site set to say index.php is a valid file)

/Jonas

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 2003-07-14
 


--- End Message ---
--- Begin Message ---
Derick,
The computer that you are trying to access must have an internet ip to hit
it remotely. Usually these types of things whether you are using a proxy
server, firewall, or router they tend to have it set up so that it is using
ip masquerade so that you will not be able to access it from outside unless
you change the machine that the server is on. Unless someone else may know a
way...

David Smith



-----Original Message-----
From: Derick Zhao [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 6:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] how to connect to a php sever through a net work



I have locally tested my server, which is on the local windows network. It
works well. But when I am typing the IP address in the browser window in a
remote computer, it shows it cannot locate the server. I guess this because
my server don't have a separate IP address since it is connected to the
internet through another host computer, which has internet access with a IP
address. What should I do if I want to access the sever through a network
from a remote computer on the internet?

Regards, Derick


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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




--- End Message ---
--- Begin Message ---
You need to set up IP Forwarding on the router/gateway if you want to "see"
your internal server which most likely has a non-routable ip address.  Do a
search on this or ask your administrator to configure port 80 to forward
requests to your internal server's ip address, which "must" be static.

That is how I access my local network web server from the internet.  You
will be typing the ip address of the [cable] router which will in turn
direct the requests to your server.

hth, Duane

-----Original Message-----
From: Derick Zhao [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 6:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] how to connect to a php sever through a net work



I have locally tested my server, which is on the local windows network. It
works well. But when I am typing the IP address in the browser window in a
remote computer, it shows it cannot locate the server. I guess this because
my server don't have a separate IP address since it is connected to the
internet through another host computer, which has internet access with a IP
address. What should I do if I want to access the sever through a network
from a remote computer on the internet?

Regards, Derick




--- End Message ---
--- Begin Message --- Here is my problem I need to read a file path from this construct
Base Path <input type="text" name="sys_path" value="e:\\jon\\site_dev\\php-html" size="40" maxlength="80"><br>


however when I read it with
$appath=$_POST["sys_path"];
what I get is
e:\\\\\\jon\\\\\\site_dev\\\\\\php-html
not what I am expecting which is
e:\\jon\\site_dev\\php-html

how can I stop the post method from escaping all my backslashes twice
or do I have to write a routine that kills the surpluss ones?

Jon


--- End Message ---
--- Begin Message ---
You could try using forward slashes - they are functionally equivalent from
a PHP point of view...

Mikey

> -----Original Message-----
> From: Jon Phipps [mailto:[EMAIL PROTECTED]
> Sent: 25 July 2003 19:13
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] $_POST issues with file paths
>
>
> Here is my problem I need to read a file path from this construct
> Base Path <input type="text" name="sys_path"
> value="e:\\jon\\site_dev\\php-html" size="40" maxlength="80"><br>
>
> however when I read it with
> $appath=$_POST["sys_path"];
> what I get is
> e:\\\\\\jon\\\\\\site_dev\\\\\\php-html
> not what I am expecting which is
> e:\\jon\\site_dev\\php-html
>
> how can I stop the post method from escaping all my backslashes twice
> or do I have to write a routine that kills the surpluss ones?
>
> Jon
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message --- Thanks Mikey, had forgotten that. Works a treat.

Mikey wrote:
You could try using forward slashes - they are functionally equivalent from
a PHP point of view...

Mikey


-----Original Message-----
From: Jon Phipps [mailto:[EMAIL PROTECTED]
Sent: 25 July 2003 19:13
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] $_POST issues with file paths


Here is my problem I need to read a file path from this construct Base Path <input type="text" name="sys_path" value="e:\\jon\\site_dev\\php-html" size="40" maxlength="80"><br>

however when I read it with
$appath=$_POST["sys_path"];
what I get is
e:\\\\\\jon\\\\\\site_dev\\\\\\php-html
not what I am expecting which is
e:\\jon\\site_dev\\php-html

how can I stop the post method from escaping all my backslashes twice
or do I have to write a routine that kills the surpluss ones?

Jon


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





--- End Message ---
--- Begin Message ---
Is there a way to ORDER BY best-match-first when _not_ using FULLTEXT searches in 
MySQL? How can I calculate the relevance percentage? Can I do it in the mysql query 
directly or do I have to find a way to do it with PHP...?

.bobo [EMAIL PROTECTED]

--- End Message ---

Reply via email to