Re: [PHP] calculating US holidays

2002-04-15 Thread Tom Rogers
Hi This is one way: echo date("d/m/Y",strtotime("third sunday",strtotime("2/1/2002"))); Tom At 05:17 AM 16/04/2002, Tom Beidler wrote: >I need to calculate the date to see if it's a holiday, i.e. is today >presidents day, which happens to be the third

Re: [PHP] calculating US holidays

2002-04-15 Thread Tom Rogers
Hi Perhaps that should have been: echo date("d/m/Y",strtotime("third monday",strtotime("2/1/2002"))); :-) Tom At 05:17 AM 16/04/2002, Tom Beidler wrote: >I need to calculate the date to see if it's a holiday, i.e. is today >presidents day, which happen

Re: [PHP] .inc over .php

2002-04-19 Thread Tom Rogers
Order allow,deny Deny from all Tom At 06:10 PM 19/04/2002, you wrote: >Just a few quick questions if anybody is out there. > >Why use .inc as a file extenstion when you can use .php ?? >What are the advantages/disadvantages to using .inc? >Is one more secure? >Which is fas

Re: [PHP] Discarded extension on file download

2002-04-19 Thread Tom Mikulecky
This don't work for me :( Extension .gz is still throwed away. Tom Danny Shepherd wrote: > Hi, > > I recently had this problem and, after hours of hair pulling, found that it > seems to work best if you send > the words Content-Type and Content-Disposition in **lower case*

Re: [PHP] Simple IF question

2002-04-20 Thread Tom Rogers
Hi You need to use the double = in the if condition like If ((!$salutation=="Please select") Print ("Sorry, please select a value in the salutation box"); Tom At 08:17 PM 20/04/2002, Denis L. Menezes wrote: >Hello friends, > >I have a registration form with a

Re: [PHP] Simple IF question

2002-04-20 Thread Tom Rogers
Hi again You can also write it as: If (($salutation != "Please select") Print ("Sorry, please select a value in the salutation box"); Tom At 08:29 PM 20/04/2002, Tom Rogers wrote: >Hi >You need to use the double = in the if condition like > >If ((!$salutat

Re: [PHP] Better standards in PHP-coding

2002-04-21 Thread Tom Rogers
Hi I like the following form, not sure how much time gets wasted in parsing but it's easy > for me < to follow :) while(something): if(something else): yada; else: forget it; endif; endwhile; Tom At 11:51 AM 21/04/2002,

[PHP] PHP + Microsoft Access

2002-04-22 Thread Tom Mikulecky
So what I need is sort of sql driver for accessing mdb files on a unix/linux box. Does-it exist? I searched a lot on the web but with no succes. Any suggestions are welcome Thanx in advance Some details: - The Access database file (mdb) is located on a Unix box in a shared folder Tom -- P

[PHP] good php editor for the mac

2002-04-26 Thread Tom Beidler
Could someone suggest a good php editor for the mac? I'm currently using Dreamweaver because I like the site management and a wysiwyg html editor. But otherwise it's a bummer because it doesn't support php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] good php editor for the mac

2002-04-26 Thread Tom Beidler
BBedit it is. I've been holding off on switching for awhile but I just started using it today and I'm already kicking myself for not switching earlier. There was no problem/learning curve that I was afraid of and I've found a number of improvements over the workflow from Dreamweaver. Thanks for al

Re: [PHP] STILL having Troubles getting GD support with jpegs, possiblity: PHP with GD jpeg support prebuilt?

2002-04-30 Thread Tom Rogers
hi Looks like you need -ljpeg ... your missing the l somewhere Tom At 06:35 PM 30/04/2002, Peter Revill wrote: >= >CC all Replies to [EMAIL PROTECTED] >= >Ok, im STILL having problems, im close to tears here that this is not &

[PHP] recommendation on PHP bulk email class or script

2002-05-01 Thread Tom Beidler
Just wondering if anyone has a preference for an existing bulk email class or script that is out there. I'm hoping it might be basic that I could use as a start and customize for my companies specific needs. Any input appreciated. Thanks, Tom -- PHP General Mailing List (http://www.ph

[PHP] bumping up hour by one

2002-05-01 Thread Tom Beidler
& ($display_timex[1] <= 59)) { $display_timex[0] = $display_timex[0] + 1; $insert_time = $display_timex[0] . ":00"; } Is it because display_timex[0] is not a number Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bumping up hour by one

2002-05-01 Thread Tom Beidler
) { $insert_time = $display_timex[0] . ":30"; } elseif (($display_timex[1] >= 38) && ($display_timex[1] <= 52)) { $insert_time = $display_timex[0] . ":45"; } elseif (($display_timex[1] >= 53) && ($display_timex[1] <= 59)) { $display_timex[0]++; $insert_time = $display_timex[0] . ":00"; } Thanks for all that replied. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upgrading from libmcrypt 2.2.x to 2.4.x

2002-05-02 Thread Tom Rogers
Hi Thanks for that info, was just what I needed :) You can also create $iv with this: $iv = pack("a".mcrypt_enc_get_iv_size($td),$iv); I use base64_encode() and base64_decode() to store the result and send via the web. Tom At 01:02 PM 3/05/2002, Cédric Veilleux wrote: >Hi, >

Re: [PHP] Tailing a log file {!?}

2002-05-04 Thread Tom Rogers
Hi You need exec("tail -n 100 access_log",$result); $result will be an array with the output of the command. see http://www.php.net/manual/en/ref.exec.php for more info Tom At 01:51 PM 4/05/2002, Liam MacKenzie wrote: >Hi guys, > >just a simple question, how would I go a

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Tom Rogers
Hi The following works for me, give it a try with the correct path. "; if(count($result) > 0){ foreach($result as $line){ echo $line.""; } } ?> Tom At 06:25 PM 4/05/2002, Liam MacKenzie wrote: >$cmd = exec("tail -n $len /www

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-15 Thread Tom Rogers
Hi What I do is use the function GetImageSize(), if that returns x and/or y = 0 it probably isn't an image file and dump it. Tom At 05:06 AM 16/05/2002, you wrote: >On Wed, 15 May 2002, Andre Dubuc wrote: > > Actually, I figured out how to do it: a combination of checking: >

Re: [PHP] character conversion problem

2002-05-17 Thread Tom Rogers
Hi That looks like UTF-8 encoding and I think you will need the iconv extension installed to convert it easily. Tom At 12:56 PM 18/05/2002, darcy w.christ wrote: >hi, > > i'm in a bit of a bind and i'm hoping someone can help me. i'm working > on a project i

Re: [PHP] Feelin' dumb...

2002-05-17 Thread Tom Rogers
Hi What you need is for ($i=1; $i<=$num_pages; $i+=20) { // print stuff here } Tom At 01:19 PM 18/05/2002, Jason Soza wrote: >Okay, I'm apologizing right now for this, but I hope it's at least >tolerable. I have this: > >for ($i=1; $i<=$num_pages; $i++) { &

Re: [PHP] date functions

2002-05-18 Thread Tom Rogers
Hi I think this works :) "; else: echo "there are no Mondays between $date1 and $date2 "; endif; ?> Tom At 10:22 AM 19/05/2002, Josh Edwards wrote: >Does anyone know a good way to count the days between two dates. ie how >many Mondays fall between two dates

Re: [PHP] Augmenting an old date

2002-05-18 Thread Tom Rogers
Hi You need to use the strtodate function which converts to a time stamp a date string and you can offset it by a number of days or whatever something like this "; ?> Tom At 02:03 PM 19/05/2002, Andre Dubuc wrote: >Two columns in my PostgreSQL db are type 'date' (

Re: [PHP] Augmenting an old date

2002-05-18 Thread Tom Rogers
Hi A slightly more efficeint way :) "; ?> Tom At 02:03 PM 19/05/2002, Andre Dubuc wrote: >Two columns in my PostgreSQL db are type 'date' (formatted '-mm-dd'): >'start_date' and 'expiry_date'. What I cannot seem to figure out is how to

Re: [PHP] array empty after use

2002-05-21 Thread Tom Rogers
Hi You just need to reset the array pointer with reset($array_name) Tom At 07:47 PM 21/05/2002, Web wrote: >Hi there. > >When an array is 'used' with something like do while I can't re-access it >later in the page. It is as if the array gets used up and doesn&#x

Re: [PHP] how to configure PHP (.ini) so I can use include() from any directory

2002-05-21 Thread Tom Rogers
Hi I use this at the start of my pages, it adds the original path to the extra one: (keeps the include files out of the web servers view :) ini_set ("include_path",ini_get("include_path").":../include"); Tom At 06:47 PM 21/05/2002, Wilbert Enserink wrote: >

RE: [PHP] Leading zeroes

2002-05-23 Thread Tom Rogers
Hi If it only a number in the string intval($str) should be enough to get rid of the zero unless it is only 0 Tom At 03:49 AM 24/05/2002, Liam Gibbs wrote: > > From version 4.1.0, $str = ltrim($str, '0') > >This works excellently. Thanks. One problem that I >didn&#

Re: [PHP] Mailing list software recommendation?

2002-05-23 Thread Tom Rogers
Hi I have been playing with Limez that seems to work very well with mysql and virtual domains. More info at http://www.limez.net/ Tom At 04:15 AM 24/05/2002, Chad Day wrote: >I'm looking for PHP/MySQL based mailing list software for a project I'm >doing.. I plan on hosting a

[PHP] Program execution stops at exec()

2002-05-24 Thread Tom Mikulecky
happens? Thanx in advance. Tom Code snaps: ignore_user_abort(1); set_time_limit(10); (...) exec('/home/tom/build.sh >ouput 2>errlog');//takes 3 hours to complete // *** Nothing from here gets executed, 'build.sh' script completed with succes *** (...) I&

[PHP] Re: Program execution stops at exec()

2002-05-27 Thread Tom Mikulecky
ell script. Set_limit_time should make it wait. The build.sh script completes well. Tom Michael Virnstein wrote: > note: > i think the exec in your php waits for the shell to return, but before the > shell can answer, php terminates the script, because of the max_exection. >

Re: [PHP] Re: Program execution stops at exec()

2002-05-27 Thread Tom Mikulecky
rarely. I wanted to do a sort of interface to start generation of some files at distance. It would be cool to have it done just by pushing single button. My work-around is that now I have to push another button after 3 hours ;) No big deal, it is generated once or twice a year. Thanks to everyone who tried

[PHP] Re: Session's is slowing the page ??

2002-05-28 Thread Tom Mikulecky
or use non-blocking read-only sessions (session_readonly instead of session_start) in case you don't need to modify registered variables. Tom Dima Dubin wrote: > Hello, > I have very wierd problem : > I use session to manage users and I have this structure of the page : > - >

[PHP] Re: Session's is slowing the page ??

2002-05-28 Thread Tom Mikulecky
ion: login.php"); This will redirect user to the login page if not logged in. If he was logged, script will go on and you can access $user and $user_email. Any change of their value will not be saved in the session Tom PS: in my PHP version 4.04 , function session_readonly()

[PHP] Re: Session's is slowing the page ??

2002-05-28 Thread Tom Mikulecky
er = $user;//if $user and $user_email are session data $copy_user_email = $user_email; session_write_close();//or session_end() if your php knows it That way you can access $copy_* in the body instead of session variables. It works as readonly access to session data Tom Dima Dubin wrote:

[PHP] determining where the computer is that posts to a db

2002-05-29 Thread Tom Beidler
ocal ISP's that register dynamic IP addresses. If one of the workers has the same ISP I can't tell whether they are at home or work. Any ideas? Is there a var that could get the MAC address of the machine? Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] generating next number... from db extraction

2002-05-29 Thread Tom Rogers
Hi You could use the auto increment feature of mysql and store the prefix and suffix as seperate fields in the database like idnum|prefix|suffix|data 1234:abc|A Then just add them together to form the complete order number. Tom At 10:27 AM 30/05/2002 +1000, Peter wrote: >hi, >

RE: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread Tom Rogers
Hi lines 123 are all outputting info, do the php stuff first this script below is delete.inc >and the lagi.php is .. >1::PHp >2: >3:hahahahha >4:5:require 'delete.inc'; >6:deleteCookies(); >7:printf("can do it`"); >8: >9:?> >10: >11: > >so, which one in line 4 have send anything first >please hel

[PHP] Re: httpd runs forever

2002-05-30 Thread Tom Mikulecky
There's always at least one httpd process running which listens to incoming http connections. Tom Jacob Friis Larsen wrote: > I sometimes have a httpd process that when I look at top has run for > more than 100 min. > > Can I in some way find out why it will not stop or its

[PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Ray
Hi there..some what a new programmer when it comes to all this. I'm trying to encrypt some data and then decrypt it. It doesn't have to be high bit encryption just something simple like 3DES. But I keep getting it wrong. Any help would be greatful. Here's the piece of code: $iv = mcrypt_create

Re: [PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Rogers
d, $iv); $id = mdecrypt_generic ($td, base64_decode($eid)); mcrypt_generic_end ($td); return $id; } Tom At 11:07 PM 30/05/2002 -0400, Tom Ray wrote: >Hi there..some what a new programmer when it comes to all this. I'm trying >to encrypt some data and then decrypt it. It doesn&#x

Re: [PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Ray
v); again any help would be appreciated. Tom Rogers wrote: > Hi > Here are a couple of functions that should help to get you started, iv > is set to all 0's so it does not have to be passed around or stored in > sessions. It is base64 encoded so it can be stored or passed to t

Re: [PHP] Sablotron broken in 4.2.1 ?

2002-06-03 Thread Tom Rogers
hi I am using 4.2.1 and it works fine, I can't see your source code as web servers don't show it by design :) But from the error message it can't find your class file. I used the code below to test it. Tom $xsltproc = xslt_create(); $html = xslt_process($xsltproc, '

[PHP] XML

2002-02-26 Thread Tom Holton
Hello, I have come across a strange error when using the XML parsing functions. Instead of printing the xml to the screen, like the functions do, I decided to put these into arrays. It all seems to be working normally, except for the "data" part (this is the non-xml data). I can verify that the d

[PHP] cannot see LDAP userPassword and createTimestamp attr

2002-02-26 Thread tim tom
... Data for 1 items returned: dn is: uid=tim,ou=subdept,o=dept,dc=myorg,dc=com first cn entry is: Tim Tom first email entry is: [EMAIL PROTECTED] first createTimestamp entry is: first userPassword entry is: Closing connection why can't i see the createTimestamp and userPassword bcos i d

[PHP] problems with replacing line breaks

2002-03-01 Thread Tom Kincaid
I'm trying to replace line breaks with html code and am having problems. For single lines preg_replace("/\n/","",$text) or ereg_replace("\n","",$text) adds the but doesn't remove the line break. While preg_replace("/\n\n/","",$text) doesn't find any double line breaks, even though they're ther

[PHP] words for pspell

2002-03-02 Thread Tom Kincaid
I'm trying to use pspell for a forum. It works great, but I can't quite figure out how to pull individual words out of a string for it. preg_match ("/\b.+?\b/", $text, $matches) works almost perfectly, EXCEPT apostrophes are word boundaries so the string "Shouldn't this work?" would have "Shou

Re: [PHP] PHP4.1.2

2002-03-02 Thread Tom Holton
Thanks, I redid the configure with BOTH imap and imap-ssl It now shows up in the phpinfo. I now have another problem when the login is being deneid because of a bad password, but this is a different problem. prob. not to do with php. By the way, the system i am on is alpha OSF4.1. thanks for your

Re: [PHP] How to generate an broun & white JPG with GD

2002-03-03 Thread Tom Rogers
Hi Here is a small php script to create sepia images from a jpeg, put it in the same place as your images and call it sepia.php. Uselike this: img src="/images/sepia.php/filename.jpg" Probably will only work with php-4+ and gd 2+ Tom At 02:42 AM 3/3/02, Andy wrote: >Hi th

Re: [PHP] How to generate an broun & white JPG with GD

2002-03-03 Thread Tom Rogers
< 16); imagesetpixel ($im, $x, $y, $p); } } Header("Content-type: image/jpeg"); ImageJpeg($im,'',50); endif; ?> Probably will only work with php-4+ and gd

Re: [PHP] form variables

2002-03-04 Thread Tom Rogers
hi Use This will work as long as the form is not too big Tom At 11:14 AM 5/03/2002, Craig Westerman wrote: > > > > > > > > >The above form passes $quote to the page quotestest.php >How can I also pass the $quote to the URL so that the page with variable ca

Re: [PHP] Does function ImageTTFText work with php 4.1.2 and freetype 2.0.5?

2002-03-04 Thread Tom Rogers
src/mhash-0.8.9 \ --with-pspell=/usr \ --enable-track-vars Hope this helps Tom At 08:01 AM 5/03/2002, Ziying Sherwin wrote: >We installed php 4.1.2 with freetype 2.0.5 library support on our Solaris >2.8 machine using gcc 2.95.2. However, the php function ImageTTFText() >stopped to wo

Re: [PHP] serialize

2002-03-05 Thread Tom Rogers
hHi $data = serialize($felnummer); That should do it.. Tom At 12:58 AM 6/03/2002, Axel Nilsson wrote: >Hi All! >I use this code to create a number of fields in a form depending on what >input number I use. My problem occurs when i am going to save it. Right >now only the value

[PHP] PHP and IMAP_SSL

2002-03-05 Thread Tom Holton
ocnfigure is telling me it is. Perhaps there is some other file that PHP is looking at that is saying "SSL support" ? My apache server is running openssl-0.9.6b, but should this have an effect in the IMAP configuration? any help is much appreciated! -tom -- PHP General Mailing

[PHP] Tutorial or links for using MyODBC with Excel

2002-03-05 Thread Tom Beidler
ed through the MySQL documentation and checked Hotscripts and WeberDev. Any others? Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preload dynamic image problems

2002-03-06 Thread Tom Rogers
end file name of the background image, font, size, colour, offset,alignment and finaly the text to use. and it is still cacheable. If you want a copy of my index.php which unscrambles that lot let me know... Tom At 06:09 AM 7/03/2002, Adrian Murphy wrote: >This seems strange to me but i promi

Re: [PHP] PHPBuilder.com Has an Easy File Upload Article, does any1 know

2002-03-06 Thread Tom Rogers
Hi Here is a script that will send any file for download, even .html files. I called it send.php usage is send.php?filename=file_to_send Looks weird but it works Tom At 06:31 AM 7/03/2002, Caleb Carvalho wrote: >Hi all, > >PHPBuilder.com Has an Easy File Upload Article, i find

Re: [PHP] image creation to file

2002-03-06 Thread Tom Rogers
Hi use ImagePNG($im,"test.png") Tom At 12:17 PM 7/03/2002, Craig Westerman wrote: >The following creates a red rectangle png image > >Header("Content-Type: image/png"); >$im = ImageCreate(500, 75); >$red = ImageColorAllocate($im, 255, 0, 0); >ImageFi

RE: [PHP] image creation to file

2002-03-06 Thread Tom Rogers
Hi You have to make sure that the user that your web server is running as has permission to write where you want to create the file. Tom At 12:56 PM 7/03/2002, Craig Westerman wrote: >Hi Tom, > >At first it didn't work. I had to create a blank png image in Photoshop and >up

RE: [PHP] Re: Can't display PNG images

2002-03-12 Thread Tom Rogers
Hi You will probably have to recompile gd as well. Tom At 11:33 AM 13/03/2002, Narvaez, Teresa wrote: >Thank you so much for your responses. Thanks for any response! > >I now the GD libraries with PNG support. However, the image is still >broken. I looked at the apache server e

[PHP] banner ads

2002-03-13 Thread tom hilton
Hi, does anyone know of a simple banner ad rotation script that can rotate animated gifs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with sessions.

2002-03-16 Thread Tom Rogers
Hi When you create the new session give it a different name. Tom At 01:49 AM 17/03/2002, Carlos Costa Portela wrote: > Hello all: > > I am playing with sessions and I have a problem with the >session_destroy() function. If I do a session_register() after calling it,

Re: [PHP] Problem with sessions.

2002-03-17 Thread Tom Rogers
// even I've clicked logout? > $counter++; > print "counter: $counter\n"; > } >} > > > > http://casa.ccp.servidores.net/tutorials/php/sessions/sessions.php and > > > http://casa.ccp.servidores.net/tutorials/php/sessions/sessions.ph

Re: [PHP] Problem with sessions.

2002-03-17 Thread Tom Rogers
Hi As you had not started a session at that point there was none to destroy or unregister :) Tom At 11:53 PM 17/03/2002, Carlos Costa Portela wrote: >On Sun, 17 Mar 2002, Tom Rogers wrote: > > > hi > > If you put: > > > > > session_start(); > > > >

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Tom Rogers
Hi A variation echo date("d/m/Y",strtotime("+2 years")) Tom At 06:29 PM 18/03/2002, Martin Schichl wrote: >At 10:19 18.03.02 +0200, "Andrey Hristov" <[EMAIL PROTECTED]> wrote: > >$your_timestamp+=gmmktime(0,0,0,1,1,1972); > >Try: >

Re: [PHP] why doesnt this work???

2002-03-20 Thread Tom Rogers
== $passord) echo "hei $bruker."; else echo "FEIL"; endwhile; Tom At 12:14 AM 21/03/2002, chris wrote: >this script receives vars "b" and "p" from a form. >If "b" and "p" matches the echo on IF, then it works just fine. >Th

[PHP] PHP-CGI and script files not found

2002-03-21 Thread Tom Keyser
's no way around this. Sorry about this! ~~~ Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with multiple cookies, PHP, and proxypass under apache

2002-03-24 Thread Tom Rogers
Hi This may solve your problem http://archive.covalent.net/apache-bugdb/2000/05/0082.xml Tom At 12:09 PM 25/03/2002, Vincent Cunniffe wrote: >Hi, > >I have an apache server which is configured to pass some requests through to a >secondary, chrooted apache server. For each virtual

Re: [PHP] problem with multiple cookies, PHP, and proxypass under apache

2002-03-24 Thread Tom Rogers
Hi Found this follow up too http://archive.covalent.net/apache-bugdb/2000/05/0084.xml Tom At 12:09 PM 25/03/2002, Vincent Cunniffe wrote: >Hi, > >I have an apache server which is configured to pass some requests through to a >secondary, chrooted apache server. For each virtual

[PHP] HTTP_REFERER

2002-03-25 Thread tom hilton
Hi, I am using the $HTTP_REFERER variable to ensure that users of a website are getting to a certain page through a link from the index.html page, and not going straight to the page through a bookmark. $page=$HTTP_REFERER; if ($page!="http://www.somedomain.com/index.html";) { echo "Please log

Re: [PHP] while loop: detect next loop?

2002-03-28 Thread Tom Rogers
27;] . ""; } That will add to all except the last one. Tom At 07:04 AM 28/03/2002, you wrote: >There is a nice feature of a for loop, that I would like to replicate >somehow within a while loop. The short question is this -- is there any >way to detect if the while loop has o

Re: [PHP] BUG in recursion

2002-04-01 Thread Tom Rogers
Hi One way is to use a variable to track the recursion llike this: $y will always be 1 as long as it is in recursion only going to 0 on the last one. Tom At 09:59 AM 31/03/2002, Uros Gruber wrote: >Hi! > >This is a code > >function Test() >{ > static $coun

[PHP] header location redirect to frameset target

2002-04-02 Thread Tom Beidler
Can you specify a frameset target, i.e. _blank, in a redirect. I have a site built with frames and one of the frames has a redirect in it. Currently the redirect works but pulls the site I want up in the frame and doesn't create an entire new page. -- PHP General Mailing List (http://www.php.ne

Re: [PHP] session

2002-04-02 Thread Tom Rogers
Hi You need session_start() on the retief.php page Tom At 05:06 AM 4/04/2002, R. Lindeman wrote: >okay i've posted something before here are my scripts either you tell me >what i do wrong or i'll go beserk > >you can check the outcome of the code on the fo

Re: [PHP] Managing time zones

2002-04-03 Thread Tom Rogers
quot;:"+m+":"+s+"&Submit=yes&Month="+mm+"&Day="+dd+"&Year="+yy } // end --> onload="gogo()"> "; endif; ?> Tom At 10:38 AM 4/04/2002, Miguel Cruz wrote: >Among other user

Re: [PHP] Managing time zones

2002-04-03 Thread Tom Rogers
t;<?echo $PHP_SELF?>?Time="+h+":"+m+":"+s+"&Submit=yes&Month="+mm+"&Day="+dd+"&Year="+yy } // end --> onload="gogo()"> "; endif; ?> Tom At 10:38 AM 4/04/2002, Miguel Cr

[PHP] help condensing regular expressions

2002-04-05 Thread Tom Rogers
=images/logo.png Regular expressions leave me cold but I have come up with the following monster which works $relative_root = preg_replace("<\/[[:alnum:]]+>","../", preg_replace("","",strtok($PHP_SELF,"."))); Anybody have a better solution?

Re: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Tom Rogers
I want to keep seperate from the default php include directory set in php.ini The other thing is that this gets rid of the include file inside included file problem as long as I set $relative_root at the top level. Tom At 06:26 AM 6/04/2002, Julio Nobrega Trabalhando wrote: > How about:

RE: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Tom Rogers
from an included file :) My little relative_root does the trick nicely for both situations, just I think the expression I use is very brutal and there is probably a more elegant way to arrive at the same result. Tom At 06:32 AM 6/04/2002, Collins, Robert wrote: >why not use somthing like t

Re: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Tom Rogers
which takes care of the include path I use the path translated info for pages that are sym linked across virtual domains such as admin pages. Thanks again Tom At 03:49 PM 6/04/2002, Chris Adams wrote: >In article <[EMAIL PROTECTED]>, Tom >Rogers wrote: > > I am trying t

Re: [PHP] Re: help condensing regular expressions

2002-04-06 Thread Tom Rogers
Hi I have never used .htaccess but I'll read up on it, I am the ISP so it won't be a problem :) Tom At 06:12 PM 6/04/2002, Chris Adams wrote: >In article <[EMAIL PROTECTED]>, Tom >Rogers wrote: > > Thats what I was after :) > >Glad I could help. >

Re: [PHP] Re: Test for whole number.

2002-04-07 Thread Tom Rogers
Hi Not sure if this is the best way to do it: function isOneBitSet($n) { return !ereg("\.",strval(log($n)/log(2))); } Tom At 09:16 AM 8/04/2002, Charlie Killian wrote: >That post was incomprehensible. Here it is revised: > >I'd like to condense the func

Re: [PHP] getting the 'client' date and time for use in PHP scripts ??

2002-04-08 Thread Tom Rogers
Hi Here is the answer I gave a few days ago to the same sort of question: Untitled