The Doctor wrote:
> I get a customer that has the following code
> that needs to run:
>
> Header("Content-Type: image/gif");
>
> if(isset($_GET['BTT'])){
>
> $BTT = $_GET['BTT'];
> }
> else{
> $BTT = "";
> }
>
> $insert = imagecreatefromgif("MenuButton3.gif");
> $text=
Try something like:
floor($value * 100)/100;
--
Anas Mughal
On 1/9/06, Mark Steudel <[EMAIL PROTECTED]> wrote:
>
> I am calculating things like tax and want to format them so they only have
> 2
> digits past the decimal point. I've been using sprintf but just noticed
> that
> it tends to rou
On 1/9/06, Support <[EMAIL PROTECTED]> wrote:
>
>
> quote for the book-
>
> "PHP scripts will invoke the encryption process, and the public key has to
> be
> on the key ring of the user invoking the encryption. On the Web server,
> PHP
> usually runs as user "nobody" or "www" or as the user for you
Pretty much
Chris wrote:
So it means the function was introduced in version 4.01?
""Erin Fortenberry"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
= is "greater or equal to"
-Erin
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, January 09
So it means the function was introduced in version 4.01?
""Erin Fortenberry"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >= is "greater or equal to"
>
> -Erin
>
>
>> -Original Message-
>> From: Chris [mailto:[EMAIL PROTECTED]
>> Sent: Monday, January 09, 2006 9:13 PM
>>
Thanks so much for the response Jason,
I am sure glad somebody got it...good to know I'm on the right track.
I have a key pair setup but I don't think they are named correctly...I could
use some guidance on how the server is named and how to name your public keys
to match..The other issuse is
Chris Lott wrote:
What I have is a form with 45 data fields... if any of a selected 35
of those fields is empty, I want to have the user go back. So I can't
loop over the entire _POST array. So I thought I would put the names
of the fields I *do* want to check into an array and check.
So this wo
>= is "greater or equal to"
-Erin
> -Original Message-
> From: Chris [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 09, 2006 9:13 PM
> To: php-general@lists.php.net
> Subject: [PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5)
>
> I'm trying to understand function definitions and c
I'm trying to understand function definitions and can't seem to find any
reference to the meaning of (PHP 4 >= 4.0.1, PHP 5) or variations there of,
shown at the beginning of each definition. I get the idea it is telling me
that the particular function is supported in PHP 4 & 5. But what does th
Hi Angelo,
You may create a separate table called "currencies" and put two fields
like "currency_id" and "currency_desc" in it. Insert all the currencies
you're using to this table. At the end, you'll have a currency_id for
each of your currencies. Now, you can use those ID numbers in your for
What I have is a form with 45 data fields... if any of a selected 35
of those fields is empty, I want to have the user go back. So I can't
loop over the entire _POST array. So I thought I would put the names
of the fields I *do* want to check into an array and check.
So this won't work:
> foreach(
I am finishing a PHP session serializer module and am seeing wierd things. I
seems to work OK, but doesn't work with squirrelmail. It works mostly but
there seems to be one type that isn't working and I can't seems to find it.
If you want to help:
download and install xmldbx in your PHP, copy xmld
On 1/9/06, zedleon <[EMAIL PROTECTED]> wrote:
>
> Has anybody had success using PHP and GPG to send encripted email from a
> form?
>
Yes. You're on the right track. The method I used was to create a temp
file with my data, encrypt it with GPG, read it back into a string, then
mail() it. (Of co
Mark,
Why not use sprintf() with an arbitrary large number of decimals and then
discard all but the 2 you want. I.e., format with 10 decimals and then drop
the last 8.
On 1/9/06, Mark Steudel <[EMAIL PROTECTED]> wrote:
>
> I am calculating things like tax and want to format them so they only have
I am calculating things like tax and want to format them so they only have 2
digits past the decimal point. I've been using sprintf but just noticed that
it tends to round up. I want the same functionlity without rounding.
Mark:
Rounding?
You can try round(), such as:
But, as you can see, t
I get a customer that has the following code
that needs to run:
Here is my php config:
configure --prefix=/usr/contrib --localstatedir=/var \
--infodir=/usr/share/info \
--mandir=/usr/share/man --with-low-memory --with-elf --with-x \
--with-mysql=/usr/contrib --with-zlib --enable-track-var
Angelo:
Now might be the time to start looking at Unicode characters.
Here's a start:
http://www1.tip.nl/~t876506/utf8tbl.html
There's all sorts of ways to show special characters.
For example, the BULLET (Unicode 2022) can be shown by:
•
•
• <-- Note
Please note that "8226" is DEC for th
I recently got handed a project that requires me to use PHP to talk to a WSDL
SOAP service. I'm not new to PHP but I am new to SOAP. I have the basic idea
of how SOAP works but still have a few questions I am hoping you all can answer
for me.
Which library would be better to use? NuSOAP or P
On Monday 09 January 2006 03:20 pm, Mark Steudel wrote:
> I am calculating things like tax and want to format them so they only have
> 2 digits past the decimal point. I've been using sprintf but just noticed
> that it tends to round up. I want the same functionlity without rounding.
>
> Thanks
Yo
I am calculating things like tax and want to format them so they only have 2
digits past the decimal point. I've been using sprintf but just noticed that
it tends to round up. I want the same functionlity without rounding.
Thanks
Yes, I think we all deserve at least one Mulligan on Mondays.
On Jan 9, 2006, at 1:43 PM, John Nichel wrote:
Jay Blanchard wrote:
[snip]
Ah, but then it would be a CSS question, and not a PHP one. ;)
[/snip]
Touche'! But then we wouldn't be kinder and gentler
We'd have an excuse...it i
I am drawing a blank on how to go about doing this for some reason.
I have a page that pulls info from a database, and I want to have a
version for viewing, and a version fro printing. Since the data is
dynamic, I need to keep the data, but be able to switch the
stylesheet. Can someone give me
I have a problem with PHP talking to my non-php webservice.
The problem arises because I have a list of elements in an umbounded
xsd:choice type, which are supposed to be parsed in the correct order.
Unfortunately, PHP groups them together per-type instead of in the
order they appear in the do
Jim Moseby wrote:
I want to do something like this to check if a variety of submitted
form fields (crn, instructor, etc) have any value in them:
$reqfields = array('crn', 'instructor');
$errorflag = 0;
foreach ($reqfields as $field) {
if ($_REQUEST[$field] == '') {
$erro
You could use the isset() or the empty() functions.
http://us3.php.net/manual/en/function.empty.php
http://us3.php.net/manual/en/function.isset.php
But do you want to check all the fields that are being submitted or just
specific ones that you set in the $reqfields array? If you want to check a
>
> I want to do something like this to check if a variety of submitted
> form fields (crn, instructor, etc) have any value in them:
>
> $reqfields = array('crn', 'instructor');
> $errorflag = 0;
>
> foreach ($reqfields as $field) {
> if ($_REQUEST[$field] == '') {
> $errorfl
php runs out of /usr/bin/php but entropy.ch installs into /usr/local/
php5 so you want to run /usr/local/php5/bin/php (on my system i
symlinked the two so they are the same).
-jeff
~~
Jeffrey Sambells
Director of Research and Development
Zend Certified Enginee
I want to do something like this to check if a variety of submitted
form fields (crn, instructor, etc) have any value in them:
$reqfields = array('crn', 'instructor');
$errorflag = 0;
foreach ($reqfields as $field) {
if ($_REQUEST[$field] == '') {
$errorflag = 1;
}
>From the http://pecl.php.net/package/domxml page:
NOTE: if you're running PHP 4.x, the domxml is already part of the
distribution.
It seems to me the Extension should be installed already.
On 1/9/06 7:41 AM, "Jochem Maas" <[EMAIL PROTECTED]> wrote:
> Ted Zeng wrote:
>> Hi,
>>
>> I use OS X t
see http://us2.php.net/manual/en/function.htmlspecialchars.php
note: I believe the dollar sign will also be translated, could be wrong.
Warren
At 03:14 AM 1/10/2006, Angelo Zanetti wrote:
Hi guys,
Im having problems with the Euro and Pound currency signs and storing them
etc...
here is my
Jay Blanchard wrote:
[snip]
Ah, but then it would be a CSS question, and not a PHP one. ;)
[/snip]
Touche'! But then we wouldn't be kinder and gentler
We'd have an excuse...it is Monday afterall.
OP : A print css sheet would save you another trip to the server.
--
John C. Nichel IV
Pro
Has anybody had success using PHP and GPG to send encripted email from a
form?
Seems like people avoid this issue like the plague. Very little is written
about it.
I am trying to get a script to work that was written in the book "php
essentials" by Julie Meloni.
Am I barking up the wrong tree? An
Does this
(PHP 4 >= 4.2.1, PECL)
Mean it is installed for version higher than
4.2.1?
Ted zeng
On 1/9/06 7:41 AM, "Jochem Maas" <[EMAIL PROTECTED]> wrote:
> Ted Zeng wrote:
>> Hi,
>>
>> I use OS X tiger which has a PHP v4.3.12 installed.
>
> any reason to be using an old version of php?
>
>
William Stokes wrote:
Hello,
I might have to start doing some automated image editing or rezising with
PHP. I've never done anything like this before so I would need some
guidelines to get started. Basically what sections of the manual to read and
what tools need to be installed to the serve
Hi guys,
Im having problems with the Euro and Pound currency signs and storing
them etc...
here is my scenario. I have a menu/list of currencies available for
selection, HTML below for the signs:
$
£
€
When listed in the browser they show fine.
When I want to save them, they are sav
[snip]
Ah, but then it would be a CSS question, and not a PHP one. ;)
[/snip]
Touche'! But then we wouldn't be kinder and gentler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
Because I wasn't sure the best way to pass the information to a
separate page. What John has is different than the direction I was
thinking, but will work.
[/snip]
A print stylesheet requires no IF statement. When you print it, it prints
according to the print st
Here's a snippet of what's at the start of most of my php files:
$pagetitle = "Lily Articles";
$pagefname = __FILE__; // for later logging
$pagedocroot = $_SERVER['DOCUMENT_ROOT'];
require_once ("$pagedocroot/include_db/db_connect.php");
require_once ("$pagedocroot/include/funcs.php");
Hope th
[snip]
Because I wasn't sure the best way to pass the information to a
separate page. What John has is different than the direction I was
thinking, but will work.
[/snip]
A print stylesheet requires no IF statement. When you print it, it prints
according to the print stylesheet.
--
PHP Gener
Thanks. This is perfect.
On Jan 9, 2006, at 12:07 PM, John Nichel wrote:
Mike Tuller wrote:
I am drawing a blank on how to go about doing this for some
reason. I have a page that pulls info from a database, and I want
to have a version for viewing, and a version fro printing. Since
the
Because I wasn't sure the best way to pass the information to a
separate page. What John has is different than the direction I was
thinking, but will work.
On Jan 9, 2006, at 12:17 PM, Jay Blanchard wrote:
[snip]
Why don't you make a prit.php file that handles all the dynamic
content and
[snip]
Why don't you make a prit.php file that handles all the dynamic content and
displays it with the CSS file you want.
[/snip]
Using a print stylesheet prevents a round trip to the server for the data.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
Why don't you make a prit.php file that handles all the dynamic content and
displays it with the CSS file you want.
jay
-Original Message-
From: Mike Tuller [mailto:[EMAIL PROTECTED]
Sent: Mon 1/9/2006 11:58 AM
To: php list
Subject: [PHP] CSS Switching
I am drawing a blank on how to g
Mike Tuller wrote:
I am drawing a blank on how to go about doing this for some reason. I
have a page that pulls info from a database, and I want to have a
version for viewing, and a version fro printing. Since the data is
dynamic, I need to keep the data, but be able to switch the styleshee
http://www.alistapart.com/articles/phpswitch/
or
http://www.alistapart.com/articles/alternate/
maybees
-dg
On Jan 9, 2006, at 10:58 AM, Mike Tuller wrote:
I am drawing a blank on how to go about doing this for some reason.
I have a page that pulls info from a database, and I want to have a
[snip]
I am drawing a blank on how to go about doing this for some reason. I
have a page that pulls info from a database, and I want to have a
version for viewing, and a version fro printing. Since the data is
dynamic, I need to keep the data, but be able to switch the
stylesheet. Can someo
I am drawing a blank on how to go about doing this for some reason. I
have a page that pulls info from a database, and I want to have a
version for viewing, and a version fro printing. Since the data is
dynamic, I need to keep the data, but be able to switch the
stylesheet. Can someone give
Philip Hallstrom wrote:
> http://us2.php.net/eval
Pay close attention to the oft-used quote from Rasmus Lerdorf:
"If eval() is the answer, you're almost certainly asking the
wrong question"
David
--
David Grant
http://www.grant.org.uk/
--
PHP General Mailing List (http://www.php.net/)
To unsu
If I have
$myStr = "$a * $b";
and I pass it as an argument
$result = myFunction($myStr);
function myFunction($var) {
$a = getData(1);
$b = getData(2);
return // Use $var
}
Is there a way to use $var to process $a and $b?
http://us2.php.net/eval
--
PHP General Mailing List (http://www.p
We are pleased to announce the availability of phpAspect which
implements aspect-oriented programming for PHP 5. phpAspect is based
on static weaving and produces code that can be executed with any PHP
5 version.
Informations about phpAspect can be found in the wiki project
(http://phpaspect.org).
thanks everybody who answered me,
the segment bellow is the code that gave me problems, the $app_name was the
7th parameter neccesary for me to call the GetCommandDeclaration function,
the solution I had for a while was to declare the variable global. :(
As you can see , the rest of variables
and it's used wrongly in 99.99% of the cases.
Are you trying to tell me that I'm *not* supposed to use it in front of
*every* php function
Oh, come *on* Why not?!? It makes the function call look so
pretty and important/official looking... or something... :p
thnx,
Chris
--
PHP Gen
M. Sokolewicz wrote:
and it's used wrongly in 99.99% of the cases.
Are you trying to tell me that I'm *not* supposed to use it in front of
*every* php function
;)
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--
PHP G
Todd,
It suppresses any error message if the function fails. Nothing as exotic as
a pointer.
Cheers - Miles
At 11:41 AM 1/9/2006, Todd Cary wrote:
I have not been able to find in the Online Manual the use of the "@"
symbol as in
while ([EMAIL PROTECTED]($sqlID, MYSQL_BOTH)){
Is that a "p
and it's used wrongly in 99.99% of the cases.
David Grant wrote:
Todd,
The @ operator suppresses error messages.
http://www.php.net/manual/en/language.operators.errorcontrol.php
David
Todd Cary wrote:
I have not been able to find in the Online Manual the use of the "@"
symbol as in
while
Yeah! its realy realy realy "great", nothing greater.:-D
On 1/9/06, Jim Moseby <[EMAIL PROTECTED]> wrote:
> >
> >
> > Want to know why i call for help?
> > for in this god damned country , anything and everything you want to
> > do, you find you are facing the wall.
> >
>
> Would that be the "grea
haha! never mind. im joking.
thanks for you all, i'll find the way out.
On 1/9/06, n.g. <[EMAIL PROTECTED]> wrote:
> Want to know why i call for help?
> for in this god damned country , anything and everything you want to
> do, you find you are facing the wall.
>
>
> On 1/9/06, Barry <[EMAIL PROTE
If I have
$myStr = "$a * $b";
and I pass it as an argument
$result = myFunction($myStr);
function myFunction($var) {
$a = getData(1);
$b = getData(2);
return // Use $var
}
Is there a way to use $var to process $a and $b?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsub
Todd,
The @ operator suppresses error messages.
http://www.php.net/manual/en/language.operators.errorcontrol.php
David
Todd Cary wrote:
> I have not been able to find in the Online Manual the use of the "@"
> symbol as in
>
> while ([EMAIL PROTECTED]($sqlID, MYSQL_BOTH)){
>
> Is that a "point
>
>
> Want to know why i call for help?
> for in this god damned country , anything and everything you want to
> do, you find you are facing the wall.
>
Would that be the "great" wall?
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> I have not been able to find in the Online Manual the use of the "@"
> symbol as in
>
> while ([EMAIL PROTECTED]($sqlID, MYSQL_BOTH)){
>
> Is that a "pointer"...address of...?
I have never used it, but I believe the "@" supresses error messages.
JM
--
PHP General Mailing List (http://w
Check this out
http://uk2.php.net/reserved.variables
DOCUMENT_ROOT will give you the root of your site
-Original Message-
From: Nuno Trancoso [mailto:[EMAIL PROTECTED]
Sent: 09 January 2006 14:56
To: php-general@lists.php.net
Subject: [PHP] include() problem
This may sound dumb, but i
Nuno,
Have you considered $_SERVER['DOCUMENT_ROOT']?
David
Nuno Trancoso wrote:
> This may sound dumb, but i have been up all night going through
> php/apache docs, and still have not found an answer..
>
> Throughout a site i need to include files that are scattered in subdirs,
> sometimes up i
Want to know why i call for help?
for in this god damned country , anything and everything you want to
do, you find you are facing the wall.
On 1/9/06, Barry <[EMAIL PROTECTED]> wrote:
> n.g. wrote:
> > hi,
> > i want to register a domain name through NetworkSolutions.com,
> > but it require a cr
I have not been able to find in the Online Manual the use of the "@"
symbol as in
while ([EMAIL PROTECTED]($sqlID, MYSQL_BOTH)){
Is that a "pointer"...address of...?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ted Zeng wrote:
Hi,
I use OS X tiger which has a PHP v4.3.12 installed.
any reason to be using an old version of php?
I would like to be able to generate xml files.
But when I copied a php script from a tutorial and tried it,
Php complaints that
domxml_new_doc is undefined function
How co
This may sound dumb, but i have been up all night going through
php/apache docs, and still have not found an answer..
Throughout a site i need to include files that are scattered in subdirs,
sometimes up in the dir tree, sometimes down. Bad design i know but i
have to live w/ it...
Problem i
Quoting David Grant <[EMAIL PROTECTED]>:
It would appear you've not included the full message. Please look at
the source of the message in your web browser. The space between
unexpected and "in complexType" probably contains an XML tag.
Uh, indeed I was. It was an unexpected that was
causi
Your php.ini should have root as its owner and be set to 600, if your
using apache server then apache must start as root, the php.ini file is
read only once by root when the server starts - so that setting should
not cause problems, however if using the cli then you should also make
/etc/php.in
Simon,
It would appear you've not included the full message. Please look at
the source of the message in your web browser. The space between
unexpected and "in complexType" probably contains an XML tag.
David
Simon Detheridge wrote:
> I'm trying to get PHP5 to talk to a web service that I am d
Simon Detheridge wrote:
The output says:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unexpected in
complexType in /var/www/localhost/htdocs/soap1.php:5 Stack trace: #0
/var/www/localhost/htdocs/soap1.php(5):
SoapClient->__construct('http://www.symg...') #1 {main}
attribute defi
another guess: does the php soap extension maybe think
that 'complexType' (all of them) needs a name attrib? (try
giving them bogus names?)
Simon Detheridge wrote:
Thanks for your response.
Quoting Jochem Maas <[EMAIL PROTECTED]>:
Simon Detheridge wrote:
I'm trying to get PHP5 to talk to a
Thanks for your response.
Quoting Jochem Maas <[EMAIL PROTECTED]>:
Simon Detheridge wrote:
I'm trying to get PHP5 to talk to a web service that I am developing.
is php choking on the comment?:
""
I've removed the comments from the file. No luck.
or maybe it's choking on the 'included'
Simon Detheridge wrote:
I'm trying to get PHP5 to talk to a web service that I am developing.
I have created a wsdl for the service
(http://www.symgate.com/symgate/symgate.wsdl) and am trying to get PHP
to parse it. (The wsdl validates in a number of tools I've pointed at
it, including mindre
Hi Barry,
I'm not terrible au fait with the workings of SSL, but it strikes me as
potentially problematic that you are communicating in plain text over an
encrypted protocol. Might that be the problem?
David
Barry wrote:
> Hi everyone!
>
> I want to connect to an SSL server but i can't get the
I'm trying to get PHP5 to talk to a web service that I am developing.
I have created a wsdl for the service
(http://www.symgate.com/symgate/symgate.wsdl) and am trying to get PHP
to parse it. (The wsdl validates in a number of tools I've pointed at
it, including mindreef soapscope and the wsdl
n.g. wrote:
hi,
i want to register a domain name through NetworkSolutions.com,
but it require a credit card which i dont have to pay the bill.
if you have a credit card, i can transfer to your account, and then
you please regiter the domain using my info.
or if you have any other ways to do so.
Hi everyone!
I want to connect to an SSL server but i can't get the content :(
Here is the code i use:
$xml = 'Hello!';
function PostToHost($host, $path, $referer, $data_to_send) {
$fp = fsockopen($host, 443);
printf("Open!\n");
fputs($fp, "POST $path HTTP/1.1\r\n\r\n");
fputs($fp, "Hos
78 matches
Mail list logo