Howdy.
It seems to work fine for me, perhaps you have a typo along the lines
some where.
echoes 800
--
Regards,
Matthew Fonda
On Sun, 2004-10-03 at 23:26, Louie Miranda wrote:
> the percent of 20% is = .20 right?
> how can i compute the correct value for this?
>
> my $totalCost is $4,000 an
i found the culprit. i remembered, that i use to pass the value with..
number_format($totalCost, 2, ".", ",")
so the values being received by my computation has a "," comma 4,000
so that is why i always get wrong values.
thanks again!
On Mon, 04 Oct 2004 00:02:32 -0700, Matthew Fonda <[EMAIL P
Hi,
(B
(BOn Monday 04 October 2004 12:09, Matthew wrote:
(B> Hi, im fairly new to php and mysql and need a little help. im
(B> running a forum community and would like to have it run on
(B> multiple databases because of performance issues others have
(B> encountered using the same software on
When php 5.0.2 converts float to integer, it uses biggest possible integer
value. Other php versions overflow and use negalive integers.
How to reproduce it:
echo (int)0xde120495;
Expected result (php 5.0.1, 4.3.9 and 4.1.2):
-569244523
Actual result (only php 5.0.2):
-
Hi All,
Is there any way out finding ,How do the PHP is installed ,whether as Apache Module or
CGI.
Thanks,
Nikhil.
David Bevan wrote:
On October 3, 2004 12:46, Olaf van der Spek wrote:
Manuel Lemos wrote:
Hello,
On 10/03/2004 12:27 PM, Olaf Van Der Spek wrote:
I think that making all failed memory allocations recoverable is not
viable because more PHP C code that makes memory allocations assumes
it only returns
You might want to ask this on the internals list (cc'd)
Tomas Kuliavas wrote:
When php 5.0.2 converts float to integer, it uses biggest possible integer
value. Other php versions overflow and use negalive integers.
How to reproduce it:
echo (int)0xde120495;
Expected result (php 5.0.1, 4.3.9 and 4.1
Louie Miranda wrote:
Im trying to output a pdf over a browser so i can hide the url link to
it. but this one causes corruption.
Try this..
http://dev.axishift.com/php/getpdf.php
i got this part..
"Note: There is a bug in Microsoft Internet Explorer 4.01 that
prevents this from working. There is no
On Mon, 4 Oct 2004, M. Sokolewicz wrote:
> You might want to ask this on the internals list (cc'd)
>
> Tomas Kuliavas wrote:
> > When php 5.0.2 converts float to integer, it uses biggest possible integer
> > value. Other php versions overflow and use negalive integers.
There is already a bug repo
Hi all,
I'd like to know how to install both php 4 and 5 on the same server,
for example with .php4 and .php5 extensions.
I tried editing some part of the source code to change the way Apache
calls php (with application/x-httpd types) but I never get apache to
start :(
I heard about compiling
[snip]
Is there any app that converts php to a stand alone
version?
like a windows .exe program.
[/snip]
Have a look at http://www.priadoblender.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Compile another apache apache with php5 and make it listen on port 81, use
different pid file and different error_log, recompile your current apache
with modules mod_rewrite and mod_proxy and mod_proxy_http enabled. Then make
current apache forward all .php5 requests to second apache via proxy m
Mulley, Nikhil wrote:
Hi All,
Is there any way out finding ,How do the PHP is installed ,whether as Apache Module or CGI.
phpinfo()
Thanks,
Nikhil.
--
Raditha Dissanayake.
http://www.radinks.com/sftp/ | http://w
Ave,
I created a form which can accept 2 file attachments and send an HTML
Email... Everything works great... The files even get attached and sent, the
ONLY problem is... The PDF file I'm sending attached open up empty! They are
all blank.. Like everything has been wiped off from them!!
Here's my
Manuel Lemos wrote:
Hello,
On 10/03/2004 01:46 PM, Olaf Van Der Spek wrote:
Why?
I think a large number of data handling functions would benefit from
such a function.
And it'd make PHP more robust.
Because it is an hack to work around the lack of support for detection
of corrupted data in zlib.
Hi all.
I have users log into my site to perform certain actions. However, I
want to create a timed session so that it automatically logs them out
after a certain amount of time. I am using
`session_set_cookie_params()` to create the amount of available time
that the user is logged in.
But my
# store entry time to session
$_SESSION['entry_time'] = time();
# checking if session expired
if((time() - $_SESSION['entry_time']) > 3600) #session expired after 1 hour
{
header('login.php');
exit;
}
-afan
> Hi all.
>
> I have users log into my site to perform certain actions. However, I
On Mon, 04 Oct 2004 09:54:15 -0500, Philip Thompson <[EMAIL PROTECTED]> wrote:
> I have users log into my site to perform certain actions. However, I
> want to create a timed session so that it automatically logs them out
> after a certain amount of time. I am using
> `session_set_cookie_params()`
Philip Thompson wrote:
Hi all.
I have users log into my site to perform certain actions. However, I
want to create a timed session so that it automatically logs them out
after a certain amount of time. I am using `session_set_cookie_params()`
to create the amount of available time that the user
I want to create and defined variables of an object in runtime , is
that possible ?
I can do that with arrays but I want the access it as variable from
obbject it self and not like member of an array are defined on object
before I load it !
--
Alawi Albaity
Jeddah - KSA
Mobile : +966506660442
--
Alawi Albaity wrote:
I want to create and defined variables of an object in runtime , is
that possible ?
I can do that with arrays but I want the access it as variable from
obbject it self and not like member of an array are defined on object
before I load it !
What about trying it before asking?
-
Hi all,
I have a little problem with signing e-mails from PHP.
The little piece of code giving me headaches is this:
$tmp_file");
exec("cat $tmp_file | pgp -sta -u Alex -o $tmp_file");
?>
If I run it from shell with
# php -f pgp_sign.php
it works as expected, I get one temporary file containin
Hello,
I just want to make sure that I understand this concept.
When i read thr' docs,
session.gc_maxlifetime specifies the number of seconds after which
data will be seen as 'garbage' and cleaned up
and default value is 1440.
My guess is :
A. 1440 seconds from last visit to the page (where
I ran across this problem with php 5.0.2 in Linux. This problem did not exist before
and this code was used in php 5.0.0, 5.0.1, 5.0.2-dev, and several other cvs snaps
along the way -all on Linux.
\n";
// Netmask = fullmask - number of hosts.
$netmask = pow(2, 32) - $numHosts;
print "netmask:
Suhas wrote:
Hello,
I just want to make sure that I understand this concept.
When i read thr' docs,
session.gc_maxlifetime specifies the number of seconds after which
data will be seen as 'garbage' and cleaned up
and default value is 1440.
My guess is :
A. 1440 seconds from last visit to the page
This is my understanding;
When you use session_start(); in your script it sets a condition that will
cause a session write of the contents of the $_SESSION array to the session
repository (by default a file whose name contains the session ID) when the
script has ended. At that time the record tim
Can anyone help me out? I just need a simple single webpage to send an
email from the server.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> From: Suhas <[EMAIL PROTECTED]>
>
> My general understanding is a session can be idle for
> 1440 seconds. If a php page tried to refer to a session
> which is been idle more than
> 1440 seconds, there is very little chance that page will
> access to session data.
Not quite. As long as a sessio
[snip]
Can anyone help me out? I just need a simple single webpage to send an
email from the server.
[/snip]
http://www.php.net/mail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"news.php.net" <[EMAIL PROTECTED]> wrote:
>
> Can anyone help me out? I just need a simple single webpage to send an
> email from the server.
>
http://ca.php.net/manual/en/ref.mail.php
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
news.php.net wrote:
Can anyone help me out? I just need a simple single webpage to send an
email from the server.
Since your name is 'news.php.net' you should be well aware that you
ought to RTFM before posting in newsgroups.
--
Raditha Dissanayake.
---
news.php.net wrote:
Can anyone help me out? I just need a simple single webpage to send an
email from the server.
Oh, I'm going to guess that php's mail functions will help...there's
even a manual entry for it.
http://us2.php.net/mail
Answers are usually found in a four step process...
RTFM
STFA
What I would like to do is upload a file and have PHP parse the file and
dump the information into a MySQL database, putting the information into
select tables. I believe I can do everything EXCEPT parse the page.
Anyone have some insight (or direct links) to some examples on what to
use to do
> What I would like to do is upload a file and have PHP parse the file and
> dump the information into a MySQL database, putting the information into
> select tables. I believe I can do everything EXCEPT parse the page.
> Anyone have some insight (or direct links) to some examples on what to
> use
Robert Sossomon wrote:
What I would like to do is upload a file and have PHP parse the file and
dump the information into a MySQL database, putting the information into
select tables. I believe I can do everything EXCEPT parse the page.
Anyone have some insight (or direct links) to some example
Whoops.
I am planning to do an upload of HTML files that are written from Belarc
Advisor or from another utility that checks your system and creates a
profile.
Robert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ave,
I'm trying to send Attachments via a mail script... The only problem is, my
attached files go corrupted or damaged, and I don't understand why! Can
anyone help me? I've already made 2 posts earlier with my code and all and
no one responded. Really need some help here.
Thanks,
Junkie
--
PHP
John,
On Oct 4, 2004, at 1:25 PM, John Nichel wrote:
Answers are usually found in a four step process...
RTFM
STFA
STFW
Mailing List
Can you clarify these abbr.? I think I understand the first one, but
what are the next two? Hehe
=D
~Philip
--
PHP General Mailing List (http://www.php.net/)
To uns
Is MySQL off topic for this list? If so, I apologise.
I am supplied with various text (CSV, etc) data files, which I need to
manually massage before I import into the main database. I feel that I
can deal with them better by turning them into SQL tables first. I know
about LOAD DATA INFILE, bu
On Mon, 04 Oct 2004 15:31:12 -0500, Philip Thompson <[EMAIL PROTECTED]> wrote:
> > RTFM
> > STFA
> > STFW
> > Mailing List
RTFM = Read the fine manual.
* http://www.php.net/docs.php
STFA = Search the fine archives.
* http://marc.theaimsgroup.com/?l=php-general
STFW = Search the fine web.
* http:
Pete wrote:
Is MySQL off topic for this list?
Yes.
http://lists.mysql.com/
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Philip Thompson wrote:
John,
On Oct 4, 2004, at 1:25 PM, John Nichel wrote:
Answers are usually found in a four step process...
RTFM
STFA
STFW
Mailing List
Can you clarify these abbr.? I think I understand the first one, but
what are the next two? Hehe
They deal with Searching The Archives, and S
PHP Junkie wrote:
Ave,
I'm trying to send Attachments via a mail script... The only problem is, my
attached files go corrupted or damaged, and I don't understand why! Can
anyone help me? I've already made 2 posts earlier with my code and all and
no one responded. Really need some help here.
View th
On Mon, 4 Oct 2004 22:32:40 +0200, Pete <[EMAIL PROTECTED]> wrote:
>
> Is MySQL off topic for this list? If so, I apologise.
There is a php-db list that is more on-topic than php-general, but so
long as your already here :)
> I am supplied with various text (CSV, etc) data files, which I need t
I'm looking for an easy to use html textarea replacement script and figured
this was the place to locate the most popular.
Thanks,
Dave
HTC Disclaimer: The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of thi
Don't get too excited; this is an awfully lame newbie question.
I'm trying out my first functions and can't get past some sort of stupid
syntax mistake I'm making. I've cut the following snippet directly out of the
online PHP manual and put it in a PH page, like so:
Test function
Square of nu
> Don't get too excited; this is an awfully lame newbie question.
Too late, I'm already excited.
>
> I'm trying out my first functions and can't get past some sort of stupid
> syntax mistake I'm making. I've cut the following snippet directly out of
> the
> online PHP manual and put it in a PH pa
I'm looking at online stores and it seems like a lot of them maintain copies
of credit card numbers. Is this true? That seems like a "bad thing" to me,
especially in terms of liability and risk of hackers. On the flip side, it
seems like there are legitimate reasons. For example, if you bill th
Howdy,
It seems to work just fine for me, perhaps you have a syntax error
somewhere else, such as a missing ; or $ or {. Check and make you you
have no typo's, it seems to work perfectly for me.
--
Regards,
Matthew Fonda
On Mon, 2004-10-04 at 13:59, Whil Hentzen wrote:
> Don't get too excited;
The best way to store credit card numbers is to have them encrypted when
they are stored in the database, and decrypted when they need to be
used, that way it will be safer for the most part
On Mon, 2004-10-04 at 14:49, Ed Lazor wrote:
> I'm looking at online stores and it seems like a lot of them
On Monday 04 October 2004 16:43, Matthew Sims wrote:
> > Don't get too excited; this is an awfully lame newbie question.
>
> Too late, I'm already excited.
Sorry 'bout that.
> > > function square($num)
> > {
> > return $num * $num;
> > }
> > echo square(4); // outputs '16'.
> > ?>
> >
On Monday 04 October 2004 17:00, Matthew Fonda wrote:
> Howdy,
>
> It seems to work just fine for me, perhaps you have a syntax error
> somewhere else, such as a missing ; or $ or {. Check and make you you
> have no typo's, it seems to work perfectly for me.
I cut this directly out of the online m
Anyway to choke PHP's behaviour of adding the following to httpd.conf
when you make install:
LoadModule php4_module /some_dumb_location/libphp4.so
I use a customized layout for my compilations, and this always messes
things up since apache doesn't complain about the location, and then it
stop
Has anyone integrated the UPS Online Tools with their site using PHP?
http://www.ups.com/content/us/en/bussol/offering/technology/automated_shippi
ng/online_tools.html
-Ed
Greetings,
I've seen a few posts from the middle of last year discussing the problem
of recursive interpolation:
http://marc.theaimsgroup.com/?l=php-general&m=105543152906744&w=2
http://marc.theaimsgroup.com/?l=php-general&m=105542523331255&w=2
It seems there's a HEREDOC method of hacking thro
Hi there,
I am experiencing a strange behaviour with $_SERVER vars.
Somehow the var: $_SERVER[SERVER_PORT] seems to be 443 even if
it is 80. I had following statement inside my app:
if ($_SERVER[SERVER_PORT] == '443' AND !$SSL){
header("Location:http://".$_SERVER[HTTP_HOST].$_SERVER[REQUES
On Mon, 4 Oct 2004 16:50:17 -0400, Bosky, Dave <[EMAIL PROTECTED]> wrote:
> I'm looking for an easy to use html textarea replacement script and figured
> this was the place to locate the most popular.
What is a "html textarea replacement script" ?
I could be wrong but it sounds like javascript, n
On Tue, 5 Oct 2004, Merlin wrote:
> I am experiencing a strange behaviour with $_SERVER vars.
> Somehow the var: $_SERVER[SERVER_PORT] seems to be 443 even if
> it is 80. I had following statement inside my app:
>
> if ($_SERVER[SERVER_PORT] == '443' AND !$SSL){
> header("Location:http://"
Hello php-general,
Currently I use Smarty for page templating system, and I am happy with
this. But is there any way to produce a file with smarty instead of
displaying it as a page.
I want to use this as email templating, I want to create an email and
I have a template like smarty and I want to
adwinwijaya wrote:
Hello php-general,
Currently I use Smarty for page templating system, and I am happy with
this. But is there any way to produce a file with smarty instead of
displaying it as a page.
I want to use this as email templating, I want to create an email and
I have a template like smar
Hello John,
Tuesday, October 5, 2004, 11:43:34 AM, you wrote:
JH> X-Apparently-To: [EMAIL PROTECTED] via
JH> 216.109.117.233; Mon, 04 Oct 2004 18:44:39 -0700
JH> X-Originating-IP: [216.92.131.4]
JH> Return-Path:
JH> <[EMAIL PROTECTED]>
JH> Received: from 216.92.131.4 (HELO pb1.pair.com) (216.92.
hi...
i'm trying to return values/information from a perl app to a php app. what's
the best way??
foo.php
blah
res = system(dog.pl)
.
.
---
dog.pl
$vars
.
.
.
--
the issue i'm having is that perl only seems to allow an app to have an
'exit' value of a short in
adwinwijaya wrote:
$message = $email->>fetch('/templates/email.tpl');
JH> mail($to,$subject,$message);
no, This is not what I mean. I know about mail() function.
I just want to create email, but I want it like smarty, have if, for
etc in the email template.
Yes, that is what you mean. fetch() is go
bruce wrote:
i'm trying to return values/information from a perl app to a php app. what's
the best way??
[snip]
the issue i'm having is that perl only seems to allow an app to have an
'exit' value of a short int. i need to return values that might be multiple
arrarys. should i simply write the perl
Hello John,
Tuesday, October 5, 2004, 11:59:19 AM, you wrote:
JH> Yes, that is what you mean. fetch() is going to parse the smarty "email"
JH> template (where you have your IF, FOR, smarty variables, etc) and return
JH> the parsed template to you. Then you stick that into mail().
JH> If you want
Hi!
I need management the use of the memory when a php script is execute. How
can i do it?.I know mysql_free_result for free all memory associated with the result,
is it all?.
Regards,
JP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eric...
how does using serialize allow the information from the perl app to be used
by the php parent app. unless you're implying that the serialized
information is stored in an external file, that's then read by the php
calling/parent app...
-bruce
-Original Message-
From: [EMAIL PROTE
the issue i'm having is that perl only seems to allow an app to have an
'exit' value of a short int. i need to return values that might be multiple
arrarys. should i simply write the perl return values into an output file,
and read the output vars from the output file in the php file...
I believe t
On Mon, 4 Oct 2004, Chuck Wolber wrote:
> Database *FIELD* with text data in it. The text data contains sentences
> interspersed with $foo['bar'] array variables. The idea is that when one
> selects this field, PHP will interpolate $foo['bar'] with the currently
> defined $foo array variable. T
1. If you have any queries/problems about PHP
try http://www.php.net/manual/en first. You
can download a copy and use it offline also.
Please also try
http://www.php.net/manual/faq.php
for answers to frequently answered questions
about PHP (added by Christophe Chisogne).
2. Try http://www.g
Chuck Wolber wrote:
> The method I've come up with in the meantime, I believe is much more
> effective than heredocs, but still an ugly hack:
>
> function interpolate ($text, $msg_variable) {
> $msg_key = '_FP_VAR_';
>
> foreach (array_keys($msg_variable) as $key) {
> $token = $msg_
I guess I have no patience with the "topic police" since it's difficult to
develop a good PHP "user interface" without the use of JavaScript, and I
consider anything that involves getting the most out of PHP "on topic", but
since I'm in charge of absolutely nothing, all I can do is provide a little
Hi
I am developing an application using php and postgresql . My problem is I
need to retrieve name and addresses from table(postgres sql table) and
print letter (body of letter will be same). Kindly help /Suggest how i can
do this
Thanks
Suma
___
73 matches
Mail list logo