[PHP] Is It Possible to Tell PHP To Output x Decimal Places Per Float?

2003-06-09 Thread Dan Anderson
Is it possible to tell PHP when converting a number to a string (i.e. in an echo or print command) to use x decimal places? Specifically, if I And some_price is $1.50, it outputs: $1.5 Thanks in advance, Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] solved Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Jason k Larson
*woot!* :) I love being right. ;) -- Jason k Larson Emma Jane Hogbin wrote: What ended up working was passing the session ID to the pop-up window "manually" by including it in the function (and thus the URL). emma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Rather unrelated

2003-06-09 Thread Thomas Hochstetter
Hi guys, sorry that i am asking this rather non-php question here. I know how anoying it is to get these unrelated mails ... it might just have to do with the apache ... or whatever: [problem] if i declare in an external stylesheet the scrollbar-track-color to be whatever, it does not show. even if

RE: [PHP] Is It Possible to Tell PHP To Output x Decimal Places Per Float?

2003-06-09 Thread John W. Holmes
> Is it possible to tell PHP when converting a number to a string (i.e. in > an echo or print command) to use x decimal places? Yes, it is. > Specifically, if I > >echo '$' . $some_price; > ?> > > And some_price is $1.50, it outputs: > > $1.5 > > Thanks in advance, You're welcome. ---

[PHP] 2 Questions Re: Anonymous Functions

2003-06-09 Thread Timothy Boronczyk
I'm extracting a list of items from an XML document using PHP. The desired items are the attributes of different occurances of a specific element within the document; the code will not need a callback for character data or for closing tags. $list = new Array(); function start_tag($p_id, $element

Re: [PHP] Is It Possible to Tell PHP To Output x Decimal Places PerFloat?

2003-06-09 Thread Lars Torben Wilson
On Mon, 2003-06-09 at 15:22, Dan Anderson wrote: > Is it possible to tell PHP when converting a number to a string (i.e. in > an echo or print command) to use x decimal places? > > Specifically, if I > >echo '$' . $some_price; > ?> > > And some_price is $1.50, it outputs: > > $1.5 > > Tha

RE: [PHP] howto write a DOS file output into a file...

2003-06-09 Thread John W. Holmes
> When I use my system command in PHP I can run a old EXE file. It makes an > output and output is automaticly printing on the web browser. I wanna save > this output at the same time into a txt. > > Anyone knows howto do it? Use backticks to capture the output... $output = `old.exe`; Note that

[PHP] Re: howto write a DOS file output into a file...

2003-06-09 Thread Ferhat BINGOL
I go with run.exe > out.txt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] solved Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Kevin Stone
- Original Message - From: "Emma Jane Hogbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 4:21 PM Subject: [PHP] solved Re: [PHP] sessions, IE and pop-up windows > On Mon, Jun 09, 2003 at 03:56:28PM -0600, Kevin Stone wrote: > > I still believe what's happenin

[PHP] Want to move M$Access frontend to PHP/MYSQL. Need suggestions...

2003-06-09 Thread Apollo (Carmel Entertainment)
I want to move my Microsoft Access based front end (back end is already on MySQL/Linux) to PHP. MSAccess does have some forms that have VBscript in the, but I think I can figure other ways to do that.I am not a wizard with PHP, so I would interested in finding some open source apps, or something li

[PHP] PHP vs. jsp, advice please

2003-06-09 Thread Jean-Christian Imbeault
I've just finished a big PHP project and I'm about to start a new project. I've had both fun and pain with PHP. The new project would be another one of those database driven online store kind-of things for a somewhat large company. Before I start my new project I am considering whether to use P

[PHP] .htaccess

2003-06-09 Thread Ryan A
Hi, Just one question, is there any way that when a person logs in via the htaccess popup that i can know via my php script...and can i also get his username? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fetch then put record?

2003-06-09 Thread Steve B.
Hello, In ASP you can set records fields then call a dbupdate function. It appears mysql only supports update with the UPDATE query? Here is my code: How would you do a dbrec.update (which updates just the row you changed with the variables) thanks Steve __ Do

[PHP] Re: fetch then put record?

2003-06-09 Thread Jean-Christian Imbeault
Steve B. wrote: Hello, In ASP you can set records fields then call a dbupdate function. There is no such function in PHP. It appears mysql only supports update with the UPDATE query? Huh ... MySQL is a database. It understands SQL. dbupdate() is an ASP function ... don't blame MySQL if it doesn't

[PHP] working with sessions

2003-06-09 Thread Matt Palermo
I was wondering if there is a way to tell if a session exists or not. For example, have a system where people login and it starts a session like: sess_cf4c4f6a8cffaf3334df48b6ea1d55e4 If the user logs out or the session is destroyed, then it won't exist anymore. I know you can use the session_

RE: [PHP] php and flash chat program

2003-06-09 Thread Matt Palermo
I realize that this can be done, but I would like to make it as instant as possible. I don't want to wait very long for the user to be removed from the online users list. Got any other ideas? Thanks. Matt -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED] Sent: Monday,

[PHP] Re: working with sessions

2003-06-09 Thread Jean-Christian Imbeault
Matt Palermo wrote: My question is can I search the session folder for: cf4c4f6a8cffaf3334df48b6ea1d55e4 (or any other session id) to see if that session still exists and is active, or if it is gone and doesn't exist anymore? Can this be done? Please let me know if you have any thoughts. It ca

RE: [PHP] Re: working with sessions

2003-06-09 Thread Matt Palermo
I am doing this, because I am making a text file with a list of all existing sessions. Then another page checks to see if all of these are still active and exist, and if not it will take action and remove the session id from the list. It goes along with the question I asked earlier about the Flas

[PHP] Re: working with sessions

2003-06-09 Thread Jean-Christian Imbeault
Your original post is below for thos who want to read it :) I see what you mean now. Off the top of my head I think a better approach would be this: - user logs in, his name and a timestamp are added to the list of active users - every time a user accesses a page on your list his timestamp is

[PHP] Re: fetch then put record?

2003-06-09 Thread Jean-Christian Imbeault
[reply to a personal email posted here for the benefit of all :)] > Are you sure you can't? Yes. > Could ASP do something that MySQL/SQL can't? You confusing apples and oranges ... ASP is not a database. You should be comparing ASP to PHP. So the short answer is PHP does not have an equivalen

[PHP] Detecting Bots...

2003-06-09 Thread Steven Kallstrom
Dear List, So $_SERVER['HTTP_REFERER'] gives us the User Agent... is there anyway to determine if in general the User-Agent is a bot, or do I have to check for a specific bot... I want to strip out all GET information from the URL so that bots can crawl my site session free... Thanks, SJK -

Re: [PHP] PHP vs. jsp, advice please

2003-06-09 Thread Joel Rees
> ... > Before I start my new project I am considering whether to use PHP again > or to switch to jsp. I'm worried that PHP won't scale well. And by > scaling I don't mean under heavy load, I mean maintenance wise :) I > can't imagine having to do a feature upgrade on a PHP project with more >

Re: [PHP] PHP vs. jsp, advice please

2003-06-09 Thread Jean-Christian Imbeault
Joel Rees wrote: You might want to look around the jakarta projects and ask questions on some of those mailing lists. Thanks for the advice. I'll try that. But I *would* like to hear the opinions of PHP'ers too. I'm worried that by asking people on that list Ill get one-sided views. What do PHP

RE: [PHP] .htaccess

2003-06-09 Thread John W. Holmes
> Just one question, is there any way that when a person logs in via the > htaccess popup that i can know via my php script...and can i also get his > username? Have you read the chapter on HTTP Authentication? No. Read the very first paragraph: "The HTTP Authentication hooks in PHP are only avai

[PHP] Sendmail Problem

2003-06-09 Thread Uma Shankari T.
Hello, I am having some problem in sendmail using this code. $MP = "/usr/sbin/sendmail -t -f [EMAIL PROTECTED]"; i am running this program in one of the server not in the main server.. actually mail will go from this server to mainserver which will deliver the mails outside..but using th

Re: [PHP] PHP vs. jsp, advice please

2003-06-09 Thread DvDmanDT
Installing JSP isn't impossible, but it can be a true pain... At least on windows... There are lots of environiment variables to set (well, two at least), config files to edit, a directory structure to understand (this is probably way simplier than I currently think it is)... However, once you get

Re: [PHP] Detecting Bots...

2003-06-09 Thread Evan Nemerson
This should be helpful: http://www.robotstxt.org/wc/active/all.txt On Monday 09 June 2003 07:36 pm, Steven Kallstrom wrote: > Dear List, > > So $_SERVER['HTTP_REFERER'] gives us the User Agent... is there anyway > to determine if in general the User-Agent is a bot, or do I have to > check for a

Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
Well, this is how millions of people build PHP. It works pretty well. -Rasmus On Mon, 9 Jun 2003, Michael A Smith wrote: > Yes I know, but I've never been able to get it to work. I just followed > the instructions on the PHP site. > > -Michael > On Mon, 2003-06-09 at 10:34, Rasmus Lerdorf wrote

Re: [PHP] php and flash chat program

2003-06-09 Thread Richard Baskett
Well there really is no way of knowing if they left their computer or not, or just shutdown their computer. The only way that I know of would be to use java, but that's not what you are using. Good luck! Rick A wise women once said: " No one can help everybody, but everybody can help somebody."

[PHP] Printing Issue

2003-06-09 Thread birdto
Hi All, I have a problem in printing database. I have drawn some data from the MySQL and print to A4 paper. When the data are more than 1 page, it has to print on other A4 paper. The problem is, I need the program to print the same heading in every page. How can I do this? Regards, Berthold --

[PHP] Re: Printing Issue

2003-06-09 Thread Jean-Christian Imbeault
Birdto wrote: Hi All, I have a problem in printing database. I have drawn some data from the MySQL and print to A4 paper. When the data are more than 1 page, it has to print on other A4 paper. The problem is, I need the program to print the same heading in every page. How can I do this? Are you di

Re: [PHP] Is It Possible to Tell PHP To Output x Decimal Places Per Float?

2003-06-09 Thread Jaap van Ganswijk
At 2003-06-09 18:22 -0400, Dan Anderson wrote: >Is it possible to tell PHP when converting a number to a string (i.e. in >an echo or print command) to use x decimal places? > >Specifically, if I > > echo '$' . $some_price; >?> > >And some_price is $1.50, it outputs: > >$1.5 This should work: pr

[PHP] if ($xxxxx) { function not working?

2003-06-09 Thread Ben Houlton
When I use the if ($xxx) fuction to use the web addresses function to call up a command it desnt work! All it does is come up with the command line with: }else { if (!id && !edit) { echo "blah blah blah"; } } I'm using PWS and localhost//HPPAV server. Please help! -- PHP

RE: [PHP] HTML and PHP

2003-06-09 Thread Jaap van Ganswijk
At 2003-06-04 15:59 -0400, Edward Peloke wrote: >you would have to use echo or print statements... Yes. After a while I stopped mixing PHP and HTML parts and started writing everything in PHP using echo and print statements. That way the code is much more regular and flexible. Greetings, Jaap

<    1   2