php-general Digest 9 Feb 2002 09:13:14 -0000 Issue 1161

Topics (messages 84052 through 84091):

Re: session register!!
        84052 by: Erik Price
        84054 by: Cristian Cerda
        84078 by: Janet Valade

Re: Trying to put ips into database
        84053 by: Daniel C. BAUFAY
        84055 by: Matthew Walker

File Upload Performance
        84056 by: Linn Kubler

Content Management
        84057 by: karthikeyan
        84061 by: Philip Hallstrom
        84064 by: sean.interconnect.is.it
        84065 by: Justin Farnsworth

Re: Php Projects
        84058 by: hugh danaher
        84091 by: Alan McFarlane

Re: Execing problems
        84059 by: Peter Clarke

escaping ?>
        84060 by: Steven Jarvis
        84066 by: Jeff Sheltren

Browser based WYSIWYG HTML editor
        84062 by: Mullin, Reginald

Re: How to keep form inputs from being cleared
        84063 by: SpamSucks86
        84067 by: Jason Wong

Math rounding problem
        84068 by: Charlie Killian
        84069 by: Philip Hallstrom
        84071 by: DL Neil
        84072 by: Charlie Killian
        84076 by: hugh danaher

Re: secure form handling
        84070 by: Paul Roberts

die! die! directory!
        84073 by: hugh danaher
        84074 by: hugh danaher
        84081 by: Jason Wong
        84082 by: hugh danaher
        84083 by: hugh danaher
        84084 by: hugh danaher

Search Page
        84075 by: Georgie Casey

php
        84077 by: Uma Shankari T.

Re: force refresh?
        84079 by: Jeff D. Hamann

features in PHP
        84080 by: Justin Palmer

Exact string replacement...
        84085 by: Desikan
        84087 by: Brian Clark
        84088 by: Brian Clark
        84089 by: Desikan
        84090 by: Brian Clark

Re: Sending an e-mail to 1,000 people
        84086 by: Manuel Lemos

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 ---

On Friday, February 8, 2002, at 02:15  PM, Cristian Cerda wrote:

> I did set register_globals to On on the php.ini file. But when i use for
> example session_register("the_var") in one page ( using session_start()
> at the beginning), i don't get anything on the next page if i do echo
> $the_var .

I could be wrong about this: did you try restarting Apache?  e.g., 
"apachectl graceful" ?


Erik


----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
yes, and didn't work.

Erik Price wrote:

> On Friday, February 8, 2002, at 02:15  PM, Cristian Cerda wrote:
>
> > I did set register_globals to On on the php.ini file. But when i use for
> > example session_register("the_var") in one page ( using session_start()
> > at the beginning), i don't get anything on the next page if i do echo
> > $the_var .
>
> I could be wrong about this: did you try restarting Apache?  e.g.,
> "apachectl graceful" ?
>
> Erik
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Did you use session_start() on the second page?

In other words, the first page should have

session_start();
session_register("the_var");
$the_var=-"here it is";
link or whatever takes you to the second page.

Then the second page needs

session_start();
echo "$the_var";

Janet

----- Original Message ----- 
From: "Cristian Cerda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 11:15 AM
Subject: [PHP] session register!!


> Hi there, hope you can help me with my problem.
> 
> I'm trying to set up a PHP/MySQL web site using session variables to
> pass information between pages. So far no good.
> 
> I did set register_globals to On on the php.ini file. But when i use for
> example session_register("the_var") in one page ( using session_start()
> at the beginning), i don't get anything on the next page if i do echo
> $the_var .
> 
> Don't know what's wrong, but my guess is i have something wrong with the
> configuration as i copy/pasted most of the code.
> 
> I'm using OS X / WebSTAR V / PHP 4.0.6 as a CGI / MySQL
> 
> please help
> 
> Cristian
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
And for efficiency you could convert and store IP addresses in numeric 
format.
See INET_NTOA and INET_ATON.





Subject:

Re: [PHP] Trying to put ips into database
From:

Matt Drake <[EMAIL PROTECTED]>
Date:

Fri, 8 Feb 2002 11:52:26 -0600 (CST)

To:

<[EMAIL PROTECTED]>


On Fri, 8 Feb 2002, Dennis Moore wrote:


>> Not sure what your exact problem is but I did notice you had back ticks(`)
>> in your insert statement.  You should be using (').   You may need a where
>> clause in your insrt statement unless you want to populate all rows.  Just a
>> couple of thoughts.
>
 



--- End Message ---
--- Begin Message ---
What type of field is 'ip'?

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-----Original Message-----
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 08, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Trying to put ips into database

I'm trying:
$query = mysql_query("select COUNT(*) as rowexists from ips where ip =
'$REMOTE_ADDR'");
$result = mysql_fetch_array($query);
if($result['rowexists'] == false){
mysql_query("INSERT INTO `ips` (`ip`) VALUES ('$REMOTE_ADDR')");
}


But it keeps putting the ip into tthe array, even if it's already there,
and
it only gets the first section of the ip!  What am I doing wrong? 

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002
 
--- End Message ---
--- Begin Message ---
I've setup an upload form for uploading files to my server.  It seems to
work well except the performance is pretty sad.  For example it took 20
minutes to upload a 50MB file over a 100Mb LAN.  This is running on Linux
w/Apache.

At the heart of the script is the copy() function.  Anyone have any
suggestions how to boost performance on this script?  Or, at least explain
why this is happening?

Thanks in advance,
Linn



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

  How should i go about to developing a php application to manage the content of a web 
site OR is there allready some ready made script available which i can use in my 
project.

  Looking forward for yours response.

karthikeyan.
--- End Message ---
--- Begin Message ---
check the application section of www.zend.com

-philip

On Sat, 9 Feb 2002, karthikeyan wrote:

> Hi,
>
>   How should i go about to developing a php application to manage the content of a 
>web site OR is there allready some ready made script available which i can use in my 
>project.
>
>   Looking forward for yours response.
>
> karthikeyan.
>

--- End Message ---
--- Begin Message ---
We'd need some more information, as "Content Management" is as varied as web pages, 
but depending on your needs:
http://www.roadsend.com/siteManager/home/treeMenu.php
is a hot script.

Look around on-line or on php.net for some leads that suite your complexity 
requirements, or fill us in on the scope of your project.

- sean

-------------------------------
   I N T E R C O N N E C T
  Internet Image Development
       Tel: 505 989 3749
 http://www.InterConnect.is.it
------------------------------- 

-----Original Message-----
From: karthikeyan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Content Management


Hi,

  How should i go about to developing a php application to manage the content of a web 
site OR is there allready some ready made script available which i can use in my 
project.

  Looking forward for yours response.

karthikeyan.


--- End Message ---
--- Begin Message ---
You might check out binarycloud.  This is a platform
but there is probably going to be an app for content
management very soon as this is being worked on.

SEE: http://binarycloud.tigris.org/
SEE: http://www.binarycloud.com/

_justin

karthikeyan wrote:
> 
> Hi,
> 
>   How should i go about to developing a php application to manage the content of a 
>web site OR is there allready some ready made script available which i can use in my 
>project.
> 
>   Looking forward for yours response.
> 
> karthikeyan.

-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722
--- End Message ---
--- Begin Message ---
How about an interactive map showing all the commercial breweries in the
world.  I'll input the ones I know about in Antarctica.

----- Original Message -----
From: "mike cullerton" <[EMAIL PROTECTED]>
To: "PHP-General" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 12:21 PM
Subject: Re: [PHP] Php Projects


> on 2/8/02 12:49 PM, Nick Wilson at [EMAIL PROTECTED] wrote:
>
> >> Do I detect a bit of Friday-afternoon sarcasm??? <GRIN>
> >>
> >> Actually, a beer sounds good about now....
> >
> > Friday evening in .dk and php is always best served with a cold one!
>
> reminds me of my days as a netadmin. playing with routers late on a friday
> night after a few cold ones was always fun :)
>
>
>  -- mike cullerton   michaelc at bakednotfried dot com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I've already got the steady supply of beer, but a backup? remind me - what's
that word mean again...

Alan McFarlane
(Just after suffering a major NT dual server crash when the bac

Nick Wilson <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> * and then Arik Ashepa declared....
> > Hi.
> > I was wondring...
> > maybe you want to develop a project?
> > have any ideas?
>
> Yes! How about a database backed set of scripts to create world peace
> and send a steady supply of beer to my house?
>
> - --
>
> Nick Wilson
>
> Tel: +45 3325 0688
> Fax: +45 3325 0677
> Web: www.explodingnet.com
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE8ZCmLHpvrrTa6L5oRAk63AKCIidIl7jTdl9weiRbnJau/YVwCKQCcCukg
> vfCBVeUKS8xMpnfderSjLXw=
> =UDHe
> -----END PGP SIGNATURE-----


--- End Message ---
--- Begin Message ---
Make sure that exec() will not get any kind of response from the script if
you want it in the background.
This works for me:

$command = "funky script stuff here";
exec ("$command >/dev/null 2>&1 &");

Peter Clarke

"Jason Rennie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I have a seperate perl script that I need to start running from a php
> script. The script does a fork into the backgroup and exits.
>
> when i do an
>
> exec("funky script stuff here");
>
> The page just hangs trying to load again, apparently after I call the
> exec.
>
> I've also tried
>
> exec("script stuff &")
>
> but it does the same thing.
>
> Any ideas anybody ?
>
> Jason
>
> --
> Hofstadter's Law : "It always takes longer than you expect, even when you
> take Hofstadter's Law into account."
>

--- End Message ---
--- Begin Message ---
I'm trying to do some string replaces on XML files to import them into a 
prprietary db that doesn't understand XML.

I need to strip the XML tags out of the file.

However, when I use this line:

$contents = str_replace('<?xml version="1.0"?>', '', $contents);

The ?> in the string ends my php block.


I know there's an easy answer to this, and I'm probably just suffering 
from Friday afternoon burnout, but can someone let me know how to escape 
those so that I can search for them in the string?

thanks,

Steven

--- End Message ---
--- Begin Message ---
Hi, try this:

str_replace("<?xml version=\"1.0\"?>"....

Jeff

At 03:45 PM 2/8/2002 -0600, Steven Jarvis wrote:
>I'm trying to do some string replaces on XML files to import them into a 
>prprietary db that doesn't understand XML.
>
>I need to strip the XML tags out of the file.
>
>However, when I use this line:
>
>$contents = str_replace('<?xml version="1.0"?>', '', $contents);
>
>The ?> in the string ends my php block.
>
>
>I know there's an easy answer to this, and I'm probably just suffering 
>from Friday afternoon burnout, but can someone let me know how to escape 
>those so that I can search for them in the string?
>
>thanks,
>
>Steven
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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

Is anyone aware of a browser based WYSIWYG HTML editor that works with PHP?
Essentially, something that's free and easy to integrate into my existing
form.  I want users to be able to add formatted content to my site without
knowing any real HTML.

O      From Now 'Till Then,
\->    Reginald Alex Mullin
/\      212-894-1690



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the postmaster at [EMAIL PROTECTED]


www.sothebys.com
**********************************************************************

--- End Message ---
--- Begin Message ---
With --enable-trans-sid the problem still exists. For example, a user
logs in and cookies are disabled. He browses to a page which doesn't
load the session. Then from there he goes to a page that does use
sessions. Unless I'm mistaken, --enable-trans-sid won't add the session
ID unless the session is started on the page.

-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 07, 2002 11:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How to keep form inputs from being cleared

On Friday 08 February 2002 04:33, CompMan86 wrote:
> I posted about this a few days ago. I received several responses but
> none of them were very helpful (thanks for the effort though). I
finally
> figured out what it was by process of elimination. At the top of my
> registration form, I put session_start() just like I did for all my
> other scripts. Well it turns out that by doing this, for some reason,
it
> clears the form. I have a hunch that the cookie request by
> session_start() has something to do with it. Well, the only reason
> someone would be at the registration form would be if he/she was not a
> member, therefore the session ID would be pointless.
>
> This is the major flaw of PHP's built in sessions imho: If a user
> disables cookies, the session functions assign the session ID to the
> constant SID. However, if the SID is not passed on religiously, a new
> session will be made. In an instance like this where session_start()
> cannot be used, you can't pass on the SID. It seems like I'm just
going
> to resort to requiring that my users enable session cookies. The
hastle
> of making the code to use both SID and/or cookies just doesn't seem
> worth it. If anyone has any ideas of a resolution to this problem,
feel
> free to post here or email me.

If you have full access to your server you can recompile php with the 
"--enable-trans-sid" option. Once this is done the SID will be 
*automagically* be propagated via the URL or hidden form elements. An 
extremely useful feature if you need sessions and cannot rely on the
user 
having enabled cookies.


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
Type louder, please.
*/

--- End Message ---
--- Begin Message ---
On Saturday 09 February 2002 06:56, SpamSucks86 wrote:
> With --enable-trans-sid the problem still exists. For example, a user
> logs in and cookies are disabled. He browses to a page which doesn't
> load the session. Then from there he goes to a page that does use
> sessions. Unless I'm mistaken, --enable-trans-sid won't add the session
> ID unless the session is started on the page.


All you have to do is ensure that in all your pages you initialise the 
session. This can also be done automatically through the session.auto_start 
setting in php.ini.



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
While money can't buy happiness, it certainly lets you choose your own
form of misery.
*/
--- End Message ---
--- Begin Message ---
For an arbitrary large number I need to round() it up to the hundreds place
if it is not divisible by 100 and leave it untouched if it is.

So 1100 would round to 1100 and
1101 would round to 1200.

Is there a clean way to do this?

Currently I'm:
$scale = round($scale+49, -2); // round up to hundreds.

But this is messy.

Charlie


--- End Message ---
--- Begin Message ---
Something like this...?

if( $n % 100 != 0 )  {
  $n += 100 - ($n % 100);
}

Although I don't think your example is any messier...  maybe ceil/floor
should have a precision field added...

-philip

On Fri, 8 Feb 2002, Charlie Killian wrote:

> For an arbitrary large number I need to round() it up to the hundreds place
> if it is not divisible by 100 and leave it untouched if it is.
>
> So 1100 would round to 1100 and
> 1101 would round to 1200.
>
> Is there a clean way to do this?
>
> Currently I'm:
> $scale = round($scale+49, -2); // round up to hundreds.
>
> But this is messy.
>
> Charlie
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Charlie,

> For an arbitrary large number I need to round() it up to the hundreds place
> if it is not divisible by 100 and leave it untouched if it is.
> 
> So 1100 would round to 1100 and
> 1101 would round to 1200.
> 
> Is there a clean way to do this?
> 
> Currently I'm:
> $scale = round($scale+49, -2); // round up to hundreds.
> 
> But this is messy.


You thought that was messy? Try:

if ( ( intval( $scale  / 100 ) * 100 ) < $scale )
{   
   $scale = 1 + ( intval( $scale  / 100 ) * 100 );
}

Regards,
=dn


--- End Message ---
--- Begin Message ---
This equation  from Bogdan is simple and working:

$scale=ceil($scale/100)*100;

Thanks to all those who helped,

Charlie


> -----Original Message-----
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
> 
> $scale=ceil($scale/100)*100, maybe?
> 
> Bogdan
--- End Message ---
--- Begin Message ---
ceil() maybe
----- Original Message -----
From: "Charlie Killian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 4:14 PM
Subject: [PHP] Math rounding problem


> For an arbitrary large number I need to round() it up to the hundreds
place
> if it is not divisible by 100 and leave it untouched if it is.
>
> So 1100 would round to 1100 and
> 1101 would round to 1200.
>
> Is there a clean way to do this?
>
> Currently I'm:
> $scale = round($scale+49, -2); // round up to hundreds.
>
> But this is messy.
>
> Charlie
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I think you mean that you want to display the total as text but have the total on the 
form hidden so they can't edit it (and give themselves a discount), you can  use a 
hidden form field, sessions or cookies.

<input type="hidden" value="xxxx" name="total">


Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++

----- Original Message ----- 
From: "wm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 1:36 AM
Subject: [PHP] secure form handling


> hi,
> 
> i'm fairly new to this.
> 
> what i want to do is use a form so the user can specify a few different
> choices
> of things they want to buy. maybe a few radio buttons with dollar
> amounts and
> then possibly a couple of quantity fields for items.
> 
> this can then be passed to a script and total added up etc. and the user
> 
> can input
> their billing data. what i don't want is for the user to be able to see
> the amount of
> the transaction in the source code in a hidden field.
> 
> how do i hide this data while still passing it to the credit card script
> 
> along with all
> the other info?
> 
> thanks.
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
--- End Message ---
--- Begin Message ---
Help!

I've been beating on a problem all day and think I've isolated the problem to the 
following line:

   print "<input type=image src=./maps/map1.jpg name=coordinate >";

If I call the statement as is, I get a little red x where my map should be.  In 
earlier calls to the same directory, I can get a server error, misconfiguration...

if I change the line to:

   print "<input type=image src=map1.jpg name=coordinate >";

I see the image.

is there a way to declare the path before asking for the file, or a better way to 
state the file location.

Any help will be greatly appreciated.

Hugh
--- End Message ---
--- Begin Message ---
Phil, Thanks for the suggestion.  I tried it and it worked the first time,
but as I changed to a second directory ./maps2/ it fell apart again.

Also, what I didn't state at the start, was that map1.jpg is actually a
variable, $map.  It's just that when I was pounding on it, I settled on
using hard names instead of variables figuring that I was at least limiting
the source for error.  The problem is the same though, it seems to work then
dies.  Not my machine either, I ftp the file to olm and see the results on
line.

Thanks for your help.  If you have any other suggestions, please let me
know.
Hugh



----- Original Message -----
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
To: "hugh danaher" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 5:05 PM
Subject: Re: die! die! directory!


> what if you do this:
>
> print "<input type=image src=\"./maps/map1.jpg\" name=coordinate >";
>
> ??
>
> On Fri, 8 Feb 2002, hugh danaher wrote:
>
> > Help!
> >
> > I've been beating on a problem all day and think I've isolated the
problem to the following line:
> >
> >    print "<input type=image src=./maps/map1.jpg name=coordinate >";
> >
> > If I call the statement as is, I get a little red x where my map should
be.  In earlier calls to the same directory, I can get a server error,
misconfiguration...
> >
> > if I change the line to:
> >
> >    print "<input type=image src=map1.jpg name=coordinate >";
> >
> > I see the image.
> >
> > is there a way to declare the path before asking for the file, or a
better way to state the file location.
> >
> > Any help will be greatly appreciated.
> >
> > Hugh
> >
>

--- End Message ---
--- Begin Message ---
On Saturday 09 February 2002 09:35, hugh danaher wrote:
> Phil, Thanks for the suggestion.  I tried it and it worked the first time,
> but as I changed to a second directory ./maps2/ it fell apart again.
>
> Also, what I didn't state at the start, was that map1.jpg is actually a
> variable, $map.  It's just that when I was pounding on it, I settled on
> using hard names instead of variables figuring that I was at least limiting
> the source for error.  The problem is the same though, it seems to work
> then dies.  Not my machine either, I ftp the file to olm and see the
> results on line.
>

Instead of using "./maps2/" why don't you just use "maps2/" ?


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
If it ain't broke, don't fix it.
*/
--- End Message ---
--- Begin Message ---
ok, I'll buy that, but.....  Now, in a strictly php page that is also
failing intermittently I have the following:

$im_size = GetImageSize("./maps/$map");

Same basic HTML problem?

I'll change everything to be relative to http:// and see if that helps.

----- Original Message -----
From: "Larry Jeannette" <[EMAIL PROTECTED]>
To: "'hugh danaher'" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 7:49 PM
Subject: RE: [PHP] Re: die! die! directory!


> This is a standard HTML question, not a PHP question.
>
> If you do not include http:// or a / in front of the src value then it
> is taken as relative to the documents directory - ie: if the document is
> at the location http://www.someplace.com/somedir and src=map1.jpg then
> the browswer will look for the image at
> http://www.someplace.com/somedir/map1.jpg, if src=/map1.jpg then the
> browser will look for it http://www.someplace.com/map1.jpg (the / tells
> it to start from the web sites root, or top level, directory).
>
> LRJ
>
> -----Original Message-----
> From: hugh danaher [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 5:35 PM
> To: php
> Subject: [PHP] Re: die! die! directory!
>
>
> Phil, Thanks for the suggestion.  I tried it and it worked the first
> time, but as I changed to a second directory ./maps2/ it fell apart
> again.
>
> Also, what I didn't state at the start, was that map1.jpg is actually a
> variable, $map.  It's just that when I was pounding on it, I settled on
> using hard names instead of variables figuring that I was at least
> limiting the source for error.  The problem is the same though, it seems
> to work then dies.  Not my machine either, I ftp the file to olm and see
> the results on line.
>
> Thanks for your help.  If you have any other suggestions, please let me
> know. Hugh
>
>
>
> ----- Original Message -----
> From: "Philip Hallstrom" <[EMAIL PROTECTED]>
> To: "hugh danaher" <[EMAIL PROTECTED]>
> Sent: Friday, February 08, 2002 5:05 PM
> Subject: Re: die! die! directory!
>
>
> > what if you do this:
> >
> > print "<input type=image src=\"./maps/map1.jpg\" name=coordinate >";
> >
> > ??
> >
> > On Fri, 8 Feb 2002, hugh danaher wrote:
> >
> > > Help!
> > >
> > > I've been beating on a problem all day and think I've isolated the
> problem to the following line:
> > >
> > >    print "<input type=image src=./maps/map1.jpg name=coordinate >";
> > >
> > > If I call the statement as is, I get a little red x where my map
> > > should
> be.  In earlier calls to the same directory, I can get a server error,
> misconfiguration...
> > >
> > > if I change the line to:
> > >
> > >    print "<input type=image src=map1.jpg name=coordinate >";
> > >
> > > I see the image.
> > >
> > > is there a way to declare the path before asking for the file, or a
> better way to state the file location.
> > >
> > > Any help will be greatly appreciated.
> > >
> > > Hugh
> > >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Thanks Jason, I'll give it a try too.
Hugh
----- Original Message -----
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 9:20 PM
Subject: Re: [PHP] Re: die! die! directory!


> On Saturday 09 February 2002 09:35, hugh danaher wrote:
> > Phil, Thanks for the suggestion.  I tried it and it worked the first
time,
> > but as I changed to a second directory ./maps2/ it fell apart again.
> >
> > Also, what I didn't state at the start, was that map1.jpg is actually a
> > variable, $map.  It's just that when I was pounding on it, I settled on
> > using hard names instead of variables figuring that I was at least
limiting
> > the source for error.  The problem is the same though, it seems to work
> > then dies.  Not my machine either, I ftp the file to olm and see the
> > results on line.
> >
>
> Instead of using "./maps2/" why don't you just use "maps2/" ?
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>
> /*
> If it ain't broke, don't fix it.
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
ok, I changed all the paths to include:
( http://www.host.com/directory/sub-directory ) before the /maps2/map1.jpg
call.  It still falls apart, but... if I shorten the path I can get to the
image.  I am beginning to think there is a weakness in the file structure on
my site.  Anyone else see anything like this?
Hugh
----- Original Message -----
From: "hugh danaher" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 9:41 PM
Subject: Re: [PHP] Re: die! die! directory!


> ok, I'll buy that, but.....  Now, in a strictly php page that is also
> failing intermittently I have the following:
>
> $im_size = GetImageSize("./maps/$map");
>
> Same basic HTML problem?
>
> I'll change everything to be relative to http:// and see if that helps.
>
> ----- Original Message -----
> From: "Larry Jeannette" <[EMAIL PROTECTED]>
> To: "'hugh danaher'" <[EMAIL PROTECTED]>
> Sent: Friday, February 08, 2002 7:49 PM
> Subject: RE: [PHP] Re: die! die! directory!
>
>
> > This is a standard HTML question, not a PHP question.
> >
> > If you do not include http:// or a / in front of the src value then it
> > is taken as relative to the documents directory - ie: if the document is
> > at the location http://www.someplace.com/somedir and src=map1.jpg then
> > the browswer will look for the image at
> > http://www.someplace.com/somedir/map1.jpg, if src=/map1.jpg then the
> > browser will look for it http://www.someplace.com/map1.jpg (the / tells
> > it to start from the web sites root, or top level, directory).
> >
> > LRJ
> >
> > -----Original Message-----
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 08, 2002 5:35 PM
> > To: php
> > Subject: [PHP] Re: die! die! directory!
> >
> >
> > Phil, Thanks for the suggestion.  I tried it and it worked the first
> > time, but as I changed to a second directory ./maps2/ it fell apart
> > again.
> >
> > Also, what I didn't state at the start, was that map1.jpg is actually a
> > variable, $map.  It's just that when I was pounding on it, I settled on
> > using hard names instead of variables figuring that I was at least
> > limiting the source for error.  The problem is the same though, it seems
> > to work then dies.  Not my machine either, I ftp the file to olm and see
> > the results on line.
> >
> > Thanks for your help.  If you have any other suggestions, please let me
> > know. Hugh
> >
> >
> >
> > ----- Original Message -----
> > From: "Philip Hallstrom" <[EMAIL PROTECTED]>
> > To: "hugh danaher" <[EMAIL PROTECTED]>
> > Sent: Friday, February 08, 2002 5:05 PM
> > Subject: Re: die! die! directory!
> >
> >
> > > what if you do this:
> > >
> > > print "<input type=image src=\"./maps/map1.jpg\" name=coordinate >";
> > >
> > > ??
> > >
> > > On Fri, 8 Feb 2002, hugh danaher wrote:
> > >
> > > > Help!
> > > >
> > > > I've been beating on a problem all day and think I've isolated the
> > problem to the following line:
> > > >
> > > >    print "<input type=image src=./maps/map1.jpg name=coordinate >";
> > > >
> > > > If I call the statement as is, I get a little red x where my map
> > > > should
> > be.  In earlier calls to the same directory, I can get a server error,
> > misconfiguration...
> > > >
> > > > if I change the line to:
> > > >
> > > >    print "<input type=image src=map1.jpg name=coordinate >";
> > > >
> > > > I see the image.
> > > >
> > > > is there a way to declare the path before asking for the file, or a
> > better way to state the file location.
> > > >
> > > > Any help will be greatly appreciated.
> > > >
> > > > Hugh
> > > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I'm making a search page on my site where users enter certain criteria and I
ouput the results like many other webistes: By first telling how many
results were generated, then having dynamic pages to view, say, 10 results
at a time.

So first I have to SQL the database to get totalresults, then cancel that
query and query again with a "LIMIT" tag on the end to display the first 10
results. Is there a more efficient way of doing what I'm trying to do?

I coded it myself so its probably poor, design-wise. Am I going about it the
right way?

--
Regards,
Georgie Casey
[EMAIL PROTECTED]

***************************
http://www.filmfind.tv
Ireland's Online Film Production Directory
***************************


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

Hello,


  I have installed php3 in my machine.To make php connection with mysql
what are the lines to be comment out in apache conf file.Here i am
attaching the some parts of apache conf file



-Uma
##
## httpd.conf -- Apache HTTP server configuration file
##

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://www.apache.org/docs/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# After this file is processed, the server will look for and process
# /usr/conf/srm.conf and then /usr/conf/access.conf
# unless you have overridden these with ResourceConfig and/or
# AccessConfig directives here.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/usr/local/apache" will be interpreted by the
# server as "/usr/local/apache/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerType is either inetd, or standalone.  Inetd mode is only supported on
# Unix platforms.
#
ServerType standalone

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main server process is automatically appended to
# the filename. 
#
LockFile /var/lock/httpd.lock

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile /var/run/httpd.pid

#
# ScoreBoardFile: File used to store internal server process information.
# Not all architectures require this.  But if yours does (you'll know because
# this file will be  created when you run Apache) then you *must* ensure that
# no two invocations of Apache share the same scoreboard file.
#
ScoreBoardFile /var/run/httpd.scoreboard

#
# In the standard configuration, the server will process this file,
# srm.conf, and access.conf in that order.  The latter two files are
# now distributed empty, as it is recommended that all directives
# be kept in a single file for simplicity.  The commented-out values
# below are the built-in defaults.  You can have the server ignore
# these files altogether by using "/dev/null" (for Unix) or
# "nul" (for Win32) for the arguments to the directives.
#
#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

#
# Server-pool size regulation.  Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
#
# It does this by periodically checking how many servers are waiting
# for a request.  If there are fewer than MinSpareServers, it creates
# a new spare.  If there are more than MaxSpareServers, some of the
# spares die off.  The default values are probably OK for most sites.
#
MinSpareServers 5
MaxSpareServers 20

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 8

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 150

#
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies.  The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources.  On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries. For these platforms, set to something like 10000
# or so; a setting of 0 means unlimited.
#
# NOTE: This value does not include keepalive requests after the initial
#       request per connection. For example, if a child process handles
#       an initial request and 10 subsequent "keptalive" requests, it
#       would only count as 1 request towards this limit.
#
MaxRequestsPerChild 100

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
#Listen 3000
#Listen 12.34.56.78:80
Listen 80

#
# BindAddress: You can support virtual hosts with this option. This directive
# is used to tell the server which IP address to listen to. It can either
# contain "*", an IP address, or a fully qualified Internet domain name.
# See also the <VirtualHost> and Listen directives.
#
#BindAddress *

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file README.DSO in the Apache 1.3 distribution for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Note: The order is which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module modules/mod_foo.so

#LoadModule mmap_static_module modules/mod_mmap_static.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule env_module         modules/mod_env.so
LoadModule config_log_module  modules/mod_log_config.so
LoadModule agent_log_module   modules/mod_log_agent.so
LoadModule referer_log_module modules/mod_log_referer.so
#LoadModule mime_magic_module  modules/mod_mime_magic.so
LoadModule mime_module        modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule status_module      modules/mod_status.so
LoadModule info_module        modules/mod_info.so
LoadModule includes_module    modules/mod_include.so
LoadModule autoindex_module   modules/mod_autoindex.so
LoadModule dir_module         modules/mod_dir.so
LoadModule cgi_module         modules/mod_cgi.so
LoadModule asis_module        modules/mod_asis.so
LoadModule imap_module        modules/mod_imap.so
LoadModule action_module      modules/mod_actions.so
#LoadModule speling_module     modules/mod_speling.so
LoadModule userdir_module     modules/mod_userdir.so
LoadModule alias_module       modules/mod_alias.so
LoadModule rewrite_module     modules/mod_rewrite.so
LoadModule access_module      modules/mod_access.so
LoadModule auth_module        modules/mod_auth.so
LoadModule anon_auth_module   modules/mod_auth_anon.so
LoadModule db_auth_module     modules/mod_auth_db.so
#LoadModule dbm_auth_module    modules/mod_auth_dbm.so
#LoadModule auth_ldap_module   modules/mod_auth_ldap.so
#LoadModule digest_module      modules/mod_digest.so
#LoadModule proxy_module       modules/libproxy.so
#LoadModule cern_meta_module   modules/mod_cern_meta.so
LoadModule expires_module     modules/mod_expires.so
LoadModule headers_module     modules/mod_headers.so
#LoadModule usertrack_module   modules/mod_usertrack.so
#LoadModule example_module     modules/mod_example.so
#LoadModule unique_id_module   modules/mod_unique_id.so
LoadModule setenvif_module    modules/mod_setenvif.so
#LoadModule bandwidth_module   modules/mod_bandwidth.so
#LoadModule put_module         modules/mod_put.so
#LoadModule throttle_module    modules/mod_throttle.so
#LoadModule define_module      modules/mod_define.so
<IfDefine HAVE_PERL>
LoadModule perl_module        modules/libperl.so
</IfDefine>
<IfDefine HAVE_PHP>
LoadModule php_module         modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module        modules/libphp3.so
LoadModule php4_module        modules/libphp4.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module        modules/libphp4.so
</IfDefine>
<IfDefine HAVE_DAV>
LoadModule dav_module         modules/libdav.so
</IfDefine>
<IfDefine HAVE_ROAMING>
LoadModule roaming_module     modules/mod_roaming.so
</IfDefine>
<IfDefine HAVE_SSL>
LoadModule ssl_module         modules/libssl.so
</IfDefine>

#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
#AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_db.c
#AddModule mod_digest.c
#AddModule mod_proxy.c
#AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
#AddModule mod_usertrack.c
#AddModule mod_example.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
#AddModule mod_bandwidth.c
#AddModule mod_put.c
<IfDefine HAVE_PERL>
AddModule mod_perl.c
</IfDefine>
<IfDefine HAVE_PHP>
AddModule mod_php.c
</IfDefine>
<IfDefine HAVE_PHP3>
AddModule mod_php3.c
AddModule mod_php4.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
<IfDefine HAVE_DAV>
AddModule mod_dav.c
</IfDefine>
<IfDefine HAVE_ROAMING>
AddModule mod_roaming.c
</IfDefine>
<IfDefine HAVE_SSL>
AddModule mod_ssl.c
</IfDefine>

#
# ExtendedStatus: controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# If your ServerType directive (set earlier in the 'Global Environment'
# section) is set to "inetd", the next few directives don't have any
# effect since their settings are defined by the inetd configuration.
# Skip ahead to the ServerAdmin directive.
#

#
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 80

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group nobody on these systems!
#
User apache
Group apache

#
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# The following is for PHP4 (conficts with PHP/FI, below):


#<IfModule mod_php4.c>
 # AddType application/x-httpd-php .php4 .php3 .phtml .php
 # AddType application/x-httpd-php-source .phps
#</IfModule>

AddType application/x-httpd-php .php

# The following is for PHP3:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
</IfModule>
#---------

<IfModule mod_php3.c>
  AddType application/x-httpd-php3 .php3
  AddType application/x-httpd-php3-source .phps
</IfModule>
#---------
# The following is for PHP/FI (PHP2):
<IfModule mod_php.c>
  AddType application/x-httpd-php .phtml
</IfModule>

AddType application/x-tar .tgz

#
# AddHandler: allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
#AddHandler cgi-script .cgi

#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml

#
# Uncomment the following line to enable Apache's send-asis HTTP file
# feature
#
#AddHandler send-as-is asis

#
# If you wish to use server-parsed imagemap files, use
#
AddHandler imap-file map

#
# To enable type maps, you might want to use
#
#AddHandler type-map var

#
# Action: lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# MetaDir: specifies the name of the directory in which Apache can find
# meta information files. These files contain additional HTTP headers
# to include when sending the document
#
#MetaDir .web

#
# MetaSuffix: specifies the file name suffix for the file containing the
# meta information.
#
#MetaSuffix .meta

#
# Customizable error response (Apache style)
#  these come in three flavors
#
#    1) plain text
#ErrorDocument 500 "The server made a boo boo.
#  n.b.  the (") marks it as text, it does not get output
#
#    2) local redirects
#ErrorDocument 404 /missing.html
#  to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
#  N.B.: You can redirect to a script or a document using server-side-includes.
#
#    3) external redirects
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
#  N.B.: Many of the environment variables associated with the original
#  request will *not* be available to such a script.

#
# The following directives modify normal HTTP response behavior.
# The first directive disables keepalive for Netscape 2.x and browsers that
# spoof it. There are known problems with these browser implementations.
# The second directive is for Microsoft Internet Explorer 4.0b2
# which has a broken HTTP/1.1 implementation and does not properly
# support keepalive when it is used on 301 or 302 (redirect) responses.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

#
# The following directive disables HTTP/1.1 responses to browsers which
# are in violation of the HTTP/1.0 spec by not being able to grok a
# basic 1.1 response.
#
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0


# If the perl module is installed, this will be enabled.
<IfModule mod_perl.c>
  Alias /perl/ /home/httpd/perl/
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
  </Location>
</IfModule>

#
# Allow http put (such as Netscape Gold's publish feature)
# Use htpasswd to generate /etc/httpd/conf/passwd.
# You must unremark these two lines at the top of this file as well:
#LoadModule put_module          modules/mod_put.so
#AddModule mod_put.c
#
#Alias /upload /tmp
#<Location /upload>
#    EnablePut On
#    AuthType Basic
#    AuthName Temporary
#    AuthUserFile /etc/httpd/conf/passwd
#    EnableDelete Off
#    umask 007
#    <Limit PUT>
#       require valid-user
#    </Limit>
#</Location>

#
# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

# Allow access to local system documentation from localhost
Alias /doc/ /usr/doc/
<Location /doc>
  order deny,allow
  deny from all
  allow from localhost 
  Options Indexes FollowSymLinks
</Location>

#
# There have been reports of people trying to abuse an old bug from pre-1.1
# days.  This bug involved a CGI script distributed as a part of Apache.
# By uncommenting these lines you can redirect these attacks to a logging 
# script on phf.apache.org.  Or, you can record them yourself, using the script
# support/phf_abuse_log.cgi.
#
#<Location /cgi-bin/phf*>
#    Deny from all
#    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Directory proxy:*>
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Directory>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
#CacheRoot "/var/cache/httpd"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a_domain.com another_domain.edu joes.garage_sale.com

#</IfModule>
# End of proxy directives.
--- End Message ---
--- Begin Message ---
i'll give it a try...

jeff.

"Sam Masiello" <[EMAIL PROTECTED]> wrote in message
002001c1affa$9aa56560$6300fa0a@dev">news:002001c1affa$9aa56560$6300fa0a@dev...
>
> You can force the browser to refresh using a meta tag:
>
> <meta HTTP-EQUIV="Refresh" content="180">
>
> This will cause the page to refresh every 180 seconds.
>
> HTH
>
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> [EMAIL PROTECTED]
>
> ----- Original Message -----
> From: "Chris Wright" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 07, 2002 11:34 AM
> Subject: RE: [PHP] force refresh?
>
>
> Probably only by writing javascript to the window using php.
>
> ---
> Christopher Wright
> 303 447 2496 x 107
> www.netinfra.com
>
> "We'll take care of it."
>
> "Net Infrastructure has definitely helped our company, even though we're
> not in the US, Net Infrastructure has been a key part in the success of
> our business." Juan Carlos Saravia
>
>
> -----Original Message-----
> From: Jeff D. Hamann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 07, 2002 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] force refresh?
>
>
> can i force a browser to refresh using php.
>
> jeff.
>
> --
> Jeff D. Hamann
> Hamann, Donald & Associates, Inc.
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> Bus. 541-753-7333
> Cell. 541-740-5988
> [EMAIL PROTECTED]
> www.hamanndonald.com
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Since I couldn't find solid docs on the web about this...

I was curious if PHP in Apache 2.0 implements a couple features that I'm 
used to using in the AOLserver world:

-- Can PHP hold a global cache that's accessible for all threads?

-- How well do persistent database connections work in PHP?  I recall 
some tests saying that persistent connections with MySQL were actually 
slower in PHP 4.0.x than building and tearing down a MySQL connection 
each time you wanted to query info from the database.

-- What are the performance differences (if any) between pooled 
connections to MySQL vs Postgres?

Thanks!

Justin

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

Please help me out in the following...

<?php
$is='is';
echo eregi_replace(" ".$is." "," ","This is a test string which contains
is in dismissal");
?>


Actually I want to replace "is" alone from the string and not all the
words that contains is...

I have tried with "^".$is."$" ---> but yields nothing....

Also tried with "\b"...


thanks and regards,
Desikan

-- 
  Desikan
  [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
* Desikan ([EMAIL PROTECTED]) [Feb 09. 2002 02:17]:

> Hi there,

Hi,

> Please help me out in the following...

> <?php
> $is='is';
> echo eregi_replace(" ".$is." "," ","This is a test string which contains
> is in dismissal");
> ?>


> Actually I want to replace "is" alone from the string and not all the
> words that contains is...

str_replace() would be easier:

<?php

$string = ' foo ';
print str_replace($string,' nude ','This is a foo bar.');

?>

-- 
Headers set. CCs on list replies -> bit bucket.
Brian Clark | Unable to leap tall buildings in a single bound.
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8

--- End Message ---
--- Begin Message ---
* Desikan ([EMAIL PROTECTED]) [Feb 09. 2002 02:52]:

> hi Thanks,

Sure, 

>   But I want to do thr replace operation for 
>   regular exprerssion and not exactly for the string alone...
>   like ---->  ^and$,a*, etc....

<?php

$string = 'foo';
print preg_replace("/^\s$string\s/",' ',' foo foobar.') . "\n";
print eregi_replace("^[[:space:]]".$string."[[:space:]]",' ',' foo foobar.') . "\n";

?>

I like the top better..

-- 
Headers set. CCs on list replies -> bit bucket.
Brian Clark | Unable to leap tall buildings in a single bound.
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8

--- End Message ---
--- Begin Message ---
hi there,
Have u tried this...
  <?php
    $string = 'foo';
    print preg_replace("/^\s$string\s/",' ','bfoo foo foobar.') . "\n";
    print eregi_replace("^[[:space:]]".$string."[[:space:]]",' ','bfoo
    foo alfoobar.') . "\n";
  ?>
This is not working properly..

Output I got is....

bfoo foo foobar. bfoo foo alfoobar

help me out....

Rgds,
Desikan


On Sat, 9 Feb 2002 03:01:40 -0500, "Brian Clark" <[EMAIL PROTECTED]>
said:
> * Desikan ([EMAIL PROTECTED]) [Feb 09. 2002 02:52]:
> 
> > hi Thanks,
> 
> Sure, 
> 
> >   But I want to do thr replace operation for 
> >   regular exprerssion and not exactly for the string alone...
> >   like ---->        ^and$,a*, etc....
> 
> <?php
> 
> $string = 'foo';
> print preg_replace("/^\s$string\s/",' ',' foo foobar.') . "\n";
> print eregi_replace("^[[:space:]]".$string."[[:space:]]",' ',' foo
> foobar.') . "\n";
> 
> ?>
> 
> I like the top better..
> 
> -- 
> Headers set. CCs on list replies -> bit bucket.
> Brian Clark | Unable to leap tall buildings in a single bound.
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
  Desikan
  [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
* Desikan ([EMAIL PROTECTED]) [Feb 09. 2002 03:33]:

> hi there,

Backatcha,

> Have u tried this...
>   <?php
>     $string = 'foo';
>     print preg_replace("/^\s$string\s/",' ','bfoo foo foobar.') . "\n";
>     print eregi_replace("^[[:space:]]".$string."[[:space:]]",' ','bfoo
>     foo alfoobar.') . "\n";
>   ?>
> This is not working properly..

> Output I got is....

> bfoo foo foobar. bfoo foo alfoobar

You do realize that ^ is matching the beginning of a string, right?

Take out the ^ in each and you'll get the correct result.

> help me out....

Hope that helps.

-- 
Headers set. CCs on list replies -> bit bucket.
Brian Clark | The land of the free, and the home of the brave.
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8

--- End Message ---
--- Begin Message ---
Hello,

Anas Mughal wrote:
> 
> What would be the easiest and more effective way to
> check for bouncing email addresses?

Setting the return-path address some pop mailbox address and check if
that mail box gets any bounced messages.

Regards,
Manuel Lemos


> Thank you.
> 
> --- Manuel Lemos <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > B Richards wrote:
> > >
> > > How many emails per hour can people generate on a
> > typical dedicated server?
> > > on qmail? on smtp?
> >
> > It depends on many things. Anyway, queueing is one
> > thing and delivering
> > is another. Queuing and delivering from the same
> > machine is usually slow
> > because it requires the server to resolve the domain
> > and connecting with
> > each recipient MX to deliver the messages. If the
> > connection is slow,
> > everything is stalled.
> >
> > For very large recipient lists like large mailing
> > lists sites like
> > eGroups, the recommended setup is at least one
> > server for queuing the
> > messages in one or many others. The queuing is best
> > achieved using QMQP.
> > SMTP is too slow because it degrades queuing speed
> > exponentially with
> > the number of recipients.
> >
> > Anyway in a network with one server for queueing
> > (where ezmlm was) and 8
> > servers for delivery, it could queue 10.000 messages
> > per minute using
> > SMTP. With QMQP it would be much faster queueing
> > because it would not
> > expand VERP addresses and would only queue one
> > message in the delivery
> > servers.
> >
> > The actual delivery it depends a lot on the Internet
> > link you have and
> > the connectivity with the remote servers. Bouncing
> > and hard to connect
> > servers make it very slow. That is why it is
> > important to prune the
> > bouncing addresses from your mailing lists.
> >
> > ezmlm process is reasonably good handling bounces
> > but I would not
> > recommend starting a mailing list with a large
> > number of subscribers
> > without first pruning it because the last retry
> > message that is sent to
> > all bouncing addresses after 11 days (1.000.000
> > seconds) may choke your
> > queuing server because it send out individual
> > messages and if there are
> > many bouncing addresses that can make your machine
> > and network choke
> > with very high traffic.
> >
> > Trust me, I had to put up with the embarrassment of
> > choking a newsletter
> > server with 1/3 of near 300.000 subscribers of MTV
> > Brasil newsletter!
> > Can you imagine almost 100.000 subscribers being
> > mailed and bouncing at
> > the same time. (Gulp!) Living and learning. :-)
> >
> >
> > Regards,
> > Manuel Lemos
> > >
> > > ----- Original Message -----
> > > From: "Manuel Lemos" <[EMAIL PROTECTED]>
> > > To: "Ed Lazor" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > > Sent: Saturday, February 02, 2002 9:09 PM
> > > Subject: Re: [PHP] Re: Sending an e-mail to 1,000
> > people
> > >
> > > > Hello,
> > > >
> > > > Ed Lazor wrote:
> > > > >
> > > > > At 06:25 PM 2/2/2002 -0500, Chris Cocuzzo
> > wrote:
> > > > > >Godamnit. Shut-up about this already for
> > godsakes and answer the
> > > > > >original question!!
> > > > >
> > > > > LOL  hehe good point Chris.
> > > >
> > > > Aleluia, somebody sensible! :-)
> > > >
> > > >
> > > > > >"Ben Clumeck" <[EMAIL PROTECTED]> wrote in
> > message
> > > > > > > I would like to send an e-mail (the same
> > e-mail) to 1,000 different
> > > > > > > people.  I want each persons name to be in
> > the "To:" field.  Is
> > > there a
> > > > > > way to
> > > > > > > customize it to where it can say Dear____
> > (having a different
> > > persons name
> > > > > > > corresponding to an e-mail address) so
> > that it looks customized.
> > > > >
> > > > > Ben, how you approach this will depend on how
> > you have the data
> > > > > stored.  Let's assume two things:  you have
> > the e-mail addresses and
> > > names
> > > > > in a database and know how to retrieve and
> > store them into the variables
> > > > > $email and $name.  That said, create the body
> > of your text:
> > > > >
> > > > > $body = "
> > > > > Dear $name,
> > > > >
> > > > > Here are recent developments on our web
> > site... etc.
> > > > > ";
> > > > >
> > > > > Then use the mail function
> > > (http://www.php.net/manual/en/function.mail.php)
> > > > > to send the letter to the person like this:
> > > > >
> > > > > mail($email, "Site update", $body, "From:
> > [EMAIL PROTECTED]");
> > > > >
> > > > > The next thing you'll probably start wondering
> > is how to send fancy
> > > e-mail
> > > > > instead of those generic text based ones...
> > PHPBuilder has an article
> > > > > you'll want to check out located here:
> > > > >
> >
> http://www.phpbuilder.com/columns/kartic20000807.php3.
> > > >
> > > > I do not advice anybody to send personalized
> > bulk mail, even less in
> > > > PHP. It will take a lot of time to just queue
> > the message in the local
> > > > relay mail server and since each message has to
> > be stored separately in
> > > > the mail server queue disk consuming a lot of
> > space.
> > > >
> > > > What I recommend is to just queue a single
> > message with all recepients
> > > > in Bcc:. This is better done with qmail using
> > qmail-inject because you
> > > > do not have to actually add Bcc: headers to the
> > message, just the
> > > > recipients addresses, one per line,  and then
> > headers and the body of
> > > > the message. You may want to try this class for
> > composing and sending
> > > > MIME messages. It has subclasses for queing with
> > PHP mail function, SMTP
> > > > server, sendmail and qmail.
> > > >
> > > >
> >
> http://phpclasses.upperdesign.com/browse.html/package/9
> > > >
> > > > If you can use it, I recommend to use qmail
> > because it is much faster
> > > > than the other alternatives to queue message to
> > be sent to many
> > > > recipients and also provides very good means to
> > figure exactly which
> > > > addresses are bouncing your messages so you can
> > process them eventually
> > > > unsubscribing the users in question, thanks to
> > its VERP capability
> > > > (Variable Envelope Return Path).
> > http://www.qmail.org/
> > > >
> > > > If you want to send messages regularly to the
> > same group of users, I
> > > > recommend that you use ezmlm-idx because it
> > provides very efficient and
> > > > secure way to handle subscriptions and messages
> > bouncings.
> > > > http://www.ezmlm.org/
> > > >
> > > > I don't recommend the patches of ezmlm that let
> > it be interfaced with
> > > > user lists maintained in MySQL or PostgreSQL. I
> > doubt that those
> > > > databases are faster to query than DJB's cdb
> > user list databases. Also,
> > > > I don't think that most people want the user to
> > be deleted from a
> > > > database if it's address is bouncing for too
> > long (11 days).
> > > >
> > > > Anyway, you may want to look into this PHP web
> > interface to create and
> > > > setup options of ezmlm mailing lists. It also
> > comes with a SOAP server
> > > > interface that you can use to provide Web
> > services to subscribe,
> > > > unsubscriber, verify and count users in ezmlm
> > mailing lists.
> > > >
> > > >
> >
> http://phpclasses.upperdesign.com/browse.html/package/177
> > > >
> > > > Regards,
> > > > Manuel Lemos
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > >
> > >
> >
> _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at
> > http://mail.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> =====
> Anas Mughal
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Tel: 973-249-6665
> 
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
--- End Message ---

Reply via email to