[PHP] Re: Problems when trying to use ibm_db2 extension

2007-04-16 Thread Leo Jokinen
use php command line interface Anyone disagree? -Leo- Leo Jokinen wrote: Hi all, I've been banging my head into the wall cause I can't get ibm_db2 extension working with Apache 2.0.59 and PHP 5.2.1 (as apache module). (Operating system is winxp pro SP2) For some reason, this code

[PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Leo Jokinen
le php5_module "C:/php-5.2.1/php5apache2.dll" PHPIniDir "C:/php-5.2.1/" Can someone point out the right direction for me? Regards Leo Jokinen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array_intersect problem

2006-12-25 Thread Leo Liu
( [imageID] => 3 ) ) After intersection instead of me getting 3 as a result, I got the array 1 unchanged. Seems like intersection doesn't take place at all. Anyway to solve this problem? Regards, Leo Reality starts with Dream _

[PHP] Poping array which has the matching value

2006-12-20 Thread Leo Liu
array_pop(); function it will only pop the last element inside the array and the array will become {a,b,c,d,e} Anyway to search the desire element inside the array and took it out from the array? Regards, Leo Reality starts with Dream __ Do You Yah

Re: [PHP] Comment management

2006-10-23 Thread Rocco Di Leo
Hi Tedd, you may want to check out a Blog-Software like Wordpress if it fulfills your requirements and relaunch your website using it. From what i see on your page, it could pretty much replace the functionality and add the benefits of comments, nice urls, etc Greets Rocco -- New Identity AG

[PHP] Re: [PHP-WIN] can I use Apache v 2 with PHP?

2005-08-03 Thread Leo G. Divinagracia III
Taksam wrote: Now, my question is: can I use Apache version 2 with PHP? And, even if I can use it in my development environment... is it safe to use Apache 2+PHP in a production environment? running apache 2 with php 4, not 5... -- Leo G. Divinagracia III [EMAIL PROTECTED] -- PHP

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: http://www.php.net/

Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
erefor not display it. so rearange the two lines like this: $message = $no_permission; include ($_SERVER['HTTP_REFERER']); and it should work. HTH, Leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
rrer is outputting something unexpected. Use some print statements to debug this.. print("{$userlevel} and {$neededlevel}"); print($_SERVER['HTTP_REFERER']); Of course make sure $no_permission actually contains a string... Leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
the original page no matter where they;re coming from. Leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and IIS

2003-03-22 Thread Leo Spalteholz
p.exe as well as access to uploadtemp and sessionsdata directories. Also in IIS enable script execution for your website or virtual folder. Leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 n

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

2003-03-09 Thread Leo Spalteholz
is: > > The value= has been > stripped from the code Look really hard at that second line.. Notice anything missing? I dont know why its stripped from your browser source but theres an obvious mistake. leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strange behaviour with login page

2003-03-09 Thread Leo Spalteholz
f it was correct I would start a session, register the variables and redirect the user. This wouldn't work most of the time in IE. For some reason it always took a few tries to login. Then I moved the call to session_start() to the beginning of the script and it worked fine. Not sure if

php-general@lists.php.net

2003-03-07 Thread Leo Spalteholz
; and & are identical except that if you use &, PHP will not short circuit the expression. like: $x = 0; if(false && $x++) print "impossible"; print $x; // should print 0 $x = 0; if(false & $x++) print "impossible"; print $x; // shoul

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

[PHP] Executing PHP code in a database

2003-03-07 Thread Leo Spalteholz
e code in the string? 2. If I instead include a file would it have access tio the local variables? Ie. In a class I have this: $strContent = "blah, this is the content I got from the database"; include("includefilefromdatabase.php"); Is the $strContent variable then availab

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

2003-03-03 Thread Leo Spalteholz
> >> } > >> > >> I've submitted the ICQ # 2264532680, but it validates. Any > >> ideas? > > My icq is 6 digits Would be kinda cool if your scirpt did a search on icq.com and if it found a result then the ICQ # is valid.. of course that means you're relying on the icq server to be up and the search page to stay consistant.. leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arrays and MySQL

2003-03-02 Thread Leo Spalteholz
ng them, but > > this seemed kind of messy and the long way around > > You can use array_sum(). What about "SELECT SUM(Goals), SUM(assists)"? Leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 -

Re: [PHP] PHP Script

2003-02-24 Thread Leo Spalteholz
nstructive, and then starts the main script. So you set some variables but where are these used? The only configuration a php script may need will be so specific that a general interface cannot handle it. Leo PS: Microsoft copyrighted images. Commercial app. Bad idea. Seriously. On February 24

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://

Re: [PHP] flashing text possible on PDA?

2003-02-22 Thread Leo Spalteholz
> > Can anyone suggest how I can make text flash on a PDA considering > that the PDA browsers do not support many Javascript commands? No! Just when I thought the tag was finally dead and gone someone wants to bring it to PDAs... :) Leo -- PHP General Mailing List (http://www.

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 II

[PHP] MSSQL Stored procedure return values

2003-02-22 Thread Leo Spalteholz
sql_bind function) I ran the stored procedure and the @returnCode variable is set correctly there so that isn't the problem. Does anyone know what could be the problem there? I guess I could return @ReturnCode in the recordset but that would be kinda hokey. Thanks, Leo -- PHP Gener

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
hrough obscurity, everyones favorite way :) Thanks, Leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
e that MAC address with a (previously obtained) database of addresses and if it matches they would automatically be logged in. So I could preauthorize my friends and remember other users once they have signed up. It seemed like a cool idea but is this at all possible or am I just insane? Thanks, Le

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: > i

[PHP] Include() problems

2003-02-13 Thread Leo Spalteholz
file fails (Failed opening for inclusion). My directory structure is: /LNDataBase LNDataBase.php /LNScreens LNScrMain.php index.php The file exists and it seems to be the exact same syntax as what I used to include the other file. What else could possibly be wrong? Thanks for an

Re: [PHP] Re: Static functions

2003-02-09 Thread Leo Spalteholz
handling(20). Ok thats my (very unrealistic) wishlist for PHP :) leo On February 9, 2003 02:09 pm, David Eisenhart wrote: > you may find the following link interesting > http://www.tek271.com/articles/JavaOrPhp.html > > David Eisenhart -- PHP General Mailing List (http://www.

Re: [PHP] Re: Static functions

2003-02-09 Thread Leo Spalteholz
ah! thank you very much. Thats exactly what I was looking for. Leo On February 9, 2003 01:49 pm, David Eisenhart wrote: > yes, you can call a static method on a class by specifying the > class name, then 2 colons and finally the function name: > > classname :: functionname([arg,...

[PHP] Static functions

2003-02-09 Thread Leo Spalteholz
like to have it more seperate. Thanks, Leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] checking

2002-06-27 Thread Leo
d with $lastname=" " but no change. how can I check if a varible is empty or not? leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] char function

2002-06-25 Thread Leo
i want a logical function (true or false) that search a character into a string.(like indexOf() in javascript) example: i want to find char '@ ' in the string [EMAIL PROTECTED] leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4.1.2 and gdbm

2002-03-05 Thread Leo
Hello, all! I have one problem i can't bild php --with-gdbm support. I have it on my Linux: gdbm-1.8.0-10 and during install there are no errors, but when i try use function in my program (dbmopen(), dblist().) PHP write that it is undefined function. Thanks! -- PHP General Mailing List

[PHP] sharing variables

2001-03-09 Thread Leo
hi i'm currently programming a php web application and i have the following problem: i need a login scheme; programmed a simple one. Whichever page the user reaches, in some i need their userid, for extra validation. so basically, i'm looking for a mechanism to share a variable between multip