php-general Digest 19 Jul 2005 15:30:47 - Issue 3576
Topics (messages 218932 through 218960):
Re: Is there a way to get a variable name as a string?
218932 by: Daevid Vincent
218933 by: Rob Agar
218934 by: Rasmus Lerdorf
218935 by: Ryan A
218936 by:
Marek Kilimajer wrote:
Andy Pieters wrote:
Ok found the solution, seems like one page is on http://server.org.uk
and the other on www.server.org.uk even though its the same server it
generates a different session id!
set the domain of the cookie to 'server.org.uk', it's the fifth
Fredrik Tolf wrote:
Hi!
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server instead. I still want PHP
support, but writing a new SAPI for PHP seems like overkill.
What's so bad about Apache?
Therefore, is it possible to use PHP
Please add OT to the subject if the topic has nothing to do with PHP. OT
= Off Topic.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Rasmus Lerdorf wrote:
Daevid Vincent wrote:
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
Well
ob_start();
echo '$var';
$contents = ob_get_contents();
ob_end_clean();
echo 'Variable Name is : '.substr($contents,strpos($contents,'$')+1);
Hi,
Tuesday, July 19, 2005, 5:15:10 AM, you wrote:
T Hi there,
T I was wondering if anybody has attempted to track a mobile phone through a
T country. I know that this is usually more a case for the FBI . a friend of
T mine is going on a 4 month bike tour and I would like to 'track' him for
T
Philip Thompson wrote:
Hi all.
I have the week number (for example, this is the 29th week of the
year and it begins on 7/17/05). Does anyone know how to obtain the
first (and maybe the last) date of the week if you only know the week
number of the year? Would it be better for me to
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
babu wrote:
Hi,
could someone please check where the sytax error is in these statements.
$sqlstmt= EXEC sp_addlogin .$adduser. , .$addpass;
$sqlstmt1= EXEC sp_adduser @loginame= .$adduser. , @name_in_db=
.$adduser;
Hi,
Its giving the line number. But actually i want to know the correct syntax for
concatenation. I think all there is some mistake in all the three concatination
statements.
so could some one check and give some idea.
thanks
John Nichel [EMAIL PROTECTED] wrote:
babu wrote:
Hi,
could
Its giving the line number. But actually i want to know the correct syntax
for concatenation. I think all there is some mistake in all the three
concatination statements.
No - there is no problem with any of the statements per se, but there
may be when executed with $adduser, $addpass etc.
[snip]
what is it wrong to ask questions on a php general mailing list where I
know there are a bunch of people that can help? I do have a php book
But it dosent show. Why can other people ask questions but I cant?
[/snip]
It is not that you cannot ask questions, it is that your questions show
Hey George...
On 19/07/05, Jay Blanchard [EMAIL PROTECTED] wrote:
It is not that you cannot ask questions, it is that your questions show
a basic lack of research. The answers to the questions you have asked
are easily gotten from the manual, tutorials, and good books on PHP
development.
Is there a list which deals with basic certification questions and
anxieties? I got the 'official' Zend study guide and now believe I know
nothing. And the practice book has quests whose subjects are not
mentioned in the relevant chapters. If someone else has completed the
exam, which text did
Thank you Rouvas,
I never used the tools you mentioned. But I will definitely give them a try.
I wrote a perl script using LWP as an http user agent. and the timing
function you suggested. It works well.
I am new to this forum, and new to PHP. It seems Rasmus is famous, and I
should have
snipIt seems Rasmus is famous, and I should have shown my respect./snip
history src = 'php_manual_en.chm'
PHP succeeds an older product, named PHP/FI. PHP/FI was created by Rasmus
Lerdorf in 1995, initially as a simple set of Perl scripts for tracking
accesses to his online resume. He named this
Hi André,
It sounds interesting. But since I am pretty new to PHP, I have some
questions, naive maybe, about what you wrote.
#!/bin/sh\n/path/to/script/Send.php 12 \n
What does the Send.php look like? I do not have idea how a shell interprets
an php script and what the parameter 12 means
Hi all,
I am trying to create a table on the remote server but it never seems to
work
CREATE TABLE `sheet1` (
`id` int(10) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`fname` varchar(255) NOT NULL default '',
`sname` varchar(255) default NULL,
`job_title`
Can somebody here help me to delete my message?
People who read this must be laughing at me.
:)
snipIt seems Rasmus is famous, and I should have shown my respect./snip
history src = 'php_manual_en.chm'
PHP succeeds an older product, named PHP/FI. PHP/FI was created by Rasmus
Lerdorf in
[snip]
1064 - You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use
near
'DEFAULT CHARSET=latin1 AUTO_INCREMENT=303' at line 18
and this is what the manual says (not very helpful)
a.. Error: 1064 SQLSTATE: 42000
George B wrote:
Jochem Maas wrote:
John Nichel wrote:
George B wrote:
snip non-researched basic stuff
http://us2.php.net/manual/en/index.php
:-) anyone care for a php mysql extension:
mysql_do_xml_http_request_bound_richdatagrid([string] query);
george if you want to keep asking
George B wrote:
Jochem Maas wrote:
John Nichel wrote:
George B wrote:
snip non-researched basic stuff
http://us2.php.net/manual/en/index.php
:-) anyone care for a php mysql extension:
mysql_do_xml_http_request_bound_richdatagrid([string] query);
george if you want to keep asking
Jochem Maas wrote:
snip
**Non-Researched Basic Stuff - from John Nichel, eventually I'll be able to
leave off the footnote :-P
Cool, I've left my mark on history. An Internet acronym to my credit;
my life is complete. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL
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, is there a way I can temporarily fix
this while working
Hello,
I am using the following to do link replacing:
preg_match_all(/\s*a\s+[^]*href\s*=\s*[\']?([^\' ]+)[\'
]/isU,$file[$x],$matches);
It works great for all but 'https' links. I am not that versed in
regular expressions. Would anyone know what I need to put in there so
that it will
Does PHP have the ability to talk directly to a local oracle database
w/o the need for a listener?
Thx,
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do you build php 5.0.4 with support for oracle 10.2 on Solaris 9?
I am getting the following compile time error?
snip
z -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl
-lnsl -lsocket -lgen -ldl -lclntsh -lxml2 -lz -liconv -lm -lsocket
-lnsl -lxml2 -lz -liconv -lm -lsocket
[snip]
Does PHP have the ability to talk directly to a local oracle database
w/o the need for a listener?
[/snip]
Yes. http://us2.php.net/oracle
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Consider the following test script:
script language=php
set_time_limit( 0 );
echo 'html';
echo 'headtitleTest Rounding Net Premium/title/head';
echo 'body';
echo 'Running test...br';
flush();
echo 'table';
echo 'tr';
echo 'tdOriginal Net/td';
echo 'tdCommission %/td';
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
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 today,
Chris Boget wrote:
snip
echo if( $originalNet != $calculatedNet ) = . ( (int)$originalNet !==
(int)$calculatedNet ) . br\n;
/snip
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:
snip
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
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
[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
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 work
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
Chris Boget wrote:
snip
echo if( $originalNet != $calculatedNet ) = . ( (int)$originalNet !==
(int)$calculatedNet ) . br\n;
/snip
Change this to echo out what you're comparing...
echo if( . (int)$originalNet . != . (int)$calculatedNet . ) = . (
(int)$originalNet !== (int)$calculatedNet
[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
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 questions
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
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 do that?
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
[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
Chris Boget wrote:
Chris Boget wrote:
snip
echo if( $originalNet != $calculatedNet ) = . ( (int)$originalNet !==
(int)$calculatedNet ) . br\n;
/snip
Change this to echo out what you're comparing...
echo if( . (int)$originalNet . != . (int)$calculatedNet . ) = . (
(int)$originalNet !==
[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
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:
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:
* 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 a 2MB
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
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
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
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, is
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 up
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
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
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
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:
?
$fahr = $_GET['fahrenheit'];
if (is_null($fahr)){ echo 'fahr is null';}
$
The error was on the line: $fahr = $_GET['fahrenheit'];
Linda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Where is fahrenheit? change the input name...
fahreheit is here:
?
$fahr = $_GET['fahrenheit'];
if (is_null($fahr)){ echo 'fahr is null';}
$
The error was on the line: $fahr = $_GET['fahrenheit'];
Linda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Linda H wrote:
Where is fahrenheit? change the input name...
fahreheit is here:
?
$fahr = $_GET['fahrenheit'];
if (is_null($fahr)){ echo 'fahr is null';}
$
The error was on the line: $fahr = $_GET['fahrenheit'];
Linda
Have you checked that the name is spelt correctly in your HTML
On 20 Jul 2005, at 02:22, Linda H wrote:
fahreheit is here:
?
$fahr = $_GET['fahrenheit'];
if (is_null($fahr)){ echo 'fahr is null';}
$
The error was on the line: $fahr = $_GET['fahrenheit'];
try:
input name=fahrenheit type=text value=?php echo $fahr; ? /
--
PHP General Mailing List
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
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
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` =
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,
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
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` =
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
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 to update $money. Do it in the query
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 in
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
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
84 matches
Mail list logo