Re: [PHP] date math question

2003-03-27 Thread Leo Spalteholz
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:

Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
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.

Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
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 info.

Re: [PHP] PHP and IIS

2003-03-22 Thread Leo Spalteholz
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

Re: [PHP] Subtracting two dates

2003-03-11 Thread Leo Spalteholz
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 nearly

Re: [PHP] strange behaviour with login page

2003-03-09 Thread Leo Spalteholz
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

Re: [PHP] Can someone explain this? include problem.....?

2003-03-09 Thread Leo Spalteholz
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: input type=text name=player SIZE=10 value=? echo

[PHP] Executing PHP code in a database

2003-03-07 Thread Leo Spalteholz
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

Re: [PHP] Executing PHP code in a database

2003-03-07 Thread Leo Spalteholz
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 have any php code in the boxes

Re: [PHP] Difference between

2003-03-07 Thread Leo Spalteholz
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: snip Define('INPUT', 2); snip if($search-level INPUT) $tmp.=

Re: Re[2]: [PHP] ICQ # validation

2003-03-03 Thread Leo Spalteholz
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 } else { JF echo nah;

Re: [PHP] Arrays and MySQL

2003-03-02 Thread Leo Spalteholz
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 the goals,

Re: [PHP] testing for 0

2003-02-28 Thread Leo Spalteholz
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

Re: [PHP] include

2003-02-24 Thread Leo Spalteholz
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:

Re: [PHP] PHP Script

2003-02-24 Thread Leo Spalteholz
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

[PHP] MSSQL Stored procedure return values

2003-02-22 Thread Leo Spalteholz
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

Re: [PHP] PHP running on Win 2000 and IIS

2003-02-22 Thread Leo Spalteholz
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 someone

Re: [PHP] flashing text possible on PDA?

2003-02-22 Thread Leo Spalteholz
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 suggest

[PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
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

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
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 was

Re: [PHP] Include() problems IGNORE PARENT

2003-02-14 Thread Leo Spalteholz
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: include(dirname

[PHP] Include() problems

2003-02-13 Thread Leo Spalteholz
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 opening

[PHP] Static functions

2003-02-09 Thread Leo Spalteholz
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

Re: [PHP] Re: Static functions

2003-02-09 Thread Leo Spalteholz
,.]) (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 to PHP, I've done some stuff in Java/VB/C++ but I'm having a few problems find

Re: [PHP] Re: Static functions

2003-02-09 Thread Leo Spalteholz
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