On March 27, 2003 09:15 pm, Charles Kline wrote:
> I am storing my dates as unix timestamp (epoch). Am I right in
> assuming that if I need to add or subtract days from this it is
> done in seconds?
yes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
On March 23, 1998 08:53 pm, Beauford.2002 wrote:
> It's definitely going through the if statement as it does "reload"
> the page - print($_SERVER['HTTP_REFERER']); shows
> http://www.myserver.com/oldpage.html - which is correct.
> print("{$userlevel} and {$neededlevel}"); also shows the correct
> i
On March 23, 2003 02:34 pm, Beauford.2002 wrote:
> The link in question is there by design and should be there, but
> below is what I am talking about.
>
> > Even better, if a user cannot be validated then you can redirect
> > them back
>
> to where they
>
> > came from (referrer). That would effe
On March 23, 2003 10:22 am, Beauford.2002 wrote:
> One other problem is that I need to know the page the came from in
> order to reload it. i.e. if they try to access a restricted page
> from six.html I want to reload six.html - if they try from
> eight.html then eight.html needs to be reloaded.
On March 22, 2003 04:03 pm, Beauford.2002 wrote:
> I just installed Win2k server and IIS (need it for a project I am
> doing) and get the following error after installing PHP. All
> permissions are set correctly. This appears to be a common problem
> as a search comes up with hundreds of the same p
On March 11, 2003 09:35 pm, Justin French wrote:
> READ THE F***ING MANUAL!!!
>
> http://php.net/round clearly shows you how to round to a whole
> number.
>
> if you want to round ALL decimals up, then you might have to create
> something from scratch, but
ceiling and floor functions are part of n
On March 9, 2003 04:30 pm, Beauford.2002 wrote:
> Sorry, the line I was actually referring to is the one below. I
> forgot the hidden one was even there and serves no purpose and does
> not resolve the problem by removing it.
>
> This works:
> It also works if I just hardcode a value (value="Bob"
On March 9, 2003 12:49 pm, Steve Pollard wrote:
> If anyone has come across a similar problem to the one described
> below, and has a solution I'd be really grateful if you can help me
> out.
>
> I'm trying to implement a user authentication process where users
> can click on an external link to my
On March 7, 2003 08:54 pm, James Taylor wrote:
> Ok, this may have already been posted to the list already, but the
> archives don't seem to like the & and && characters.
>
> I'm running into some code that looks like this:
>
>
> Define('INPUT', 2);
>
> if($search->level & INPUT) $tmp.= $search->
On March 7, 2003 09:15 pm, Leo Spalteholz wrote:
> Hi,
> I have a table that stores all the "boxes" that my website will
> display on the sides. So far the content is simply stored in a
> text field and then substituted for the box body. However this way
> I can't
Hi,
I have a table that stores all the "boxes" that my website will
display on the sides. So far the content is simply stored in a text
field and then substituted for the box body. However this way I
can't have any php code in the boxes... What I thought I could do is
have another field that
On March 3, 2003 06:31 pm, Tom Rogers wrote:
> Hi,
>
> Tuesday, March 4, 2003, 12:06:14 PM, you wrote:
> JF> Does it actually NEED a regexp?
>
> JF> UNTESTED code:
> JF> JF> $icq = 2264532680;
> JF> if( (is_int($icq)) && (strlen($icq) > 7) && (strlen($icq) < 9)
> ) { JF> echo "yah";
> JF> } el
On March 2, 2003 01:53 pm, Jason Wong wrote:
> On Sunday 02 March 2003 23:34, Beauford.2002 wrote:
> > Hi,
> >
> > I have an array which I am trying to total but having some
> > problems. Any help is appreciated.
> >
> > Example: This is a hockey team and there are 20 players - I am
> > selecting
On February 28, 2003 10:41 am, Leif K-Brooks wrote:
> Try $timeb <> ''.
>
Well whatta ya know I learn something new every day.. I thought the
only valid not equal operator was !=... I'm used to using <> only
for SQL server stored procedures or VB..
leo
--
PHP General Mailing List (http://ww
Hm. Looks pretty nice. Cool page and the demos are pretty slick.
But I can't really see what it would be useful for. Maybe I missed
something but it seems to be a sort of InstallShield for php scripts.
While this sounds like a good idea, its actually quite useless. What
is normally involv
On February 23, 2003 11:08 pm, John Taylor-Johnston wrote:
> Which variable should I use?
>
> _SERVER["HTTP_HOST"]
> _SERVER["SERVER_NAME"]
> HTTP_HOST
> Server_NAME
> Host
Docs are your friend. or JUST TRY IT.
leo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
On February 22, 2003 04:38 pm, Denis L. Menezes wrote:
> Hello friends.
>
> I am developing some light pages on the web basically for access by
> PDAs. I need to put and alert for some members so that as soon as
> they log in, the next page will show a flashing alert on the page.
>
> Can anyone sug
For help with getting MSSQL to work with php, check the comments for
the mssql_execute and mssql_bind functions in the online php manual.
You need some extra dlls.
Leo
On February 21, 2003 09:43 pm, John W. Holmes wrote:
> > I wish to run PHP on a Win 2000 server, MS SQL and IIS. Can
> > someon
Hi,
I'm doing a small project at work with php, ms sql server on w2k IIS5.
All the data access is done through stored procedures. This seems to
be working fine, the record sets are returned and the stored
procedures execute without error however I can't get any return
values from them.
For
On February 20, 2003 08:13 pm, Jason Sheets wrote:
> MAC addresses are used for on a LAN and not the Internet. Using a
> MAC address might work for identification on a LAN BUT in most
> operating systems you can easily change the effective MAC address
> on the card.
Good call. I thought there wa
I've been thinking about how to do authentication and user recognition
for my site without cookies. I had this idea but I don't really know
if its possible at all.
If I got the IP address from the request could I use ARP to get the
MAC address for that IP? If so I could compare that MAC addres
Never mind. Apparently I can't tell the difference between a capital
and a lowercase B. time to crash methinks.
leo
On February 13, 2003 11:59 pm, Leo Spalteholz wrote:
> I just ran into a somewhat strange problem with an include failing.
> I have the following in my script:
> i
I just ran into a somewhat strange problem with an include failing.
I have the following in my script:
include(dirname(__FILE__)."/LNScreens/LNScrMain.php");
include(dirname(__FILE__)."/LNDataBase/LNDataBase.php");
The first file is included just fine, but the LNDataBase file fails
(Failed openin
very interesting link. While some of the cases where he takes java to
be the winner are simply personal preference, I do agree with most of
his conclusions.
Best points are the one about declaring variables(3), declaring
constants(6), using libraries(7), class member scope(17), and
exception h
..])
>
> (of course properties can not be accessed by such methods)
>
> David Eisenhart
>
>
>
> "Leo Spalteholz" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > Hi, I'm a bit of a newbie
Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++
but I'm having a few problems finding info on this issue.
Does PHP support something like static functions in Java?
for example in Java I can write:
public class someClass {
public static void someMethod() {}
}
and t
26 matches
Mail list logo