RE: [PHP] Math rounding problem

2002-02-08 Thread Charlie Killian
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 -- PHP General Mailing List (http://ww

[PHP] die! die! directory!

2002-02-08 Thread hugh danaher
Help! I've been beating on a problem all day and think I've isolated the problem to the following line: print ""; 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

[PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
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 har

[PHP] Search Page

2002-02-08 Thread Georgie Casey
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 ca

Re: [PHP] Math rounding problem

2002-02-08 Thread hugh danaher
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

[PHP] php

2002-02-08 Thread Uma Shankari T.
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 ser

Re: [PHP] session register!!

2002-02-08 Thread Janet Valade
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 Me

Re: [PHP] force refresh?

2002-02-08 Thread Jeff D. Hamann
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: > > > > This will cause the page to refresh every 180 seconds. > > HTH > > Sa

[PHP] features in PHP

2002-02-08 Thread Justin Palmer
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 wor

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread Jason Wong
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.

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
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

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
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 fo

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
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 anyth

[PHP] Exact string replacement...

2002-02-08 Thread Desikan
Hi there, Please help me out in the following... 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]

Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-08 Thread Manuel Lemos
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 <[EM

Re: [PHP] Exact string replacement...

2002-02-08 Thread Brian Clark
* Desikan ([EMAIL PROTECTED]) [Feb 09. 2002 02:17]: > Hi there, Hi, > Please help me out in the following... > $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 t

Re: [PHP] Exact string replacement...

2002-02-08 Thread Brian Clark
* 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 I like the top better.. -- Headers set. CCs on list replies -> bit bucke

<    1   2