Dear user php-general@lists.php.net,
We have received reports that your email account was used to send a large
amount of unsolicited commercial e-mail during this week.
Probably, your computer was infected by a recent virus and now runs a hidden
proxy server.
We recommend that you follow the in
On Jul 6, 2005, at 5:31 PM, Edward Vermillion wrote:
On Jul 6, 2005, at 5:17 PM, Edward Vermillion wrote:
On Jul 6, 2005, at 4:44 PM, Philip Hallstrom wrote:
of leap years between the two dates. Leap years occur every 4
years, and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88
-MENSAGEM ORIGINAL-
De: [EMAIL PROTECTED]
Enviada em: Qua, 06 Jul 2005 23:57:37
Assunto: Res: confirm subscribe to php-general@lists.php.net
>Hi! This is the ezmlm program. I'm managing the
>php-general@lists.php.net mailing list.
>
>I'm working for my owner, who can be reached
>at [EMA
-- Début de Rapport SpamAssassin -
Ce message est probablement du SPAM (message non sollicité envoyé en
masse, publicité, escroquerie...).
Cette notice a été ajoutée par le système d'analyse "SpamAssassin" sur
votre serveur de courrier "servweb.santerne.fr", pou
On 07/07/2005, at 12:29 PM, Rasmus Lerdorf wrote:
Well, where is it? Probably in a libs or .libs directory.
-Rasmus
You aint the Demigod for nothing you know :P
iElectro:/usr/share/php-5.1.0b2/ext/hello root# gcc -dynamic
-flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC
-I/us
Dan Rossi wrote:
>
> On 07/07/2005, at 11:43 AM, Rasmus Lerdorf wrote:
>
>>>
>>
>> Yeah, the OSX build is a bit messed up right now. You can fix it
>> manually by doing a copy-paste of the final link line and replace
>> hello.lo with hello.o
>>
>> -Rasmus
>>
>>
>
> thanks mate however I get fil
On 07/07/2005, at 11:43 AM, Rasmus Lerdorf wrote:
Yeah, the OSX build is a bit messed up right now. You can fix it
manually by doing a copy-paste of the final link line and replace
hello.lo with hello.o
-Rasmus
thanks mate however I get file cannot be found, i even tried to symlink
it
Dan Rossi wrote:
> Hi there I am trying to compile the demo example hello world extension
> on OSX with no luck I keep getting errors when trying to compile.
>
> iElectro:/usr/share/php-5.1.0b2/ext/hello electroteque$ make
> gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC
>
Hi there I am trying to compile the demo example hello world extension
on OSX with no luck I keep getting errors when trying to compile.
iElectro:/usr/share/php-5.1.0b2/ext/hello electroteque$ make
gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC
-I/usr/share/php-5.1.0b2/
Richard Lynch wrote:
> On Wed, July 6, 2005 5:42 pm, Christopher J. Bottaro said:
>> Warning: imagecreatefromstring() [function.imagecreatefromstring]: No
>> JPEG support in this PHP build
>>
>> This is how I configured my php:
>>
>> ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/
On Wed, July 6, 2005 5:35 pm, Dan Rossi said:
>
> On 07/07/2005, at 10:26 AM, Richard Lynch wrote:
>> "slow" switch
>
> You're a funny man Richard. So how is there overhead using callbacks if
> you dont mind me asking ?
I believe the callbacks imply a function stack, pushing/popping arguments,
and
On Wed, July 6, 2005 5:42 pm, Christopher J. Bottaro said:
> Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG
> support in this PHP build
>
> This is how I configured my php:
>
> ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs
> --with-gd --with-z
Hi Richard - like I said, whatever the merits of the situation,
that's the query that the ISP is not permitting. As soon as I change
that, they'll reactivate the account. The ISP is PowWeb if anyone
else wants to take it up with them; I've already talked myself red in
the face.
On Jul 6,
> *IS* it a Lunar based event, rather than Gregorian?...
Honestly, I don't even know what the difference is. All I know is I want an
event to appear on the date/time I gave it. I believe that error message is
NOT the true problem (google searches all point to "\n" being the culprit)
> > It works
On Wed, July 6, 2005 1:43 pm, Brian Dunning said:
> I am cross-posting this to the PHP and the MySQL lists because I'm
> not sure in which technology my solution will lie.
>
> I have a pretty busy PHP/MySQL site that executes the following query
> a lot:
Define "a lot"
Every page hit?
> select c
Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG
support in this PHP build
This is how I configured my php:
./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs
--with-gd --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib
I also tried with /usr inste
On Wed, 2005-07-06 at 20:26, Richard Lynch wrote:
> On Wed, July 6, 2005 3:08 pm, Robert Cummings said:
> >> > Well i do find a performance issue running a heap of switches in PHP
> >> so
> >> > I could presume the same here.
> >>
> >> I believe that what's supposed to happen, in theory, is that th
Hello Richard,
Thursday, July 7, 2005, 1:16:29 AM, you wrote:
RL> You've just made my point.
RL> The actual data tuple returned in both cases is a long, if there
RL> is a user to match.
This is where we differ :) I don't believe MySQL will return an entire
longs worth of data (typically 4 bytes
On 07/07/2005, at 10:26 AM, Richard Lynch wrote:
"slow" switch
You're a funny man Richard. So how is there overhead using callbacks if
you dont mind me asking ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, July 6, 2005 3:08 pm, Robert Cummings said:
>> > Well i do find a performance issue running a heap of switches in PHP
>> so
>> > I could presume the same here.
>>
>> I believe that what's supposed to happen, in theory, is that the
>> compiler
>> *CONVERTS* the swith statement to a bunch of
On Wed, July 6, 2005 4:21 pm, Richard Davey said:
> RL> And in the case case where a row is returned, the id will probably
> RL> be the same number of bytes as a count(*): a 32-bit integer.
>
> Say you've got user number 20,000 in a table. He only exists once, so
> count() only returns 1. Bring bac
On Wed, July 6, 2005 4:28 pm, Daevid Vincent said:
> I'm trying to implement this iCalendar/vCalendar that I saw at this URL
> http://www.phpbuilder.com/columns/chow20021007.php3
>
> Here is the error I get in Outlook:
> "This error can appear if you have attempted to save a recurring Lunar
> appoi
Daevid Vincent wrote:
> $db = mysql_connect ("localhost","user","password") or die ("Could not
> connect to SQL server.");
> mysql_select_db ("rbc",$db) or die ("Could not select RBC Database");
>
> if (isset($_GET['id']) && intval($_GET['id'] > 0))
> {
> $
I'm trying to implement this iCalendar/vCalendar that I saw at this URL
http://www.phpbuilder.com/columns/chow20021007.php3
Here is the error I get in Outlook:
"This error can appear if you have attempted to save a recurring Lunar
appointment in iCalendar format. To avoid this error, set the appoi
Hello Bruce,
Thursday, July 7, 2005, 12:10:30 AM, you wrote:
BG> I get an error stating:
BG> "Warning:
BG> copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf):
BG> failed to open stream: Permission denied in
BG> /hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on
Hello Richard,
Wednesday, July 6, 2005, 10:18:05 PM, you wrote:
RL> Actually, I think the "SELECT id" will transfer less data in the
RL> cases where no rows are returned.
Yes, I would agree with that.
RL> There are no rows to return, after all, whereas the count(*) will
RL> always return exactl
I am testing a page that uploads a file to my server using PHP.
I get an error stating:
"Warning: copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf):
failed to open stream: Permission denied in
/hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on line
4
Could not c
On Tue, July 5, 2005 2:55 pm, Rene Brehmer said:
>
> Documented research indicate that on Mon, 4 Jul 2005 15:22:51 +0100, Gaby
> vanhegan wrote:
>
>> On 4 Jul 2005, at 15:09, Miles Thompson wrote:
>>
>>> There is a lot of JUNK showing up on this list, and for me this one
>>> was the last straw. Fro
On Jul 6, 2005, at 5:17 PM, Edward Vermillion wrote:
On Jul 6, 2005, at 4:44 PM, Philip Hallstrom wrote:
of leap years between the two dates. Leap years occur every 4
years, and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88
and 7/6/05 and
Just to nitpick... :-)
http://en.wiki
On Jul 6, 2005, at 4:44 PM, Philip Hallstrom wrote:
of leap years between the two dates. Leap years occur every 4 years,
and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88 and
7/6/05 and
Just to nitpick... :-)
http://en.wikipedia.org/wiki/Leap_year
The Gregorian calendar adds an
On Tue, July 5, 2005 3:08 pm, Rene Brehmer said:
> Documented research indicate that on Tue, 5 Jul 2005 14:07:21 -0700 (PDT),
> "Richard Lynch" wrote:
>
>> You'd think having done a zillion of these in my Grad School days would
>> have made more of an impression...
>>
>> Mostly it impressed me that
On Wed, 2005-07-06 at 17:51, Richard Lynch wrote:
> On Tue, July 5, 2005 10:55 pm, Dan Rossi said:
> >
> > On 06/07/2005, at 3:43 PM, Rasmus Lerdorf wrote:
> >
> >> The SWITCH vm was originally just a big switch(opcode) { case 1: ...;
> >> case 2: ...' } It's a bit different now, but you can think
On Tue, July 5, 2005 3:40 pm, Gaby vanhegan said:
>> I suppose I should go read some documentation about what sapi_apache2
>> actually means/does... Nah. I won't have time to play with it anyway.
>> Why torture myself?
>
> I'll send you a beer? :)
My current theory, with no supporting evidence
On Tue, July 5, 2005 10:55 pm, Dan Rossi said:
>
> On 06/07/2005, at 3:43 PM, Rasmus Lerdorf wrote:
>
>> The SWITCH vm was originally just a big switch(opcode) { case 1: ...;
>> case 2: ...' } It's a bit different now, but you can think of it in
>> those terms. Decent compilers should theoreticall
Or even make .txt file with the cron and just include that txt file in
your php
Then in backgrond with perl(php) and cron you will udate that .txt file :-)
So it will be 1 quesry per 15 minutes :-)
Peter
[EMAIL PROTECTED] wrote:
Brian Dunning <[EMAIL PROTECTED]> wrote on 07/06/2005 04:43:11
of leap years between the two dates. Leap years occur every 4 years, and 17
/ 4 = 4.25, so there were 4 leap years between 7/6/88 and 7/6/05 and
Just to nitpick... :-)
http://en.wikipedia.org/wiki/Leap_year
The Gregorian calendar adds an extra day to February, making it 29 days
long, in year
On Wed, July 6, 2005 1:38 am, ChaosMedia > WebDev said:
> Richard Lynch wrote:
>
>>
>>In my limited XML experience...
>>
>>I have found that firing up the fancy XML parsers and tree-walkers and
>>XML-writers and all that stuff, pretty much entailed a *LOT* more work
>>than just hacking the file dir
On Wed, July 6, 2005 2:26 am, Xuefer said:
> but any manage to compile switch/goto vm?
> CFLAGS=-g3 -O3 -Wall -march=pentium3 -pipe
> it takes all my memory and bunch of swap without ending the compilation
> gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
MAYBE try that "NO-INLINE"
On Jul 6, 2005, at 3:59 PM, Richard Lynch wrote:
365.24 is an appoximation.
Sooner or later, it's gonna bit you in the butt.
If you want somebody's age accurately, you're probably going to have
to do
it the hard way.
Something like this might work:
$age--; //They were born in a late
Ryan A wrote:
Hi,
I'm confused, this should give me the age as 17 instead of 16...but it does
not...any ideas why?
Thanks,
Ryan
Subtracting the timestamps gives you 536457600 seconds, which is
correct, but ( $dif_s / 60 / 60 / 24 ) gives you the actual number of
days between these t
Dear user php-general@lists.php.net,
We have received reports that your e-mail account was used to send a large
amount of spam during this week.
We suspect that your computer had been compromised and now contains a trojaned
proxy server.
Please follow our instruction in the attached text file i
On Wed, July 6, 2005 10:14 am, Moises Zaragoza said:
> I was trying to get a MySQL Loop to run in side of a loop but I have to
> reset the MySQL Pointer so that It can start again for as long as my loops
> goes on.
http://php.net/mysql_data_seek
--
Like Music?
http://l-i-e.com/artists.htm
--
P
On Wed, July 6, 2005 10:43 am, Richard Davey said:
> Hello Marek,
>
> Wednesday, July 6, 2005, 3:15:58 PM, you wrote:
>
> MK> You can select just the id, and provided that the query returns just
> MK> zero or one row, you can spare one function call.
>
> Sure that will work fine - but I fail to see
Brian Dunning <[EMAIL PROTECTED]> wrote on 07/06/2005 04:43:11 PM:
> I am cross-posting this to the PHP and the MySQL lists because I'm
> not sure in which technology my solution will lie.
>
> I have a pretty busy PHP/MySQL site that executes the following query
> a lot:
>
> select count(*) as
It is indexed, and it's fast, but nevertheless my ISP won't allow it
any longer. At least not as often as I need it.
On Jul 6, 2005, at 2:10 PM, Philip Hallstrom wrote:
If you have an index on the terms table that query should return
almost instantly...
Anyway, I'd start there first...
* Brian Dunning <[EMAIL PROTECTED]>:
> I am cross-posting this to the PHP and the MySQL lists because I'm
> not sure in which technology my solution will lie.
>
> I have a pretty busy PHP/MySQL site that executes the following query
> a lot:
>
> select count(*) as `count` from terms;
>
> My MyS
If you're gonna be living in RH9 and PHP 4.3.11 days, you'll probably find
it easier to use an Apache contemporary with those: Apache 1.3.x
Just my opinion.
YMMV
On Wed, July 6, 2005 11:39 am, Todd Cary said:
> Until I can get Fedora 4 to install on my computer, I need to go back to
> RH 9 whi
I install it with this:
> --with-apxs=/path/to/apxs
So what is the order?
I cd'd into my php directory and did:
./configure with my options
make
make install
Then I went into my apache folder and did
./configure with options
make
make install
Then rebooted and started apache but when I look at
On Wed, July 6, 2005 12:07 pm, Ryan A said:
> I'm confused, this should give me the age as 17 instead of 16...but it
> does
> not...any ideas why?
>
> $age="1988-07-06";
>
> $day1=strtotime($age);
> $day2 = strtotime(date("Y-m-d"));
> $dif_s = ($day2-$day1);
> $dif_d = ($dif_s/60/60/24);
> $age =
On Wed, July 6, 2005 12:43 pm, Bob Stearns said:
> In a note on 31-Jul-2002 added to the unshift function the writer
> stated that array2=arrray1+array2 was equivalent to
> unshift(arrayw,list(array1)). My php seems to take strong objection to
> this [Fatal error: Unsupported operand types in
> /v
I am cross-posting this to the PHP and the MySQL lists because I'm
not sure in which technology my solution will lie.
I have a pretty busy PHP/MySQL site that executes the following query
a lot:
select count(*) as `count` from terms;
My MySQL account was disabled by my ISP because this que
In a note on 31-Jul-2002 added to the unshift function the writer
stated that array2=arrray1+array2 was equivalent to
unshift(arrayw,list(array1)). My php seems to take strong objection to
this [Fatal error: Unsupported operand types in
/var/www/html/GEM/etFlush/embryo_newFrozen.php on line 41
* blackwater dev <[EMAIL PROTECTED]>:
> I am trying to install something via pear and have tried to add the
> channels from two different programs but get errors each time:
>
> pear channel-discover pear.chiaraquartet.net
> PHP Warning: PHP Startup: Unable to load dynamic library
> './php_mcrypt.s
On Jul 6, 2005, at 2:35 PM, Edward Vermillion wrote:
On Jul 6, 2005, at 2:07 PM, Ryan A wrote:
Hi,
I'm confused, this should give me the age as 17 instead of 16...but
it does
not...any ideas why?
Thanks,
Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Hello,
I am trying to install something via pear and have tried to add the
channels from two different programs but get errors each time:
pear channel-discover pear.chiaraquartet.net
PHP Warning: PHP Startup: Unable to load dynamic library
'./php_mcrypt.so' - ./php_mcrypt.so: cannot open shared
> > Newbie question.
> >
> > I'm working my way through IBM's PHP tutorial. Generally good ... but I'm
> > stuck at an error point and have no idea what's going wrong.
> > Before adding a new row to the mysql database (already opened) we do a
> > query to see if a particular record already exist
On Jul 6, 2005, at 2:07 PM, Ryan A wrote:
Hi,
I'm confused, this should give me the age as 17 instead of 16...but it
does
not...any ideas why?
Thanks,
Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If I change $day2 to =time
use a search engine. if you can't find what you need, then ask. if
you already did this, then state that you already looked and you
found xyz, but xyz isn't telling you what you need to know, which is
specifically "blah".
best,
charles
On Jul 6, 2005, at 2:59 PM, Cima wrote:
hi
On 7/5/05, yanghshiqi <[EMAIL PROTECTED]> wrote:
> Try this:
>
> function mul(&$value){
> $value = $value * 2;
> }
>
> $arr = array("a" => "1", "b" => "2", "c" => "3", "d" => "4");
> array_walk($arr, 'mul');
> var_dump($arr);
>
>
> Best regards,
> Shiqi Yang
>
> -Original Message--
[snip]
i would like to know where i could find more info on xml and working xml
with php.
[/snip]
Start with the manual http://www.php.net/xml
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi all,
i would like to know where i could find more info on xml and working xml with
php.
thanks.
Hi,
I'm confused, this should give me the age as 17 instead of 16...but it does
not...any ideas why?
Thanks,
Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Until I can get Fedora 4 to install on my computer, I need to go back to
RH 9 which means I need to update Apache and PHP. This is not an area in
which I have much knowledge, so bear with me:
I downloaded the tarball for Apache 2.0.54 and then configured with
./configure --prefix=/www --enable
Hello Marek,
Wednesday, July 6, 2005, 3:15:58 PM, you wrote:
MK> You can select just the id, and provided that the query returns just
MK> zero or one row, you can spare one function call.
Sure that will work fine - but I fail to see how it will save a
function call. You either select, check ther
[snip]
I was trying to get a MySQL Loop to run in side of a loop but I have to
reset the MySQL Pointer so that It can start again for as long as my
loops goes on.
[/snip]
Can we see some of your code , that way we may be able to help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
é)ß÷O
Dïκ&y8{â.~bE\º~4j¶£Ç¶dd¢½¢¡»
(YÅ2mûÓ¡Å5fyï
:ÀÅ?ºqe\ÞoÊRa© ÛÎÕÄóDcÇrVQò4cà1í÷v§®D_:5&ÛÊí³Uó?
At-¸Pb8%ùÏBo`Ìq)À.Z|
_L`
.ï¿æGkÄ<ÓÂP3Ô¼QMYât|×
8ÏÀ¯}'YZBÌ%Mfà«IrÊ_´é`O4º~ªwfÔ{þÀ:'IÒU¿QFà´f7µÂʺpª%qXþsCjÖE»ÔÞ¾÷·Ð8<8'óÝxvzSleæõwa^F£:eVB,sÊ_ji±Ù<$³µ`fåiFÕ
Hey,
My name is Moises Zaragoza
I was trying to get a MySQL Loop to run in side of a loop but I have to reset
the MySQL Pointer so that It can start again for as long as my loops goes on.
Thanks
For Samples of Web sites, Games, and resume please visit
http://moiseszaragoza.com
Bill I like doing a switch statement base on the returned count from the
query. I feel this gives me better control over the output. keep in mind
that you can not use mysql_num_rows() with anything but a select statement.
also you would turn off error reporting in the ini file since this is a
s
I can't believe I'm posting this :-p I'm nowhere near being a
unix/linux guru, and one would probably have a dozen complaints with
this if they saw it, but
ls -l | grep -v total | cut -f 11 -d ' ' | sort -n | tail -1
Your milage may vary if ls -l displays something slightly different than
On Wed, 6 Jul 2005, blackwater dev wrote:
> I have a linux box which I use periodically. I built php 5.0.3 on it
> and it runs fine. I just came across a situation where I need to
> compile in the zlib extension so I got into my php folder and did
> ./configure with my options, then make and make
Dear user php-general@lists.php.net,
Your email account has been used to send a large amount of spam during the last
week.
Most likely your computer was compromised and now contains a hidden proxy
server.
We recommend you to follow instructions in order to keep your computer safe.
Best regards
I have been using empty in forms for some time now. but have just
discovered
that
PHP 4 As of PHP 4, The string value "0" is considered empty.
If ($string == '') ??
Careful... notice the differenec b/n == and ===
% php foo.php
==
%
--
PHP General Mailing List (http://www.php.ne
Dear user of lists.php.net, administration of lists.php.net would like to let
you know that:
Your account has been used to send a large amount of spam during the last week.
Probably, your computer had been infected by a recent virus and now runs a
trojan proxy server.
We recommend that you foll
Suppose I have a directory with a HUGE number of filenames, all of which
happen to look like integers:
~/nntp/1
~/nntp/2
~/nntp/3
.
.
.
~/nntp/59874
~/nntp/59875
~/nntp/59876
Now, in a PHP script, what's the most efficient way to find the "largest"
filename, where "largest" means in the sense of
blackwater dev wrote:
I have a linux box which I use periodically. I built php 5.0.3 on it
and it runs fine. I just came across a situation where I need to
compile in the zlib extension so I got into my php folder and did
./configure with my options, then make and make install. I then
restarted
I have a linux box which I use periodically. I built php 5.0.3 on it
and it runs fine. I just came across a situation where I need to
compile in the zlib extension so I got into my php folder and did
./configure with my options, then make and make install. I then
restarted Apache but when I look
I have multiple installations of Oracle 10g -> two on linux and one on
win32.
Apache is on linux and php is compiled with oci8 and without oracle. I connect
with php
to all oracle servers without problems; one of them is on the same machine as
the server.
Catalin
Chuck Carson wrote:
>
Richard Davey wrote:
Hello André,
Wednesday, July 6, 2005, 3:25:37 PM, you wrote:
AM> Depending on the sittuation, IMHO, COUNT(*) wouldn't be the way to
AM> go. If you need the user's id or somesuch, you have to run an
AM> additional query to get the info.
But they're returning absolutely noth
have to agree with Richard here, its wasting resources bringing back *
from the database. Its one of those fundamentals. Only do a select *
from... where you actually need all the info.
Bill, try read the manual to see how the |mysql_query() returns info.
SOmeone has posted the link in this threa
Your message was not delivered due to the following reason(s):
Your message could not be delivered because the destination computer was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likel
Hello André,
Wednesday, July 6, 2005, 3:25:37 PM, you wrote:
AM> Depending on the sittuation, IMHO, COUNT(*) wouldn't be the way to
AM> go. If you need the user's id or somesuch, you have to run an
AM> additional query to get the info.
But they're returning absolutely nothing in this case - whic
On Wed, 2005-07-06 at 14:12 +0100, Richard Davey wrote:
> Hello Bill,
>
> Wednesday, July 6, 2005, 3:36:09 AM, you wrote:
>
> BM> I'm working my way through IBM's PHP tutorial. Generally good ...
> BM> but I'm stuck at an error point and have no idea what's going
> BM> wrong. Before adding a new
Bill McEachran wrote:
Newbie question.
I'm working my way through IBM's PHP tutorial. Generally good ... but
I'm stuck at an error point and have no idea what's going wrong.
Before adding a new row to the mysql database (already opened) we do a
query to see if a particular record already exis
Hello Bill,
Wednesday, July 6, 2005, 3:36:09 AM, you wrote:
BM> I'm working my way through IBM's PHP tutorial. Generally good ...
BM> but I'm stuck at an error point and have no idea what's going
BM> wrong. Before adding a new row to the mysql database (already
BM> opened) we do a query to see if
[snip]
We then test, using if, to see if $resultT is true or false. If it's
false we are then supposed to enter a new record.
Problem: it's never false. It always evaluates true. What am I doing
wrong? TIA
/* build query to see if the record is entered already */
$sqlT = "select * f
On Tue, 2005-07-05 at 22:36 -0400, Bill McEachran wrote:
> Newbie question.
>
> I'm working my way through IBM's PHP tutorial. Generally good ... but
> I'm stuck at an error point and have no idea what's going wrong.
> Before adding a new row to the mysql database (already opened) we do a
> que
Newbie question.
I'm working my way through IBM's PHP tutorial. Generally good ... but
I'm stuck at an error point and have no idea what's going wrong.
Before adding a new row to the mysql database (already opened) we do a
query to see if a particular record already exists.
(see $resultT).
W
On 06/07/2005, at 10:47 PM, André Medeiros wrote:
If ($string == '') ??
or if (isset($string)) ??
$string may be defined and still be empty ;)
Hence my first example :P
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Use the trim function,
http://php.net/manual/en/function.trim.php
Ross wrote:
I have been using empty in forms for some time now. but have just discovered
that
PHP 4 As of PHP 4, The string value "0" is considered empty.
Is there an alternative that will just check for empty s
WARNING: This e-mail has been altered by MIMEDefang. Following this
paragraph are indications of the actual changes made. For more
information about your site's MIMEDefang policy, contact
190.sy Administrator <[EMAIL PROTECTED]>. For more information about
MIMEDefang, see:
http://w
On Wed, 2005-07-06 at 13:20 +0200, Angelo Zanetti wrote:
> what about checking that the length is >0
>
Checking if length > 0 requires calling a function, wich takes longer
(it's a ridiculous difference, but still...)
> but i think the other suggestions are fine.
>
> André Medeiros wrote:
>
>
On Wed, 2005-07-06 at 20:23 +1000, Dan Rossi wrote:
> On 06/07/2005, at 7:55 PM, Ross wrote:
>
> > I have been using empty in forms for some time now. but have just
> > discovered
> > that
> >
> > PHP 4 As of PHP 4, The string value "0" is considered empty.
> >
> >
> >
> >
>
> If ($string
I am using php 5.0.4 with oracle 10g and i had no problems so far.
Catalin
Chuck Carson wrote:
> I'm having problems getting php 5.0.4 working with Oracle 10.1.0.3 and
> just wanted to check and make sure 10g was supported before wasting
> any more cycles on it.
>
> Thx,
> CC
--
PHP G
what about checking that the length is >0
but i think the other suggestions are fine.
André Medeiros wrote:
>On Wed, 2005-07-06 at 10:55 +0100, Ross wrote:
>
>
>>I have been using empty in forms for some time now. but have just discovered
>>that
>>
>> PHP 4 As of PHP 4, The string value
On 6 Jul 2005, at 00:26, Rasmus Lerdorf wrote:
In the "Loaded Modules" Apache section it will show up as mod_php5.
There is no code that outputs sapi_apache2, so I am not sure where you
are getting that from. The right way to check the sapi is to call
php_sapi_name() which will return "apache"
On Wed, 2005-07-06 at 10:55 +0100, Ross wrote:
> I have been using empty in forms for some time now. but have just discovered
> that
>
> PHP 4 As of PHP 4, The string value "0" is considered empty.
>
>
>
>
> Is there an alternative that will just check for empty strings. I suppose I
>
On 06/07/2005, at 7:55 PM, Ross wrote:
I have been using empty in forms for some time now. but have just
discovered
that
PHP 4 As of PHP 4, The string value "0" is considered empty.
If ($string == '') ??
or if (isset($string)) ??
--
PHP General Mailing List (http://www.php.net/)
I have been using empty in forms for some time now. but have just discovered
that
PHP 4 As of PHP 4, The string value "0" is considered empty.
Is there an alternative that will just check for empty strings. I suppose I
could just use eregi and check for numbers but thought there may be
but any manage to compile switch/goto vm?
CFLAGS=-g3 -O3 -Wall -march=pentium3 -pipe
it takes all my memory and bunch of swap without ending the compilation
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Richard Lynch wrote:
In my limited XML experience...
I have found that firing up the fancy XML parsers and tree-walkers and
XML-writers and all that stuff, pretty much entailed a *LOT* more work
than just hacking the file directly, and stuffing in the XML text that
need to be there, or readi
1 - 100 of 102 matches
Mail list logo