a #!/usr/bin/perl -w
can I do a #!/usr/bin/php -q at the begining of the text file?
Thanks.
From: Elijah Gallatin [EMAIL PROTECTED]
To: Charlie Don [EMAIL PROTECTED]
Subject: Re: [PHP] Question about executing PHP script
Date: Mon, 28 Jun 2004 19:33:14 -0400
On Mon, 28 Jun 2004 23:29:16 +
hi...
the reason that mail() wont work on windows without an smtp server (outgoing
mail server) is because normally windows doesnt have a mail server
installed. the default smtp settings in php.ini usually is for *nix systems
(that is if it is even set).
it is very easy to fix:
go into
you've to go in the php.ini and give a smtp server
-Message d'origine-
De : Shawn Inder [mailto:[EMAIL PROTECTED]
Envoyé : samedi 24 avril 2004 6:03
À : [EMAIL PROTECTED]
Objet : [PHP] Question about the mail() php function
Hello,
I was browsing your site and came across the mail() PHP
Sounds like you don't have a mail server running on localhost at port 25.
If you do have a mail server running, then it seems to me that you should
verify your SMTP and smtp_port setting in php.ini or use ini_set() in
C:\Program Files\Abyss Web Server\htdocs\page.php on line 24. Just
If I had to take a wild guess I'd say that there's no mail server on
your machine that would be capable of accepting email for delivery.
And that Warning is PHP's effort to tell you just that.
Hint: google - and I bet most other search engines - give you plenty
of sites providing good information
[snip]
I've now installed apache and php, however I'm experiencing the
following problem when I try to run test.php file:-
I get prompted with a dialogue box asking if I would like to download
the file, any ideas on why this is happening, once this is fixed I think
I'll have everything working
hi,
I want to send an SMS(to mobile phone etc) based on a database trigger or on
completion of an php page. the site runs on linux.
how to do this. How do i send the mobile no . what is the language, protocol,
syntax and platform.
if anyone knows please inform. i am unable to
understand
Mike Zornek wrote:
Oops, forgot to send my original response to the list last time.
On 4/5/04 1:33 PM, Jason Giangrande [EMAIL PROTECTED] wrote:
What I usually do is create a select box that has only the values of the
enum. That way no one should be able to (in theory) put any value other
than
From: Mike Zornek [EMAIL PROTECTED]
I'm making a conscience effort to improve my PHP skills, that being making
objects, unit testing, better error handling etc. So I have a questions.
I have a database that is storing all of my records. One column is of type
enum where the two legal values
Thanks the feedback so far. To expand the scope of my issue past enums
(which by their limited nature are easy to check and set defaults) let me
ask this...
There is a column called Address in my email table, Thus I am creating a PHP
object called Email to interact with it. The Address variable
From: Mike Zornek [EMAIL PROTECTED]
There is a column called Address in my email table, Thus I am creating a
PHP
object called Email to interact with it. The Address variable of this
object
will hold a string like [EMAIL PROTECTED].
In the setAddress method should I check for a valid email
is_string()
Le jeu 25/03/2004 à 15:08, Lourenzo Dias a écrit :
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance writing
in English.
I'd like to know if exists any function in php that identifies a string
as a-z, like is_num() to the numbers.
Thanks,
Actually this is not true. For example:
$test = 22;
if(is_string($test))
echo IS A STRING;
Will print IS A STRING.
On Thu, 2004-03-25 at 09:18, Guillouet Nicolas wrote:
is_string()
Le jeu 25/03/2004 à 15:08, Lourenzo Dias a écrit :
Hey, there.
I'm a new php student from
no.
use: preg_match(^[a-zA-Z]*$,$string);
Lourenzo Dias wrote:
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance
writing in English.
I'd like to know if exists any function in php that identifies a
string as a-z, like is_num() to the numbers.
Thanks,
Lourenzo
ups ... you have right. ... is_string ... I forget that
sorry
Ryszard Hapka wrote:
no.
use: preg_match(^[a-zA-Z]*$,$string);
Lourenzo Dias wrote:
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance
writing in English.
I'd like to know if exists any function in php
Adam Voigt wrote:
Actually this is not true. For example:
$test = 22;
if(is_string($test))
echo IS A STRING;
Will print IS A STRING.
Try
$test = 22;
The denotes a string and without quotes it denotes a value
HTH,
Roger
--
PHP General Mailing List (http://www.php.net/)
To
* Thus wrote Lourenzo Dias ([EMAIL PROTECTED]):
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance writing
in English.
I'd like to know if exists any function in php that identifies a string
as a-z, like is_num() to the numbers.
You're looking for ctype_alpha().
Thats what I was pointing out, the fact that the is_string function
won't work if he selects ab9cd out of a DB, because as I understand
it, he's looking to check a string to see if it contains all letters a
to z.
On Thu, 2004-03-25 at 09:31, Roger Spears wrote:
Try
$test = 22;
The
Hi,
Friday, March 26, 2004, 11:19:51 AM, you wrote:
dz Hello,
dz I'm creating registration service with this great form script for
dz creating forms within Smarty.
dz Question is how can I validate 'username' against allready registered
dz users in MySQL so that someone cannot register him
Hi,
Dear PHP.net,
I have got a question!!!
I`ll develop a new PHP Site and threr is a problem with Hyperlinks!!!
First of all, there is no problem with hyperlinks, you maybe have an
problem understanding how to use hyperlinks.
How can I use index?nav=Webmaster??
Whats the source code for
Florian Hoenl wrote:
Dear PHP.net,
I have got a question!!!
I`ll develop a new PHP Site and threr is a problem with Hyperlinks!!!
How can I use index?nav=Webmaster??
Whats the source code for this funktion
Florian :
1. Please don't end all lines with multiple puncuation marks. !!! is
not
Finally, may I ask a question? In my case, all of the PDFs that generated
from MS Word + Acrobat can be upload with the content-length=512KB, but the
PDFs generated from PageMaker, its content-length is greater than 512KB, why
the content-lengths are different?
Probably because they use two
: Thursday, March 11, 2004 6:06 PM
Subject: Re: [PHP] Question on PDF upload
ifIf you can view the file in your reader (before uploading) , the most
likely that you have exceeded the upload limit or something related to
that. hope you find the artilce at
http://www.radinks.com/upload/config.php
ifIf you can view the file in your reader (before uploading) , the most
likely that you have exceeded the upload limit or something related to
that. hope you find the artilce at
http://www.radinks.com/upload/config.php usefull in configuring your php
to handle large uploads.
All the baest
Dissanayake [EMAIL PROTECTED]
To: Jeffrey Lee [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 6:06 PM
Subject: Re: [PHP] Question on PDF upload
ifIf you can view the file in your reader (before uploading) , the most
likely that you have exceeded the upload limit or something
that it allows
post_max_size = 8M. So, in my little knowledge, I think it's alright.
Thanks for your help.
Jeffrey
- Original Message -
From: Raditha Dissanayake [EMAIL PROTECTED]
To: Jeffrey Lee [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 6:06 PM
Subject: Re: [PHP
PROTECTED]
To: Jeffrey Lee [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 6:06 PM
Subject: Re: [PHP] Question on PDF upload
ifIf you can view the file in your reader (before uploading) , the most
likely that you have exceeded the upload limit or something related
I think your best bet is to only show product titles, and possibly a bit
of the summary or something in the catalogue, then have the user click
the product to view full information on it.
this takes 2 db calls, one to load the limited info of all products, and
one to load all info on one product.
It's the old story
Normalize your tables
Use indexes on commonly called fields
Fetch items only as needed, within reason.
Remember that the web is stateless, so when you zero in for more data you
will be refreshing the page from the server.
One thousand items is very few for a database,
Hello James,
Monday, March 1, 2004, 7:09:24 PM, you wrote:
JM Are there any concerns with having the 'magic quotes'
JM enabled or should I use the Add Strip Slashes? I
JM will be using a database (MySQL).
I wouldn't be concerned about using them at all - they're not a
security risk or anything
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:
Could be missing the point here because your question is quite vague.
However...
I am using a web page that uses the following php code to display the
contents of a dynamically update webpage:
?php
include(http://.../source.xls);
?
Is it
Thanks!
It works like a charm!
/peter
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:
Could be missing the point here because your question is quite vague.
However...
I am using a web page that uses the following php code to display the
contents of a dynamically update webpage:
?php
Meramec Challenge Paintball, LLC mailto:[EMAIL PROTECTED]
on Wednesday, February 11, 2004 7:40 AM said:
I'm glad you put question in your subject line because for a minute
there I thought you were sending me a note of praise. I realized you
weren't once I read your informative subject line.
Chris W. Parker wrote:
Meramec Challenge Paintball, LLC mailto:[EMAIL PROTECTED]
on Wednesday, February 11, 2004 7:40 AM said:
I'm glad you put question in your subject line because for a minute
there I thought you were sending me a note of praise. I realized you
weren't once I read your
[snip]
Did you forget your mind-reading helmet at home today?
[/snip]
I have both kinds of ESP.ESPn ESPn2 :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Freedomware wrote:
When I view my data in phpMyAdmin, all I see in that column is NULL.
When I preview it in a webpage, nothing displays at all. If I change it
to NOT NULL, I see -00-00 in every cell.
Here's a row of text from the CSV file I imported into my MySQL table:
John W. Holmes wrote:
Freedomware wrote:
When I view my data in phpMyAdmin, all I see in that column is NULL.
When I preview it in a webpage, nothing displays at all. If I change
it to NOT NULL, I see -00-00 in every cell.
Here's a row of text from the CSV file I imported into my MySQL
Freedomware wrote:
EMS lists the following:
Short Date: M/d/
Long Date: , dd,
Day followed by month, followed by another day, then year???
That format means something like Friday, May 5, 2004
I thought it was supposed to be year first, followed by month and day,
as in the
John W. Holmes wrote:
Freedomware wrote:
EMS lists the following:
Short Date: M/d/
Long Date: , dd,
Day followed by month, followed by another day, then year???
That format means something like Friday, May 5, 2004
I thought it was supposed to be year first, followed by month
Renan G. Galang wrote:
I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys.
Correct.
--
By-Tor.com
It's all
Renan G. Galang wrote:
I just need a confirmation, when the getdate()
function is invoked inside a PHP script, the date
returned will be the server hosting the pages' date
and not the client requesting the page, right? or
am i wrong in my assumption? Thanks guys.
Yes, you are not wrong in
?
echo hellobr;
echo vivianebr;
?
hth
toby
- Original Message -
From: Viviane Hu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 26, 2004 2:13 PM
Subject: [PHP] question PHP - HTML
Hi,
Je try to use PHP.
Je wrote to this code
?php
echo hello \n;
On Mon, 2004-01-26 at 08:13, Viviane Hu wrote:
Hi,
Je try to use PHP.
Je wrote to this code
?php
echo hello \n;
echo viviane \n;
?
I expect a print out like :
hello
viviane
but the print out (IE) is hello viviane
?php
echo hello br /\n;
echo viviane;
?
Joe Harman wrote:
Thanks for your comments Chris and Rob... Chris you have great points to
make, my ears are wide open...
The reason I thought about storing the array in a blob is because every
test generated will be different. the 102 question test will be generate
randomly from a bank of 500
On Wed, 2004-01-21 at 23:07, Joe Harman wrote:
I am curious how much data an array can hold.. And what the pros and
cons are.
How much memory have you allowed PHP to consume?
Example.. I am making a testing system that will give a student a 102
question test...
The test would be
Robert Cummings wrote:
Also can I store those arrays as a blob in MySQL?
You could, but you'd be better off storing them in normalized tables
IMHO.
In this cans I will have to strongly agree with Rob, but I also have to
add a few comments.
Why on earth would you store an array as a blob
of
wisdom are also welcome :o)
So thanks for your input,
Joe
-Original Message-
From: Chris W [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 11:54 PM
To: Robert Cummings; PHP-General
Subject: Re: [PHP] Question about array limits practicallity
Robert Cummings wrote:
Also
Joe Harman wrote:
Thanks for your comments Chris and Rob... Chris you have great points to
make, my ears are wide open...
The reason I thought about storing the array in a blob is because every
test generated will be different. the 102 question test will be generate
randomly from a bank of 500
Cummings; PHP-General
Subject: Re: [PHP] Question about array limits practicallity
Robert Cummings wrote:
Also can I store those arrays as a blob in MySQL?
You could, but you'd be better off storing them in normalized tables
IMHO.
In this cans I will have to strongly agree with Rob, but I also have
Hi!
...and then said...
%
% Dear Sir,
%
% In the computer's memory, I find out that the first day of the week is Monday.
But actually, the first day of the week is Sunday, not Monday. When I try to use the
date function to number the week, I find some difficulty. For example, the
[snip]
If you use the date function in PhP you can get the date and it will not
change in the cache since the actual code is not on the page that
generated
it.
My question is how do I get the answer that I have in a PHP variable
back to
an HTML page and give it lets say to JavaScript to display.
engines, but when it comes to php...
well ... thanks for the help!
Al Costanzo
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Al Costanzo [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 8:49 AM
Subject: RE: [PHP] Question on sending PhP variable
Costanzo
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Al Costanzo [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 8:49 AM
Subject: RE: [PHP] Question on sending PhP variable results to an HTML
page
to be displayed.
[snip]
If you use the date function
--- Al Costanzo [EMAIL PROTECTED] wrote:
This will not work because the page in question ends in .HTML but I
did discover a way to do what I need and an answer to many other
posts.
Here is the answer:
To make a PHP command to execute on a .html page create another page
ending in .php
* Thus wrote Luke ([EMAIL PROTECTED]):
$test-windows-showID();
$test-windows(Window3)-showID();
?
---end php code--
You might want to read:
http://php.net/oop
Curt
--
If eval() is the answer, you're almost certainly asking the
wrong question. -- Rasmus
Alan Fullmer mailto:[EMAIL PROTECTED]
on Friday, November 21, 2003 5:00 PM said:
do i have to htmlspecialchars every entry?
Yes you have to protect yourself from your users data each and every
time you receive user data, ever, always.
does this make any sense?
I think so.
Chris.
--
Alan Fullmer wrote:
Is php capable of recognizing things such as
in a text box, someone were to put ?php insert
php code here; ? and display say, variables?
No, not normally. If you just display the code, it'll show as plain PHP
code and not be run. However, if it makes its way into an include
Frank Tudor mailto:[EMAIL PROTECTED]
on Wednesday, November 19, 2003 11:26 AM said:
I know this is bad but this is the only listserver/newgroup
thingy I use because I am php challenged.
Actually you have (nearly) the entire internet at your beck and call.
Me: Frank, google. Google, Frank.
* Thus wrote John ([EMAIL PROTECTED]):
Hi all
This function I don't get at all, I hear all the time, if you want to
practice smart coding then turn register globals off, and be sure you keep
query data out of your script that is not set or defined with something
expected. So why would there
This function I don't get at all, I hear all the time, if you want to
practice smart coding then turn register globals off, and be sure you keep
query data out of your script that is not set or defined with something
expected. So why would there be a function that returns true or false, $var
is
On Fri, Nov 07, 2003 at 11:28:18AM -0800, Chris W. Parker wrote:
:
: Anyway... Here is my problem. I have a class called Validate that has a
: method called ValidateInput. There is another method in this class
: called phonenumber. ValidateInput calls phonenumber at some point like
: this
Eugene Lee mailto:[EMAIL PROTECTED]
on Friday, November 07, 2003 12:00 PM said:
Won't work. $this refers to the instance of an object.
Yeah I've decided to just instantiate an object. It's not really a big
deal I guess, I just thought it might be a little cleaner to not
instantiate. A
On Fri, 2003-10-17 at 22:04, Philip Hallstrom wrote:
Hi -
I'm just getting into writing my own PHP extension and have a
question I can't find the answer to.
Not to be picky, but this group is developing with PHP, not generally
developing for PHP :) Try the PECL group at: [EMAIL
[snip]
I would like to know a constructor function is also inherited to a child
class.
I mean the child class also needs to have a constructor function but it
must
have the same name as the class name.
How does that work?
[/snip]
FYI ... anything below PHP5 has a pseudo constructor. Since you are
Hi ccj,
GET data is passed in the URL, POST data is not so loss of the
information would be expected. It sounds like you should use sessions,
it is a better way of passing data between pages.
Take a look at http://www.php.net/manual/en/ref.session.php
Jason
ccj wrote:
Hi all
Based on
FYI ... anything below PHP5 has a pseudo constructor.
And how will it be in PHP5 ?
Since you are inheriting the class the 'constructor' for the parent class
should work. If it doesn't (I have not tested it, and neither have
you)then the class extension can contain a 'contstructor' that is
[snip]
FYI ... anything below PHP5 has a pseudo constructor.
And how will it be in PHP5 ?
[/snip]
PHP5 will be using the Zend 2 Engine, and gives a standard way of
declaring constructor methods by calling them by the name __construct().
An example from http://www.php.net/zend-engine-2.php
Thanks, but it's not the point, I think.
Because from aaa.php -- error.php is redirected by Apache.
The error.php could not get the POST data via $HTTP_RAW_POST_DATA.
If aaa.php send POST data to a existing file , say ccc.php,
of course we can get $_POST, $HTTP_RAW_POST_DATA in ccc.php,
But if
Sorry, via ErrorDocument 404 /error.php in httpd.conf setting.
See http://www.php.net/mirroring.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all,
Nevermind this. I just solved it myself.
I found out it does not matter when you decalre a variable as global (other
than I guess before you use it)
So I made my function this way.
function key_value ( $mysql ) {
if ( $sao_row = $mysql - fetchRow() ) {
do {
From: David Smith [EMAIL PROTECTED]
I have a problem. I have all my functions (currently) set aside in one
file, and I just require_once that page for all of the other pages that
may need any of those functions. In those functions I have it setup to
echo the link to the CSS page for my site
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]):
From: David Smith [EMAIL PROTECTED]
I have a problem. I have all my functions (currently) set aside in one
file, and I just require_once that page for all of the other pages that
may need any of those functions. In those functions I have
From: Curt Zirzow [EMAIL PROTECTED]
Or cheat and use output buffering.
IMO, thats an even more lazy way of doing it.
I agree entirely. I hate even giving that option, but it is there. That's
why I said he could cheat :)
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
On 20 Aug 2003 09:57:20 -0500, you wrote:
I've seen this a few times in some code examples...
XXX::XXX
What do the 2 colons signify?
Static method of an object.
Calling a method of a class without first instantiating an instance of the
class.
/* Class A has method B */
class
* Thus wrote Ryan Gibson ([EMAIL PROTECTED]):
Try naming it variable.inc.php or telling your webserver to parse .inc files
as php.
That wont matter, an included file inside a php file is treated as
a php file no matter the extension.
Curt
--
I used to think I was indecisive, but now I'm not
I am currently using a php class that uses the following syntax:
$value= htmlcleaner::cleanup($value);
What exactly is the :: used for? Is there a different syntax for :: ?
The manual has an entire section on this
(http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php) have you
read
From: Luis Lebron [EMAIL PROTECTED]
I am currently using a php class that uses the following syntax:
$value= htmlcleaner::cleanup($value);
What exactly is the :: used for? Is there a different syntax for :: ?
You're calling the cleanup() method of the htmlcleaner class.
You could also
Try naming it variable.inc.php or telling your webserver to parse .inc files
as php.
On 14/8/03 9:12 am, Lito Dagodog [EMAIL PROTECTED] wrote:
i have a question?
i have 3 files of PHP and the codes are as follows.
variables.inc
?php
$host = $_POST[host];
$username = $_POST[user];
The :: operator is used to access a static class method. In other words
you can use the class method without creating an instance of the class.
Alternatively you could have used the following less effcient syntax:
$cleaner = new htmlcleaner();
$value = $cleaner-cleanup( $value );
Thanks for the information. I checked the manual but wasn't able to find it.
Luis
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 1:35 PM
To: Luis Lebron; Php-General (E-mail)
Subject: Re: [PHP] Question on class syntax
From: Luis
Hello,
This is a reply to an e-mail that you wrote on Sat, 19 Jul 2003 at
19:15, lines prefixed by '' were originally written by you.
Does file called by Include_once stay with the client's
session or
just for operations in the page where it is stated?
just for operations in the page where it
Alvaro Rosales R. wrote:
Hi guys,I am new to PHP and I am writing my forst scripts, so maybe this quesetion
is a kinda stupid, but it is driving me crazy, can you tell meHow can I set a line
break in long line of my code?.
More of a text editor question than a PHP question. In most text
Alvaro Rosales R. wrote:
Thank you but ,(I come from microsoft vb world, and line breaks of code could be
divided with a character(_), so the compiler could parse it and where it finded that
character it knew that it was a line break), is there something similar in php?
No. Just put a line
Hi,
Sunday, July 6, 2003, 3:15:56 AM, you wrote:
TR When is the relase date for php 5?
at this point I think the only digits filled in are
200x-xx-xx
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$query = 'select * from table where fieldname in(\''.
implode('\',\'',$myArray) . '\')';
Roy W wrote:
I have a bunch of variables stuffed in myArray()
I want to run a MySQL SELECT statement ($query= ..) where it will
access only those records in the database WHERE table.fieldname is found
On Mon, 2003-06-09 at 14:38, Jim Lucas wrote:
Does anybody know any benifits to using current() and key()
See below:
I will show two examples of what I mean.
?php
echo PRE;
$arr1 = array(array(1 = 10),
array(2 = 12),
array(3 = 13),
array(4
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 1:13 PM
Subject: [PHP] Question about fopen
I have a file named billed.crm.php and it fopen throws the error no
such file or directory. It seems to have something to do with
On Fri, 6 Jun 2003, Jay Blanchard wrote:
[snip]
I have a file named billed.crm.php and it fopen throws the error no
such file or directory. It seems to have something to do with the
multiple . in the file name. Does anyone know why?
It should make no difference. I hate to ask this
[snip]
I have a file named billed.crm.php and it fopen throws the error no
such file or directory. It seems to have something to do with the
multiple . in the file name. Does anyone know why?
It should make no difference. I hate to ask this but you're
absolutely 100% certain the path
Check the archives, this has been discused many times before
[EMAIL PROTECTED] wrote:
How do applications know how many users are logged into the system? For
example postnuke will tell you '3 users online, 2 members'. Im gussing it
uses sessions, but how?
Edd Barrett
(http://www.filibusta.net)
Someone recently posted code for this exact topic on phpclasses.org,
follow the link below.
http://phpclasses.mirrors.nyphp.org/browse.html/package/1018.html
Matt
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 5:58 AM
To: [EMAIL
[mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 12:31 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] QUESTION - user management
Someone recently posted code for this exact topic on
phpclasses.org, follow the link below.
http://phpclasses.mirrors.nyphp.org/browse.html
Keeping track of the last time each username / IP address has viewed a
page, and assuming that any user who was seen less than 5 minutes (or
so) ago is online.
[EMAIL PROTECTED] wrote:
How do applications know how many users are logged into the system? For
example postnuke will tell you '3
It is faster to do a count(*)
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 1:31 PM
To: php list
Subject: [PHP] Question on response time, SQL vs. PHP
I'm trying to do a count(*) in SQL. Would it be faster to do a or b below?
a: just do a
It's faster to use count(*), because it just has to fetch a count of the
rows (but not the rows themselves). If you're retrieving the rows
anyway, you should use mysql_num_rows,
Liam Gibbs wrote:
I'm trying to do a count(*) in SQL. Would it be faster to do a or b below?
a: just do a simple
This one time, at band camp,
Marius [EMAIL PROTECTED] wrote:
?php
$list = array ('Ba-na-na', 'Ber-ry');
echo a href=\index.php?fruit={$list['0']}\;
echo $list['0'];
echo /a;
?
how i can get Ba-na-na in url and Banana or Ba na na in echo ?
$list = array('Ba-na-na', 'Ber-ry');
echo
just do that :
to have Banana :
$a = ereg_replace(-,,$list[0]);
to have Ba na na
$b = ereg_replace(-, ,$list[0]);
Bye
__
WADIN JULIEN
URL : www.campinfm.be.tf
-Message d'origine-
De : Marius [mailto:[EMAIL PROTECTED]
On 30-Mar-2003 Marius wrote:
?php
$i = 0;
$list = array('Banana', 'Strawberry', 'Apple', 'Cherry');
echo $list[$i];
$i = $i+1;
?
how to do that 2 of key echoes in first table colum and other 2 in
second colum?
Method 1:
$i=0;
echo 'trtd
foreach($list as $v) {
echo $v,
: [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 1:54 PM
Subject: RE: [PHP] question
On 30-Mar-2003 Marius wrote:
?php
$i = 0;
$list = array('Banana', 'Strawberry', 'Apple', 'Cherry');
echo $list[$i];
$i = $i+1;
?
how to do that 2 of key echoes in first table colum and other
On 30-Mar-2003 skate wrote:
excuse me for being dumb, but can you explain this line for me?
if (! (++$i % 2))
If $i is evenly divisible by 2 then ($i % 2) evaluates to 0 or (false).
The (! ($i % 2)) inverts the meaning to (true) so the statements within
the if block are executed.
The ++$i
701 - 800 of 1077 matches
Mail list logo