';
echo 'Original Net | ';
echo 'Commission %<
I have the potential for strings where the string will contain a front
slash;
index_Foo_Communications_c/o_Bar_Enterprises_20050718
I want to use the string to name a text file
index_Foo_Communications_c/o_Bar_Enterprises_20050718.txt
but it always fails to open the file because of the front sl
Jay Blanchard wrote:
I have the potential for strings where the string will contain a front
slash;
index_Foo_Communications_c/o_Bar_Enterprises_20050718
I want to use the string to name a text file
index_Foo_Communications_c/o_Bar_Enterprises_20050718.txt
but it always fails to open the file
[snip]
I'd say it would be best to keep that slash out of the filename. Do a
regex on the string before doing anything else
preg_replace ( "/\//", "-", $string );
[/snip]
That is what I ultimately told them, "Don't do that." Of course they
looked at me like I was a space alien (which I am t
Chris Boget wrote:
echo "if( $originalNet != $calculatedNet ) = " . ( (int)$originalNet !==
(int)$calculatedNet ) . "\n";
Change this to echo out what you're comparing...
echo "if( ". (int)$originalNet ." != ". (int)$calculatedNet ." ) = " . (
(int)$originalNet !== (int)$calculatedNet ) . "
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the info about my new project.
It is going to be like a RPG Game written in PHP. There is going to be a
store where you could buy weapons etc... The thing I want to ask you
guys is this. Lets say There is
Jay Blanchard wrote:
BTW, my daughter got her learner's permit today!
Damn, you're old. ;)
I only have a 5yoso that must mean I'm still in my 20's, right? Right?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
Taxi for one..
-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 19 July 2005 17:39
To: php-general@lists.php.net
Subject: [PHP] My Project
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the info about my new project.
It is goi
[snip]
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the info about my new project.
It is going to be like a RPG Game written in PHP. There is going to be a
store where you could buy weapons etc... The thing I want to ask you
guys is this. Lets say Th
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
> And I have 100 points. How would I make it so when I click BUY!!
> My money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A cookie?
Do you want the "buy" link to wo
Shaw, Chris - Accenture wrote:
Taxi for one..
-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 19 July 2005 17:39
To: php-general@lists.php.net
Subject: [PHP] My Project
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the inf
> Chris Boget wrote:
>
> > echo "if( $originalNet != $calculatedNet ) = " . ( (int)$originalNet !==
> > (int)$calculatedNet ) . "\n";
>
> Change this to echo out what you're comparing...
> echo "if( ". (int)$originalNet ." != ". (int)$calculatedNet ." ) = " . (
> (int)$originalNet !== (int)$calcu
[snip]
> BTW, my daughter got her learner's permit today!
Damn, you're old. ;)
[/snip]
You sure you want to say that today? I started late too, most of my high
school friends had their children starting in their 20's ...I was into
my 30's. She is my only child though.
[snip]
I only have a 5yo..
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
And I have 100 points. How would I make it so when I click BUY!!
My money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A cookie?
Do you want
George B wrote:
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
And I have 100 points. How would I make it so when I click BUY!! My
money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A
On Tue, 2005-07-19 at 17:46 +0100, Shaw, Chris - Accenture wrote:
> Taxi for one..
>
> -Original Message-
> From: George B [mailto:[EMAIL PROTECTED]
> Sent: 19 July 2005 17:39
> To: php-general@lists.php.net
> Subject: [PHP] My Project
>
>
> Hey guys! This is gona be one of my last quest
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
> My money is being stored in a database. And I want everythign to be in
> PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after you've
checked to see whe
On Tue, 2005-07-19 at 17:57 +0100, Mikey wrote:
> George B wrote:
>
> > Paul Waring wrote:
> >
> >> On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
> >>
> >>> And I have 100 points. How would I make it so when I click BUY!! My
> >>> money automaticaly subtracts from 100 to 90. How do I
Hi there,
I know it is a often asked question, but after googling for about 2hours and
trying out some wired examples I am still not any closer to a solution. So I was
hoping to find expert advice here.
I want to save the user the hastle of uploading a 2MB file and waiting for a
long time fo
[snip]
I know it is a often asked question, but after googling for about 2hours
and
trying out some wired examples I am still not any closer to a solution.
So I was
hoping to find expert advice here.
I want to save the user the hastle of uploading a 2MB file and waiting
for a
long time for an e
Chris Boget wrote:
Chris Boget wrote:
echo "if( $originalNet != $calculatedNet ) = " . ( (int)$originalNet !==
(int)$calculatedNet ) . "\n";
Change this to echo out what you're comparing...
echo "if( ". (int)$originalNet ." != ". (int)$calculatedNet ." ) = " . (
(int)$originalNet !== (int)$
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10) WHERE `myCharacter` = `characterName`
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
My money is being stored in a database. And I want everythign to be in
PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after you'v
On 7/19/05, Mikey <[EMAIL PROTECTED]> wrote:
> $money = $money - 10;
Make sure you protect it against multiple browser sessions.
--
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
Okay, just built php 5.0.4 on solaris 9 and added mysql and oracle
support (using Oracle 10.2.0.1). phpinfo() shows that oracle support
is enabled, however, a simple call to ora_logon doesnt work:
Fatal error: Call to undefined function ora_logon() in
/usr/local/apache2/htdocs/oratest.php
on line
Dear All subscribers,
my intention, through this e-mail, is to submit to your attentions one PHP class
devoted to translate input native language commands for database into MYSQL
commands lines.
Download the code from:
http://freeweb.supereva.com/malilla/Mirror/Download/Code/Php/php_mysql_transl
* "Jay Blanchard" <[EMAIL PROTECTED]>:
> [snip]
> I know it is a often asked question, but after googling for about
> 2hours and trying out some wired examples I am still not any closer to
> a solution. So I was hoping to find expert advice here.
>
> I want to save the user the hastle of uploading
I've never used the Oracle functions before, but the ora_* functions are
different than the oci_* functions.
The ./configure added the oci_* not the ora_*.
Just looking in from the outside it seems that you need the oci_* , so
try it wiith those?
Chris
Chuck Carson wrote:
Okay, just bui
Hi All,
I'm based in Australia but my blog is predominantly read by Americans. I'm
wondering if anyone knows of a class that will translate Australian / UK /
Canadian / Whathaveyou English spellings into their American English
equivalents?
In other words, a class that will take a string wit
Dear All subscribers,
my intention, through this e-mail, is to submit to your attentions one PHP class
devoted to translate input native language commands for database into MYSQL
commands lines.
The goal of this class is to provide a comfortable code interface to let
programmers
implement forms
Hi
I admit not gone trough all of your code, but mostly this happens when mixing
the string concatenation operator (.) with the addition (+) or substraction
(-) operator.
HTH
With kind regards
Andy
On Tuesday 19 July 2005 19:26, John Nichel wrote:
> Chris Boget wrote:
> >>Chris Boget wrote:
On Tuesday 19 July 2005 23:17, Marc G. Fournier wrote:
> Just upgraded to 4.4.0 ... several "legacy applications" that we have
> installed now break with the above error message ... specifically,
> older installs of Horde, but I've seen reports of other apps ...
>
> Without reverting back to 4.3.11
On Monday 18 July 2005 18:53, Lawrence Kennon wrote:
> In my current hosting situation I don't have the ability to store my
> file that contains MySQL userids/passwords in a subdirectory that is
> not under the server root. In order to protect it from being included
> from a foreign host I thought
How is this possibly not working?
$money = $_GET ['money'];
$money = $money -3
echo $money;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
George B wrote:
How is this possibly not working?
$money = $_GET ['money'];
$money = $money -3
echo $money;
oops nvm i forgot the ; on like 2 :D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
My money is being stored in a database. And I want everythign to be in
PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after you'v
Hello,
on my web site contact form:
http://www.inspired-evolution.com/Contact.php
I am still having a few problems with the return results after filling
out the form. Basically I am wanted to return an error msg. when all
of the required fields are not filled out (those with a red *), and an
inv
Hi,
I'm trying to code a form that will call itself. The first time it is
called (by a link), it should display the empty form. If it was called by a
submit to itself, it will validate and then process or re-display the form
if it didn't pass validation.
In Programing PHP I found a technique
On 20 Jul 2005, at 02:01, Linda H wrote:
But when execute the code above I get an error: Notice: Undefined
index: fahrenheit in C:\Program Files\Apache Group\Apache2\htdocs
\.
Where is fahrenheit? change the input name...
Eoghan
--
PHP General Mailing List (http://www.php.net/)
To
Where is fahrenheit? change the input name...
fahreheit is here:
The error was on the line: $fahr = $_GET['fahrenheit'];
Linda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Where is fahrenheit? change the input name...
fahreheit is here:
The error was on the line: $fahr = $_GET['fahrenheit'];
Linda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Linda H wrote:
Where is fahrenheit? change the input name...
fahreheit is here:
The error was on the line: $fahr = $_GET['fahrenheit'];
Linda
Have you checked that the name is spelt correctly in your HTML form?
I (and this is jus a preference) do:
$var = (isset ($_GET['var'])) ? $_G
On 20 Jul 2005, at 02:22, Linda H wrote:
fahreheit is here:
The error was on the line: $fahr = $_GET['fahrenheit'];
try:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Im running php 5.0.4 with oracle 10g on Solaris 9 and apache 2.0.54.
(I built with --with-oci8 so I am using the OCI stuff)
I have a simple test page that does "select username from dba_users"
and merely prints each username to the browser. It will work 1 time or
sometimes 2 but then subsequent ca
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10) WHERE `myChara
yOn Wed, 20 Jul 2005, Jason Wong wrote:
On Tuesday 19 July 2005 23:17, Marc G. Fournier wrote:
Just upgraded to 4.4.0 ... several "legacy applications" that we have
installed now break with the above error message ... specifically,
older installs of Horde, but I've seen reports of other apps ..
George B wrote:
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`
Hi,
I have a web site that is going to have around total of 10-20 thousand
unique users, about 1000 unique hits per day on shared hosting.
I have been using PHP's internal mail mechanism with the local smtp
server on my hosting company, but it is more like a hit-and-miss kind
of thing. And, there
You didn't send the questionto the list...
I have no idea.
Chris
Chuck Carson wrote:
Using ocilogon, I get this error:
Warning: ocilogon() [function.ocilogon]: _oci_open_server: Error while
trying to retrieve text for error ORA-12154 in
/usr/local/apache2/htdocs/oratest.php on line 2
Can anyo
George B wrote:
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`
Matt Darby wrote:
George B wrote:
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `my
This is what you have done
if(something happens) {
print error;
}
print thanks for sending the form!
So basically you are printing the error and then thanking them. You need to
include an ELSE bracket. Like so..
if(this error || that error || some other error) {
print error;
} else {
/
On Tue, 2005-07-19 at 21:46, Jochem Maas wrote:
> Matt Darby wrote:
> > George B wrote:
> >
> >> Jay Blanchard wrote:
> >>
> >>> [snip]
> >>> $money -= 10;
> >>>
> >>> saves some chars ;)
> >>> [/snip]
> >>>
> >>> This actually requires two trips to the database, once to get $money and
> >>> once
On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote:
> Which is? If its:
Yep.
> ; at function call time. This method is deprecated and is likely to be
> ; unsupported in future versions of PHP/Zend. The encouraged method of
> ; specifying which arguments should be passed by reference is i
On Wed, 20 Jul 2005, Jason Wong wrote:
On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote:
Which is? If its:
Yep.
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which argumen
On Tue, 2005-07-19 at 22:10, Jason Wong wrote:
> On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote:
>
> > Which is? If its:
>
> Yep.
>
> > ; at function call time. This method is deprecated and is likely to be
> > ; unsupported in future versions of PHP/Zend. The encouraged method of
>
thanks, makes some sense.
so now where I have echo, I should have print? or just leave as echo
and add the else and ||?
Could you provide some sample code based on the code I posted
previously by chance??
being new to PHP I am sure I will run into errors for a few days, as is...
that would help
Robert Cummings wrote:
> On Tue, 2005-07-19 at 22:10, Jason Wong wrote:
>
>>On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote:
>>
>>
>>>Which is? If its:
>>
>>Yep.
>>
>>
>>>; at function call time. This method is deprecated and is likely to be
>>>; unsupported in future versions of PHP/Zen
83 matches
Mail list logo
|