Hey all,
I want to point something out to aspiring authors. The truth is, that few
books and web pages out there show examples using OO methods. For example,
the book I use as my primary reference has one chapter on OO PHP and that
is it. The rest of the examples in the book are in regular
why don't u do something like
if (!username)
{ you can not access this page
}
else
{
//page content
}
?
that's a quick fix but might be all you need to do..
> -Original Message-
> From: Tim Thorburn [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 23 July 2002 5:01 PM
> To: [EMAIL PROTECT
>
>Once they've been redirected, can they just bookmark the resulting page
>and never have to log in again?
Actually, yes - after a couple hours of playing around with the login and
finally getting the Meta tags to work for me, I found that if the person
were to simply type in the URL of the
On Tuesday 23 July 2002 14:16, Jason Soza wrote:
> I'm fairly certain that fopen() is working fine - I can echo "$contents";
> and it works great, but it displays the entire page that I fetched. I just
> want certain parts of the page and unfortunately, fscanf() doesn't seem to
> think $contents o
Okay, I removed that line and I no longer get the invalid File-Handle
resource error, but I also don't get anything useful. Maybe my fscanf() line
needs some work? With this new code, if I print_r($headlines); I get 229 of
these: Array ( [0] => )
Code:
$filename =
fopen("http://www.kinyradio.com/
restart apache
> -Original Message-
> From: Michal Dvoracek [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 23 July 2002 4:34 PM
> To: Jason Soza
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] PHP security bug and patch
>
>
> Hello,
>
> when applying patch on version 4.2.1 then in phpinfo(); is sti
Hello,
when applying patch on version 4.2.1 then in phpinfo(); is still PHP
Version 4.2.1 but SERVER_SOFTWARE: Apache/1.3.26 (Unix) PHP/4.2.2
mod_ssl/2.8.9 OpenSSL/0.9.6d-beta1
Regards,
Michal Dvoracek [EMAIL PROTECTED]
Capitol Internet Publisher, Korunovacni 6, 170 00 P
Hello,
On 07/23/2002 03:14 AM, Miguel Cruz wrote:
>>Anyway, would you object to develop a system for a customer where it is
>>needed to send messages to clients that do not oppose to receive
>>messages in HTML? If so, why?
>
>
> I have never had a customer say "We have three people, and I per
Thanks, but all these "methods" require modification of the scripts
already on the server, and it won't ensure any new script being written
by a user on my system to comply.
Are you all saying that there are no logs kept by default of errors
generated on php/mysql pages at all unless specifical
I'm thinking that you need to remove the:
$contents = fread($filename, 100);
line. This is probably making the file pointer point to the end of the file.
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:17 PM
To: David Robley; [EMAIL PRO
I'm fairly certain that fopen() is working fine - I can echo "$contents";
and it works great, but it displays the entire page that I fetched. I just
want certain parts of the page and unfortunately, fscanf() doesn't seem to
think $contents or $filename are valid. Just more info on this, I tried
re
On Tue, 23 Jul 2002, Manuel Lemos wrote:
> On 07/23/2002 02:40 AM, Miguel Cruz wrote:
>> On Sun, 21 Jul 2002, Richard Lynch wrote:
>>> Actually, though, when my clients insist on HTML email, I just
>>> tell them: "No. If you want that feature, you'll have to hire
>>> somebody else to do it. I've
Hello,
On 07/22/2002 08:50 PM, Richard Lynch wrote:
>>Not being an expert in php..i couldnt understand the vulnerability.
>>Can someone shed some light here.
>
>
> Very short explanation:
>
> Upgrade.
> Now!
Downgrading can also be a good option. New versions have new bugs,
despite that also
Hello,
On 07/22/2002 08:07 PM, Dario Bahena Tapia wrote:
> Hi ...
>
> I want to be warned about php security issues, I couldn't find
> an exact match in the mailing list names ... which one do you
> recommend me?
http://www.phpadvisory.com/ is what you are looking for.
--
Regards,
Manuel Le
Hello,
On 07/23/2002 02:40 AM, Miguel Cruz wrote:
> On Sun, 21 Jul 2002, Richard Lynch wrote:
>
>>Actually, though, when my clients insist on HTML email, I just tell
>>them: "No. If you want that feature, you'll have to hire somebody else
>>to do it. I've already explained why." I don't thin
On Mon, 22 Jul 2002, Kondwani Spike Mkandawire wrote:
> I am trying to execute a Script running a telnet command
> testing through a range of IP connections...
> Here goes:
>
> $str = "123.456.789.";
> $count = 0;
>
> while ($count < 999){
> $runTheScriptCommand...
> }
>
On Mon, 22 Jul 2002, Tim Thorburn wrote:
> A site I'm working on requires a login screen where various individuals
> will log into the site and add information for their various
> departments. Rather than setup a different script for each department, I
> was hoping to create one script that wo
On Mon, 22 Jul 2002, eat pasta type fasta wrote:
> currently I am holding all of the files in 1 directory since the DB can
> keep track of them, however their number has grown to over 400 at this
> point
>
> my issue is whether it would be worth it (performance wise) to split them
> into thumb
On Sun, 21 Jul 2002, Roberto Ramírez wrote:
> Is there a way to display an image withouth sending the headers first?
You have to send the header - that's how the browser knows what sort of
image it is.
> I'm trying to display an inline image... but when I try it just only
> send the raw image d
On Sun, 21 Jul 2002, Richard Lynch wrote:
> Actually, though, when my clients insist on HTML email, I just tell
> them: "No. If you want that feature, you'll have to hire somebody else
> to do it. I've already explained why." I don't think I've lost a
> single client that way -- Every one of t
On Mon, 22 Jul 2002, Francis wrote:
> I'm trying to redirect to another website but doing a post to that website
> at the same time. (ie POST rather than a GET (eg: header("Location:
> www.anothersite.com/index.php?page=22"); )
>
> How do you do an HTML post using the header() whats the syntax?
On Mon, 22 Jul 2002 23:09:12 -0400, you wrote:
>currently I am holding all of the files in 1 directory since the DB can
>keep track of them, however their number has grown to over 400 at this
>point
>
>my issue is whether it would be worth it (performance wise) to split them
>into thumbs and w
On Mon, 22 Jul 2002, B i g D o g wrote:
> I figured that the comma was to concatenate but is was wondering if the
> parser handled it different.
The comma isn't actually for concatenation. The net effect is the same in
this case, but a very different thing is happening.
echo "hello " , "there
On Tue, 23 Jul 2002, Ricky wrote:
> I am having problems passing variables in a url specifically when there is
> an & sign. Any suggestions?
There is a special function just for you.
http://php.net/urlencode
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
I forgot to tell you: This snippet is supposed to go at the very top of
the login page (right after the -Original Message-
> From: César Aracena [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 1:45 AM
> To: 'Tim Thorburn'; [EMAIL PROTECTED]
> Subject: RE: [PHP] redirecting after
Hi. Since I haven't used meta tags for years now (don't like them:) I
can't help you there, but instead, here's a typical login/redirect PHP
page of mine. As you can see, it doesn't matter if the login form is at
the bottom of the page, or even if it's after an included header file as
long the for
If I want to pass something with &'s in it (commonly a query string i want
to use later), I base64_encode() it, then base64_decode() it later when
needed.
Cheers,
Justin
on 23/07/02 2:29 PM, Ricky ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I am having problems passing variables in a url specifical
I would have started with a search on php.net for "hex" which would have
showed you two functions, and numerous other links that i'm not going to
read.
dechex() and hexdec() seem to do it for numbers, and i'm sure you'll find
what you need with some more looking.
Justin French
on 23/07/02 6:0
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> I think I'm pretty close to getting this right (maybe!), I've been reading
> through the manual, but can't seem to work it out. I keep getting this
> error:
>
> [Mon Jul 22 19:03:24 2002] [error] PHP Warning: Supplied argument is not a
I think the proper way of sending an ampersand is to use &
-Original Message-
From: Ricky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing Special Characters In url
Hi,
I am having problems passing variables in a url specifica
it's the mysql_result()... try this...
echo "'";
mysql_result($result, 0,'FLRPLAN_2')
^--- you're always looking at the first row
rf: http://www.php.net/manual/en/function.mysql-result.php
-Original Message-
From: markbm [mailto:[EMAIL PROTECTED]]
Sent: T
on 23/07/02 8:34 AM, B i g D o g ([EMAIL PROTECTED]) wrote:
> What does the "," and "{}" do in this type of statement?
>
> Example: echo "{$strName}", htmlspecialchars( $teststr );
Not sure about the comma, but the {braces} are easy. They help separate the
$vars from other stuff in the strin
Hi,
I am having problems passing variables in a url specifically when there is
an & sign. Any suggestions?
Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I changed this line, it still gives me the same problem. My db field
is a varchar(125)...could that have anything to do with it? Basically, the
first time, without data in the field...it works fine and the is not
displayed, but when I add data back into the field, nothing changes...its
lik
Greg,
Your attitude stinks.
PHP is a FREE scripting language. Think about the amount of money you are
probably charging hosting clients, or charging in web or programming
services, or making in site revenue, or whatever way you 'commercially
function' through PHP.
The register globals 'imposit
using header() should work if you don't output anything before it. If you
can restructure your code so that you can remove any output until after the
header(), then that'd be the way to go.
You said the meta refresh didn't work - did you get the syntax right? Since
I don't use it much, it's one o
I pointed this out to you in my original post:
you mail() call should be:
mail($MailToAddress, $MailSubject, $Message, "From: $MailFromAddress");
not:
mail("$MailToAddress", "$MailSubject", "$Message", "From:
$MailFromAddress");
In other words, I don't think you should wrap plain $vars in dou
what about
if (strlen($result["FLRPLAN_3"]) > 0)
-Original Message-
From: markbm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with Not displaying HTML if data not found
I am trying to develop a page that, in certain pla
Hi,
A site I'm working on requires a login screen where various individuals
will log into the site and add information for their various
departments. Rather than setup a different script for each department, I
was hoping to create one script that would either accept or deny a login
based on
I am trying to develop a page that, in certain places, I only want it to
display the and s if data is found for a given field. For example,
if I only have an image for the first floorplan of a house, I do NOT have
an image for the second floorplan of a house, then show the first floorplan
imag
Hi,
Tuesday, July 23, 2002, 5:16:43 AM, you wrote:
N> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message
N> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hello Nick,
>>
>> Monday, July 22, 2002, 8:47:39 PM, you wrote:
>>
>> N> i get php to allocate a colour then make it transparent using
>> N>
On Tuesday 23 July 2002 11:09, eat pasta type fasta wrote:
> I'm using mysql to hold references to image files then served on my pages
> via PHP.
>
> I have typically a set of two files:
>
> thumb and a large original, on occasion there is also a variant inreasing
> the set to 3 per image
>
> curr
I think I'm pretty close to getting this right (maybe!), I've been reading
through the manual, but can't seem to work it out. I keep getting this
error:
[Mon Jul 22 19:03:24 2002] [error] PHP Warning: Supplied argument is not a
valid File-Handle resource in index.php on line 66
I'm trying to op
On Fri, 19 Jul 2002, Michael Hall wrote:
> This is sort of off topic, but can anyone tell me why my Pine email client
> displays "To: Somebody Or Other" rather than my name "Michael Hall"
> whenever I send an email to this list?
>
> I have attempted to fix this many times but cannot for the lif
Thanks :)
"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> > -Original Message-
> > From: Sailom [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 23 July 2002 12:53 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Getting current URL
> >
> >
>
I'm using mysql to hold references to image files then served on my pages
via PHP.
I have typically a set of two files:
thumb and a large original, on occasion there is also a variant inreasing
the set to 3 per image
currently I am holding all of the files in 1 directory since the DB can
kee
hi i am trying to implement error handling in a join page, i would like to
try and use one page if possible and then go through in steps like ?step=1
etc , i would like to be able to return form variables to the previous step
if there is an error, how could i do this ?
--
PHP General Mailing L
> -Original Message-
> From: Sailom [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 23 July 2002 12:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Getting current URL
>
>
> This might be a silly question.
> Just like the subject, how to get the current URL? I want to
> make a reload
> butto
I want to store image data into mysql table using BLOB but I don't know how to read it
after. To record the image, I doesn't have any problem, but to read the file after and
to view the image, I can't do anything the variable show only comment like this:
memobin24.bin
So how can I do?
This wa
On Mon, 22 Jul 2002, Greg Donald wrote:
> Not only did I get to re-write all my apps the past few months because of
> the new register_globals default that was imposed by `the php group`...
You didn't have to. The choice was given to you, for your own good. If you
have very disciplined programm
This might be a silly question.
Just like the subject, how to get the current URL? I want to make a reload
button by making a form and direct user to the current page.
Sailom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Tuesday, July 23, 2002, 5:16:43 AM, you wrote:
N> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message
N> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hello Nick,
>>
>> Monday, July 22, 2002, 8:47:39 PM, you wrote:
>>
>> N> i get php to allocate a colour then make it transparent using
>> N>
"r+" allows you to read and write... if that's what you wanted (I think it
is). Note that it will write over any data that is behind the location of
the file pointer (so write to the end of the file).
"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>
>>$MailToAddress = [EMAIL PROTECTED];
No quotes around the e-mail address.
>> $Message .= "\n\n$HTTP_POST_VARS[Footer]";
You left out quotes from "Footer"
"Dean Ouellette" <[EMAIL PROTECTED]> wrote in message
00b901c231e6$30300e10$9c89adac@yoda">news:00b901c231e6$30300e10$9c89adac@yoda...
> I
I was thinking it was obvious because otherwise I'd have just been using
that and not even posted about the "a/a+". Using "a" works in the way that
it is supposed to (it starts at the end), but what I wanted was to use
append and then just append to anywhere in the file.
Currently to get that do
>>I want to be able to view a single log that contains the following:
>
>http://php.net/error_log
>
how about this curve... getting PHP to append a line to the apache log.
Currently we are exporting via fopen clf formatted logs for file uploads (whose
file sizes are not recorded by Apache's l
> I've got a small question. Does php provide any function to group a
number
> like 3193576 into 3.193.576 ? Just reads easier when the hits for my
> website are being displayed ... Or if php doesn't have a function for
it
> ..
> anybody any good suggestions on how to do it?
number_format()
---
> I have a column in a mysql table with a timestamp. The value of this
> column
> is for instance:
>
> 20020722185242
>
> How do i change the format on this to "DDMM" (22072002) in php?
SELECT DATE_FORMAT(date_column,'%d%m%Y') AS Formatted_Date FROM
your_table
There's no need to involve PH
I am running this on php 3.0
I have read every document I could find on the web, and cant figure out
why this form submission is not working.
No errors, just does not sent the e-mail to my account
> -Original Message-
> From: David Robley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 23 July 2002 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: does this mean
>
>
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> says...
> > hi all,
> >
> > I'm tring to make a script
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> hi all,
>
> I'm tring to make a script to prompt for a username & then a password =
> for that user onto the actual machine rather than just a web site...
>
> now i've come across this this line in some documentation
>
> if ( $File =3
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> well, i solved the last problem on my own but now i need help on my new one
> :-)
>
> how do you convert text to hexadecimal with PHP?
>
> --
> Regards,
> Georgie Casey
> [EMAIL PROTECTED]
If you are asking what I think you are asking
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> I have a column in a mysql table with a timestamp. The value of this column
> is for instance:
>
> 20020722185242
>
> How do i change the format on this to "DDMM" (22072002) in php?
>
> Thanx
>
> -R
You can do it as you get it o
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> getservbyname takes in the following arguments:
>
> getservbyname(string service, string protocol);
>
> is the parameter service similar to those diefined under
> unix's /etc/services file or is there something else
> to it?
>
> Thank
well, i solved the last problem on my own but now i need help on my new one
:-)
how do you convert text to hexadecimal with PHP?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP
As Demitrious said, use mysql to do it.
But if you want to use php, just use substr(), since all the numbers are
there, there's no point converting to unix time, just to convert it back
again... unless you're going to do some maths of it
-Original Message-
From: Demitrious S. Kelly [mail
Is the timestamp in UNIX format?
if yes, try date() http://www.php.net/manual/en/function.date.php
if no, try substr()
hope that helps :)
- Jeremy
- Original Message -
From: "Ragnar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 7:42 AM
Subject: [PHP] Formating
hi all,
I'm tring to make a script to prompt for a username & then a password for that user
onto the actual machine rather than just a web site...
now i've come across this this line in some documentation
if ( $File = popen( "$useradd_prog $useradd_name", "r" ) )
{
.
.
.
now to my actual ques
>Not being an expert in php..i couldnt understand the vulnerability.
>Can someone shed some light here.
Very short explanation:
Upgrade.
Now!
Longer one:
If your web-site has *ANY* FORM tags on it, and you have PHP
ready-and-waiting to process those FORMs, then somebody could manage to
create
>Hi ...
>
>I want to be warned about php security issues, I couldn't find
>an exact match in the mailing list names ... which one do you
>recommend me?
I believe that the Announce list would have any critical security warnings
sent to it.
It's also very low-volume.
--
Like Music? http://l-i-e
>Tried to check the archive, but it is offline...
>
>What does the "," and "{}" do in this type of statement?
>
>Example: echo "{$strName}", htmlspecialchars( $teststr );
The {} makes it *VERY* clear to PHP that $strName is a variable to be
"interpolated" into the string.
This Programmer has ac
>Yes, that's exactly what I want to do. But HOW do I do it?
>
>i.e. I'm sitting in my accept connectinos loop in the chat daemon
>
>While(true)
>{
> //waitforenwconnection
> $new_connection_id=socket_accept();
>
> //got a new connection, go process it
> go_do_this_in_a_new_thread($new_connection
>Hi,
>
>I have been running 4.1.2 for a while with no problems. This morning, I
>downloaded 4.2.2, did a configure/make/make install. All seemed to have
>gone well. However, it broke all my sites that use PHP. Here is a
>description of how it appeared to be broken. This is just an example,
>getservbyname takes in the following arguments:
>
>getservbyname(string service, string protocol);
>
>is the parameter service similar to those diefined under
>unix's /etc/services file or is there something else
>to it?
Just based on the docs, I'd have to say you simply have to have a "match"
f
>Below is how the decide.php script registers the variables.
>
>session_start();
>
>
>if (!$phpsessid)
> {
> session_register("$employee");
session_register('employee');
Right now, you're registering the variable named something like 'Bill Jones'
which isn't even a legal variable name.
--
Lik
>Hi, tried this on mysql list, no luck:
>
>I want to be able to view a single log that contains the following:
>
>IP of user : page_name (PHP only): time/date: MySQL query ( 'select *
>from xxx' etc.) : error msg from mysql/php if any
>
>So it's almost a hybrid between apache and mysql with some
>I am trying to execute a Script running a telnet command
>testing through a range of IP connections...
>Here goes:
>
>$str = "123.456.789.";
>$count = 0;
>
>while ($count < 999){
>$runTheScriptCommand...
>}
>?>
>
>What I want to stick into the while loop is if connection
>
>What are some good e-commerce stores written out there for PHP and mySQL??
I got tired of this question cropping up all the time, years and years ago.
Your answer lies here:
http://l-i-e.com/compare/
:-)
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www
>On Mon, 22 Jul 2002, Marko Karppinen wrote:
>
>> PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
>
>Not only did I get to re-write all my apps the past few months because of
>the new register_globals default that was imposed by `the php group`...
You could have just *CHAN
>Hi,
>
>I'm not sure how to do this but I have a form which I wish to do the following.
>
>When the uses clicks the "submit button", I wish to perform a check where I
>look for a value in a MySQL database. If found, I need
>to return an error page telling the user that the value already exists.
>Well, trying to updrade on Slackware Linux 8.0 and compiling with the GD
>(1.8.4) libraries are giving us some headaches. Some of what seems to be
>wrong;
>
>phpinfo() does not show new build times for each compile, not seemingly a
>caching problem (we have shut down browsers and then re-opened t
>My question is what can I do if someone searches for php script for search?
>
>I would want to use OR in my SQL statment. The problem is how do I write the
>query so that it will detect the number of words sent then put enough ORs
>and LIKE '%$search[1]% in?
The LIKE operator will cheerfully ret
>i get php to allocate a colour then make it transparent using
>imagecolortransparent()
>
>instead of turning it transparent it becomes black.
>
>Is it something i'm doing wrong? can anyone help me?
Show us your code.
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (
>Is there a way to display an image withouth sending the headers first?
Not reliably.
*SOME* broken browsers will use the apparent "filename" in the URL to decide
what kind of document you are sending, even if you *DO* send the headers!
Grrr.
So you really want your URL to "end" (before any ?) i
>This may be a pretty naive question.
>Do we have to use the key word
>session_register("variablename");
>in every single page, in which we plan to use the "variablename"?. Or is it
>possible that we register the variablename once, and in the subsequent pages
>continue to access it using $variabl
>I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but,
>within a custom function() this array appears empty. In the calling script,
>however, the $HTTP_SERVER_VARS[] array is defined.
>
>I thought this was supposed to be "superglobal" and available on every
>level? If not, is t
>Is there much of a difference in speed or efficiency between INCLUDEing
>files in a script or loading data from a database? I'm building a dynamic
>menu system for a website and not sure if it would be faster to store button
>data in a DB or just do it with Included files.
How fast is your hard
>Is there any way to fseek (or something to the exact same effect) a file
>opened with "a" or "a+"?
>
>I've tried rewinding and fseeking appendable files, but neither work.
>
>Opening up in "r+" gives me part of the desired result, but if where I want
>to write is not at the end, it writes over th
That's basically what happens in forking and threading. More "PHP.EXE"
processes appear, even on *nix.
- Original Message -
From: "David Buerer" <[EMAIL PROTECTED]>
To: "'Evan Nemerson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 6:35 AM
Subject: RE: [PHP] Windo
number_format()
Wouter Van Vliet wrote:
>
> Heey Listers,
>
> I've got a small question. Does php provide any function to group a number
> like 3193576 into 3.193.576 ? Just reads easier when the hits for my
> website are being displayed ... Or if php doesn't have a function for it ..
> anybod
Yeah .. the php function date shud do it .. if only the timestamp would be
in the correct format. I've been wrestling with it too, best way to do it
for me was using some substr() calles to extract year, month and day from
it.
anybody better ideas?
--
Alle door mij verzonden email is ca
Select TIMESTAMP(date_column) AS mydate
Then when you display it use the date function
DATE('mdY',mydate)
-Original Message-
From: Ragnar [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Formating datevariables...
I have a col
Heey Listers,
I've got a small question. Does php provide any function to group a number
like 3193576 into 3.193.576 ? Just reads easier when the hits for my
website are being displayed ... Or if php doesn't have a function for it ..
anybody any good suggestions on how to do it?
(it's not fully
Why not let mysql do it? It has a function do to exactly that, I
think...
But php's date() is the function you're looking for...
-Original Message-
From: Ragnar [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Formating datevariables...
I have a column in a mysql table with a timestamp. The value of this column
is for instance:
20020722185242
How do i change the format on this to "DDMM" (22072002) in php?
Thanx
-R
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Evan Nemerson wrote:
>
> If you need register globals on for your old stuff, but want to write better
> new code, you can just use in your new
> stuff.
You can't do this in a php file... by the time it gets to this line,
it's too late.
According to the set_ini function on php.net, register_glo
I remember from a previous post, the dot operator will create a temporary
string in memory, and then echo that out. The comma operator will just
output as it goes - ie. it doesn't create a temporary string.
As for Lee Doolan's reply:
echo "{$obj->strName[$i]}";
interesting - never thought of d
Okay im not sure i understand you- you want to create a page where it will
suck an item out of a database, and use it to choose which item in a drop
down menu should be selected?
If so, you can try something like
>Action
>Comedy
>Etc.
On Monday 22 July 2002 16:07 pm, Raymon
> I have a site with all my movies and stuff stored in a database. And I
> have
> made a admin page where I can add, delete and update records. When I
add
> new
> records, I have made a listbox for the category (ex. action, comedy
etc.)
> so
> I dont have to write it every time I add a new record.
Thanks all for the info...
I figured that the comma was to concatenate but is was wondering if the
parser handled it different.
I knew the {} helped the parser now which was the variable...but i have
never seen it like that...
I have only seen it like ${var}...
Just wondering the difference...
1 - 100 of 219 matches
Mail list logo