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

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

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

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

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

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

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

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

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

Re: [PHP] Math rounding problem

2002-02-08 Thread DL Neil
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($scal

Re: [PHP] secure form handling

2002-02-08 Thread Paul Roberts
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. Paul Roberts [EMAIL PROTECTED] - Original Me

[PHP] Re: Math rounding problem

2002-02-08 Thread Philip Hallstrom
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

[PHP] Math rounding problem

2002-02-08 Thread Charlie Killian
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 hund

Re: [PHP] How to keep form inputs from being cleared

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

Re: [PHP] escaping ?>

2002-02-08 Thread Jeff Sheltren
Hi, try this: str_replace("" 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: > >$co

Re: [PHP] Content Management

2002-02-08 Thread Justin Farnsworth
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 dev

RE: [PHP] Content Management

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

RE: [PHP] How to keep form inputs from being cleared

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

[PHP] Browser based WYSIWYG HTML editor

2002-02-08 Thread Mullin, Reginald
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, \->Regi

[PHP] Re: Content Management

2002-02-08 Thread Philip Hallstrom
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. > > Looki

[PHP] escaping ?>

2002-02-08 Thread Steven Jarvis
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('', '', $contents); The ?> in the string ends my php block. I know there's

[PHP] Re: Execing problems

2002-02-08 Thread Peter Clarke
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

Re: [PHP] Php Projects

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

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

[PHP] File Upload Performance

2002-02-08 Thread Linn Kubler
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

RE: [PHP] Trying to put ips into database

2002-02-08 Thread Matthew Walker
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 = m

Re: [PHP] session register!!

2002-02-08 Thread Cristian Cerda
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

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Daniel C. BAUFAY
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, De

Re: [PHP] session register!!

2002-02-08 Thread Erik Price
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

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread anders nawroth
Sorry, should spell aletia.com >From phpinfo at Aleita.com: PHP Version 4.1.0 System Linux cobra.nocdns.com 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Build Date Dec 15 2001 Configure Command './configure' '--with-apache=../apache_1.3.22' '--with-mysql' '--with-gd' '--

Re: [PHP] session register!!

2002-02-08 Thread Cristian Cerda
yes i did. Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * and then Cristian Cerda declared > > 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 n

RE: [PHP] Mail Sent Date - more info

2002-02-08 Thread Pickup, Jordan
I just checked the Date function and when you use the 'O' or 'r': O - Difference to Greenwich time in hours; i.e. "+0200" r - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" it also gives the wrong time zone. Is there anyway to tell PHP that it is wrong? Is this just a bug i

Re: [PHP] Fwd: confirm unsubscribe from php-general@lists.php.net

2002-02-08 Thread Carlos René Ponce Novelo
_ Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail Sent Date

2002-02-08 Thread Pickup, Jordan
We are in the -0700 time zone but whenever I use PHP to send a message it sends it from +0700 making the message appear to have been sent 14hours earlier than it was. I can add my own Date header to the mail function with the correct date/time zone but that means I have to modify all my script

Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread Lars Torben Wilson
On Fri, 2002-02-08 at 04:43, * R&zE: wrote: > Hi folks, > > I don't know if everyone ever knew this, but I haven't been able to > find anything about this, anywhere... > > odbc_execute has a very dangerous 'feature'. I would like to call it > a bug, because someone has implemented it on purpose

[PHP] attachment problem

2002-02-08 Thread Olev Rumm
Hello gurus, need some help here please. I have mail php script with out attachment possibilities. How can I add attachment in to this one? The following information has been delivered: $key = $val"; $Message .= "$key = $val\n"; } if ($Header) { $Message = $Header."\n\n".

Re: [PHP] Php Projects

2002-02-08 Thread mike cullerton
on 2/8/02 12:49 PM, Nick Wilson at [EMAIL PROTECTED] wrote: >> Do I detect a bit of Friday-afternoon sarcasm??? >> >> 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 l

Re: [PHP] Php Projects

2002-02-08 Thread Arik Ashepa
Nope, I'm serius, I have nothing better to do? So, do you have any ideas? Arik Rick Emery wrote: > Do I detect a bit of Friday-afternoon sarcasm??? > > Actually, a beer sounds good about now > > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: Friday, Feb

Re: [PHP] templates

2002-02-08 Thread Kunal Jhunjhunwala
Hey, Well, I got phplib working.. but i yet think something is missing :) and have heard a lot of buzz abt smarty... but havent seen any benchmarks... from the article at devshed.. fast templates should have stayed with perl ;) anyone else got any suggestions? Regards, Kunal Jhunjhunwala "Minds

Re: [PHP] templates

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kunal Jhunjhunwala declared > hey, > which is the best template library out there? does anyone have any > benchmarks? smarty? phplib? any others? Hehe, still messing with templates kunal? There's a good article on PHPLib vs Fastemplat

[PHP] templates

2002-02-08 Thread Kunal Jhunjhunwala
hey, which is the best template library out there? does anyone have any benchmarks? smarty? phplib? any others? Regards, Kunal Jhunjhunwala "Minds think with ideas, not information. No amount of data, bandwidth, or processing power can substitute for inspired thought." - Clifford Stoll -- PHP

Re: [PHP] Php Projects

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Rick Emery declared > Do I detect a bit of Friday-afternoon sarcasm??? > > Actually, a beer sounds good about now Friday evening in .dk and php is always best served with a cold one! - -- Nick Wilson Tel:+45 3325 0688 Fa

RE: [PHP] Php Projects

2002-02-08 Thread Rick Emery
Do I detect a bit of Friday-afternoon sarcasm??? Actually, a beer sounds good about now -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Php Projects -BEGIN PGP SIGNED MESSAGE-

Re: [PHP] determining script url

2002-02-08 Thread Jason Wong
On Saturday 09 February 2002 00:17, [EMAIL PROTECTED] wrote: > Thanks for the response, but those are just like $DOCUMENT_ROOT, they > provide paths in the server, I need what is showing up as the URL in the > browser - i.e. http://www.domain.com/script.php - or if there is no domain, > to give me

Re: [PHP] Php Projects

2002-02-08 Thread Nick Wilson
-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 W

Re: [PHP] session register!!

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Cristian Cerda declared > 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

Re: [PHP] Parameters via Link

2002-02-08 Thread Jason Wong
On Saturday 09 February 2002 02:23, Manuel Ritsch wrote: > Hey there > > I want to make a webpage out of one main pagewith php, if you press on a > link i want that it changes the content of the page, but it doesn't seem to > work, i tried it like this... > > link: > > > > php code: > > if($link

[PHP] session register!!

2002-02-08 Thread Cristian Cerda
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 se

RE: [PHP] Parameters via Link

2002-02-08 Thread Rick Emery
try: if( ! strcmp($link, "home") ) { include("soundmp3.php"); } -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Parameters via Link Hey there I want to make a webpage out of one main pagewit

[PHP] Php Projects

2002-02-08 Thread Arik Ashepa
Hi. I was wondring... maybe you want to develop a project? have any ideas? Arik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Method writing quesion

2002-02-08 Thread Jeff Sheltren
I would actually do the check inside the function, that way you don't have to do it each time before you call the function. Also, by doing this you can set things to a default value (if that is relevant to your code...). -Jeff At 08:20 PM 2/8/2002 +0100, Nick Wilson wrote: >-BEGIN PGP SIG

[PHP] Method writing quesion

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, quick Q on writing Methods on PHP: If a methods purpose is to take 3 values and do stuff with those values, should the error checking (eg. that the values dont='') be done /inside/ the Method or by the script that calls it? It make

Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-08 Thread Dr. Shim
http://www.geocities.com/php4ud/ Seach google for php4ud God bless google! "Matt Williams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Luke Crouch wrote: > > > I know Dreamweaver UltraDev has nice site management features > for using a > > JSP/SQL

Re: [PHP] Syntax ???

2002-02-08 Thread Edward van Bilderbeek - Bean IT
just quote the 'y' in your query: $ynumber = mysql_query("SELECT COUNT(*) As Cnt FROM responses WHERE response='y'"); Edward - Original Message - From: "Ron Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 7:38 PM Subject: [PHP] Syntax ??? > -BEGI

[PHP] Syntax ???

2002-02-08 Thread Ron Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all again, Here is my line in my script: $ynumber = mysql_query("SELECT COUNT(*) FROM responses WHERE response=y"); But it returns a blank or empty. How do I convert this MySQL command to PHP? mysql> SELECT COUNT(*) FROM responses WHERE resp

Re: [PHP] eregi

2002-02-08 Thread DL Neil
Hello John > I'm using eregi to print out parts of a text file, and I was just wondering > how you get the code to print out a newline as it appears in the file. Not quite sure what eregi has to do with it - perhaps I'm missing something. Would the nl2br function help? =dn -- PHP General

[PHP] Parameters via Link

2002-02-08 Thread Manuel Ritsch
Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: php code: if($link == home) { include'soundmp3.php'; } but it doesn't work (i don't get an error

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread anders nawroth
>From phpinfo at Aleita.com: PHP Version 4.1.0 System Linux cobra.nocdns.com 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Build Date Dec 15 2001 Configure Command './configure' '--with-apache=../apache_1.3.22' '--with-mysql' '--with-gd' '--with-freetype' '--enable-track-var

RE: [PHP] Using functions before they're defined

2002-02-08 Thread Ford, Mike [LSS]
> -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: 07 February 2002 22:17 > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Using functions before they're defined > > I haven't looked at the php's source code, but maybe it's a > two pass parser > (??) first it gets

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Matt Drake
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. A

Re: [PHP] Count concarent logins (newbie)

2002-02-08 Thread Dennis Moore
> > in A web site where logins are managed with php sesions > is it possible to count how many concurent users are loged in ?? > > I believe that one way is to keep in a mysql table every login > user but how can i delete a "loged-in" record when user session > terminates abnormal > If you use th

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Dennis Moore
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. /dkm - Original Message - From: "Leif K-

[PHP] Count concarent logins (newbie)

2002-02-08 Thread Simos
Hello to everyone in A web site where logins are managed with php sesions is it possible to count how many concurent users are loged in ?? I believe that one way is to keep in a mysql table every login user but how can i delete a "loged-in" record when user session terminates abnormal thank

RE: [PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Rick Emery
SELECT COUNT(col_name) FROM mytable WHERE This will return the number of items with that condition in that columne, name col_name -Original Message- From: Ron Clark [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie Question a

[PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Ron Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello All: How do I read all of the data from just one column, then develop a count based on those items? I think I start with mysql_fetch_field(), but right there I get stuck. Any ideas to point me in the right direction? Thanks in advance, Ron C

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
Ok let me be more specific. I know I could do this with perl but it is going to be used on a page that will be loaded hundreds of times a minute, and so it needs to be fast. I was hoping that php had a function that could be used to do this, something like perl's webping. -Original Message---

Re: [PHP] determining script url

2002-02-08 Thread bvr
I'd say you should store the base url of your site in a variable somewhere. then append the REQUEST_URI and you have the url. or .. you take the SERVER_NAME, SERVER_PORT and REQUEST_URI .. and you might need some other variables to make it recognize SSL and prefix with httpS .. bvr. >How

[PHP] Fwd: confirm unsubscribe from php-general@lists.php.net

2002-02-08 Thread Carlos René Ponce Novelo
_ MSN Photos es la manera más sencilla de compartir e imprimir sus fotos: http://photos.latam.msn.com/Support/WorldWide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
I am looking for a way to check to see if a website is up, something like a ping command. Does anyone know of a way to do this? Mike Fifield Charles Schwab & Co, Inc. WARNING: All e-mail sent to or from this address will be received by the Charles Schwab corporate e-mail system and is subject to

[PHP] how to get js screenresolution passed to a sessionvariable?

2002-02-08 Thread Simon De Deyne
hi, I am trying to get the screenresolution passed from a javascript variable to a PHP variable using sessionvariables, but I can't get it to work, can you help me out to get some code working? I was thinking of something like this, but I'm pretty much a newbie at lots of things, so I'm sure thi

[PHP] Re: !isset ??

2002-02-08 Thread LaserJetter
If you try and use $var in an operation ( i.e. .= <== etc) and you get an error saying "Undefined variable" then isset($var) = FALSE LJ "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hm. I hope I'm not opening an old wound: > > Curious

[PHP] Re: Mysql

2002-02-08 Thread LaserJetter
Get hold of phpmyadmin - it makes MySQL easier! Are you logging on to MySQL as root from the computer on which mysql is running and are you supplying a password? Even if the root password is blank you still need to enter the password as blank I think! "Roman Duriancik" <[EMAIL PROTECTED]> wrot

[PHP] eregi

2002-02-08 Thread John Gurley
hello, I'm using eregi to print out parts of a text file, and I was just wondering how you get the code to print out a newline as it appears in the file. John _ Send and receive Hotmail on your mobile device: http://mobile.msn.com

[PHP] Trying to put ips into database

2002-02-08 Thread Leif K-Brooks
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'

RE: [PHP] determining script url

2002-02-08 Thread sean
Thanks for the response, but those are just like $DOCUMENT_ROOT, they provide paths in the server, I need what is showing up as the URL in the browser - i.e. http://www.domain.com/script.php - or if there is no domain, to give me the IP. any ideas? I can't seem to piece it together with the inf

Re: [PHP] Regex function needed

2002-02-08 Thread Michael Kimsal
Bas Jobsen wrote: > Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: > >>Looking for a regex (preg or ereg) to remove >>all 1, 2 and 3 character words. >> > > $string="over deze regex loop ik nu al de hele dag en een uur te piekeren. 't > wil niet! of wel! l'a."; > $string=" ".$str

RE: [PHP] check this new site

2002-02-08 Thread Jerry Verhoef (UGBI)
LOL And i just thought it looked like spam Sorry my mistake >:) > -Original Message- > From: JSheble [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 5:09 PM > To: php list > Subject: Re: [PHP] check this new site > > > > looks like every other SLashdot, PHP-Nuke o

[PHP] does header("Location: n") work on non-browser agents?

2002-02-08 Thread Erik Price
My site uses a scheme whereby a session variable (say, $logged_in) is checked for. If the variable is not set to 1, then header("Location: ./index.php") is used to redirect the browser to index.php, where they are offered an opportunity to log in (setting the session variable $logged_in to 1)

Re: [PHP] check this new site

2002-02-08 Thread JSheble
looks like every other SLashdot, PHP-Nuke or PHP-Mutant web site out there with,just a lot less content... At 07:52 AM 2/8/2002 -0800, Sagar Chand wrote: >hi all out there, > >just tell me howz this new site >"www.linuxfornerds.com" >A site meant for ardent linux lovers but every one r >invited

[PHP] check this new site

2002-02-08 Thread Sagar Chand
hi all out there, just tell me howz this new site "www.linuxfornerds.com" A site meant for ardent linux lovers but every one r invited to post any views on any open source software. so get ur voice out /sagar __ Do You Yahoo!? Send FREE Va

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Thanks Jerry! In perl I was doing this: printf NEW ("%-193.193s"); Which I just read the manual and discovered it works in PHP as well. Basically prints 193 spaces to make sure the line is 255 after I filled the line with other characters. On Fri, 8 Feb 2002, Jerry Verhoef (UGBI) wrote

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
printf NEW ("%-193.193s"); printf ("%-193.193s",); HTH > -Original Message- > From: Jerry Verhoef (UGBI) [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 4:35 PM > To: 'Scott'; Jerry Verhoef (UGBI) > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Stripping the first line of

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Yes there is! Try reading the manual? http://www.php.net/printf printf ("%-5.5s",$fields[14]); for the other function to make a line exactly 255 char long? Do you have the perl Example? HTH Jerry > -Original Message- > From: Scott [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08,

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Thank you! Works. I have a few more questions! I am working on converting a program from perl to PHP as it is the new language of choice at our office. I have been using printf statements in perl to format data. Is there a similar funtion in php? Here is an example from the perl program:

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Use $aFile=file(); //$aFile[0] contains the unwanted line echo $aFile[1]; // displays line 2 echo $aFile[n]; // displays line n where n is an positieve interger and not greater then the number of lines in the file http://www.php.net/manual/en/function.file.php HTH Jerry > -Original Mes

Re: [PHP] How to find out what country the visitor comes from

2002-02-08 Thread bvr
The way Google determines what language to use is by checking the Accept-Language header which is added by your browser. The value of this request header is stored automatically in the $_SERVER array. Check with phpinfo() or print_r($_SERVER); Although IP may be more reliable to determine the

[PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Hi, I want to be able to open a file and then strip the first line of it off. Example, the first line contains the names for tables in a database and all I need is from the second line on. if I fopen a file can I strip the line or should I process it and then drop the data from the first r

[PHP] Mcrypt-problems

2002-02-08 Thread Trond Arve Nordheim
Hi! I'm trying to encrypt some password using TripleDES-encryption here... I've followed the documentation for the mcrypt-libraries, but I get a warning (all though it -does- encrypt the text) every time I try to encrypt something; Warning: attempt to use an empty IV, which is NOT recommend My

Re: [PHP] How to find out what country the visitor comes from

2002-02-08 Thread Jon Farmer
One you have the IP you need to do a whois on the RIPE database to work out who the IP is assigned to and which country they are in. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key - Original Message - From

Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread
Usually I would agree with you. Like I wrote in my message, I would like to call it a bug, but it was written on purpose. That would make it a feature!?! It's an if-block of app. 20 lines that makes sure this happens. Looks like someone _really_ wanted PHP to do this... > This is what we call a B

RE: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread Jerry Verhoef (UGBI)
This is what we call a BUG Report it on http://bugs.php.net thx > -Original Message- > From: * R&zE: [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 1:44 PM > To: PHP General Mailinglist > Subject: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!! > > > Hi folks, > >

[PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread
Hi folks, I don't know if everyone ever knew this, but I haven't been able to find anything about this, anywhere... odbc_execute has a very dangerous 'feature'. I would like to call it a bug, because someone has implemented it on purpose I should call it a feature... odbc_execute takes two argu

  1   2   >