I noticed that PHP4 accepts and does not raise error (notice messages) for
following code.
$arr = array('first' => 'one');
$str = "This is first element of array: $arr[first]";
Question: Is this expected behavior that PHP parse w/o errors?
If this is not a expected behavior and subject to change
Dear all,
Attached are three files I used to demonstrate the problem I'm
troubled with. Some experiments may be required to see the problem.
To put the problem in short, I'd like to ask what the proper way is to
include classA and classB in order to make test.php work? In the attached
f
Dear all,
Attached are three files I used to demonstrate the problem I'm
troubled with. Some experiments may be required to see the problem.
To put the problem in short, I'd like to ask what the proper way is to
include classA and classB in order to make test.php work? In the attached
f
thx very much
oracle statments don't need " but ' and it did exaktly what it should
At 01:30 20.03.2001 +0100, you wrote:
>On Tue, 20 Mar 2001, David Robley wrote:
>
> > On Tue, 20 Mar 2001 03:32, Rudolf Frint wrote:
> >
> > > > I want to insert the Values into my Database like this
> > >
> > >
Very stable.
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Hardy Merrill [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 01:18
To: [EMAIL PROTECTED]
Subject: [PHP] PHP w/ Oracle OCI8 - how stable?
I'm thinking of using PHP to talk to an Oracle database with
the OCI8 interfac
how can i vreate a null/false value for them and how to assing them to
sessions pls ?
""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
996p60$fjv$[EMAIL PROTECTED]">news:996p60$fjv$[EMAIL PROTECTED]...
> It sounds like you are not getting value from unchecked checkboxes.
> When checkbox is
- Original Message -
From: Matthew Delmarter <[EMAIL PROTECTED]>
To: PHP Mailing List <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 6:51 PM
Subject: [PHP] get name of file
> How do I return the name of a file without any extensions or path info.
>
> Eg how do I return "about" from
If you're talking about windows PWS that's probably your path that you set
in the .reg file needs to point directly at the .dll file you chose, whether
it was the isapi or exe. Move the .dll file out of the 'sapi' folder into
the main php folder and you'll probably be ok.
- Original Message -
On Tue, Mar 20, 2001 at 03:53:46AM +0200, Zeev Suraski wrote:
> Merge From Head.
It would be helpful to include the revision(s) from which you are
merging, for future reference.
--
Jon Parise ([EMAIL PROTECTED]) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Scienc
I have switched to a DSL Router (D-Link 704) for my Win 98/NT based
system. The Router has a Gateway IP of 192.168.0.1 and the computer on
which the www server resides is 192.168.0.11.
When I am anot clear on what I should put into the php.ini file. This
does not work:
[mail function]
SMTP = 1
It sounds like you are not getting value from unchecked checkboxes.
When checkbox is not checked, no values are sent to server.
(Radio buttons are the same)
Therefore, you probably cannot register since there is no value for register.
Create value with NULL/False value for checkboxes if they are n
As long as you don't need domain hosting you could go to
http://members.evolt.org. They provide free hosting with MySQL and
PHP and CF.
>I am looking for some sites that host PHP. I can't really afford to
>pay for hosting space anymore, so I was wondering if there were any
>good (free) web
It's working for me. How is your call coded?
"Nicole Lallande" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Sheesh - I forgot - the function is wordwrap()
>
> Nicole Lallande wrote:
> >
> > Hi All,
> >
> > Am trying to use this function which in the manual
Hi people
this is off the topic but I want to change teh DNS setup for one of my site
www.europeanevents.com and I went to http://www.networksolutions.com/makechanges to do
that , but it said the domain was not found in WHOIS database, wherelse I can check up
to chaneg DNS?
Jack
[EMAIL PROTECTE
php-general Digest 20 Mar 2001 03:47:17 - Issue 577
Topics (messages 44567 through 44680):
Searching multiple tables
44567 by: Clayton Dukes
Re: Problems with Linux PHP
44568 by: Liam Gibbs
44611 by: Christian Reiniger
PHP vs Servlet
44569 by: Jesper Blomst
Thank you all for your replies.
The following solved my problem (from David Robley):
--
Also you shouldn't need single quotes around islname - so
your query might look more like:
$result = mysql_query("SELECT islname FROM $table WHERE id=$id");
how can i store checkbox variables into sessions so that i can use them on
other pages ?
i know how to register sessions but simply cant do that with checkboxes.
thx in adv.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
how do you store your checkbox variables in to sessions??
i am loking for that info,
any web page or any tiny little example could work.
thx in adv.
"Adi Wibowo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Mon, 19 Mar 2001, Jose Antonio wrote:
> > I
> How do I return the name of a file without any extensions or path info.
> Eg how do I return "about" from "http://www.domainz.com/about.htm".
Here's a quick and dirty way:
http://www.domainz.com/about.htm";
$url = explode("/",$url);
$num = count($url);
$name = explode(".",$url[($num-1)]);
$doc
i ve no problem with arrays?
just cant register them into sessions.
""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Although, you ask not to refer to PHP manual, there is a function you
probably
> would like to learn.
> (I guess you haven't r
$PHP_SELF
returns the file name..
go to php website manual and serach for it..
john
Matthew Delmarter wrote:
> How do I return the name of a file without any extensions or path info.
>
> Eg how do I return "about" from "http://www.domainz.com/about.htm".
>
> Regards,
>
> Matthew Delmarter
>
> -
matthew,
that'd be a complex regexp...there are lots of books and tutorials on
them...definitely worth learning...
search google for regular expression tutorial...you'll find tons of hits,
like this:
http://gosling.miass.chel.su/books/Perl/3/RegExp_Tutorial.html
-jack
-Original Message-
How do I return the name of a file without any extensions or path info.
Eg how do I return "about" from "http://www.domainz.com/about.htm".
Regards,
Matthew Delmarter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
On Tue, 20 Mar 2001 13:03, Chung Ha-Nyung wrote:
> I found that when I pass the double quote(") through get(or post)
> method, it is transformed into slash + double quote (\").
> Although it seems useful in making SQL query, it's really annoying
> whenever I pass the value to the other php page t
On Tue, Mar 20, 2001 at 11:33:31AM +0900, Chung Ha-Nyung wrote:
>
> I found that when I pass the double quote(") through get(or post) method,
> it is transformed into slash + double quote (\").
> Although it seems useful in making SQL query, it's really annoying whenever
> I pass the value to
tried using
echo $islname; ??
-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Simple PHP 4 and MySQL question about query
Hi,
I'm trying to get a result from the following query:
$result = mysq
On Tue, 20 Mar 2001 12:45, SED wrote:
> Hi,
>
> I'm trying to get a result from the following query:
>
> $result = mysql_query("SELECT 'islname' FROM $table WHERE id='$id'");
>
> Because "id" is a unique key in my table, I know it has only one value.
> What mysql_funtion should I use to echo
http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
you can also turn it off for good in your php.ini
-jack
-Original Message-
From: Chung Ha-Nyung [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 9:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] [Q] double quote(") is
I found that when I pass the double quote(") through get(or post) method,
it is transformed into slash + double quote (\").
Although it seems useful in making SQL query, it's really annoying whenever
I pass the value to the other php page through get/post again.
Can I turn off this feature?
try somethin' like this...
$result = mysql_query("SELECT 'islname' FROM $table WHERE id='$id'");
// For one row.. use a zero
$islname = mysql_result($result, 0, "islname");
// Otherwise, loop through
$islname=mysql_result($result, $i, "islname");
At 02:15 AM 3/20/2001 -, you wrote:
>Hi,
Hi,
I'm trying to get a result from the following query:
$result = mysql_query("SELECT 'islname' FROM $table WHERE id='$id'");
Because "id" is a unique key in my table, I know it has only one value. What
mysql_funtion should I use to echo the result and with what parameters?
(I have tr
Ah, right.
On Tue, 20 Mar 2001, Zeev Suraski wrote:
> Merge From Head.
>
> At 03:52 20/3/2001, Rasmus Lerdorf wrote:
> > > Log:
> > > MFH
> >
> >I must be missing something. What does MFH mean?
> >
> >-Rasmus
> >
> >
> >--
> >PHP CVS Mailing List (http://www.php.net/)
> >To unsubscribe, e-m
sniper Mon Mar 19 17:49:56 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/standard basic_functions.c dns.c dns.h
Log:
MFH
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.315
php4/ext/standard/basic_functions.c:
Merge From Head.
At 03:52 20/3/2001, Rasmus Lerdorf wrote:
> > Log:
> > MFH
>
>I must be missing something. What does MFH mean?
>
>-Rasmus
>
>
>--
>PHP CVS Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To co
> Log:
> MFH
I must be missing something. What does MFH mean?
-Rasmus
--
PHP CVS 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]
sterlingMon Mar 19 17:46:41 2001 EDT
Modified files:
/php4/ext/curl curl.c
Log:
Remove some unnecessary error checking
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.39 php4/ext/curl/curl.c:1.40
--- php4/ext/curl/curl.c:1.39 Fri
sniper Mon Mar 19 17:42:40 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/main SAPI.c
Log:
MFH
Index: php4/main/SAPI.c
diff -u php4/main/SAPI.c:1.100.2.1 php4/main/SAPI.c:1.100.2.2
--- php4/main/SAPI.c:1.100.2.1 Sat Mar 17 18:36:27 2001
+++ php4/main/SAPI
Hey ,
I have been trying to set up some php applications on my local webserver, as part of a
transition from asp to php. I have unzipped the php distro into it's own dir, added in
the ini file, (left it at default setting) and then added the engine into IIS as
described in the install document
sniper Mon Mar 19 17:38:28 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4 configure.in
Log:
MFH
Index: php4/configure.in
diff -u php4/configure.in:1.221.4.1 php4/configure.in:1.221.4.2
--- php4/configure.in:1.221.4.1 Tue Mar 13 08:23:52 2001
+++ php4/
How can I dynamically load the PDF-extension only when
needed?
--
phpArbeitsgruppe in Gruendung - Jochen Kaechelin
Stuttgarter Str.3, D-73033 Goeppingen
Tel. 07161-92 95 94, Fax 07161-92 95 98
http://www.php-arbeitsgruppe.de, mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php
sniper Mon Mar 19 17:32:28 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/fdf fdf.c
Log:
MFH
Index: php4/ext/fdf/fdf.c
diff -u php4/ext/fdf/fdf.c:1.39 php4/ext/fdf/fdf.c:1.39.2.1
--- php4/ext/fdf/fdf.c:1.39 Sun Feb 25 22:06:54 2001
+++ php4/ex
sniper Mon Mar 19 17:22:07 2001 EDT
Removed files:
/php4/ext/xml/tests skipif.php
Modified files:
/php4/ext/xml/tests 004.phpt 006.phpt
Log:
Removed skipif.php + Fixed tests to use skipif.inc instead.
Index: php4/ext/xml/tests/004.phpt
d
sniper Mon Mar 19 17:06:25 2001 EDT
Removed files:
/php4/ext/cybermut libs.mk
Log:
Removed unnessary file.
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
> Oh in addition this won't work accurately if $time is greater than about 2
> billion(2147483648 I believe).
This shouldn't be a problem unless you're calculating how many hours and
minutes a really old guy (>68) has been alive or something.
Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very
Hi Everyone,
I just wanted to let you know (and thank some of you for all your help!), that I've
finally launched my revamped website.
There are two main sections in the site:
Section 1 is for High School and College Students and has almost 3000 Essays available.
Section 2 is for anyone seeking
:)
> Chances are the data will be in $HTTP_RAW_POST_DATA
THANK YOU THANK YOU THANK YOU THANK YOU
THANK YOU THANK YOU THANK YOU THANK YOU
It spit out everything i needed. In the form of a string!!
i had no idea that variable existed. damn my incompetence!! :)
Thanks again. There i go making it ove
On Tue, 20 Mar 2001, David Robley wrote:
> On Tue, 20 Mar 2001 03:32, Rudolf Frint wrote:
>
> > > I want to insert the Values into my Database like this
> >
> > $handle = ora_logon("iusr@test","kiwi1");
> > $cursor1 = ora_open($handle);
> > $query = "insert into internet_tmp select
> > rv_ret($F
What request method is it then? I only know of HEAD and PUT other than GET
and POST
make a script that receives their request, and write
getenv("REQUEST_METHOD") to a file and look
I don't think socket functions will help you read it anyway, unless you
replace your httpd with an ever-running, lis
Sorry to clarify, the server environment does report it coming in as a POST
but there is no variable name, its just a binary file
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Fabian Raygosa" <[EMAIL PROTECTED]>
Cc: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]>
You could take advantage of the type conversion performed by php as
demonstrated in this snippet (the trick is in multiplying $value by 1). if
you need to distinguish further between doubles and floats you can do a
regex on $value once you've established it's type:
\n", gettype($tmp));
}
> It's coming in as a binary file, as i mentioned before in some examples,
How? Via what? It must be either a POST or a PUT if perl can read it.
Chances are the data will be in $HTTP_RAW_POST_DATA
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
It's coming in as a binary file, as i mentioned before in some examples,
perl reads the file with
read (STDIN, &$request, $length);
an asp example uses Request.TotalBytes to get the size then does a
BinaryRead()
then in a for loop converts it to a string. This is all well and good for
them but i c
Uh, if it is not a POST or a GET, what is it? There must be some HTTP
primitive or it isn't HTTP at all.
-Rasmus
On Mon, 19 Mar 2001, Fabian Raygosa wrote:
> A site is trying to send our website a xml file. Unfortunately it is not
> being sent through POST or GET. Using tools that the other si
A site is trying to send our website a xml file. Unfortunately it is not
being sent through POST or GET. Using tools that the other site gives me to
test my site i
have determined only the file size through server vars CONTENT_LENGTH and
CONTENT_TYPE which is text/xml. But thats it. I am stuck on
On Tue, 20 Mar 2001 03:32, Rudolf Frint wrote:
> > I want to insert the Values into my Database like this
>
> $handle = ora_logon("iusr@test","kiwi1");
> $cursor1 = ora_open($handle);
> $query = "insert into internet_tmp select
> rv_ret($FF),$FF,$sesid,(sysdate+0.0021) from dual";
> ora_parse($cu
davidg Mon Mar 19 15:39:10 2001 EDT
Removed files:
/php4/ext/midgard php_midgard.h.in
Log:
deleted unneeded file
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
do an ereg_replace("[^0-9]","",$var) before the calculation, to remove all
non-numeric characters.
kirk
> -Original Message-
> From: Peter Houchin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 19, 2001 4:13 AM
> To: Php-General@Lists. Php. Net
> Subject: [PHP] math query
>
>
> hiya,
davidg Mon Mar 19 15:37:03 2001 EDT
Modified files:
/php4/ext/midgard config.m4 php_midgard.h
Log:
Fixed the build (hope so).
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.19 php4/ext/midgard/config.m4:1.20
--- php4/ext/midgard/co
missed the reply-all button...
> > At 00:29 20/3/2001, [EMAIL PROTECTED] wrote:
> > >Midgard is not exactly a layer above PHP, it's an extension to PHP,
> > >exactly like the session extension, or the gd extension.
> > >
> > >Here is my own point of view (far from objective, cause I'm from the
>
Zeev Suraski wrote:
> Not quite :) The main difference is that, unlike most other extensions,
> this extension isn't a 'glue' layer that connects PHP to some external
> resource. In this case, we're including the resource itself. It's more
> similar to including the source code of MySQL or Pos
> "Thou shalt never break the CVS build" is one of the
> 'higher laws' around here :)
Amen to that one : )
-Jason
> Zeev
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the l
Jani Taskinen wrote:
> >It probably won't get finished until people start using it. The midgard
> >people may be the right people for the job :)
>
> One question about this: Could we setup a separate module for Pear in the
> CVS? As now it's also 'bundled' with php.
That's exactly what I meant
Zeev Suraski wrote:
> >OK, substitute OCI8, the argument stands.
>
> That's only an interface module though. OCI8 isn't a part of PHP...
True, but as said: all elements that could possibly touch PHP
are LGPLd.
> >Not a problem for me. But how is PEAR being made available, then?
>
> PEAR is a
PEAR will be separate at some point, but let's not go overboard here. The
midgard stuff adds a total of 76K to the tar.gz file. Big deal.
-Rasmus
On Tue, 20 Mar 2001, Jani Taskinen wrote:
> On Tue, 20 Mar 2001, Zeev Suraski wrote:
>
> >> > Not a problem for me. But how is PEAR being made avai
On Tue, 20 Mar 2001, Zeev Suraski wrote:
>> > Not a problem for me. But how is PEAR being made available, then?
>>
>>We still don't have a good framework for having PEAR extensions that
>>contain PHP extensions written in C in them. That was always the goal, it
>>just hasn't been done yet. And
I'm thinking of using PHP to talk to an Oracle database with
the OCI8 interface - is PHP's OCI8 interface stable? Anything
unusual I should know about?
I'm using:
Redhat 6.1 Linux
PHP 4.0.4pl1
Oracle 8i 8.1.6
Apache 1.3.14
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www
hiya,
is there a way to get php to know that $200,000 = $20 as if you do a
calculation with it $200,000 it only uses the things befor the comma ..
Peter Houchin
[EMAIL PROTECTED]
=
_ __ /\
/_/
Try this. This guy has two versions. One with a debugger. It also does
previews if you have PHP installed on your machine.
Only WINDOWS though.
http://soysal.com/PHPEd/download.php3
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 4:27 PM
T
At 00:55 20/3/2001, Rasmus Lerdorf wrote:
> > > >MySQL access functions were in PHP long before it went open source. I'm
> > > >not saying that Midgard is on the same level of general usefullness
> > > >but just that the fact that there's an organization behind it
> > > >doesn't change it's licens
At 00:53 20/3/2001, Emiliano wrote:
>Zeev Suraski wrote:
>
> > >MySQL access functions were in PHP long before it went open source. I'm
> > >not saying that Midgard is on the same level of general usefullness
> > >but just that the fact that there's an organization behind it
> > >doesn't change it
At 00:29 20/3/2001, [EMAIL PROTECTED] wrote:
>Midgard is not exactly a layer above PHP, it's an extension to PHP,
>exactly like the session extension, or the gd extension.
>
>Here is my own point of view (far from objective, cause I'm from the
>Midgard team ;):
>Midgard is a CMS, like MySQL is a
Sterling Hughes wrote:
> Yes. But the midgard extension doesn't really do that, it provides some
> propreitary functions and classes for use by Midgard only. The reason its
> being distributed as an extension is --
Proprietary? If you mean 'only disclose functionality to deal with' then
all
ex
I thought about that when I first started, but then went looking to see if
using "\" would return the value without the decimal part. Not good when
you start confusing VB and PHP and it makes you mess up your code.
--
phill
> This way you don't risk rounding up on your first cast to int and bein
[EMAIL PROTECTED] wrote:
>
> How do you "delete" the cookie?
I delete like this:
is this correct?
to set cookie i use:
setcookie("username",$username);
Nikolai
>
> Nikolai Vladychevski <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > My site has been working with cookies just fine u
> I am looking for good php editors. Currently, i am using PHP coder. It
> highlights syntax and checks my syntax. It's also executes my PHP codes.
Are
> there any editors like that? I just want a editor that highlights my code
> and check my syntax.
Give the Zend IDE a trial run.
You'll be able
> I've heard alot about the Zend Encoder. Using it can I encode I file so
that
> php still executes it, but a person cannot read my source by looking at
the
> file?
Yes. You replace all of the files you wish to protect with their Encoded
representations, and they're pretty much indecipherable --
On Mon, 19 Mar 2001, Colin Viebrock wrote:
> > I don't think it belongs in PEAR at all. I could see the logic behind
> > distributing it with PHP, but don't see any reason to distribute it in
> > pear...
>
>
> Except that isn't this what PEAR was for all along? A collection of classes
> and a
> > >MySQL access functions were in PHP long before it went open source. I'm
> > >not saying that Midgard is on the same level of general usefullness
> > >but just that the fact that there's an organization behind it
> > >doesn't change it's licensing.
> >
> > MySQL was always opensource. It was
Zeev Suraski wrote:
> >MySQL access functions were in PHP long before it went open source. I'm
> >not saying that Midgard is on the same level of general usefullness
> >but just that the fact that there's an organization behind it
> >doesn't change it's licensing.
>
> MySQL was always opensource
Ok, you guys both rock. and now I feel real stupid. LOL
Thanks!
- Original Message -
From: "Phillip Bow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 4:42 PM
Subject: Re: [PHP] Script to convert # of seconds to HH:mm
> function philtime($time){
> $hours
Oh in addition this won't work accurately if $time is greater than about 2
billion(2147483648 I believe).
--
phill
""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message
9961qg$ma4$[EMAIL PROTECTED]">news:9961qg$ma4$[EMAIL PROTECTED]...
> function philtime($time){
> $hours = (int) ($time / 3600
should probably be:
function philtime($time) {
$hours = ($time - ($time % 3600)) / 3600;
$min = (int) (($time % 3600) / 60);
return ("$hours:$min");
}
This way you don't risk rounding up on your first cast to int and being off
by an hour... rounding is ok, however, for mi
function philtime($time){
$hours = (int) ($time / 3600);
$min = (int) (($time % 3600) / 60 );
return ("$hours:$min");
}
Should be 3600 since:
60sec = 1min
60min = 1hour
60 * 60 = 3600sec/hour
--
phill
> How about something like this:
>
> $secs = number of seconds;
> $hours = intval
At 00:30 20/3/2001, Emiliano wrote:
>Colin Viebrock wrote:
>
> > There is also the license issue (which I know has been discussed before).
> > But the first thing I read on the Midguard website is:
> >
> > Midgard will always implement an OS development to publishing
> > solution, future r
Hi,
The php function 'get_meta_tags' doesn't work when the meta tag name/
content values are single quoted. It's fine for double quotes. I've had
a look but can't find anything on the w3 site to say whether or not
double quotes are required in meta tags. Does anyone know what the rule
is?
(php v
> > I don't think it belongs in PEAR at all. I could see the logic behind
> > distributing it with PHP, but don't see any reason to distribute it in
> > pear...
>
>
> Except that isn't this what PEAR was for all along? A collection of classes
> and add-on modules to extend PHP's functionalit
Colin Viebrock wrote:
> There is also the license issue (which I know has been discussed before).
> But the first thing I read on the Midguard website is:
>
> Midgard will always implement an OS development to publishing
> solution, future releases will include APIs for implementing
>
How about something like this:
$secs = number of seconds;
$hours = intval($secs/360);
$minutes = intval(($secs-$hours*360)/60)
$seconds = $secs - $hours*360 - $minutes * 60;
Hope this helps.
Michael Ridinger
On Mon, 19 Mar 2001, Yoshi Melrose wrote:
> Can someone direct me or send me a scrip
> I don't think it belongs in PEAR at all. I could see the logic behind
> distributing it with PHP, but don't see any reason to distribute it in
> pear...
Except that isn't this what PEAR was for all along? A collection of classes
and add-on modules to extend PHP's functionality?
I don't have
Can someone direct me or send me a script that will convert number of
seconds into a format readable as HH:mm? I've tried making it myself, but it
gets all messed up in the calculations. Thanks
Yoshi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
> I don't think it belongs in PEAR at all. I could see the logic behind
> distributing it with PHP, but don't see any reason to distribute it in
> pear...
Except that isn't this what PEAR was for all along? A collection of classes
and add-on modules to extend PHP's functionality?
I don't have
Hi, I'm trying to get php to install on a RH 6.2 system. Apache 1.3.12.
All goes well with the configure, make, and make install, but my server
(apache) won't start and I get this message:
Syntax error on line 249 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into serve
Hello,
I'm trying to take the query string of a url and turn it into an
associative array.
Let's say I have a URL like
myHost.com/somepage.php?val1=one&val2=two
I can get the query with HTTP_SERVER_VARS["QUERY_STRING"], but how do I
generate an array equivilent to
array('val1'=>'one', 'val2
OK I did this below and it works just great. I had stumbled across the message
earlier.
my next question would be. I'm working on a list of meetings. I return a list for
the
current month, what I would like to do is make the current week meetings show in red.
However, I'm not sure of the
I found out how to do it.
Thx anyway
/ J
Jesper Blomström <[EMAIL PROTECTED]> skrev i
diskussionsgruppsmeddelandet:[EMAIL PROTECTED]
> Hi!
>
> I am sure you have a solution to this...
>
> How shall I communicate with a servlet from PHP?
> I have a servlet which makes a DB-query and returns the
On Mon, 19 Mar 2001, Jani Taskinen wrote:
> On Mon, 19 Mar 2001, Alexander Bokovoy wrote:
>
> >On Mon, Mar 19, 2001 at 01:19:06PM -0600, Andrei Zmievski wrote:
> >> On Mon, 19 Mar 2001, Alexander Bokovoy wrote:
> >> > This fix does not work because @MIDCONFIG_FILE@ in php_midgard.h does
> >> > n
andrei Mon Mar 19 13:20:03 2001 EDT
Modified files:
/php4/ext/standard array.c basic_functions.c php_array.h
Log:
@- Added array_map() function that applies a callback to the elements
@ of given arrays and returns the result. It can also be used with a
@ n
http://www.php.net/manual/file
There are a slew of file operations, you can read lines, sets of
characters, position the pointer in a specific place. Fill your boots.
Miles Thompson
At 09:59 PM 3/19/01 +0100, Richard wrote:
>Greetings.
>
> How can I read one specified row in a flat textfil
http://www.fatbrain.com/
http://www.booksamillion.com/
Jeff Oien
PHP >start here - Web site coming soon
>I actually think this is the book I have been waiting for. A bookstore in
>New Zealand told me not until March 2001. It must be pretty good, all the
>Sams books are. The only problem is in NZ
http://www.php.net/manual/en/function.file.php
Look into this, you might be able to do it using the file() function which
reads in a file and populates and array line by line.
array file (string filename [, int use_include_path])
Identical to readfile(), except that file() returns the file in
1 - 100 of 249 matches
Mail list logo