php-windows Digest 24 Jul 2002 13:58:52 -0000 Issue 1255

Topics (messages 14911 through 14914):

Re: Apache Virtual Hosts Local Machine Help
        14911 by: Peter
        14912 by: Luis Ferro
        14913 by: Luis Ferro

Re: Is there a limit... PLEASE HELP I'm Desperate
        14914 by: Max Sullivan

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 ---
the host name you want touse has to be a valid hostname .. so you can't just
make on up and go beauty i'll use that one .. it has to be added to ur dns
in order for virtual hosts to work

> -----Original Message-----
> From: Sean M. Mayhew [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 July 2002 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Apache Virtual Hosts Local Machine Help
>
>
> Im trying to set up virtual hosts with apache for testing php on my local
> machine.  I've searched the web all over and found the same instructions
> consistantly and have tried them numerous times but have been
> unsuccessful.
>
>
> First of all I'm having trouble determining where this "hosts" file  is
> supposed to be located so I altered it and saved it in the first
> directory I
> found it...
>
> C:\WINNT\system32\drivers\etc
>
> Then made a copy of it to...
> C:\WINNT\system32
>
> I changed the line from
>
> 127.0.0.1 localhost
> -to-
> 127.0.0.1     localhost examplesean.com
>
> I should mention that the hosts file I'm using does not contain the .sam
> extnsion that I found in tutorials the "hosts" file in fact has no file
> extension.
>
> I changed the httpd.conf file to contain:
> NameVirtualHost 127.0.0.1:80
> <VirtualHost 127.0.0.1>
> ServerName examplesean.com
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot "/www/examplesean"
> ErrorLog logs/error_log
> CustomLog logs/access_log common
>
> i created two directories in my apache htdocs directory  one
> called www (as
> is similar to modwest) then a folder called examplesean with an index.html
> file.
>
> When I put http://examplesean.com  into the browser I get the following
> error
>
>
> Not Found
> The requested URL / was not found on this server.
>
>
> ------------------------------------------------------------------
> ----------
> ----
>
> Apache/1.3.19 Server at examplesean.com Port 80
>
> Im running PHP4 with apache on a Windows 2000 professional OS.  Any help
> would be greatly appreciated.
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
In the host just add new entries like this:

127.0.0.1       localhost
127.0.0.1       exampleone.com
127.0.0.1       exampletwo.com

Then in the apache config you add:

NameVirtualHost *

<VirtualHost *>
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot E:/sites/exampleone
        ServerName exampleone
        ErrorLog logs/exampleone-error_log
        CustomLog logs/exampleone-access_log common
</VirtualHost>

<VirtualHost *>
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot E:/sites/exampletwo
        ServerName exampletwo
        ErrorLog logs/ exampletwo-error_log
        CustomLog logs/ exampletwo-access_log common
</VirtualHost>

Of notice is the sensitivity of apache config to the / and \... in some places one 
works in others you must use the other...

you can play arround with the * and the servernames in both the generic directive or 
the specific virtualhost servernames... however, you must have at least one of the 
virtual hosts to answer for the namevirtualhost...

Cheers,
Luis Ferro

P.S.- don't forget to change the php.ini directories also, specially the include 
defaults... that give me much headaches...





--- End Message ---
--- Begin Message ---
I'm with access to the computer where i've apache+php+mysql with virtual 
directories right now... i will pass over my configs later on to the 
list... [in 10/12 hours from this post]

Cheers...
Luis Ferro

--- End Message ---
--- Begin Message ---
Have you tried changing the value of memory_limit in your php.ini file?
If you have this set to 4mb, that may be your problem.

Heres what it looks like in the php.ini file.
memory_limit = 8M      ; Maximum amount of memory a script may consume
(8MB)



-----Original Message-----
From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 23, 2002 1:40 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Is there a limit... PLEASE HELP I'm Desperate



After checking the bios it seems to be truncating right around the 4092
character mark (including spaces).  I checked the database and it does
in fact contain the entire bio (well over the 4092 character mark)...and
as a side note ASP returns the entire bio.  It seems to be some type of
truncation that is happening in PHP.

Is there any way I can break the Bio up over several queries to ensure I
get the entire thing back?

I'm dying here, I'm set to go live and I just noticed this problem.

Please help.

Ron




> 
> Is there a limit to the amount of text a variable can hold?
> 
> I have a situation where I'm querying a SQL database for a Salesmans 
> Biography and then echoing the variable using the syntax "$row['bio]" 
> and for some reason the bios appear to be truncated on the larger 
> bios. I am not processing the bios in any way shape or form so they 
> should be complete.
> 
> If in fact there is a limit, how could I formulate a work around for 
> this problem?
> 
> Thanks,
> Ron
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---

Reply via email to