simple.
get total KB (1k = 1024 bytes)
divide that by 60 (seconds in a minute)
now you have estimated transfer time in minutes.
> -Original Message-
> From: Rhett Hermer [mailto:[EMAIL PROTECTED]]
> Subject: [PHP] calculate download time
>
> Hi,
>
> I am trying to write code to find ou
keep the current user's IP address or timestamp in a
database with the session ID.
if the session is requested by someone with a different
IP or too-late timestamp, give the requesting user a
new session.
> -Original Message-
> From: adam (dahamsta) [mailto:[EMAIL PROTECTED]]
> Sent: Wed
haha...
i had been trying to compile PHP 4.0.5 and previous with
the GD library, and it was giving me all sorts of bizarre errors,
but when i downloaded PHP 4.0.6 and tried to compile it
against GD, it worked beautifully not a single error.
:)
> -Original Message-
> From: [EMAIL
read the manual... there are lots of ways to
replace/change characters. :)
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 4:48 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] Function
>
>
> Hi,
>
> Is t
I believe its
how_many_times_client_changes_mind * (man_hours * 2) * rate =
what_your_time_is_worth
provided that
(how_many_times_client_changes_mind * (man_hours * 2)) + other_projects_time
< 18hr/day of programming
Think of the project overall and make sure to sit down with the client and
Say you want to pass three variables:
color = blue
name = Bob
day = Monday
here's the link
click here
Pretty simple!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrato
i've never done this myself, but a suggestion would
be to check out: 'auto_append_file' and 'auto_prepend_file'
they're php.ini directives.
for example, try adding "auto_prepend_file 'stuff.php'"
to your php.ini
when PHP goes to load a page, it'll first check to see if
'stuff.php' can be found,
I'm trying to from a file in a directory called 'logs'. I've never seen
this error before. What does it mean?
<<>>
Warning: fopen("logs/993700800.log","w+") - Permission denied in
/home/sites/site20/users/guide/web/counter.php on line 28
Warning: Supplied argument is not a valid File-Handle re
Does know of anyway to get PHP to return the week number?
As in there are 52 weeks in a year and this is week x?
If there is no internal feature, perhaps something built into PHPLib?
Lemme know,
Matt "TrollBoy" Wiseman
Webmaster: Shoggoth.net
Site Designer: phpslash.org
The oldest and strongest
1) read apache and named docs so you know what changes
need to be made, and where to make them
2) update 'httpd.conf' and the domain's 'zone' file
3) restart both 'named' and 'apache'
4) copy an 'index.php' into the subdomain's newly created directory.
there are probably better ways to do
I had a site that was working fine and now gives this error.
Warning: Unable to fork [C://winnt//system32//pfpro connect.signio.com 443
"TRXTYPE=S&TENDER=C&USER=username&PWD=password&ACCT=56532325168784512&EXPDAT
E=0102&AMT=11.95&NAME=Jeff Rossi&STREET=1506 Tuscaloosa Ave&CITY=Holly
Hill&STATE=Fl
on 6/27/01 1:49 AM, ReDucTor leaped tall buildings, and wrote:
> EditPlus is the best program EVER
>
> I use it for every thing... :) :)
BB Edit is the PHP coder of choice on the Mac side. It does everything! It
also has a great PHP library so you don't have to manually type redundant
cod
I've already compiled and tested the communication betwen PHP (cURL module
included) and Vpos. The only problem I'm actually facing is how to process
the curl's answer.
-Mensaje original-
De: Richard Lynch [mailto:[EMAIL PROTECTED]]
Enviado el: Wednesday, June 27, 2001 2:16 AM
Para: [EMA
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Michael O'Neal) wrote:
> So, on to the next question. Has anyone seen an app that can send digital
> cards, where a user can choose their picture, and add whatever text and font
> they want, then send to as many people as they want?
Some conve
You can use PHP4 under win32 (CGI Binary) and use the DCOM
Interface to access excel. Search with google and some
appropriate keywords.
- Markus
On Thu, Jun 28, 2001 at 11:00:19AM +0530, Sharat Hegde wrote :
> Hello,
>
> I have a web site on a Unix environment running PHP 3.0 and MySQL.
>
> I
Very strange situation, PHP Version 4.0.3 on one of my production web
servers has started to loose different functionality?? The OS is
Apache/1.3.12 (Unix) (Red Hat/Linux 6.2) PHP/4.0.3 mod_perl/1.21, PHP was
compiled as a module with apxs. The strange thing is, some virtual host
directories have
implode
see manual/function.implode.html
Chris
Date sent: Thu, 28 Jun 2001 17:34:41 +0530
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:[PHP] Convert
> Hi
>
> How do I convert arrays to string ??.
>
> ~ Karthick
>
>
I have a form that is in a pop up window it has an image for a submit
button how can I close the pop up after submitting. I know I can do it
with javascript with a standard submit button. but how can I do it when
I use an image for a submit button
Best regards,
Ric
I have an array, $field, like following:
Array ( [0] =>
Array ( [0] => Array ( [disp] => computer
[index] => computer )
[1] => Array ( [disp] => or
[index] =>
I have an array, $field, like following:
Array ( [0] =>
Array ( [0] => Array ( [disp] => computer
[index] => computer )
[1] => Array ( [disp] => or
[index] =>
Hello all,
Can anyone see what's happening here?
I'm trying to pass some variables (font stuff) to a cgi script so that it
will appear the same as the current theme being used.
Everything seems to be working except the replacements. here's the code. Any
help much appreciated, thanks!
Or would t
Hello, everyone. I've been reading the list for a few years now and wanted
to let you know that I'll be giving a talk on "Data Mining and Web Security
With PHP" this year. I'll be speaking on Friday afternoon so anyone in Las
Vegas the weekend of July 13th who's interested please attend! For more
Title: ADD a user in linux using PHP
Hi! I'm Bruno, from brazil
Somebody knows how to create a new user in LINUX (not http server) using PHP?
Something like useradd and passwd
Thanks,
Bruno.
Jochen
Except when it is compiled in standalone mode, PHP works through a web
server. Judging from posts on the list, Apache is the best bet, rather
than MSFT's PWS or IIS.
If you're running XP, do a test and share the info!
Miles
At 05:47 AM 6/28/01 +0200, Jochen Kaechelin wrote:
>Wil
Are you getting an Excel2000 file and don't have Excel to open it? Just
have it sent to you as CSV (Comma Separated Values) rather than XLS; that
would be easy to parse. If you have direct access to the MySQL box, copy
the file there and do the import directly. Check the MySQL docs.
A more el
Adam,
They way I got around this was to create a session key using a MD5 hash of
the session id and the user's IP address. The username, session id and
session key are then stored in a MySQL table. Every time the user loads a
page I want secure, it re-creates the session key and checks to make
Title: GIUGNO NEWS1
GIUGNO: INVITO AD
UNA VISITA
Gentile Sig.re/ra buongiorno,
vorrei invitarLa ad una visita del
nostro
sito www.prosoft.it e,
per non
farLe inutilmente perdere del
In PHP I try to run a shell command with the following source code:
$fotonaam = 'convert -font arial -pointsize 20 -gravity center -fill
white -draw "text 5,5 VERKOCHT" image.jpg image2.jpg';
exec($fotonaam);
PHP runs the program but the -draw "text 5,5 VERKOCHT" is not executed
(there is no VER
I use this to replace URLs as links:
$text = eregi_replace("(http://[^ ]*)","\\1",$text);
What can I use to replace email addresses (like "[EMAIL PROTECTED]") as
e-mail links?
kind regards,
bill hollett
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECT
I upgraded php3 to php 4.0.6 on Linux 2.2.19+apache 1.3.17+sybase 11.9.2 and
my phplib stoped to work. I am using Cart class and Sessions etc. Page_close
sends the message:
Database error: Invalid SQL: insert into active_sessions ( sid, name, val,
changed ) values
('62298a7def668dff3a8b417a4f0ad7a
Bill
I grabed this function from the www.php.net manual and it works great, it
covers all your bases, except that it will show you http://www.something.com
for http://www.something.com or www.something.com. If somone knows how to
modify it so it would only show www.something.com when linked, tha
This varies greatly depending on where you are... For example here on Long Island I
can make $60-80 / man hour, but in New York City I can make as much as $150 / man
hour... It also depends on what you are doing.
Hope this helps,
Julia
Quoting Alva Chew ([EMAIL PROTECTED]):
> Hi everyone,
>
On 6/28/2001 2:49 AM this was written:
> I am working as a freelance programmer. Problem is I don't really have a
> clue how the pricing mechanism in the industry works. I have heard
> calculations based on man hours and lines of code, so perhaps anyone one can
> tell me on the average, how much
Parse error: parse error in
/local/Web/sites/phpweb/include/shared-manual.inc on line 265
Fatal error: Call to undefined function: sendmanualheaders() in
/local/Web/sites/phpweb/manual/en/getting-started.php on line 3
HELPPP!!
:)
Rom
--
PHP General Mailing List (http://www.php.net/)
T
David Price <[EMAIL PROTECTED]> said:
> They way I got around this was to create a session key using a MD5 hash of
> the session id and the user's IP address.
>
>
> I know that the IP address can be spoofed, but I'm not sending the session
> id in the url, so no one knows what it is and without
On 27-Jun-01 Tim Ward wrote:
> I've finally got a mail client running on our web server and it works fine,
> except in the time it takes to run the mail() function. I've put diagnostics
> round the call and it seems to be taking 22 seconds to return. All I'm doing
> is forwarding the results of a
Hi there. I'm completely new in PHP so I apologize for this question. I've
download and read PHP manual but I didn't found how to pass parameters from
one .PHP to another .PHP file. I'm not trying to send variables from a form
using $HTTP_POST_VARS[ ], but pass via .
Please tell me what is the con
Title: ENC: ADD a user in linux using PHP
-Mensagem original-
De: Bruno Freire
Enviada em: quinta-feira, 28 de junho de 2001 11:31
Para: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Assunto: ADD a user in linux using PHP
Hi! I'm Bruno, from brazil
Somebod
Hi all,
The dll is not broken.
The type UNIQUEIDENTIFYER is a 16 byte binary value and is returned as such.
With versions of the php_mssql.dll distributed with php4.0.5 or before did not include
proper support for binary data. This has been changed in php4.0.6.
I have hust added a small funct
Hi !
I think the simplest thing to do is to convert your excel file to a CSV
file (it an ASCII format ).
jean-arthur
At 17:16 28/06/01 +0530, Sharat Hegde wrote:
>Hello,
>
>I have a web site on a Unix environment running PHP 3.0 and MySQL.
>
>I need to convert data in an Excel format to a MyS
php-general Digest 29 Jun 2001 15:14:33 - Issue 726
Topics (messages 55538 through 55544):
PHP Not Working
55538 by: Black S.
Re: Convert
55539 by: Chris Hayes
closing window after submit
55540 by: Richard Kurth
(slightly OT) the bad and the good (hosting recommen
Title: passwd in php
Hi...
My name is Bruno.
Somebody Knows how to use passwd in php?
I mean, create linux users on my httpd server using a php page.
I already try the EXEC(), but i had no sucess..
Any help will be needed
Thanks everyone
Hello Pepe,
Thursday, June 28, 2001, 6:05:48 PM, you wrote:
PL> I want to encrypt mails coming from my webform with pgp. Is it possible?
It is possible. Also, If you had been chosen GNUPG instead of PGP you
could use the class located at
http://phpclasses.upperdesign.com/browse.html/package/24
Hi all
I'd like to know how small my content gets when i use
ob_gzhandler.
so far i tried
$cont=ob_get_contents();
$length=strlen($cont);
echo "\n";
but it outputs
while apache says in its logfile:
217.81.41.121 - - [29/Jun/2001:12:43:59 +0200] "GET / HTTP/1.1" 200 2028
i'm starting to get
Hi
When you start a session for the first time store remote host info and
validate it on subsequent accesses.
Tom
At 10:48 PM 28/06/01, [EMAIL PROTECTED] wrote:
>Hi adam!
>On Wed, 27 Jun 2001, adam (dahamsta) wrote:
>
> > [Please copy replies off-list.]
> >
> > I want to use PHP4 sessions for au
On Thu, 28 Jun 2001, CC Zona wrote:
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] ("Adrian D'Costa") wrote:
>
> > 1. Open the html file in read only mode
> > 2. Start reading the html file till I encounter a tag (I don't know
> > how to do this)
> > 3. Grab that data after the tag
Hi all,
Can anybody give me a guideline or idea on how to write a PHP scriot
which is used to create a domain or sub-domain and a default page and a same
time. My OS is Red Hat Linux 6.1.
For example, in my program, when i press "activate' button, the script
will create me a sub-domain
Hello!
Can anybody help me with some problem?
Here it is.
I need to create PNG image with PHP script.
When I try to create the image with ImagePNG(), I get warning: "PHP Warning:
imagepng: unable to open temporary file in ../../include/Gr_sektor.php on
line 413". Image is not created, as you ar
I have found the problem with my previous post and PHP functions no longer
working. It seems the code:
include("http://www.domain.com/path/to/file.txt";);
no longer works? If I type in a complete directory path then it works great,
but no Internet include, any one know why?
Thanks
--
PHP Ge
It is possible, but I have not found any good tutorials on the subject.
There is one on Web Monkey at this address:
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial1.html
All the commands were wrong for the PGP version (6.5) that was loaded on my
web server. I found that th
On 28 Jun 2001 02:08:20 -0700 impersonator of [EMAIL PROTECTED]
("elias") planted &I saw in php.general:
>It all depends on your experience and knowledge.
>You know that if you're too experienced you can save lots of research and
>learning time.
>therefore you have to estimate how much does your
I'm trying to fix two regular expressions to work with the new break
tags.
This
$breaks=preg_match_all("/\s+/i", "$text", $parts)
and this
preg_replace("/\s+/i","",$text)
Now that PHP 4.0.5 has changed the nl2br() function, it no longer
replaces new lines with:
but instead with the new XH
anyone got a simple threaded message board where the poster doesn't have to
login but can leave there name. OR anyone modified the nuke forum so
anonymous users can leave their name?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
On Thu, 28 Jun 2001 04:44, Nathan Cook wrote:
> Hello-
>
> I am selecting a value from a blob field in a mysql db. The value
> looks like this:
>
> Test 12...3 \r \n %0%D Test
>
> When I print that value in a $value -- The
> textarea returns exactly what you see above. I am trying to get it
> I want to use PHP4 sessions for authentication,
Ok, stop right there. Sessions and authentication have nothing to do with
each other. To create a secure authenticated site you should be using
HTTP-based authentication over SSL. Sessions are simply for maintaining
state across http requests a
Hello!Can anybody help me with some
problem?Here it is.I need to create PNG image with PHP
script.When I try to create the image with ImagePNG(), I get warning: "PHP
Warning:imagepng: unable to open temporary file in
../../include/Gr_sektor.php online 413". Image is not created, as you are
Somewhere, some time ago, i saw a rountine, C, C++,
php, some language that provided a rountine to reduce
brackets in a logical expression to the fewest number
of brackets possible (much like mysql does), for ex:
((a and b) or (a and c)) would be reduced to:
(a or c) and b
not a very good examp
Hi everyone,
I have a new user function that checks e-mail addresses.
I wish to only allow people from two different domains to register.
How can I filter out all other e-mail addresses and return an error if it's
not from those domains.
Here's what I have:
if ((!$email) || ($email=="") ||
(!er
Okay, here's what I have so far:
---snip---
if ((!$email)
|| ($email=="")
|| (!eregi("^[_\.0-9a-z-]+@domain.+[a-z]",$email))
)
$stop = ""._ERRORINVEMAIL."";
---snip---
This works, but how can I add a second domain?
ie:
---snip---
if ((!$email)
|| ($email=="")
can anyone tell me how to configure a php script so that it can only be
accessed by other scripts and not directly by typing its url in the
webrowser?
-petur
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Hi,
I've been having some very wierd problems using arrays and the database
functions for mysql_fetch_array and mssql_fetch_array. (Running on Windows
2000). Please see the comments in the code below.
#connect to the ms sql db
#(the problem also occurs when using a mysql db)
$connsrc = ms
How about Developers Pad? It's free, and open source ;-) (but unfortunately
for windows only)
http://www.developerspad.com/
Regards,
- James
Editor, VB Web
==
Web - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ# - 60612011
Fax - +44(0)8707052859
==
>
Yes, here's some code, adapt to your needs.
-Original Message-
From: Pepe Lopez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 10:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP & PGP
Hi there,
I want to encrypt mails coming from my webform with pgp. Is it possible?
regards,
Scott,
All your method does is come up with how many kb/s you would need to achieve
to transfer the file in 1 minute.
To estimate how long it would take with a 28.8 modem connection (many sites
do this), I would do something like the following:
-- 28.8Kbps Modem (that's kilobit, not byt
class eZGPG
{
/*!
\static
Encrypt function
*/
function eZGPG( $plaintxt, $keyname, $wwwuser)
{
$this->keyname=$keyname;
if ( sizeof( $this->keyname ) == 0 )
$this->body = "WARNING: No Keys Specified";
$this->pcmd = "echo '$plaintxt' | ";
Remember that the cgi version does not support PHP authentication. the DLL
version does!
Brave Cobra
-Original Message-
From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
Sent: donderdag 28 juni 2001 15:08
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP crashing IIS 5 on Wnidows 2K
I had PHP
>> I had the same problem:
>>
>> So I tried stripslashes..
>> But Queries do break if unslashed ' or " are present.
>> and furthermore, there are many other problems ..
>>
>> So I created a function called "entities"..
>
>Why don't you simply use addslashes () again when you put the stuff into
>th
you can use array_walk
array_walk
(PHP 3>= 3.0.3, PHP 4 >= 4.0b1)
array_walk -- Apply a user function to every member of an array
Description
int array_walk (array arr, string func, mixed userdata)
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc:
possible? yes.
feasable? yes and no...
1) encrypting traffic from the user's browser to your
server is extremely impractical.
2) encrypting information on the server with PGP
is a whole lot easier... there are a bunch of
PHP -> PGP interface packages i've seen around,
so do some searching and se
how would i flip an image horizontally using the GD library in PHP?
Noah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Adrian D'Costa") wrote:
> > > 1. Open the html file in read only mode
> > > 2. Start reading the html file till I encounter a tag (I don't know
> > > how to do this)
> > > 3. Grab that data after the tag (and then what?)
> >
> > See
Quick question to the powers that be. With the current implementation of
objects and such, how flexible is unserialize and serialize.
I am currently building a large object oriented web application, and I have
a pile of moduls and definition files stored to disk as serialized objects.
Just wonder
On Thursday 28 June 2001 12:44, Alva Chew wrote:
> Thanks for the advice, what about charging by line of code? how does
> that apply?
Don't.
Lines of code are a terrible measurement. Good programmers often write
code that has more functionality, is more maintainable *and* is much
smaller than
On Thursday 28 June 2001 10:44, Delbono wrote:
> I had the same problem:
>
>
> So I tried stripslashes..
> But Queries do break if unslashed ' or " are present.
> and furthermore, there are many other problems ..
>
> So I created a function called "entities"..
Why don't you simply use addslashes
there's also join() (which is the exact same as implode)
but might help you remember that it's joining the elements
of an array together into a single string.
> -Original Message-
> From: Alva Chew [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 9:00 AM
> To: [EMAIL PROTECTED]
Something was changed between 4.0.5 and 4.0.6 and now there is no way to determine the
host name of the local host from a PHP script when executed in Apache. The output of
phpinfo shows that the HOSTNAME environment variable that existed in 4.0.5 is not
available in 4.0.6. This affects the retu
"Pepe Lopez" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I want to encrypt mails coming from my webform with pgp. Is it possible?
this hack might help you
http://alt-php-faq.org/#id65
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
rename either the function or the class.
class Display_Records {
function display_records($row, $record_count) {
$current_date = (date("Y-m-d"));
$age = ($current_date);
return $age;
}
function disp_rec($row, $record_count)
Yes, it will work.
I know somebody, who has installed Apache 1.3.20 and PHP 4.0.5.
> --- elias <[EMAIL PROTECTED]> wrote:
> > From pop_server."8745454"@pop.gmx.net Thu Jun 28
> > 17:53:33 2001
> > Return-Path:
> >
> <[EMAIL PROTECTED]>
> > X-Flags:
> > Delivered-To: GMX delivery to [EMAIL PRO
Have you some program for convert Microsoft Access Database (*.mdb) to the
MySQL database ?
Thanks
Roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list admini
This is weird. Did I only imagine that PHP allows numerical referencing of
associative array elements? 'Cuz suddenly the parser is calling all the
numerical references "undefined".
ex.
$my_arr['foo']='first';
$my_arr['bar']='second';
$my_arr['more']='third';
echo "" . $my_arr
The user the web server runs as (often 'nobody') does not have write access
to the logs directory.
- Tim
http://www.phptemplates.org
- Original Message -
From: "Jimi Malcolm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 3:17 PM
Subject: [PHP] What does this
No.. if you are referencing $my_arr['foo'] ==> then $my_array[0] will not be
set. I think it used to work that way, but it stopped. If you want to
print it out... use $my_array['foo']
If you don't need the associative referencing, you can just use $my_array[],
which will set $my_array[0]
If yo
read the manual!!!
there's a set cookie function built into PHP.
> -Original Message-
> From: Jason Stechschulte [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 9:30 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] looking for a class that handles coo
That sounds like a unix answer, I should probably have said that my web
server is NT running Apache.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message-
Okay, I'm absolutely certain that there's a simple solution to my problem,
but my forehead is getting sore from banging it against the wall, so I
thought I'd pick y'all's brains.
I'm using a form to upload a number of files named $input_form_$i where $i
is from 0 to 5 and the following is my cod
""Matt "TrollBoy" Wiseman"" <[EMAIL PROTECTED]> wrote:
> Does know of anyway to get PHP to return the week number?
> As in there are 52 weeks in a year and this is week x?
> If there is no internal feature, perhaps something built into PHPLib?
How about:
intval( date("z")/7 );
Luke Welling
---
here's a quick-n-dirty way.
$doy = date('z');
$week = (int)($doy / 7);
print $week+1;
but there's one thing to be wary of:
this counts full 7-day weeks, not calendar weeks,
so since the first week of a calendar year might
begin on wednesday or friday, this algorithm might
be a few days off if y
This code works fine with PHP 4.0.5 on Win.
';
}
?>
- Original Message -
From: "Chad Day" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: 2001. június 27. 17:27
Subject: RE: [PHP] problems with round ..
> Yes, it is. I've tried it on a couple different php4 ser
89 matches
Mail list logo