|What PHP versioan are u using? (Maybe a known bug?)
What options did u use to compile?
|Temporarily solutions ...|
- round($Bar, 2)
Or
- intval($Bar*100)/100
|
Ben Miller wrote:
If anyone has an answer for this, I would be greatly appreciative.
I was trying to compare two values, the first
Hi ALL
I am looking out for PHP Manual in PDF Format
Thanks in Advance
Regards
Kaushal
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If anyone has an answer for this, I would be greatly appreciative.
I was trying to compare two values, the first is the total cost of products
to be refunded, and the second is the original order total. To the naked
eye, they both were coming out as 102.85, yet an if($Refund_Amount >
$Order_Total
Hi,
How can I use it?
For example:
[lib='user32.dll'] int MessageBoxA(int handle, char *text, char
*caption, int type);
How can I write this sentence?
What is the format?
And I want to use GetComputerNameA, what can I do?
GetComputerNameA($compname,255);
echo $r; //Debug
echo $ffi->MessageBoxA(0,
Khai wrote:
In my development environment I have Zend Debugger / Zend Studio
installed. I like to put all the directives for this into studio.ini,
and include this file into the main php.ini somehow. Is this possible?
Also can I put php directives into the apache httpd.conf file?
No, you c
Yes I'm aware of the mail queue. I guess what I'm after is way to get a
more detailed status message. I notice that in the mail queue, each
message is given a unique ID, which I suspect could be used for my
purpose, i.e. has the message been processed yet, is there a temporary
or permanent deliver
Hello,
on 02/23/2006 10:52 PM Mattias Thorslund said the following:
>>> This might be "too simple" or not...
>>>
>>> I'm trying to send emails from my PHP page, and while both mail() and PEAR
>>> Mail
>>> work, I'm having a hard time finding out whether a message was actually
>>> sent or
>>> not
Manuel Lemos wrote:
> Hello,
>
> on 02/23/2006 09:22 PM [EMAIL PROTECTED] said the following:
>
>> This might be "too simple" or not...
>>
>> I'm trying to send emails from my PHP page, and while both mail() and PEAR
>> Mail
>> work, I'm having a hard time finding out whether a message was actu
Hello,
on 02/23/2006 09:22 PM [EMAIL PROTECTED] said the following:
> This might be "too simple" or not...
>
> I'm trying to send emails from my PHP page, and while both mail() and PEAR
> Mail
> work, I'm having a hard time finding out whether a message was actually sent
> or
> not.
>
> With b
[EMAIL PROTECTED] wrote:
Hi,
This might be "too simple" or not...
I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail
work, I'm having a hard time finding out whether a message was actually sent or
not.
The short answer is 'not really'.
The long answer..
If the m
a system that I developed and I tested in my PC and it runs to the
perfection, when I upload this to the hosting server it has many problems. I
think that is because the session variables don't work in the server. It is
possible? How can I solve this???
What problems?
You can check if session
Hi,
This might be "too simple" or not...
I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail
work, I'm having a hard time finding out whether a message was actually sent or
not.
With both mail() and PEAR Mail, an email to an invalid domain (syntactically
valid) name r
sorry Ive done it again, for anyones interest, you might have to
urlencode the string twice for mod_rewrite to accept encrypted and
base64_encoded strings which add slashes and ampersands into their
strings.
It is confirmed there is a bug in mod_rewrite and doesnt like the
urlencoded %2F char
Roy Souther wrote:
I have been doing something to that affect in the past. The problem with
that is that every time a newer version of the CMS program is released I
have to go around to about 50 files and add that hack again.
Don't make it a hack - make it how it works.
I use it all over the
Continueing on my prior problem, Ive discovered that base64_encode adds
forward slashes in its encoded string, when its urlencoded it becomes
something like
/feeds/UmFuZG9tSVZd%2FMChU7sMQqdUi%2FrgYHD7
mod_rewrite doesnt seem to like the %2F in the string and fails with a
404 as it doesnt get
You need to check your httpd.conf and make sure the "Options FollowSymLinks"
is set for the server. Check the apache documentation for further
information.
Joel Leibow
"Roy Souther" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I am trying to stop PHP from resolving symlinks. I
On Thu, February 23, 2006 4:28 pm, Khai wrote:
> In my development environment I have Zend Debugger / Zend Studio
> installed. I like to put all the directives for this into studio.ini,
> and include this file into the main php.ini somehow. Is this
> possible?
I don't think so, but if it's part
In my development environment I have Zend Debugger / Zend Studio
installed. I like to put all the directives for this into studio.ini,
and include this file into the main php.ini somehow. Is this possible?
Also can I put php directives into the apache httpd.conf file?
Khai
--
PHP General M
Jens Kleikamp wrote:
Benjamin Adams wrote:
I have three links. The code already auto selects one.
I'm trying to take that one link and automaticly start the download.
I tryed with header('location:$link');
but it tells me "Warning: Cannot modify header information"
what would I use to start dow
using: RedHat ; PHP 5.1.2 ; libxml 2.6.22
How do I return a node-set to an xsl stylesheet via php:function?
I've had no difficulty returning strings, but so far xsl refuses to see
the result as something I can iterate as real XML.
php fragment:
-
// return String
Hi
a system that I developed and I tested in my PC and it runs to the
perfection, when I upload this to the hosting server it has many problems. I
think that is because the session variables don't work in the server. It is
possible? How can I solve this???
Ahead of time, thank you very much,
LOL. I see the point your trying to make! I have made a news script
before but how would I add coments to each individual new article! How
would I keep it all together! and also to show only the lastest news
articles!
On Thu, 23 Feb 2006 3:04 pm, Jay Blanchard wrote:
[snip]
How would I make
Jay Blanchard wrote:
[snip]
How would I make a flatfile new systen with the ability for users to
comment on the news selection (no login required)?
Write the code for it.
{/snip]
Carefully and thoughtfully.
That goes for questions too.
http://www.catb.org/~esr/faqs/smart-questions.html
-
John Nichel wrote:
Nicholas Couloute wrote:
How would I make a flatfile new systen with the ability for users to
comment on the news selection (no login required)?
Write the code for it.
lol, too funny.
The filesystem reference:
http://us2.php.net/manual/en/ref.filesystem.php (this will
On Thu, 2006-02-23 at 15:18, John Nichel wrote:
> Nicholas Couloute wrote:
> > LOL. I see the point your trying to make! I have made a news script
> > before but how would I add coments to each individual new article! How
> > would I keep it all together! and also to show only the lastest news
>
[snip]
LOL. I see the point your trying to make! I have made a news script
before but how would I add coments to each individual new article! How
would I keep it all together! and also to show only the lastest news
articles!
[/snip]
See http://www.php.net/fopen and look at appending files.
--
Nicholas Couloute wrote:
LOL. I see the point your trying to make! I have made a news script
before but how would I add coments to each individual new article! How
would I keep it all together! and also to show only the lastest news
articles!
Without seeing one iota of your code, or your data
[snip]
> How would I make a flatfile new systen with the ability for users to
> comment on the news selection (no login required)?
Write the code for it.
{/snip]
Carefully and thoughtfully.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nicholas Couloute wrote:
How would I make a flatfile new systen with the ability for users to
comment on the news selection (no login required)?
Write the code for it.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--
PHP Gen
Hello,
on 02/23/2006 11:32 AM George Pitcher said the following:
> My apache error.log says:
>
> sh: line 1: /usr/sbin/sendmail -t: no such file or directory
/usr/sbin/sendmail is not the correct sendmail program path. The correct
path is /usr/lib/sendmail . It may be odd that a program is loca
How would I make a flatfile new systen with the ability for users to
comment on the news selection (no login required)?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
on 02/23/2006 02:55 PM Dirk Vanden Boer said the following:
>> The problem is that you are misleading PHP telling that you are posting
>> form data. You need to correct the request Content-Type. It must not be
>> application/x-www-form-urlencoded nor multipart/form-data . I think you
>> can
Manuel Lemos schreef:
Hello,
on 02/21/2006 03:40 PM Dirk Vanden Boer said the following:
I have a C++ application that posts binary data to a php script that I
created using libcurl. Everything works fine except when my binary data
happens to start with the '&' symbol. In that case I can't rea
Hi Ho, (7 dwarfs anyone? ;-)
click this link to download php4.4.2 (not the installer version)
it contains the DLL your looking for:
http://hk.php.net/get/php-4.4.2-Win32.zip/from/a/mirror
in the event that your using php5 then w32api is no longer
available - it has been replaced with fcc:
http:
roger helgesen wrote:
function fyll_sub_konto($pv){
foreach($this->subposter AS $konto=>$kt){
$kontoen=& $this->subposter[$konto];
$kontoen->fyll_fra_post($pv);
$kontoen->endre();
}
}
the line
Roger Helgesen wrote:
ain't that the other way around ?
I don't get the context of the question.
isn't what supposed to be the otherway around?
$var1=$var2 ($var1 is a copy of $var2)
$var1=& $var2 ($var1 is a reference to $var2)
$var1='Test'
echo $var2 (outputs Test)
roger
Jochem Maas wrot
Jason Gerfen wrote:
Not sure about this one, I am trying to execute a SQL query to retrieve
records then loop over the records and display X amount per line. Any
X ammount of what per 'line'? db records (or elelphants)?
and by line do you mean 'html table row'?
assuming I got that correct, c
Not sure about this one, I am trying to execute a SQL query to retrieve
records then loop over the records and display X amount per line. Any
help is appreciated.
$sql = @mysql_query( "SELECT * FROM subnets", $db );
$num = @mysql_num_rows( $sql );
$subnets .= "class=\"fntTR\" colspan=\"$num\">
I have been doing something to that affect in the past. The problem with that is that every time a newer version of the CMS program is released I have to go around to about 50 files and add that hack again.
I want to reduce the manual labour needed to maintain these web site.
Thanks for tryin
Mathieu Dumoulin wrote:
Update update update
I tried with mozilla firefox and it worked fine, i just need to find out
now what IE does that makes this process fail. If any of you have an
idea that could help me solve my problem don't hesitate cause i need to
find a soluti
If your page is already displayed and you want to auto start a link, its
not done via PHP, its done via javascript to open a new window towards
one of those links. Nothing prevents you from outputting javascript
yourself from PHP, give it a try its really fun to build dynamic
javascript applica
Update update update
I tried with mozilla firefox and it worked fine, i just need to find out
now what IE does that makes this process fail. If any of you have an
idea that could help me solve my problem don't hesitate cause i need to
find a solution.
--
PHP General Mail
I got a really weird and annoying problem:
I have a file database that people can access, depending of the file
status (pending, active, deleted) i allow access to it from different
people. For example, pending is available only to owner and admins,
active is avail to everyone and delete is no
George Pitcher wrote:
Jochem,
personally I'd rather stick my head in a blender than use webmin to edit
such conf files. (no I wouldn't but you get the point hopefully)
how are you restarting apache? possibly your being told that the restart
occured but really your being lied to ... try doing i
On 2/22/06, tedd <[EMAIL PROTECTED]> wrote:
>
>
>
> PS: This site works for: Opera 8.5+, Safari, Netscape 7.2+, Mozillia
> 1.6+, FireFox 1.0.7+, Konqueror 3.4.0+, and IE 5+ (except Mac)
>
>
Doesn't work for me firefox 1.0.3 on fedora core 3.
FYI, javascript consoles outputs:
Error: document.getEle
Jochem,
>
> personally I'd rather stick my head in a blender than use webmin to edit
> such conf files. (no I wouldn't but you get the point hopefully)
>
> how are you restarting apache? possibly your being told that the restart
> occured but really your being lied to ... try doing it 'manually':
George Pitcher wrote:
Manuel,
I have found that any changes I make to php.ini are ignored, even after
restarting Apache. I have been editing httpd.conf via Webmin,
personally I'd rather stick my head in a blender than use webmin to edit
such conf files. (no I wouldn't but you get the point h
Björn, and David said:
Yo, tedd...
[David Tulloh]
>Your example fails for me, Firefox and Mozilla. The rpc.php file
>doesn't seem to return anything.
[/David Tulloh]
...it does the same for me... ok, on that way a bot will never get your
mail-adr... ;)
LOL
Björn & David:
The current site
Benjamin Adams wrote:
I have three links. The code already auto selects one.
I'm trying to take that one link and automaticly start the download.
I tryed with header('location:$link');
but it tells me "Warning: Cannot modify header information"
what would I use to start downloading?
one of the li
Yo, tedd...
[David Tulloh]
>Your example fails for me, Firefox and Mozilla. The rpc.php file
>doesn't seem to return anything.
[/David Tulloh]
...it does the same for me... ok, on that way a bot will never get your
mail-adr... ;)
[David Tulloh]
>To answer your question though, a bot is capable o
On Thursday 23 February 2006 11:49, IG wrote:
> > IG wrote:
> >> Is it possible to alter a subject line (or body for that matter) of an
> >> email in a pop3 mailbox?
> Thanks- I completely see your point.
>
> How do antispam filters work on client's computers? They seem to have no
> problem with a
Dear all,
I have a question on w32api ( http://hk.php.net/manual/en/ref.w32api.php
). I'm developing a command line program with PHP on windows, and I want
to call some API. But I cannot found the dll required for the w32api
extension. I'm using PHP/5.0.5, does anyone have an idea? Or there is
ano
Chris wrote:
IG wrote:
Is it possible to alter a subject line (or body for that matter) of an
email in a pop3 mailbox?
If it's already in the mailbox, then I highly doubt you can do this.
You need to do this on the way in before it gets to the account.
Consider the ramifications if you could
Yes somehow in this case apache is treating the urlencoded string of a
forward slash as a forward slash and so isnt matching the rule
properly.
On 23/02/2006, at 9:58 PM, Jared Williams wrote:
Subject: Re: [PHP] encrypted urls, mcrypt and mod_rewrite
Somehow this part of the string is a pr
Thanks, Nobody Special.
You like filling people with confidence. We all have to start somewhere
don't we? I am starting this completely from scratch and it will be
quite a while before I put this into service.
However thanks for the information on mail boxes. I don't have much
knowledge on t
Ahh thanks heaps, its working more nicely
However, trying to add more data into the encrypted string which is
then base64_encoded I get a slash in the string which is breaking the
rewriterule like the other cases.
UmFuZG9tSVYljfOW15UlfzVJV8zBtaEXPh0mPku64cowVrHo%2Fgno9LeTfwejwsmG
The request
> Subject: Re: [PHP] encrypted urls, mcrypt and mod_rewrite
>
> Somehow this part of the string is a problem, it has
> underscores, but there is probably other things in this.
>
> _%E5%D4%13%82%C9%DFN%5EFs%5E47%B2v%2F%D7%A4%0C%C6%9EnJ
I'd base64 encode that first then urlencode :)
>
> On 23
Dan Rossi wrote:
On 23/02/2006, at 8:45 PM, Jochem Maas wrote:
Dan Rossi wrote:
Ok it looks like when i exploded the urls by a comma, one has space
exploding the urls??? - this list is not called 'php-psychics'
for a reason. i.e. don't assume we know that you happen to have a
string which
Dan Rossi wrote:
Somehow this part of the string is a problem, it has underscores, but
there is probably other things in this.
give code, give the whole string.
_%E5%D4%13%82%C9%DFN%5EFs%5E47%B2v%2F%D7%A4%0C%C6%9EnJ
On 23/02/2006, at 6:01 PM, Dan Rossi wrote:
Hi ive been trying to find ans
On 2/22/06, Matt Palermo <[EMAIL PROTECTED]> wrote:
> Hey guys. I would like to first say thanks for all the help you have all
> given me in the past (especially in my early programming days). Once again,
> I would like to show my appreciation by offering an opportunity to use a new
> PHP program
On 23/02/2006, at 8:45 PM, Jochem Maas wrote:
Dan Rossi wrote:
Ok it looks like when i exploded the urls by a comma, one has space
exploding the urls??? - this list is not called 'php-psychics'
for a reason. i.e. don't assume we know that you happen to have a
string which contains 'urls' tha
Dan Rossi wrote:
Ok it looks like when i exploded the urls by a comma, one has space
exploding the urls??? - this list is not called 'php-psychics'
for a reason. i.e. don't assume we know that you happen to have a
string which contains 'urls' that you seem to explode on a comma before
going on
Matt Palermo wrote:
Hey guys. I would like to first say thanks for all the help you have all
given me in the past (especially in my early programming days). Once again,
I would like to show my appreciation by offering an opportunity to use a new
PHP program I have created. The program is cal
63 matches
Mail list logo