Just convert the time to unixtime and - 5*60 (5 mins).
On Tue, 6 Mar 2001, Augusto Cesar Castoldi wrote:
>
> Can I do any "subtraction" with times and/or dates on php or mysql?
>
> I have two times (HH:MM:SS). And I want to know if there is a diference of
> 5 min between the times.
>
> Is t
Technically you shouldn't need to change anything if the sendmail symlink
is in the same place as the original sendmail. It looks like you have a
problem with your qmail configuration.
Can you telnet to port 25 of your box and get the qmail blurf?
Nick.
On Thu, 8 Mar 2001, pete collins wro
On Fri, 9 Mar 2001, Jason Stechschulte wrote:
> On Thu, Mar 08, 2001 at 09:32:25PM -, george wrote:
> > I am building a site which pulls FAQ's out of the database onto a page,but
> > having just finished reading the FAQ's I realise that they will have to be
> > spread over a few pages,
> > ho
Argh Haskell - All the bad memories come flooding back.
On Fri, 9 Mar 2001, Ted Goranson wrote:
> Hello--
>
> Is PHP suitable for programming in a Haskell-like fashion? Is there
> existing information on how to do this?
>
> Best, Ted
>
> _
> Ted Goranson
> Fusecap and Sirius-Bet
How about linux ones?
I just tend to use vim or emacs but i'm sure there are some out there.
On Sun, 11 Mar 2001, Aviv Revach wrote:
> Hey!
>
>
> PHPEd is free:
>
> * Runs under Windows.
> * Has syntax highlighting. Supports: Html, Perl, Php, SQL, and regular
> text files.
> * Can edit
On Mon, 12 Mar 2001, Harshdeep S Jawanda wrote:
> Hi,
>
> Harshdeep S Jawanda wrote:
>
> > I suppose you must already have tried sending mail to
> > [EMAIL PROTECTED] by now.
>
> I tried this address and it worked for me.
>
Obviously ;)
> --
> Regards,
> Harshdeep Singh Jawanda.
>
>
>
>
Content-type =
not
Content-Type = ...
On Mon, 12 Mar 2001, James Tremain wrote:
> I've been successfully uploading graphic files to a directory on my php
> server for more than a year. Suddenly, it no longer works, and after a lot
> of probing, I'm at a loss to determine why.
>
> I run PH
How do i forward POST data from a php script. Obviously GET is simple
(just script.php?$QUERY_STRING) but how does it work with post?
Thanks.
Nick.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ript that was a
> form and the action was set to a script called action.php and then you
> wanted to pass that data to yet another script, you could pass the values
> in the url or a session variable or hidden fields in another form.
>
> Keith
>
> On Thu, 15 Mar 2001, Nick Davi
Hi (again).
Is there a simple was to take post data from a form and create a
query string out of it?
Thanks.
Nick.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
Why does this work :
$categorySplit = split(",", $row['category']);
while (list($key, $value) = each ( $categorySplit )) {
$categoryArray["$value"] = 1;
}
But this not :
while (list($key, $value) = each ( split(",", $row['category']) )) {
$categoryArray["$value"] = 1;
}
I ke
How do i do this?
I have tried using the array_push function without sucess and when i try
this :
$stack[]['id'] = $menuArray[$rowID]['id'];
$stack[]['parentId'] = $menuArray[$rowID]['parentId'];
$stack[]['name'] = $menuArray[$rowID]['name'];A
obviously the array's internal pointer will increm
Doesn't the command return 1 or 0 in success or failure?
You may not have a result
Probably wrong but something like
if (mysql_query($query)) {
} else {
}
or you could die out mysql_query($query) or die
On Thu, 29 Mar 2001, Boget, Chris wrote:
> > i was just wondering what you g
There seems to be some routing problem at ALTER.NET (from the uk anyway).
Nick.
On Tue, 10 Apr 2001, Michael Hall wrote:
> I've been trying to get to the annotated manual all afternoon but can't
> get through to www.php.net. Anyone else have the same problem?
>
> Mick
>
>
>
--
PHP Gener
surely the include function only "pastes" the contents of the included
file into the point where the include statement occours. Php still has to
parse it all.
On Thu, 5 Jul 2001, Richard Heyes wrote:
> > If you are talking about speed, opening a file is expensive
> > because it is a kernel cal
On Thu, 5 Jul 2001, Roger Ramirez wrote:
> On Thu, 5 Jul 2001, Bernie Kruger wrote:
>
> > Hi,
> >
> > I know this may be a previously discussed topic, but I want to be sure I get
> > the right books. I need a good book on intermediate PHP programming. I am
> > looking to buy PHP 4 Bible, but
I think you have to do it with javascript (being client side). But thats
all i know. ;)
On Fri, 6 Jul 2001, Marc van Duivenvoorde wrote:
> I'm trying to make a small browser and screen resolution script for my
> site, the browser part isn't a problem, but I can't find a function for
> screen
Anyone know how to copy an array to another name?
I'm assumming that $array1 = $array2; doesn't work (at least it
doesn't seem too :( ).
Thanks.
Nick.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
I have a function which returns a mulit-dimensional array, but the array
which is returned doesn't "work" for some reason :/
If i print the array within the function using
while (list($key) = each($myArray)) {
while (list($key2, $value2) = each($myArray[$key])) {
print $
Is there a alpha/beta of this available now :)
On Fri, 17 Aug 2001, Sandy Meier wrote:
> Hi!
>
> At the moment I am writing the PHP support for KDevelop3.0
> (http://www.kdevelop.org). The IDE ist modular and it is very easy to write
> plugins, so it is possible to implement support for all
like
if ($HTTP_REFERER == "certain host") {
do finalise code
}
On Fri, 17 Aug 2001, Erich Zigler wrote:
> I am working on the last half of an Online Signup page for an ISP.
>
> There is a local .php page on the webserver that actually finalizes the
> addition of the user, but ONLY
Sorry missed a bit you'll just need to ereg out the hostname from
HTTP_REFERER - take everything after http:// and before /...
Nick.
On Fri, 17 Aug 2001, Erich Zigler wrote:
> I am working on the last half of an Online Signup page for an ISP.
>
> There is a local .php page on the webserver th
Probably best to read stuff first ;)
try preg_match
preg_match("/^(http:\/\/)?([\/]+)/i", $HTTP_REFERER, $hostname);
the hostname will be in $hostname[2]
Hope it helps.
On Fri, 17 Aug 2001, Nick Davies wrote:
>
> Sorry missed a bit you'll just need to ereg
Is it possible to surpress the
X-Powered-By: PHP/4.0.6
Content-type: text/html
text when running php from the commandline?
Thanks.
Nick.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
> --
> From: Ken Hopkins [SMTP:[EMAIL PROTECTED]]
> Sent: 20 August 2001 21:02
> To: [EMAIL PROTECTED]
> Subject: Multi-dimensional array issue
>
> Hi from a recent PHP convert,
>
> Having a heck of a time declaring and accessing 2 dimensio
./file.bin :)
On Tue, 21 Aug 2001, Roman wrote:
> Off topic question:
>
> How I create install file in red hat linux from bin file.
> example: in /home/name i have file file.bin and I want create install from
> this file
>
> roman
>
>
>
>
--
PHP General Mailing List (http://www.p
Just compile it without the apache stuff on configure. Then you should
have a working php executable in /usr/bin/. All you need to do then is
php script.php or put the #!/usr/bin/php at the head of your
scripts. (/usr/bin/php -q removes the http headers)
Nick.
On Thu, 23 Aug 2001, Tom Carter w
Erm..
date1 - date2 = seconds
(date1 - date2)/60 = mins
(((date1 -date2)/60)/60)/24 = days
Nick.
On Fri, 24 Aug 2001, Alberto wrote:
> I have 2 timestamps like mktime(0,0,0,10,10,2001) and
> mktime(0,0,0,9,9,2001), I want to know how many days are from timestamp1 to
> timestamp2 or how many
Guys this stuff is all in the manual. :)
header ("Location: url");
On Fri, 24 Aug 2001, Wilbert Enserink wrote:
> Hi all,
>
>
> I have the simplest question maybe, but I can't seem to find the answer.
> It's friday.
>
>
> Anybody knows how I can redirect to another url?
>
>
> greetin
In html?
If it is then you should be using . An \n will just put a newline in
your source code.
Nick.
On Fri, 24 Aug 2001, Jeremy Morano wrote:
>
> Sorry to bother you with what probably seems like a useless question but why
> is this not skipping a line?
>
>
> echo " $team \n ";
>
>
>
On Fri, 24 Aug 2001, Frank Loewenthal wrote:
> Hi
>
> Perhaps I am confused, but is it not possible to return arrays in PHP?
>
> Example:
>
> function getArray() {
> $ret = array('hallo','you');
> return $ret;
> }
>
> $r = getArray();
>
> for( $i=0;$i < count($r); $i++)
> e
31 matches
Mail list logo