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://
*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
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
> 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.
---
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
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
> 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
I go with
run.exe > out.txt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- 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
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
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
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
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
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
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_
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,
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
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
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
[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
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
-
> ...
> 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
>
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
> 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
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
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
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
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
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."
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
--
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
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
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
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
101 - 134 of 134 matches
Mail list logo