On Thu, 20 Jan 2005 11:13:11 -0800 (PST)
Richard Lynch [EMAIL PROTECTED] wrote:
Sergio Gorelyshev wrote:
Hi all.
Situation:
interface MyInterface {
public static myMethod();
}
class MyClass implements MyInterface {
public static myMethod() {}
}
This sample will crash
Tbird switched the reply and reply-all buttons again ;-)...
?
IMHO its normally to use access type for methods declaration in interfaces. Why not?
Maybe my first example was not sufficiently illustrative. But my question was why it does not work in one environment and work fine in another.
it
Hi Guys!
I've got a problem with Dom and php 5.0.2. I'm trying to access an xml
node with $item = $objDom-documentElement-childNodes-item(0);. That
seems to work, because on the next line I can output the node Value with
echo $item-nodeValue. But when I use the command
$objDom-removeChild($item);
On Fri, 21 Jan 2005 11:56:55 +0100
Jochem Maas [EMAIL PROTECTED] wrote:
Tbird switched the reply and reply-all buttons again ;-)...
?
IMHO its normally to use access type for methods declaration in interfaces.
Why not?
Maybe my first example was not sufficiently illustrative. But my
I seem to remember seing someone use a abreaviated form of a
if/them/else of the type that can be used in java.
It was something like
if ( a=b ) ? a=1 ; a=2;
Anybody know what the correct syntax is?
Ben
--
Ben Edwards - Poole, UK, England
WARNING:This email contained partisan views - dont
Hello Ben,
Friday, January 21, 2005, 12:01:09 PM, you wrote:
BE I seem to remember seing someone use a abreaviated form of a
BE if/them/else of the type that can be used in java.
BE It was something like
BE if ( a=b ) ? a=1 ; a=2;
BE Anybody know what the correct syntax is?
It's called a
On Fri, 21 Jan 2005 12:01:09 +
Ben Edwards [EMAIL PROTECTED] wrote:
I seem to remember seing someone use a abreaviated form of a
if/them/else of the type that can be used in java.
It was something like
if ( a=b ) ? a=1 ; a=2;
Anybody know what the correct syntax is?
condition ?
Ben Edwards wrote:
I seem to remember seing someone use a abreaviated form of a
if/them/else of the type that can be used in java.
It was something like
if ( a=b ) ? a=1 ; a=2;
$a = ($a == $b) ? 1: 2;
which meand: if $a is equal to $b then set $a to 1 otherwise set $a to
2. that is equivalent to:
Ben Edwards wrote:
I seem to remember seing someone use a abreaviated form of a
if/them/else of the type that can be used in java.
It was something like
if ( a=b ) ? a=1 ; a=2;
I called it the 'tertiary' syntax which is not correct:
to quote a page I found:
that the book refers to a tertiary
language tutorial (basic)...
if ( a=b ) ? a=1 ; a=2;
a = a==b ? 1 : 2 ;
Cheer,
Manoj Kr. Sheoran
Software Engg.
Daffodil Software Ltd.
web: www.daffodildb.com
INDIA
On Fri, 2005-01-21 at 17:31, Ben Edwards wrote:
I seem to remember seing someone use a abreaviated form of a
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 20 January 2005 20:36, Tim Boring wrote:
On Thu, 2005-01-20 at 14:40, Bret Hughes wrote:
On Thu, 2005-01-20 at 12:43, Jason Wong wrote:
On Friday 21 January 2005 02:16,
Sephiroth wrote:
The error message:
HTTP/1.0 400 Bad Request Server: squid/2.5.STABLE5 Mime-Version: 1.0 Date:
Fri, 21 Jan 2005 01:48:05 GMT Content-Type: text/html Content-Length: 1213
Expires: Fri, 21 Jan 2005 01:48:05 GMT X-Squid-Error: ERR_INVALID_URL 0
X-Cache: MISS from ns1.autoera.com.tw
Hello,
I've just tried using heredocs [1] for the first time, but I am
receiving parse errors always on the very last line of my document.
The error is caused by my heredocs. Am I using it correctly? When I
replaced the heredoc with a string.. everything worked again.
Here's my code with heredocs
Hi again - thought it best to keep the two topics separately...
I have just leased a virtual hosting package and want to provide GPRS
access to my email server using WML.
Now I have a couple of test pages that I have put up on the server that I
want to view, but can't seem to get to them.
Tim Burgan wrote:
Hello,
I've just tried using heredocs [1] for the first time, but I am
receiving parse errors always on the very last line of my document.
The error is caused by my heredocs. Am I using it correctly? When I
replaced the heredoc with a string.. everything worked again.
Here's my
Mikey wrote:
Hi again - thought it best to keep the two topics separately...
I have just leased a virtual hosting package and want to provide GPRS
access to my email server using WML.
Now I have a couple of test pages that I have put up on the server that I
want to view, but can't seem to get to
Tim Burgan wrote:
Hello,
I've just tried using heredocs [1] for the first time, but I am
receiving parse errors always on the very last line of my document.
The error is caused by my heredocs. Am I using it correctly? When I
replaced the heredoc with a string.. everything worked again.
Here's my
Mikey wrote:
Hi again - thought it best to keep the two topics separately...
I have just leased a virtual hosting package and want to provide GPRS
access to my email server using WML.
disclaimerI have never built a site that served WML, but I know a
small bit about it/disclaimer
Now I have a
you own a phone company? get one of your lakey sysadmins to fix up what
you need ;-)
LOL! The trouble with lackey sysadmins is that they never do what they are
told, always what's kewl - I have long since lost the energy required to
beat them into submission!
just like with a std net
You've got most of it. Just adding extends MySQL to your page result
class will allow you to access all function in the MySQL class. I
usually reference functions in the parent class like this:
parent::FunctionName()
You still reference functions in the current class using $this-, that
way you
This link will probably help you out:
http://www.hawhaw.de/faq.htm
Lovely jubbly! That is all I need now.
I just got through with talking to Virgin (phone company) and they have told
me that they have been having problems with their GPRS gateway over the past
few days, and having checked I
Sorry, I didn't completely follow this thread (deleted the messages before I
really read them).
But I've served WAP/WML before. Made a couple of basic WML scripts and was
able to access them via my cell phone.
I posted them on a regular web server, nothing fancy. All I had to do is make
Jason Barnett wrote:
Mikey wrote:
Hi again - thought it best to keep the two topics separately...
I have just leased a virtual hosting package and want to provide GPRS
access to my email server using WML.
disclaimerI have never built a site that served WML, but I know a
small bit about
Mikey wrote:
This link will probably help you out:
http://www.hawhaw.de/faq.htm
Lovely jubbly! That is all I need now.
I just got through with talking to Virgin (phone company) and they have told
me that they have been having problems with their GPRS gateway over the past
few days, and having
top posting (ouch) just to say 'rocking info' TG!
[EMAIL PROTECTED] wrote:
Sorry, I didn't completely follow this thread (deleted the messages before I really read them).
...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
Iam trying too make a page where the function is to display an attached
.jpg file
from a imap mailbox. This is a small code i found and rewrote some...
?php
include '/etc/labbuser';
$mbox = imap_open ({localhost:993/imap/ssl/novalidate-cert}INBOX,
$imuser, $impass);
$mno = 57;
$parttypes
Simple functions to check fix if necessary invalid formating of a MAC
address... I seem to be having problems with the global variable $mac
not being returned from the fix_mac() function. Any help is appreciated.
?php
/*
* ex. 00:AA:11:BB:22:CC
*/
function chk_mac( $mac ) {
if( eregi(
Mikey wrote:
This link will probably help you out:
http://www.hawhaw.de/faq.htm
Lovely jubbly! That is all I need now.
I just got through with talking to Virgin (phone company) and they have told
me that they have been having problems with their GPRS gateway over the past
few days, and having
* Brent Baisley [EMAIL PROTECTED] :
You've got most of it. Just adding extends MySQL to your page result
class will allow you to access all function in the MySQL class. I
usually reference functions in the parent class like this:
parent::FunctionName()
This is a bad practice when
On Saturday 22 January 2005 00:12, Jason wrote:
Simple functions to check fix if necessary invalid formating of a MAC
address... I seem to be having problems with the global variable $mac
not being returned from the fix_mac() function. Any help is appreciated.
Your subject says regular
Jason wrote:
Simple functions to check fix if necessary invalid formating of a MAC
address... I seem to be having problems with the global variable $mac
not being returned from the fix_mac() function. Any help is appreciated.
?php
/*
* ex. 00:AA:11:BB:22:CC
*/
function chk_mac( $mac ) {
Hi,
I need to create multiple categories and subcategories using php and mysql.
Something like that
- category 1
- subcat 1.1
- subcat 1.2
- subcat 1.2.1
- subcat 1.2.2
- category 2
Does anyone know a godd totorial how to create this in pahp
Ok - I've finally got something that sometimes works.
http://smada.com/images/hide_image.php
I talked to a Delphi programmer, who whipped something out in about 20
minutes. My code is a translation of his.
function colorParts($col)
{
$parts['r'] = ($col 16) 0xFF;
$parts['g'] = ($col 8)
Hello
I'm trying to create a public static array within a class.(PHP5).
First - the following fails:
class yadayada {
public static $tester[0]=something;
public static $tester[1]=something 1;
Second - However the following works:
class yadayada {
public static
hi
if i have an array
$listing1 = array(array('title'='yahoo', 'redirect'='www.yahoo.com',
'info'='yahoo website'), array(title='msn',
'redirect'='www.msn.com', 'info='msn website'));
$listing2 = array(array('name'='lycos', 'link'='www.lycos.com',
'description'='lycos website'),
Hi,
From what i can see you dont even need to call global, as your passing
variables to the function ? this could be causing the script to
confuse itself.
hth
On Fri, 21 Jan 2005 09:30:21 -0700, Jason [EMAIL PROTECTED] wrote:
Jason wrote:
Simple functions to check fix if necessary invalid
You were right, I removed the reference to global $mac and it started
working great. Thanks. It seems sometimes another set of eyes to catch
stuff really helps... thanks.
Jason wrote:
Jason wrote:
Simple functions to check fix if necessary invalid formating of a
MAC address... I seem to be
You're absolutely correct. I was debating on whether to get into
inheritance and overloading. I just settled on what PEAR tends to use
rather than go into more detail.
Thanks for clarifying.
On Jan 21, 2005, at 11:18 AM, Matthew Weier O'Phinney wrote:
* Brent Baisley [EMAIL PROTECTED] :
You've
On Fri, 2005-01-21 at 10:12, Jason wrote:
Simple functions to check fix if necessary invalid formating of a MAC
address... I seem to be having problems with the global variable $mac
not being returned from the fix_mac() function. Any help is appreciated.
?php
/*
* ex.
Your email prompted me to think about architecture. What I have is;_
a database class which is the only class with direct access to the database.
a table class, which is passed the database class on instantiation.
a presenter class which is passed the table class during instantiation.
This
Marek wrote:
Hello
I'm trying to create a public static array within a class.(PHP5).
First - the following fails:
class yadayada {
public static $tester[0]=something;
public static $tester[1]=something 1;
Second - However the following works:
class yadayada {
Jason wrote:
Simple functions to check fix if necessary invalid formating of a MAC
address... I seem to be having problems with the global variable $mac
not being returned from the fix_mac() function. Any help is appreciated.
function fix_mac( $mac ) {
global $mac;
It's really weird to
Brent Baisley wrote:
You're absolutely correct. I was debating on whether to get into
inheritance and overloading. I just settled on what PEAR tends to use
rather than go into more detail.
Are you referring to the PEAR::isError (and similar function calls) that
you see all over the place in
Sorry if this is a double post, I left the subject off the first one.
// I'm running this test code
/ start
?PHP
$test='this is test';
echo $test;
$test2=str_split($test);
echo $test2;
for($i=0;$icount($test2);$i++)
{
echo $test2[$i].br;
}
?
Marek Kilimajer wrote:
COKIES, I'm talking about COOKIES.
Anytime you talk about cookies or cookie files, you mean session and
session files, respectively. These are completely different things,
please don't intermingle them.
session_set_cookie_params()
^^^
You're talking about a
On Fri, 21 Jan 2005 12:07:34 -0600, chris [EMAIL PROTECTED] wrote:
$test2=str_split($test);
Do echo 'pre'; print_r( $test2 ); right here and see if the $test2
array has the data you expect.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List
Hi
New results: This problem does not seem to be Smarty related, although it
did occur when
Smarty tried to read from memory. Probable cause: PEAR was missing a field
in the ini file where the email address was defined, which resulted in empty
addresses being given to sendmail. Sendmail doesn't
Richard Lynch wrote:
Jason wrote:
Simple functions to check fix if necessary invalid formating of a MAC
address... I seem to be having problems with the global variable $mac
not being returned from the fix_mac() function. Any help is appreciated.
function fix_mac( $mac ) {
global $mac;
It's
Phpu wrote:
Hi,
I need to create multiple categories and subcategories using php and mysql.
Something like that
its bad practice to state the technology that must be used before you
have determined the scope and function of the problem, besides you have
to know whether php and mysql are capable
(bl***dy CTRL+enter)...
Phpu wrote:
Hi,
I need to create multiple categories and subcategories using php and mysql.
Something like that
its bad practice to state the technology that must be used before you
have determined the scope and function of the problem, besides you have
to know whether php
Rob Adams wrote:
Ok - I've finally got something that sometimes works.
http://smada.com/images/hide_image.php
I talked to a Delphi programmer, who whipped something out in about 20
you talked to a WHAT??? ;-) just kidding
minutes. My code is a translation of his.
cool of you to share the code
Marek wrote:
Hello
I'm trying to create a public static array within a class.(PHP5).
First - the following fails:
class yadayada {
public static $tester[0]=something;
public static $tester[1]=something 1;
of course this doesn't (ok so its obvious to me)
first of its
Jochem Maas wrote:
Phpu wrote:
Hi,
I need to create multiple categories and subcategories using php and
mysql. Something like that
its bad practice to state the technology that must be used before you
have determined the scope and function of the problem, besides you have
to know whether php
Justin wrote:
Jochem Maas wrote:
Phpu wrote:
Hi,
I need to create multiple categories and subcategories using php and
mysql. Something like that
its bad practice to state the technology that must be used before you
have determined the scope and function of the problem, besides you
have to know
No good.
I made the change to this (note the echo ping statements)
/// start
?PHP
$test='this is test';
echo $test;
echo 'brping 1br';
$test2=str_split($test);
echo 'ping 2br';
echo 'pre';
for($i=0;$icount($test2);$i++)
{
print_r($test2[$i]);
}
echo '/pre';
?
Fredrik Hampus wrote:
Hi!
Iam trying too make a page where the function is to display an attached
.jpg file
from a imap mailbox. This is a small code i found and rewrote some...
?php
include '/etc/labbuser';
$mbox = imap_open ({localhost:993/imap/ssl/novalidate-cert}INBOX,
$imuser, $impass);
Xuefer Tinys wrote:
if i have to unset portion of the $oldTracker. i have to scan? or any
other way?
Perhaps you could store all data with an index of time rounded off to
minutes (hours, whatever).
Example:
?php
//15 minutes -- Change larger/smaller for more/less frequent purges
I am using an array to populate a drop-down and I would like to have the
same value in the key as the value. Using the following, the key is
0,1,2,3...etc. How can I correct that?
$file_list = array();
$dir = opendir($doc_dir);
while (false !== ($file = readdir($dir))) {
if
chris wrote:
No good.
this should work, I rewrote you little test and no probs (as expected):
php -r '
$test = this is test;
echo $test,\n;
$test2 = str_split($test);
foreach($test2 as $s) {
echo $s.\n;
}
'
I made the change to this (note the echo ping statements)
/// start
James Butler wrote:
My main issue is that libdb-4.0.so is needed by existing installations
of curl, python, pam, cyrus, webalizer, db4, perl, postfix, sendmail,
perl-DB_File and on and on. And that's not even close to the end of the
old program dependencies list.
Upgrading via rpm is going
Todd Cary wrote:
I am using an array to populate a drop-down and I would like to have the
same value in the key as the value. Using the following, the key is
0,1,2,3...etc. How can I correct that?
what is there to correct - you are telling me that the value of $file
show up as a string and
Rob Adams wrote:
Ok - I've finally got something that sometimes works.
http://smada.com/images/hide_image.php
I dunno what you did to the first file upload button, but as soon as I
choose the FIRST file, I get:
Warning: imageistruecolor(): supplied argument is not a valid Image
resource in
Marek wrote:
Hello
I'm trying to create a public static array within a class.(PHP5).
First - the following fails:
class yadayada {
public static $tester[0]=something;
public static $tester[1]=something 1;
Second - However the following works:
class yadayada {
Richard Lynch wrote:
James Butler wrote:
My main issue is that libdb-4.0.so is needed by existing installations
of curl, python, pam, cyrus, webalizer, db4, perl, postfix, sendmail,
perl-DB_File and on and on. And that's not even close to the end of the
old program dependencies list.
Upgrading via
Ahmed Abdel-Aliem wrote:
how can i group them together into one array to be :
http://php.net/array_merge
and friends should help
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Still no goodI get the first echo but nothing after it.
:^(
What bothers me about this whole thing is the original code was working
fine.
It was only today that this issue arose, when I was making documentation on
my code.
Now, all of a sudden, it no longer works. After stepping through my
chris wrote:
No good.
I made the change to this (note the echo ping statements)
/// start
?PHP
$test='this is test';
echo $test;
echo 'brping 1br';
$test2=str_split($test);
echo 'ping 2br';
echo 'pre';
for($i=0;$icount($test2);$i++)
{
print_r($test2[$i]);
Hi all -
I know this has been covered a lot but my searching has resulting in not
much success, was hoping someone had the link to a good page on this.
I have on select box that when I select something in it I need the other
select box to get vales from a database table with out having the page
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Rob Adams wrote:
Ok - I've finally got something that sometimes works.
http://smada.com/images/hide_image.php
I dunno what you did to the first file upload button, but as soon as I
choose the FIRST file, I get:
Richard Lynch wrote:
Rob Adams wrote:
Ok - I've finally got something that sometimes works.
http://smada.com/images/hide_image.php
I dunno what you did to the first file upload button, but as soon as I
choose the FIRST file, I get:
use the BACK button. then fill in the second file upload
Thanks to Richard who pointed me in the right direction. I failed to notice
that the str_split function is only for use with php v5, I was run
4.3.10...DOH!
In case anyone what the solution here is a rewrite.
?PHP
$test='this is test';
$test2=Array();
Pls tell me how I can change the emailadress with which I subscribed.
Thnx in advance Mark Topper
_
MSN Webmessenger overal en altijd beschikbaar http://webmessenger.msn.com/
--
PHP General Mailing List (http://www.php.net/)
To
I just found a descent tutorial after another 45 mins of searching and
pulling a php file into the ifram to output the data, then pulling the data
in from the iframe will work, thanks for your response!
I was concerned with cross-browser compatability but hey who cares about
netscape4 anyway ;-)
I am rewriting a project, and have decided to use/learn OOP. I am
using ADODB to connect to a MS SQL 2000 box. This code works, but I'd
like to know if I'm following good form or if I'm totally missing the
boat. I'd also like to include things like the
dbhost/username/password, etc in a seperate
Rob Adams wrote:
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Rob Adams wrote:
Ok - I've finally got something that sometimes works.
http://smada.com/images/hide_image.php
I dunno what you did to the first file upload button, but as soon as I
choose the FIRST file, I
Matt Babineau wrote:
I just found a descent tutorial after another 45 mins of searching and
pulling a php file into the ifram to output the data, then pulling the data
in from the iframe will work, thanks for your response!
I was concerned with cross-browser compatability but hey who cares about
Thank you,
This makes allot of sense.
However one last question about this.
If I access the overrided function from the child class do I access it by.
$instanceofchildclass-parent::someMethod();
OR would I still simply just call it
$instanceofchildclass-someMethod();
And it would get to use
On Fri, January 21, 2005 3:48 pm, M H Topper said:
Pls tell me how I can change the emailadress with which I subscribed.
Thnx in advance Mark Topper
just unsubscribe using your old address and subscribe using new address
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
see all those headers below: they are in every email that goes via the
list (its a defacto std thing these days) and it tells you everything
you need to know. (hint there are bot email addrs mentioned with which
you can communicate to manage you subscription)
unfortunately you use hotmail -
Hello,
Could someone help me understand why later versions of PHP (4.3.9,
4.3.10, 5.0.3) do not maintain the same
ordering for virtual() call output as the older versions? Basically,
generated pages that worked in
PHP 4.3.7 PHP 4.3.8 are now broken. Setting the output_buffering=0
seems to
Jochem -
The problem is the sort()! I did not realize that it replaces the key
with an integer. Instead, I should have used ksort().
$dir = opendir($doc_dir);
while (false !== ($file = readdir($dir))) {
if (($file != .) ($file != ..))
$file_list[$file] = $file;
}
Greetings all,
Due to style sheet stuff I need to modify the nl2br (IE create or use a
different function).
I am pulling data from a database and using nl2br, which does the standard.
some text copybr /
br /
Some more copybr /
What I want instead is
pSome text copy/p
psome more text copy/p
[snip]
some text copybr /
br /
Some more copybr /
What I want instead is
pSome text copy/p
psome more text copy/p
[/snip]
What you want to do is start with a p, then when you run into 2 \n\n
you want to replace it with /pp and then end with a /p
http://www.php.net/preg_replace
--
PHP General
Hi,
On my system (Fedora 2) we (users) can use the following php:
PHP 4.3.10 (cgi) (built: Dec 21 2004 09:18:25)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
According to our system administrator php works in safe mode. I do not
know (think)
Well.. i just got done doing something like what you are trying to
accomplish... you will need to name your check boxes like so :
name=completed[]
when the form is submitted, I use something like this and shove it
into a field in the database:
if($_POST['completed'] NULL)
{
// This makes one
From the function page on php.net (
http://us4.php.net/manual/en/function.nl2br.php ):
Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions
before 4.0.5 will return string with 'br' inserted before newlines instead
of 'br /'.
Is this a misprint, ot does the revised function
Joe Harman wrote:
Well.. i just got done doing something like what you are trying to
accomplish... you will need to name your check boxes like so :
name=completed[]
when the form is submitted, I use something like this and shove it
into a field in the database:
if($_POST['completed'] NULL)
{
//
M. Sokolewicz wrote:
Joe Harman wrote:
Well.. i just got done doing something like what you are trying to
accomplish... you will need to name your check boxes like so :
name=completed[]
when the form is submitted, I use something like this and shove it
into a field in the database:
Scott DeMers wrote:
From the function page on php.net (
http://us4.php.net/manual/en/function.nl2br.php ):
Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions
before 4.0.5 will return string with 'br' inserted before newlines instead
of 'br /'.
Is this a misprint, ot does the
On Saturday 22 January 2005 07:36, Scott DeMers wrote:
From the function page on php.net (
http://us4.php.net/manual/en/function.nl2br.php ):
Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions
before 4.0.5 will return string with 'br' inserted before newlines
instead of
Please disregard - I read it wrong.
-Original Message-
From: Scott DeMers [mailto:[EMAIL PROTECTED]
Sent: Friday, January 21, 2005 6:37 PM
To: php-general@lists.php.net
Subject: [PHP] nl2br misprint
From the function page on php.net (
http://us4.php.net/manual/en/function.nl2br.php ):
On Saturday 22 January 2005 06:20, Tamas Hegedus wrote:
In a file, which is included into all my scripts, I defined constants
(for MySQL access). PHP claims these constants as undifined constants,
however, if I let them print out they have the right values
(HOST='localhost'; NOT:
Greetings all,
I am pulling records from a MySQL DB.
I am walking through the array using the whole.
if ( $row = mysql_fetch_assoc($result)) {
do{
//Some stuff
}while ( $row = mysql_fetch_assoc($result));
}
What I am wondering is if there is something I can do like.
On Saturday 22 January 2005 08:02, Phillip S. Baker wrote:
I am pulling records from a MySQL DB.
I am walking through the array using the whole.
You do realise that doing this ...
if ( $row = mysql_fetch_assoc($result)) {
do{
//Some stuff
}while ( $row =
On Saturday 22 January 2005 08:11, Jason Wong wrote:
On Saturday 22 January 2005 08:02, Phillip S. Baker wrote:
I am pulling records from a MySQL DB.
I am walking through the array using the whole.
You do realise that doing this ...
if ( $row = mysql_fetch_assoc($result)) {
do
On Fri, 21 Jan 2005 09:43:38 -0800 (PST), Richard Lynch [EMAIL PROTECTED]
wrote:
Thus my point remains:
On a shared server, I don't need to resort to calling this function to
hijack your Cookie/session. PHP can read the raw session files. I can
write a PHP script to read the raw session
rant
Will whoever is causing [suspicious - maybe spam] to appear in the
subject of the PHP emails PLEASE WHITELIST THE PHP LIST. Ugh.. it's so
annoying.
/rant
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In a file, which is included into all my scripts, I defined constants
(for MySQL access). PHP claims these constants as undifined constants,
however, if I let them print out they have the right values
(HOST='localhost'; NOT: HOST='HOST').
Where do you print them out? In the file in which they're
On Saturday 22 January 2005 08:28, Tamas Hegedus wrote:
define( HOST, 'localhost');
define('HOST', 'localhost');
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design Hosting * Internet Intranet Applications Development *
Excerpt from http://www.php.net/list
*Note: * *list()* only works on numerical arrays and assumes the
numerical indices start at 0.
So the best way , in my opinion, to achieve this effect would be:
while(list($id, $someinfo) = mysql_fetch_row($result))
{
//Some stuff
}
Chris
Phillip
1 - 100 of 114 matches
Mail list logo