php-windows Digest 21 Mar 2004 21:22:51 -0000 Issue 2175

Topics (messages 23206 through 23209):

Re: WEB SERVER help
        23206 by: Student

Slash problem in link
        23207 by: Harpreet
        23208 by: Paul Brownsea
        23209 by: Student

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 ---
This i think so.  When i did a c:\>ipconfig/all this is what i get

Windows 2000 IP Configuration
Host Name :  something
Primary DNS Suffix :              (<- this was null)
Node Type : Broadcast
IP Routing Enable : No
WINS Proxy Enabled : No

Can someone tell me what i have to do to get my web server running and accessable from 
outside.  Do i need to enable my IP Routing and if yes then how.  Is there anything 
that i need to keep in mind before enabling the IP Routing? Please reply..
thanks
prit
  "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
  Your problem has nothing to do with PHP, it's a IP routing problem.


  -----Original Message-----
  From: Student
  To: [EMAIL PROTECTED]
  Sent: 20-3-2004 11:59
  Subject: [PHP-WIN] WEB SERVER help

  Hi all, I am a fresh graduate out off uni and i need some ones helps. U
  see our company has a HP server which came with win2000 server OS cd. I
  have installed win2k and have installed IIS on it. I am trying to have
  our web site (build on PHP and MYSQL). After a bit of trying, i got PHP
  to run with IIS, but then i realised that IIS takes a lot of time in
  process the PHP scripts. So i then stopped IIS and instaled Apache web
  server. Apache was faster in process the PHP scripts then IIS. Now my
  web server is working fine. But i can't get it to be accessable outside
  the server. I can only view my web site on the server and not on any of
  the other computers. I get an ISA Server Error, saying that gateway no
  access . Please help me, i am not that well vesed with server setup.. 
  Please do email me on [EMAIL PROTECTED]
  Thanks
  prit

--- End Message ---
--- Begin Message ---
I am having a weird problem. I am not sure if this is a php problme or plain
html problme but see if anyone can help.

I have a page called login.php. It has  the following image link. It works
at home fine when i put the link as below

<IMG src="images/onlylogo.gif">

We tried putting the same page on another customer and it wont show. We put
a slash in the front of image and it worked and we can view the image. <IMG
src="/images/onlylogo.gif">

But the slash does not work at home on my machine.

When do we have to use the slash and when not ...how can we tell

please help

--- End Message ---
--- Begin Message ---
On Sunday 21 March 2004 05:33, Harpreet wrote:
> I am having a weird problem. I am not sure if this is a php problme or
> plain html problme but see if anyone can help.
>
> I have a page called login.php. It has  the following image link. It works
> at home fine when i put the link as below
>
> <IMG src="images/onlylogo.gif">
>
> We tried putting the same page on another customer and it wont show. We put
> a slash in the front of image and it worked and we can view the image. <IMG
> src="/images/onlylogo.gif">
>
> But the slash does not work at home on my machine.
>
> When do we have to use the slash and when not ...how can we tell
>
> please help

        With the "/" you are delcaring that the image is in the directory "images", 
relative to the server root (maybe "c:\program 
files\apache\htdocs\images\onlylogo.gif" giving a webaddress of 
"http://www.mywebsite.com/images/onlylogo.gif";). Whereas without the "/" you 
are declaring that the image is in the "images" directory, relative to the 
PHP script (or HTML page) (maybe "c:\program 
files\apache\htdocs\MYWEBSITE\images\onlylogo.gif" giving 
"http://www.mywebsite.com/MYWEBSITE/images/onlylogo.gif";). So I think it is 
just a HTML problem.

--- End Message ---
--- Begin Message ---
I think its better to have the image folder in the root directory eg 
www.website.com/image and then have the code as <img src="/image/website.png" />.  
That way, it would be able to access the image from anyway in your web site...(I Think)

"Paul Brownsea" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
  On Sunday 21 March 2004 05:33, Harpreet wrote:
  > I am having a weird problem. I am not sure if this is a php problme or
  > plain html problme but see if anyone can help.
  >
  > I have a page called login.php. It has  the following image link. It works
  > at home fine when i put the link as below
  >
  > <IMG src="images/onlylogo.gif">
  >
  > We tried putting the same page on another customer and it wont show. We put
  > a slash in the front of image and it worked and we can view the image. <IMG
  > src="/images/onlylogo.gif">
  >
  > But the slash does not work at home on my machine.
  >
  > When do we have to use the slash and when not ...how can we tell
  >
  > please help

  With the "/" you are delcaring that the image is in the directory "images", 
  relative to the server root (maybe "c:\program 
  files\apache\htdocs\images\onlylogo.gif" giving a webaddress of 
  "http://www.mywebsite.com/images/onlylogo.gif";). Whereas without the "/" you 
  are declaring that the image is in the "images" directory, relative to the 
  PHP script (or HTML page) (maybe "c:\program 
  files\apache\htdocs\MYWEBSITE\images\onlylogo.gif" giving 
  "http://www.mywebsite.com/MYWEBSITE/images/onlylogo.gif";). So I think it is 
  just a HTML problem.

--- End Message ---

Reply via email to