ok that will work for swaping the elements in the array.
however rewriting the old line
blah:blah:blah
to blah:foo:blah
its 2 flat files that im opening with fopen obviously.
perhaps im talking in circles
<-CoreComm-Internet-Services---http://core.com->
(Jon Marshall
I "learnt" SGML long before I learnt HTML, so all I've ever needed is a
a good reference.
So: I think the O'Reilly Koala Book is excellent because it is well
indexed and has useful lists of what elements there are, what attributes
they have, what values they can have etc.
However, I am not reall
Consider seperating the checks and tell the user what they did and didn't
do correctly as that way you can put the incorrect fields in bold and red
fonts! Users LOVE that. And little custom messages like "Yo, your email
of $email is incorrect and what kind of first name is $firstname?!" And
may
From: "W.D." <[EMAIL PROTECTED]>
> Actually I tried a variation of what you gave me before and it didnt work.
I
> couldnt get yours to validate thanks. heres what I used
> if (getenv("REQUEST_METHOD") == "POST")
> {
> if (
> eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z
You should look at strtr -
http://www.php.net/manual/en/function.strtr.php
either swap string into 'nother string according to target, or swap array
into string, using array fields as target.
Also, check preg_replace:
http://www.php.net/manual/en/function.preg-replace.php
regards,
jaxon
On 3/8
im just using 2 flat files. is there any kind of freplace? or can i use str_replace to
re-write the line?
<-CoreComm-Internet-Services---http://core.com->
(Jon Marshall CoreComm Services Chicago)
([EMAIL PROTECTED] Systems Engineer II)
([EMAIL PROTECTED]
Actually I tried a variation of what you gave me before and it didnt work. I
couldnt get yours to validate thanks. heres what I used
This is directly after the form using the registered vars $Email,
$FirstName, $LastName. So I dunno whats wrong..
> From: "W.D." <[EMAIL PROTECTED]>
>
> > I do
Jon,
I've done something similar with strtr(), pulling the array from a database
and swapping the result set into a file.
$fd = fopen ($file, "r");
$string = fread ($fd, filesize ($template));
fclose ($fd);
$array = mysql_fetch_array($result, MYSQL_ASSOC);
echo (strtr($string, $array));
just m
What should I put in for the parameter jvs_name of the oohform->start? Is
that a name of another javascript file? Where can I get a sample script?
I would like to make sure the clients put in something in the textbox.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
ok so im using fopen to read a file split each line in to an array. Check
those variables against the same situation with a different file. Replace
a string in the second file with a string in the first file. Then rewrite
the line with the new variable.
here is a small example of how im opening
Hello.
Which is the easiest way to graph funcitions in php, like f(x)=sin(2x)
thank you
Fabian Fabela
[EMAIL PROTECTED]
www.vacagorda.com
I had Apache 1.3.12 here with php 4.0.3 and all was working fine.
I decided to upgrade to 1.3.17 and all came down, I spent hours bringing it
all back... when I finally did it, there's still something that WON'T work...
I can't load php_mssql70.dll... it simply does not load. I've set
extensti
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dennis Gearon)
wrote:
> I do an insert using phpadmin, and i get back the error message (or
> maybe it's a warning?) The insert is of a duplicate on a unique field. I
> expected an error, but when I do mysql_error() or mysql_errno(), nothing
> c
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Yev) wrote:
> So, it sees $name="field[text][email]", and attempts to retrieve the
> value, so in essense $HTTP_GET_VARS[$name] should return
> "[EMAIL PROTECTED]", but it doesn't work..
> However, if i try to access $HTTP_GET_VARS[field][text
This is something I happened to come across. I have no idea
how it compares to others, just giving you the link.
http://wdvl.internet.com/Authoring/Style/Sheets/Book.html
Jeff Oien
> This is a bit off-topic, but I'm curious what you PHP'ers would recommend as
> a good HTML book. I think I need t
This is a bit off-topic, but I'm curious what you PHP'ers would recommend as
a good HTML book. I think I need to learn some stylesheet stuff and the
tutorial I've got covers the basics, but I'd like some more in-depth info on
the commands.
Is the O'Reilley(sp?) book the best, or are there better
Try IMP webmail
- Original Message -
From: Chad Cunningham <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 8:30 PM
Subject: [PHP] demo application suggestions
>
> I am going to be manning a booth on apache at a Linux trade show, and I'm
> looking for suggesti
I am going to be manning a booth on apache at a Linux trade show, and I'm
looking for suggestions on a good php app to show off. Seeing as a
webserver alone is not too exciting, I thought it would be better off to
show off what you can do with the apache platform and some of the modules
available
This could be done in one of several ways:
- form : what you sound like you want to do seems prettey simple - why is it
not doable with a form?
- file upload : this seems more like what you are looking for ... use the
commands in Chapter 19 (File Uploads) of the PHP manual
The advantage with a f
It looks it would not cause too short expiration of session. (Expire is not set
for cookie. This is not what you want probably, but this should not cause
expiration of cookie within 10 or 20 min. You changes session.cache_expire, but
set Expire: and no cache headers. I think you don't need to do
view the php file through localhost on your browser with
apache running
http://localhost/whateverfile.php
make sure the file is somewhere in your document root.
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.
Hi. I installed Apache... no problem... the classic
MSDOS window with... Apache running and the path
for Php4.
Php installed, I made a
Hola
and saved it as
test.php
then... I went to MsDos... c: php test.php [Enter]
I got a large list with html tags... ok... so PHP
running well
But
Or you could try this:
sendmail_path = /var/qmail/bin/qmail-inject
Obviously you'll want to put in your correct path to qmail-inject, but that
works fine for me.
--
rich
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 7:24 PM
To:
On Fri, 9 Mar 2001 03:43, pete collins wrote:
> I keep getting:
> qmail-inject: fatal: read error
>
> I've tried everything.
>
> Sendmail is symlinked to /var/qmail/bin/sendmail wrapper
>
> $ ls -l /usr/lib/sendmail
> lrwxrwxrwx 1 root root 28 Aug 25 2000
> /usr/lib/sendmail -> .
OH! THANKS A LOT!! IT WORKS !
>From: Aaron Tuller <[EMAIL PROTECTED]>
>To: "kaab kaoutar" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: Re: [PHP] how to use ob_get_contents() to send a page as email
>Date: Thu, 8 Mar 2001 15:51:42 -0800
>
>put ob_start() at the beginning of your scrip
put ob_start() at the beginning of your script.
at the end put:
mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents());
ob_end_flush();
-aaron
At 11:48 PM + 3/8/01, kaab kaoutar wrote:
>Hi
>I've tried what, one of u, has kindly suggested, to send the whole
>html page as email :
>i p
mysql_query($sql) or die("there was an error: ".mysql_error());
-aaron
At 3:16 PM -0800 3/8/01, Dennis Gearon wrote:
>I do an insert using phpadmin, and i get back the error message (or
>maybe it's a warning?) The insert is of a duplicate on a unique field. I
>expected an error, but when I do my
php-general Digest 8 Mar 2001 23:45:04 - Issue 555
Topics (messages 43026 through 43091):
PHP Site - New Design
43026 by: Miles Thompson
[PHP-ES] (roberto celestino)MCAL! set-up.
43027 by: Celestino Roberto Alejandro
Re: Microtime math and display
43028 by: Shaun T
Hi
I've tried what, one of u, has kindly suggested, to send the whole html page
as email :
i put at the beginning of the page
and at the end, after
but i receive a blank email
Can u please help !
THANKS
_
Get Your Private
At 3:37 PM -0800 3/8/01, Nicole Lallande wrote:
>$len = mysql_num_rows($result);
>for ($i=0; $i<=$len; $i++) {
> echo "$catid";
>}
I believe your problem is in that code becuase it's ambiguous and
because $catid is an array and you're treating it as a regular
variable.
what you should do is
upss sorry couldnt see your latest post.
thx anywy :))
""karakedi"" <[EMAIL PROTECTED]> wrote in message
98942f$qcd$[EMAIL PROTECTED]">news:98942f$qcd$[EMAIL PROTECTED]...
> ok here is the right one working : smt was wrong with the arrays i beleive
:
>
>
>
> // =
Yes, there was a little bug, it was set to handle date in /mm/dd and
not dd/mm/yyy.
Now this works ok.
py
function diff_date( $sep, $startdate ){
// Date of file in database
$startdate = explode( $sep, $startdate );
$startdate = mktime( 0, 0, 0, $startdate[1], $startdate[0],
$startdate[2]
Hello all,
I have an order form where I am trying to load an option button with a
field column from a database file:
This part works fine (actually Professional PHP has an example using the
do...while statement - I wonder which is better?):
$len = mysql_num_rows($result);
for ($i=0; $i<=$len;
Petr:
I'm not exactly clear about what you want to do, but ...
PHP can process user data and save it to databases. This is probably what
PHP does best. Javascript has nothing to do with this process (but you
can use it in your PHP pages if you want).
All I know about ActiveX is that it is a M$
ok here is the right one working : smt was wrong with the arrays i beleive :
this one works :)
--
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
sas Thu Mar 8 15:13:35 2001 EDT
Modified files:
/php4/ext/ircg config.m4
Log:
s/--with-ircg/--with-ircg-config/
Index: php4/ext/ircg/config.m4
diff -u php4/ext/ircg/config.m4:1.4 php4/ext/ircg/config.m4:1.5
--- php4/ext/ircg/config.m4:1.4 Thu Mar
I do an insert using phpadmin, and i get back the error message (or
maybe it's a warning?) The insert is of a duplicate on a unique field. I
expected an error, but when I do mysql_error() or mysql_errno(), nothing
comes back(and I do it the next line in the script). the
'mysql_query($sql, $link)'
Hi,
I have one question, please. Can anybody help me with external data saving?
I require to save the user data (I suppose data will be in the text format)
from user (from his computer) to a database server. And I want not use
ActiveX technology because it must run even under Netscape. Are there
sas Thu Mar 8 15:07:07 2001 EDT
Modified files:
/php4/ext/ircg config.m4
Log:
Refine complain message
Index: php4/ext/ircg/config.m4
diff -u php4/ext/ircg/config.m4:1.3 php4/ext/ircg/config.m4:1.4
--- php4/ext/ircg/config.m4:1.3 Mon Feb 26 14:14:24
figured out the logic,
but still cant make it run
i put this command :
echo diff_date("/", "05/03/2001") ;
to test the function. but it doest seem to work :(
any help ?
btw i believe it must be 24*60*60 inorder to 24*24*60 :)
""Pierre-Yves Lemaire"" <[EMAIL PROTECTED]> wrote in message
01c301
My goal..
Take an image (gif,jpg) from a remote server, resize it into 200x150 and then
save it on my local server.
My friend gave me a premade script but that doesnt work. Anyone have
something like this already done or know where to find it?
- Thanks
--
PHP General Mailing List (http://www
Hello,
I should probably know the answer to this but I do not. I was hoping someone
here could offer me some incite.
I recently changed my upload_tmp_dir from the apache default; actually it
wasn't set at all, to another directory which I created for this purpose.
The directory is outside of the
sbergmann Thu Mar 8 14:20:55 2001 EDT
Modified files:
/php4/pear/CacheError.php
Log:
This is 100% pure Ulf :-)
Index: php4/pear/Cache/Error.php
diff -u php4/pear/Cache/Error.php:1.2 php4/pear/Cache/Error.php:1.3
--- php4/pear/Cache/Error.php:1.2
sbergmann Thu Mar 8 14:20:06 2001 EDT
Modified files:
/php4/pear/CacheError.php
Log:
I think we need to load PEAR.php here.
Index: php4/pear/Cache/Error.php
diff -u php4/pear/Cache/Error.php:1.1 php4/pear/Cache/Error.php:1.2
--- php4/pear/Cache/Error
<<< No Message Collected >>>
--
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]
Explained here:
http://www.php.net/manual/en/language.variables.external.php
Basically name the variables with []. For example:
In your example, the second is actually overwriting the first.
Nate
-Original Message-
From: mat t [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 20
You're not setting a value for the first variable ie.."Name"
unless you put something in the text box to represent the variable
it will come across as empty.
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacif
Please can you help:
I can't send duplicate input types to $HTTP_POST_VARS
For example:
---HTML---
First person:
NAME
Phone No.
Second Person:
NAME
Phone No.
---
Then when I use :
I dont want to get into a long drawn out debate about the copyright
infringements since we have already established our agreements with the
companies..
You are right of course, sometimes the URL does tell it all, and as I
mentioned, and if you read my note carefully, "Their banners, logos,
URL's
Hi,
I've been trying to figure this out all night, and need some
assistance.
I have a form that takes input, and I'm trying to read the variables
directly into a MultiDim array ie:
http://www.email.com">
Now upon the form's submission, these variables are only accessible in
$HTTP_GET_VARS (reg
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,
how to I get the new page to take over where the old page finished.
TIA
george
--
PHP General Mailing List (http://ww
1.3.1pl1 fixed a bug with a missing function _syntax_error.
Monte Ohrt wrote:
>
> Homepage:
> http://www.phpinsider.com/php/code/Smarty/
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
uw Thu Mar 8 12:41:40 2001 EDT
Modified files:
/php4/pear Cache.php
/php4/pear/CacheContainer.php
Log:
Formatting and minor inline doc changes.
Index: php4/pear/Cache.php
diff -u php4/pear/Cache.php:1.6 php4/pear/Cache.php:1.7
--- php4/pea
uw Thu Mar 8 12:39:17 2001 EDT
Added files:
/php4/pear/CacheError.php
Modified files:
/php4/pear Cache.php
/php4/pear/CacheContainer.php
/php4/pear/Cache/Container db.php file.php phplib.php
Log:
Added a basic Cac
never mind... 'or - i fixed my own problem! i enabled cacheing on both PHP
pages, the page with the image who's source calls the PHP page that creates
the image.
- Original Message -
From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday,
I'm using the SetTimeOut function of JavaScript to refresh an image every 3
seconds. The SRC for the image is a PHP page which constructs a valid image
with some text added to the image and returns the image to the colling
Image. This works fine, however the information should be changing every
OK now I'm pissed. I consider myself to be an above average
programmer with extensive skill in PHP (amongst other things).
NOW... I am not going to go jumping through hoops just because some
ignorant/illiterate HR Recruiter/IS Head thinks that if you're not PHP
certified by som
Hello,
this is a function I use on my site, you can problably find
your answer,
py
// =
// This function returns the difference between a dates
// and the current date.
// arg1: separator
// arg2: startdate date dd mm
// return number of d
> We send SMS messages from Oracle, but the method could be used in php I
think. We use www.quios.com. They accept SMS messages as XML documents
which you simply post to their site using http. The response, also by http,
is an xml document. It is very easy to build your outgoing xml document,
and
Yes, I should have mentioned... we actually do develop contracts outlining
co-branding agreements with our partners before we establish a frameset.
I should also mention that we don't use PHP for session tracking; we use a
home-grown Perl/Oracle hybrid for session tracking. But I imagine that
sas Thu Mar 8 11:29:33 2001 EDT
Modified files:
/php4/ext/ircg ircg_scanner.c ircg_scanner.re
Log:
Fix underline handling
Index: php4/ext/ircg/ircg_scanner.c
diff -u php4/ext/ircg/ircg_scanner.c:1.6 php4/ext/ircg/ircg_scanner.c:1.7
--- php4/ext/ir
> > As a quick caveat you need to be *very* careful you're not
> > obfuscating the target site copyright infringement, anyone?
> We wont.. Their banners, logos, URL's etc. appear on the
> pages, so even if it is in the frameset, it will be fine..
Yes, but their URL won't be in the address l
We wont.. Their banners, logos, URL's etc. appear on the pages, so even if it is
in the frameset, it will be fine..
Jon Haworth wrote:
> As a quick caveat you need to be *very* careful you're not obfuscating the
> target site copyright infringement, anyone?
>
> -Original Message-
> F
I'm having some problems with using addslashes($string) for preparing a text blob for
a MySQL database. The $string can have single or double quotes in it, and depending on
how I pass it on to the insert, it seems to work only for either single or double, but
not for both.
Input can be:
Hi, My name is Bruno, From Brazil.
Yes...it's me again...hehehe
Look...my problem is..
I wanna make something like this:
(10 november 2001) - (5 November 2001) = 5 days
(10 november 2001) - (10 December 2001) = 30 days
How can i do this
Thanks for any help
Your friend, Bru
It's a PHP class that's included at the top of every page that needs
session/authentication. It's cookie based only, no option for URL
propagation.
PHPLib can do the same, as well as some other classes floating around.
Chris
On Thu, 8 Mar 2001, Bill Rausch wrote:
> Date: Thu, 8 Mar 2001 10:21
sas Thu Mar 8 10:59:46 2001 EDT
Modified files:
/php4/ext/ircg ircg_scanner.c
Log:
Add handling for underline/bold control sequences
Index: php4/ext/ircg/ircg_scanner.c
diff -u php4/ext/ircg/ircg_scanner.c:1.5 php4/ext/ircg/ircg_scanner.c:1.6
---
Thanks Joe - that showed me right away!! all better now -- on to the
next step..
Nicole
"Joe Sheble (Wizaerd)" wrote:
>
> I'd start by adding the mysql_error() function in your die() statement...
> $result = mysql_query($sql,$connection) or die ("Couldn't get results: " .
> mysql_error());
>
sas Thu Mar 8 10:43:52 2001 EDT
Modified files:
/php4/ext/ircg ircg_scanner.re
Log:
Add handling for underline/bold control sequences
Index: php4/ext/ircg/ircg_scanner.re
diff -u php4/ext/ircg/ircg_scanner.re:1.6 php4/ext/ircg/ircg_scanner.re:1.7
-
Hi
The case In Israel is different. It's not that we chose this browser
over another... Netscape wouldn't support Hebrew and IE did.
So there was no actual war.
The data about the 3% is pretty accurate and is collaborated by
all 3 major portals in Israel.
Sincerely
berber
Visit http://
I'd start by adding the mysql_error() function in your die() statement...
$result = mysql_query($sql,$connection) or die ("Couldn't get results: " .
mysql_error());
it might give more information to help you find the problem...
At 10:15 AM 3/8/01 -0800, Nicole Lallande wrote:
>Greetings,
>
>I
On Thursday 08 March 2001 07:17, you wrote:
> Does anybody know where I could get more info on storing session data
> in a database rather than the default way?
Hmm, perhaps phpbuilder.com has an article on it. Alternatively I could
send you some of my code
--
Christian Reiniger
LGDC Webmaster
Thanks, that works great.
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 10:13 AM
T
On Thursday 08 March 2001 18:49, you wrote:
> Anyone know offhand a way to organize the output from a query by week?
> I'm writing a work log app and I want the admin to see everyone's work
> ordered first by lastname, and then by date. But only want that week's
> data to show up, and maybe a dr
Greetings,
I keep getting the message that I cannot get results. I have a simple
user authentication code that uses a mysql database to authenticate
from. Initially I had the code working when I had the mysql_connect
variables in the code itself. When I moved the connection variables to
an inc
Greetings,
I keep getting the message that I cannot get results. I have a simple
user authentication code that uses a mysql database to authenticate
from. Initially I had the code working when I had the mysql_connect
variables in the code itself. When I moved the connection variables to
an inc
On Thursday 08 March 2001 18:43, you wrote:
> I am attempting to take a line of text (a list) that has been entered
> into a form and split it into the appropriate parts, placing them into
> an array. I am splitting the input on commas, semi-colons, and spaces.
>
> Problem 1: Is with "white spac
";
while (false!==($file = readdir($handle))) {
// new code here
$cExt = explode( ".", $file );
// and here
if ($file != "." && $file != ".." && ( strtolower( $cExt[1] ) == "jpg" ) {
echo "";
echo $file;
e
Does anybody know where I could get more info on storing session data in a
database rather than the default way?
thanks
randy
-Original Message-
From: Christian Reiniger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 12:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions
Hello,
to refresh a site I use this ( ), but, now I
make some updates im my right page and I want to refresh other page( left page of
frameset ).How can I do it?
T.Y.
Best Regards
Miguel Loureiro <[EMAIL PROTECTED] >
You could use the mySQL function DATE_FORMAT() in your query string..
SELECT DATE_FORMAT( DateAdded, '%m/%d/%Y' ) as d_Added FROM myDB
At 12:52 PM 1/8/01 -0500, stas wrote:
>Hello,
>
>How can I format a date stored in the database in a Date field. It's in this
>format:
>
>-mm-dd
>
>I under
As a quick caveat you need to be *very* careful you're not obfuscating the
target site copyright infringement, anyone?
-Original Message-
From: Richard S. Crawford [mailto:[EMAIL PROTECTED]]
Sent: 08 March 2001 00:02
To: Ashwin Kutty; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: R
Ok, I am using this modified code from the
manual. It works great, but how do I modify
it further to only show .jpg files ?
";
while (false!==($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "";
echo $file;
echo "\n\r";
}
}
echo "
By not using cookies, each browser window would have it's own session,
propagated through the URL. Which I don't think you would want users
with multi sessions in an intranet app.
You didn't mention how you are storing your session data, but I'll
assume it's the defualt (files). I would furthe
On Thursday 08 March 2001 03:45, you wrote:
> Is there a way as a server admin to kill all sessions to a site. I
> need a way to logout all members to a site.
Well, usually you'd keep the session data in a database, so you can just
empty the sessioninfo table.
--
Christian Reiniger
LGDC Webma
Hello,
How can I format a date stored in the database in a Date field. It's in this
format:
-mm-dd
I understand that date() function only works for current system date/time. I
am looking for something like this:
dateformat($date, "mask"),
sort of like the one in ColdFusion. Thanks much!
Your regex is incorrect. You've written:
/[\,\;\s*]/
That * means "match a *" because it's inside the brackets. Put it outside,
like this (actually use a + instead):
/[\,\;\s]+/
to match 1 or more of any of those characters.
That may not be exactly what you want, since that
Anyone know offhand a way to organize the output from a query by week? I'm
writing a work log app and I want the admin to see everyone's work ordered
first by lastname, and then by date. But only want that week's data to show
up, and maybe a dropdown with previous weeks available. Don't go thin
I am attempting to take a line of text (a list) that has been entered into
a form and split it into the appropriate parts, placing them into an
array. I am splitting the input on commas, semi-colons, and spaces.
Problem 1: Is with "white space". If the input has spaces after a comma,
it spl
If it is on a Unix box, it most likely is the Unix time value; It is the
number of seconds since the UNIX Epoch which I believe starts at 0 seconds
in January 1970. I am not quite sure about that date, but it is close.
It also reveals the problem if you are dealing with dates before 1970 and
aft
Make sure you're building against a 4.0.5 build of PHP. I tried this
afternoon with the latest PHP from snaps.php.net and the GTK bindings, and
it worked flawlessly.
adamw
- Original Message -
From: "Celestino Roberto Alejandro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday,
Ok, I understand that the epoch is a point in time that's static, but what
exactly is the epoch? I've heard it mentioned a lot on the list, but I have
no idea what it really is. :)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
You might try converting these dates to Unix time and then compare the
numbers as integers.
Let's see, here is a function that converts the data from a MySQL date field
to a Unix timestamp...
function mysql_to_epoch ($datestr)
{
list($year,$month,$day,$hour,$minute,$second) =
split("([
If you put the date in MMDD format you can compare
the numbers.
http://www.php.net/manual/en/function.date.php
Jeff Oien
> Hi,
> Since there is no Date type in php, is there a way to compare dates?
>
> Something like:
>
> if ((3/8/2001) < (3/9/2001)){
>// Date is newer
> }
>
> Thanks,
stasThu Mar 8 09:11:57 2001 EDT
Modified files:
/php4/ext/recoderecode.c
Log:
Better use buffer_to_buffer, since zval is really buffer, not string (it can
contain \0's and not end in \0).
# and recode_string is recode_buffer_to_buffer internally anyw
I keep getting:
qmail-inject: fatal: read error
I've tried everything.
Sendmail is symlinked to /var/qmail/bin/sendmail wrapper
$ ls -l /usr/lib/sendmail
lrwxrwxrwx 1 root root 28 Aug 25 2000 /usr/lib/sendmail
-> ../../var/qmail/bin/sendmail
$ ls -l /usr/sbin/sendmail
lrwxrwx
Hi,
Since there is no Date type in php, is there a way to compare dates?
Something like:
if ((3/8/2001) < (3/9/2001)){
// Date is newer
}
Thanks,
Chris
Anyone know of a support forum for phpHoo2 (from http://www.cable-modems.org/phpHoo/)?
I'm having two problems.
Working version where I installed it is at: http://dev.crnaworld.com
1) Admin mode is not working properly. Says it cannot set the cookie.
2) Cannot add link to "Top" catego
Is there a way as a server admin to kill all sessions to a site. I need a
way to logout all members to a site.
thanks
randy
--
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 admin
> Then how about check the server's response headers that sent to client? You
> can view headers using wget or like. PHP might be sending global ini
> var(which is set to small number) to client for some reason.
Ok, this is the header information I get.
HTTP/1.1 200 OK
Date: Thu, 08 Mar 2001 11
1 - 100 of 136 matches
Mail list logo