Re: [PHP] Formatting a Time field

2006-03-23 Thread Tom Rogers
Hi, Friday, March 24, 2006, 9:51:48 AM, you wrote: TC I have a field, Start_Time, in a MySQL DB. Since it is not a TC TimeStamp, I believe I cannot use date(), correct? TC I would like to format 09:00:00 to 9:00 AM. TC If I convert the 09:00:00 with the strtotime(), I get a couple of TC

Re: [PHP] Multidimentional array problems

2006-04-03 Thread Tom Rogers
Hi, Tuesday, April 4, 2006, 8:37:18 AM, you wrote: ME Hi, ME I am trying to read form a database and place everything in a ME multi-dimentional array ME This is what I am doing and the output (for testing) seems correct ME while($row=mysql_fetch_array($result)) ME { ME $banner=

Re: [PHP] Problems creating images

2006-04-05 Thread Tom Rogers
Hi, Thursday, April 6, 2006, 5:42:05 AM, you wrote: AB Hi, AB I added image confirmation to a guestbook and even though it works AB greate for most people, some people have problem and I can't seem to AB figure out why this happens. Note that I'm not talking about the same AB guestbook on one

Re[2]: [PHP] Problems creating images

2006-04-06 Thread Tom Rogers
Hi, Friday, April 7, 2006, 6:20:41 AM, you wrote: AB Tom Rogers wrote: AB There isn't. I've got the suspicion it's got to do with the UTF-8 AB character encoding because of the characters '', I've seen this AB before with HTML pages. Because of this I asked the person who's having AB

Re: [PHP] Passing an indefinite number of parameters by reference

2006-05-07 Thread Tom Rogers
Hi, Monday, May 8, 2006, 4:20:11 AM, you wrote: CJ Hi, CJ Currently I have a function which accepts a limited number of parameters: CJ call_function($function_name, $var_1, $var_2); CJ I wish to modify the function to accept an indefinite number of CJ parameters, which may or may not be

Re[2]: [PHP] Passing an indefinite number of parameters by reference

2006-05-08 Thread Tom Rogers
Hi, Monday, May 8, 2006, 8:46:38 PM, you wrote: CJ Tom Rogers wrote: Here is a cutdown version of a class loader I use, It works for php4 and php5 and with references. It should be easy to modify. CJ [...] CJ Sorry, this does not work with references as func_get_args() copies the CJ arguments

Re[2]: [PHP] GET, POST, REQUEST

2006-06-18 Thread Tom Rogers
Hi, Sunday, June 18, 2006, 5:19:20 PM, you wrote: S - Original Message - S From: Rory Browne [EMAIL PROTECTED] Good code won't be vulnerable to register_globals either, but having register_globals on is a security problem because there are security flaws that can only be exploited

Re: [PHP] Template Security Advice (WASP - http://wasp.sourceforge.net)

2005-10-12 Thread Tom Rogers
Hi, Tuesday, October 11, 2005, 3:37:13 PM, you wrote: BF I'm finishing up my WASP framework 1.0 release (http:// BF wasp.sourceforge.net) and I'm trying to decide the best way to lay BF out the template directories. BF WASP uses HTML_Template_Flexy for its template system. The templates BF are

Re[2]: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Tom Rogers
Hi, Saturday, October 22, 2005, 6:26:57 AM, you wrote: JB [snip] I just noticed that extension_dir in phpinfo is c:\php4 THAT AIN'T RIGHT! Why is PHP not loading the proper ini file? This is probably the source of my problems all along! ACK! JB This is what happens when you go over to

Re: [PHP] regex and global vars problem

2005-10-27 Thread Tom Rogers
Hi, Thursday, October 27, 2005, 3:15:30 AM, you wrote: JG I am having a problem with a couple of function I have written to check JG for a type of string, attempt to fix it and pass it back to the main JG function. Any help is appreciated. I would do it with a small class like this: ?php class

Re[2]: [PHP] regex and global vars problem

2005-10-28 Thread Tom Rogers
Hi, Friday, October 28, 2005, 7:20:58 PM, you wrote: RV On 10/28/05, Tom Rogers [EMAIL PROTECTED] wrote: I would do it with a small class like this: RV $mactest = new mac(there are a few gotchas for anyone using this); print $mactest-is_valid ? valid\n : invalid\n; RV // valid RV -- RV PHP

Re[2]: [PHP] calling static method within class

2005-10-28 Thread Tom Rogers
Hi, Saturday, October 29, 2005, 5:42:15 AM, you wrote: CR If you're expecting the statement CR Echo Foo::getUs(); CR To echo me me it will not because you never returned $us from the CR getUs() method. I'm assuming also that xxx is a variable to mean some CR class library correct? CR Carlo

Re: [PHP] manipulating constant name as string

2006-01-01 Thread Tom Rogers
Hi, Monday, January 2, 2006, 4:37:17 AM, you wrote: DG Hello DG I am trying to access the constant name as string and not the constant DG contents. For example, DG define('myconst', 'const text 1'); DG $myArray = array() DG myArray['myconst'] = this is it DG etc. DG $xmltext=; DG foreach

Re: [PHP] Missing characters

2006-02-06 Thread Tom Rogers
Hi, Tuesday, February 7, 2006, 9:01:18 AM, you wrote: FA I need a helping hand to solve this FA Example FA Page1.php FA === FA $name_pro = VC++ V2.4 FA print td width='200' class='texto2' a FA href='page2.php?page=value=$name_pro'

Re: [PHP] REGEX query

2006-02-09 Thread Tom Rogers
Hi, Saturday, February 4, 2006, 2:53:32 PM, you wrote: p Hi, p I'm still trying to get to grips with REGEX and have hit a hurdle with p the following: p I have this bit of text: p (\(EX\) RV-6 ) p I want to remove the '\(EX\)' part of it p so leaving just: ( RV-6 ) p Any suggestions would be

Re: [PHP] Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Tom Rogers
Hi, Friday, February 10, 2006, 8:16:41 PM, you wrote: DT Hi, DT I'd like to say in advance that I am sorry about the silly and very newbie DT question I'm asking. DT I am having a problem with a shop system. I can't add values into the MySQL DT DB via a PHP statement. The values are being

Re: [PHP] Compiling Truetype fonts

2001-04-17 Thread Tom Rogers
HI I have been corrected b4 but I compiled gd with truetype support and it works fine. I think you have to edit the gd Makefile. Then delete the php config.cache and re run configure Tom At 11:47 PM 17/04/01 +0200, barce wrote: Hello, I am having problems compiling truetype font support into

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Tom Rogers
Hi Here is another way $x = 1; while($x 5): $index = "name".$x; $name = $$index; echo $name."br"; endwhile; had troubles with echo and $$variable, thats why the extra stephabit Tom At 10:58 AM 23/04/01 +1000, Chris Aitken wrote: Hi Just a quick puzzle I cant

Re: [PHP] retrieve single field from database without while loop

2005-02-16 Thread Tom Rogers
Hi, Wednesday, February 16, 2005, 9:48:41 PM, you wrote: rac Is there a way to retrieve and display a single value (customer number) from rac a database and display it without using rac while ($row = mysql_fetch_array) ($result)){ rac I have a value I know the query will only ever return a

Re: [PHP] Document root, preferred way to find it???

2005-03-02 Thread Tom Rogers
Hi, Thursday, March 3, 2005, 5:21:58 AM, you wrote: A I've been using in my scripts $_SERVER['DOCUMENT_ROOT'] to find the base path A for includes, etc. A We just moved the site to a new virtual host and it doesn't work. print_r() A gives me: $_SERVER['document_root']=

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-03 Thread Tom Rogers
Hi, Thursday, March 3, 2005, 11:54:48 AM, you wrote: A If I'm reading you correctly, then a truly transportable include might look like A this: A $doc_root= (isset($_SERVER['path_translated'])? A $_SERVER['path_translated'] : A $_SERVER['document_root']; Exactly -- regards,

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
Hi, Saturday, March 5, 2005, 5:47:07 AM, you wrote: LG Hello Richard, LG Friday, March 4, 2005, 11:41:29 AM, you wrote: R http://php.net/set_include_path LG Ok... Maybe I should put all this together in one e-mail so that all LG the issues can be looked at... LG The problem: LG Finding a

Re[3]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
Hi, TR This will set the include path just before the document root: TR if(isset($_SERVER[SCRIPT_FILENAME])){ TR $root = $_SERVER['SCRIPT_FILENAME']; TR //echo Root: $rootbr; TR $script = $_SERVER['SCRIPT_NAME']; TR $document_root =

Re: [PHP] line feed

2005-03-04 Thread Tom Rogers
Hi, Saturday, March 5, 2005, 12:38:20 AM, you wrote: BS Hello. BS How do i print a line return using the echo command, for when i see the BS page source, BS i get the code line by line and not all in the same line. BS using double quotes ( ), i can put \n at the end and i get the result BS i

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi Leif, Monday, March 7, 2005, 10:03:48 AM, you wrote: LG Hello Tom, LG Friday, March 4, 2005, 9:13:41 PM, you wrote: TR This will set the include path just before the document root: LG H. Not quite what I'm looking for. I set up some test folders and LG files on a development machine to

Re: [PHP] error from 4.3.10: The specified procedure could not be found.

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 4:55:01 AM, you wrote: JM Forgive me if this has been answered before, but all I was able to find JM was a bogus bug report on this issue that did not contain any useful JM information. When installing php 4.3.10 on a Win2k3 machine I'm getting JM the The specified

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 1:08:27 PM, you wrote: LG Hello Tom, LG Sunday, March 6, 2005, 6:18:54 PM, you wrote: TR and let me see what it prints LG Still not quite there. LG Site root LG ** LG File name: C:\Sambar\docs\test\test.php LG Script: /test.php LG Document root:

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 3:57:50 PM, you wrote: LG Hello Tom, LG Sunday, March 6, 2005, 10:00:17 PM, you wrote: TR Ok I see where is is going wrong, try this: LG Oh, very close. Although you have it at $document_root and all LG that needs to be added is '/include' like below: LG $include

Re[2]: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Tom Rogers
Hi, Tuesday, March 8, 2005, 12:03:54 AM, you wrote: LG Hello Tom, LG Sunday, March 6, 2005, 11:20:04 PM, you wrote: T I do this for security as I have things in include that I don't T want to be avaiable directly to the browser Also you don't need a T path for include files you can just do: LG

Re[2]: [PHP] incrementing a number from a text file

2005-03-11 Thread Tom Rogers
Hi, Friday, March 11, 2005, 6:30:52 PM, you wrote: KM -Original Message- KM From: Richard Lynch [mailto:[EMAIL PROTECTED] KM Sent: Thursday, March 10, 2005 10:14 PM KM To: Ross Hulford KM Cc: php-general@lists.php.net KM Subject: Re: [PHP] incrementing a number from a text file I want

Re: [PHP] GIF instead of JPG..

2005-03-23 Thread Tom Rogers
Hi, Wednesday, March 23, 2005, 11:30:53 PM, you wrote: RA Hi, RA I found this beautiful piece of code on the php site which make a RA proportional thumbnail, problem is its only working with JPEG files...and RA not with GIFs, can someone please help me convert it to GIF too? RA I tried but got a

Re: [PHP] SQL statement - please help

2005-03-24 Thread Tom Rogers
Hi, Thursday, March 24, 2005, 6:50:38 PM, you wrote: J Dear all J Please, I realy need your help. I am trying to extract only those records J that were entered during the past hour from my MySQL database. The J following SQL statement extracts all the records. As soon as I change the J

Re: [PHP] Listing directory, return none if only one file

2005-03-24 Thread Tom Rogers
Hi, Thursday, March 24, 2005, 8:15:11 PM, you wrote: AM I have a script that lists the files in a directory, but when i have AM only ONE file , it won't display it ( here is the code : AM http://www.pastebin.com/262050 ) After you sort the $filename array its index changes from 1 to 0 so your

Re: [PHP] image problem

2005-03-24 Thread Tom Rogers
Hi, Friday, March 25, 2005, 3:27:41 AM, you wrote: WS Hello, WS I really can't figure this out. Can someone help please. I've wasted hours WS already with this one. WS I'm trying to print image to a web page using fpassthru. Here's the code: WS $name = path/to/the/image/folder/img1.jpeg; WS

Re: [PHP] OR statement

2005-03-24 Thread Tom Rogers
Hi, Friday, March 25, 2005, 11:27:30 AM, you wrote: MD Hello, MD I would like to first thank everyone for their help with the last few MD questions I have had. I really appreciate it. MD Here is my question: MD if ($audio == Cool){ MD Do this MD }else{ MD Do that MD } MD This work fine,

Re: [PHP] text editor

2005-03-28 Thread Tom Rogers
Hi, Tuesday, March 29, 2005, 9:17:42 AM, you wrote: TT Hi all, TT ok, I have created my own php text editor that allows a user to edit TT files from local(server) disk. TT I use a basic html textarea to show the contents of the file, and let TT them edit it, and then save it to disk. TT I've

Re: [PHP] Session in two servers

2005-04-01 Thread Tom Rogers
Hi, Friday, April 1, 2005, 10:59:13 PM, you wrote: SS Hi, SS I am using sessions in my web application which is installed in two SS pawns. So the request is randomly picked by one of the two servers. I SS am using files in php session but not database. My problem is, if the SS first request go

Re: [PHP] Multiple Select Field

2005-04-03 Thread Tom Rogers
Hi, Monday, April 4, 2005, 2:58:36 AM, you wrote: RK Please excuse the length and complexity of this post. I am facing a RK complicated problem and need to find a solution. Also, I have posted this RK on both PHP and MySQL boards so please overlook the possibly slightly RK off-topic subject. RK

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-08 Thread Tom Rogers
Hi, Saturday, April 9, 2005, 3:35:21 AM, you wrote: MH I have an odd php issue with mcrypt. MH I'm getting a lot of this type of error, but only sometimes: MH mcrypt_generic_init(): Iv size incorrect; supplied length: 0, needed: 32 MH (note, the supplied length: 0 is not always the same.

Re: [PHP] Creating INSERT INTO statement from dbf file

2005-04-11 Thread Tom Rogers
Hi, Tuesday, April 5, 2005, 6:33:31 AM, you wrote: RSJ Ave, RSJ I¹ve written a code that is able to extract the Column names and Records RSJ from a simple dbf (foxpro) file and create an INSERT INTO sql statement RSJ which can be used to insert all those records with their corresponding field

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 5:14:25 AM, you wrote: MH Do you do this on the encryption or the decryption section or both? I do it on both, here is a class I use that may help: class encryptClass{ var $secret; function encryptClass(){ $this-secret = 'put secret here'; } Function

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 6:04:05 AM, you wrote: MH I get the following error when I try your suggestion: MH Unknown error type: [8] Undefined variable: iv MH Code: $key = md5($this-_cypherkey); MH $key = substr($key, 0, mcrypt_enc_get_key_size($this-td)); MH $iv_size =

Re: [PHP] Re: Limiting Cpu usage

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 8:20:46 AM, you wrote: z Yeahh! i have made it z i can slow down a php script , as i edited the zend engine source to usleep z every 1000 low-level instructions z now, is there a way to determine to check my cpu load and adjust it by that z so if nothing (or

Re: [PHP] RegEx help

2005-04-14 Thread Tom Rogers
Hi, Thursday, April 14, 2005, 11:47:13 PM, you wrote: BD I wanted to create a regex that force a PHP form text field to meet the BD following requirements: BD a. Must contain an 1 uppercase letter. [A-Z] BD b. Must contain 1 digit. [0-9] BD c. Must be a minimum of 7 characters in length. {7}

Re: [PHP] Why is the default value for arg_separator.output ''?

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 5:56:44 AM, you wrote: DD For documents to conform to the XHTML recommendation, ampersand characters DD much be encoded as amp;. The documentation for PHP recognises this. The DD same applies to HTML (with some exceptions that the session code will never DD

Re[2]: [PHP] Why is the default value for arg_separator.output ''?

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 9:05:39 AM, you wrote: RBAK On Wed, 20 Apr 2005, Tom Rogers wrote: You can set this with arg_separator.output in php.ini RBAK That doesn't really answer why the choice was made to default to what RBAK not only shouldn't be the default, but should probably

Re: [PHP] Images - Converting TIFF Format?

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 12:39:54 AM, you wrote: TDJ Is there a quick way to convert a TIFF format picture to a GIF quickly? I TDJ can only find support for GIFs in PHP, but maybe I'm missing something. I TDJ have a client running a photography business, and I have designed an image TDJ

Re[2]: [PHP] Images - Converting TIFF Format?

2005-04-20 Thread Tom Rogers
Hi, Thursday, April 21, 2005, 3:15:31 AM, you wrote: TDJ I searched through my server's system (I'm not running it, it's my ISP) and TDJ finally found that TIFF isn't compiled into GD. I can get them to do it, but TDJ I need to know what functions to use! Are they under a different file type?

Re: [PHP] Count totals (might be 0T)

2005-04-21 Thread Tom Rogers
Hi, Friday, April 22, 2005, 8:03:06 AM, you wrote: RA Hi again, RA Am faced with a new problem (either that or working straight 10 hours is RA catching up!) RA Heres my table (easy to figure out so i wont waste your time explaining the RA fields): RA cno, RA date_added, RA pic_name, RA

Re[2]: [PHP] How to handle so called expired sessions??

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 4:01:07 AM, you wrote: Ive just been getting myself deep into using sessions. Sessions are working as it should except for one condition. Say I log into the site, and the session is started, and I don't do anything for the next 30 mins, then go back to the

Re: [PHP] My first post

2002-12-03 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 7:37:20 AM, you wrote: VE Hi. VE I'm new in PHP. Could you point me where can i download a sample script VE about how can i paginate some results? VE TIA Here is a class that will create a google like pagination of results if that is what you are after :) ?

Re[4]: [PHP] How to handle so called expired sessions??

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:04:07 PM, you wrote: S I have a similar problem only my sessions expire once you leave the site, S even for a second. I'm not so experienced with cookies so how can I fix S this? S - Original Message - S From: Tom Rogers [EMAIL PROTECTED] S To: John W

Re[4]: [PHP] How to handle so called expired sessions??

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:33:03 PM, you wrote: No question :) It's just that this is what the original question was about and why I suggested doing his own sesssion timeout check as the deleting proccess is too unreliable to depend on for timeout handling. PHP will quite happily return

Re[6]: [PHP] How to handle so called expired sessions??

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:59:11 PM, you wrote: JWH Okay. I think I thought you were the original poster. How do you know JWH it's returning stale data, though? If the cookie is valid, and there JWH is still a session file (or data in memory), then why is it stale or JWH expired. Maybe

Re: [PHP] Whimper, help :)

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 2:06:36 PM, you wrote: JTJ Martin, JTJ Anyone, JTJ I'm desperate :( PHP isn't sending my SQL correctly. It's not a MySQL problem. It's my PHP syntax. JTJ Debugging: JTJ http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B JTJ $sql

Re: [PHP] Re: mcrypt 2.4.x - trouble with small data fields?

2002-12-04 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 3:39:10 PM, you wrote: Is there a minimum field size for using mcrypt? SY Boy I feel dumb now. :) My answer was in my post. Mcrypt returns a SY string that is usually longer than the original string, since the return has SY to be a multiple of the block

Re[2]: [PHP] Whimper, help :)

2002-12-04 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 3:12:41 PM, you wrote: JTJ Tom, JTJ Anyone, JTJ No I'm not looking for a , I'm trying to pass double quotes into MySQL. JTJ Like I said, it works when debugging: here is a function to clean up your search string, a bit long winded but it should work :) function

Re: [PHP] magic quotes

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 3:39:20 AM, you wrote: JTJ What are magic quotes? Will this help me? JTJ http://news.php.net/article.php?group=php.generalarticle=126934 JTJ How is this different from stripslashes. JTJ I have RTF doc :) JTJ

Re: Tom: [PHP] magic quotes

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 7:11:20 AM, you wrote: JTJ Tom, JTJ Sorry for the delay. I have tried your code. JTJ SELECT id,AU,ST,BT,AT FROM ccl_main WHERE MATCH JTJ (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST ('ready maria ' IN BOOLEAN MODE) JTJ ORDER BY id asc JTJ

Re: [PHP] Problem with functions

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 9:15:53 AM, you wrote: VH Hi, VH I have de following code for example VH ?php VH $username = victor; VH function test() { VH echo $username; VH } ? VH If I call the funcion test(), echo print nothing what's is going on ? VH []´s VH [EMAIL

Re[2]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 11:00:14 AM, you wrote: RL On Wednesday, December 04, 2002 3:03 PM, I wrote RL Hi, RL Further to my original post, to check if my php.ini was being recognized I RL temporarily changed some other configuration options, i.e. register_globals RL and include_path,

Re: [PHP] Get-type links won't complete querystring values

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 8:16:06 AM, you wrote: AB Hi everyone. AB I have certain links for document navigation with a query string where one of the values doesn't fill, so the links don't work. AB The document is a law navigated with pieces of text taken from an array, where the key

Re: [PHP] Looping Addition

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 7:26:57 AM, you wrote: S Sorry for the uncontrolable emaling to the list but I'm in rather a stump. S You may be hearing a lot from me over the next few days too. S Anyway, I mentioned before my form with the addition that loops to the S number of numbers the user

Re[4]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 11:54:08 AM, you wrote: RL Tom, RL Thanks for your response. If this is so, can you tell me how I check it out RL and fix things. RL Roger Unless you have set it yourself that is probably not the reason. Try setting it like this upload_max_filesize = 8M

Re[2]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 3:09:46 PM, you wrote: RL Tom Rogers responded on Wednesday, December 04, 2002 6:11 PM RL Hi, RL Thursday, December 5, 2002, 11:54:08 AM, you wrote: RL Tom, RL Thanks for your response. If this is so, can you tell me how I check it RL out RL and fix things

Re: [PHP] Struggling with code

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 3:24:15 PM, you wrote: BC I am struggling with the code below. I keep getting the error Couldn't BC execute query. Please help me out, let me know where I am going wrong. BC ? BC $db_name = db1; BC $table_name = user; BC $connection = @mysql_connect(localhost,

Re[2]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 5:11:16 PM, you wrote: RL Jason Wong responded Wednesday, December 04, 2002 10:24 PM RL On Thursday 05 December 2002 10:14, Roger Lewis wrote: RL Thanks for the suggestion. I'll try ini_set although I'm not yet RL certain RL of how to use it. RL As has

Re: [PHP] MySQL ?

2002-12-05 Thread Tom Rogers
Hi, Friday, December 6, 2002, 2:08:42 AM, you wrote: h I am really sorry but i can't find any good mySQL good mailing list... h How can i make a little php function to check if a table exists ? h Thanks a lot, h Hacook function table_exists($table){ return (@mysql_query('SELECT

Re: [PHP] Repeating Decimals

2002-12-06 Thread Tom Rogers
Hi, Friday, December 6, 2002, 5:00:07 AM, you wrote: S Hello again, S This is another PHP mathematical question. How can I display a bar over a S number (overline) if it's a repeating decimal? When the user types in 1 by S 3, they get 0.. I want it to display as 0.3 with the 3 S

Re: [PHP] --with-gd=DIR

2002-12-06 Thread Tom Rogers
Hi, Friday, December 6, 2002, 10:33:43 PM, you wrote: GdRZ Hello list, GdRZ I am running a redhat7.3 box and a customer want to get installed php with GD-library support GdRZ I want to configure php like this: GdRZ ./configure --with-gd= where is this directory? GdRZ How can I

Re: [PHP] Error GD

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 1:41:22 AM, you wrote: ithc Hi Paul, ithc compiled PHP like that ithc ./configure --with-config-file-path=/etc --enable-force-cgi-redirect --with-mysql -with-gd=/usr/local/gd2 --no-create --no-recursion ithc Error Message: ithc In file included from gd.c:83:

Re[2]: [PHP] Error GD

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 2:31:09 AM, you wrote: TR Hi, TR Saturday, December 7, 2002, 1:41:22 AM, you wrote: ithc Hi Paul, ithc compiled PHP like that ithc ./configure --with-config-file-path=/etc --enable-force-cgi-redirect --with-mysql -with-gd=/usr/local/gd2 --no-create

Re: [PHP] $_FILES associative array

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 2:56:53 AM, you wrote: MS I'm trying to find some documentation on the $_FILES MS array, but on PHP, it's a little confusing. I read the MS documentation and the comment from rep_spam@..., but MS that wasn't too clear to me either. MS I'm aware that when uploading

Re[2]: [PHP] Repeating Decimals

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 6:36:18 AM, you wrote: S How would I run the functions though and then print the repeating decimal to S the screen? The function returns the string ready to print You will need to comment out the echo $s line, it was there for debugging. just do ?php echo

Re: [PHP] Output page cut off after 7000 characters

2002-12-06 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 9:40:20 PM, you wrote: FW Hi All, FW i have to migrate a website from WNT/IIS to Solaris/Apache. FW Some stuff seems to work, but now I am stuck with a page which gets cut FW off in the middle of the out put. It is a template system with a chain FW of includes

Re[2]: [PHP] PHP includes without access to the default directory

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 7:15:38 AM, you wrote: ini_set G (include_path,/path/to/local/includes:ini_get(include_path)); Then no matter what directory you are in you can just include(filename); -- regards, Tom G Thank you. This should work, but I have one question about the format

Re: [PHP] Confused about $_SESSION and $_COOKIE scope..

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 6:01:19 AM, you wrote: CD I'm not sure why this isn't working, been banging my head at it for a couple CD hours now. CD I have a file (index.php), which calls a function that draws the header to CD my page. CD Inside that function (site_header), is an include to

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 9:43:47 AM, you wrote: DO Hi People, DO I ve just started with some OOP programming in PHP and now i have to DO build a set of classes that can generate a html form.. But i have a DO problem with the selectoption/option/select thing DO I hope someone can

Re[2]: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tom Rogers
Hi, Sunday, December 8, 2002, 2:27:20 AM, you wrote: TW I like arachnophilia. TW Tim Ward TW http://www.chessish.com TW mailto:[EMAIL PROTECTED] TW - Original Message - TW From: John W. Holmes [EMAIL PROTECTED] TW To: [EMAIL PROTECTED] TW Sent: Saturday, December 07, 2002 4:11 PM TW

Re[4]: [PHP] Repeating Decimals

2002-12-07 Thread Tom Rogers
Hi, Sunday, December 8, 2002, 1:46:07 AM, you wrote: S Ok, I'm getting some weird errors. Here's the website: S http://check.melchior.us/module.php?id=3 S I attached the output file. What am I doing wrong!? S - Original Message - S From: Tom Rogers [EMAIL PROTECTED] S To: Stephen

Re[4]: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tom Rogers
Hi, Sunday, December 8, 2002, 4:22:52 AM, you wrote: DN Hi Tom, I know the text editor question has been beat to death, but I'm looking for a simple editor with syntax highlighting that can be installed in Windows by a general user. It would have to be something that didn't access the

Re: [PHP] LogIn check within function within class :: HELP!

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 2:24:47 AM, you wrote: SM Im just about at wits end here Im trying to verify that a users ID and SM Password exist in the MySQL Database and then if it does display certain SM content and if it does not display login form content. SM ###At present here is the

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 2:29:35 AM, you wrote: BJC Hello! BJC When trying to connect to a mysql database under my linux system, I get the BJC following error: BJC Warning: Can't connect to local MySQL server through socket BJC '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on

Re: [PHP] date() on two diff. servers

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 11:59:07 AM, you wrote: JF Hi, JF I'm running the following code on two servers: JF ? JF $stamp = 1039525200; JF echo date('D, d M Y',$stamp); ? JF On my local development box (Free BSD, PHP 4.1.1, on AUSTRALIAN time), the JF above echo's Wed, 11 Dec 2002 (I

Re[2]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Tom Rogers
Hi, Tuesday, December 10, 2002, 12:09:46 AM, you wrote: FW No, it is not output from a DB, just a simple static text file with some FW PHP functions in it, but even if I remove them, the error remains the same. FW I have now upgraded to Apache 1.3.17 and php4.2.3 no change. FW One idea

Re[3]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Tom Rogers
Hi, Tuesday, December 10, 2002, 2:31:00 AM, you wrote: FW Hi Tom, FW I had this checked out before, but I did only check the errorlog for this FW virtual host, there is an entry in the error log of the main server for FW each request to the page in question: FW [Mon Dec 9 17:27:05 2002]

Re[2]: [PHP] Script not working from one computer

2002-12-09 Thread Tom Rogers
Hi, Tuesday, December 10, 2002, 2:31:48 AM, you wrote: Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock 1JWH on? Is the machine in question set-up on the network

Re: [PHP] Page display of query resuts using ODBC

2002-12-11 Thread Tom Rogers
Hi, Wednesday, December 11, 2002, 2:05:25 AM, you wrote: LR Hi, LR Just wondering if anybody knows a script to display a resultset over several pages using page numers previous, next links. LR So far I've only found such scripts for mysql using the the following sql syntax which is not odbc

Re[2]: [PHP] Page display of query resuts using ODBC

2002-12-11 Thread Tom Rogers
Hi, Wednesday, December 11, 2002, 8:02:41 PM, you wrote: TR Hi, TR Wednesday, December 11, 2002, 2:05:25 AM, you wrote: LR Hi, LR Just wondering if anybody knows a script to display a resultset over several pages using page numers previous, next links. LR So far I've only found such scripts

Re: [PHP] include question

2002-12-12 Thread Tom Rogers
Hi, Friday, December 13, 2002, 12:07:05 AM, you wrote: R Hello all, R I am passing a variable like so: R a href=link.php?foo=bar.php R On the link.php page, I have this simple code: R ?php R $job = $_GET['foo']; R echo $job; // for error checking R include 'path/to/$job'; ? R The 'echo

Re: [PHP] XML Enabled not there

2002-12-12 Thread Tom Rogers
Hi, Friday, December 13, 2002, 9:09:43 AM, you wrote: QB Hi, QB If phpinfo() does not have an 'XML' section, and so 'XML Enabled true' is not there, but the compile line is '--with-xml=shared,/usr', does this mean that I have XML support or not? QB PHP 4.0.3pl1, Apache 1.3.9 QB I am

Re: [PHP] Parse out text

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 10:12:28 AM, you wrote: SM I have a form that is submitting a Javascript to validate fields before the SM form casn be submitted. The problem is that the field name has to be SM prefixed with required. So, if I have a field called email, it has to be SM called

Re: [PHP] File Upload

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 1:03:05 PM, you wrote: MK Hi everybody, MK I'm trying to upload a file using the following scripts, but it doesn't MK work, it actually doesn't get through the first line of PHP script at all MK and displays a problem has occured message. I'm running the script

Re[2]: [PHP] File Upload

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 1:52:48 PM, you wrote: MK Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile MK variable at all in PHP script, even thought the globals are ON... Put phpinfo(32); at the top of your file and see what is being sent -- regards, Tom --

Re[2]: [PHP] File Upload

2002-12-14 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 5:55:12 PM, you wrote: JW On Saturday 14 December 2002 11:35, Tom Rogers wrote: You are missing this bit: input type=hidden name=MAX_FILE_SIZE value=10 JW I am curious as to why so many people say this in response to file upload JW problems? JW

Re: [PHP] recommendation needed for dedicated server hosting

2002-12-18 Thread Tom Rogers
Hi, Thursday, December 19, 2002, 2:30:44 PM, you wrote: TK Hi, TK I recently went through a horrendous experience with two different hosting TK providers. I'd like some recommendations on excellent hosting providers if TK anybody has some. TK My key priorities in order are: TK 1)

Re: [PHP] Sessions on a shared server

2002-12-21 Thread Tom Rogers
Hi, Sunday, December 22, 2002, 7:24:41 AM, you wrote: BG Hi, BG I've finally got a host and I want to transfer my existing website - I BG have managed to copy and upload my database (wow that was easy.. had BG been dreading it) but now I'm worried that my sessions aren't going BG to work

Re: [PHP] Adding to Apache access log from PHP

2002-12-21 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 12:13:22 AM, you wrote: GC Hi folks, GC I would like to add a few fields to a custom Apache access log format GC and populate the values from mod_php. GC As a mechanism, I was thinking of using the PHP function putenv( ) to GC set environmental variables. I am

Re[2]: [PHP] Function returning a reference - how ?!?

2002-12-21 Thread Tom Rogers
Hi, Sunday, December 22, 2002, 1:43:27 PM, you wrote: TM Wow!! You're my king! Thanks, that syntax is completely new to me! TM Great, another thing learned today! :) TM Cheers mate! You have setup a recursive reference there with child, I don't know if this causes bad things to happen in php?

Re[2]: [PHP] Serializing a DOM object

2002-12-30 Thread Tom Rogers
Hi, Tuesday, December 31, 2002, 2:55:39 AM, you wrote: In the test function, if I just serialize the $xml, return it and then call xmldoc_open_mem on the unserialized return string, it works fine. But it doesn't like it if I do the above. I'm getting the error: Warning: dump_mem()

<    1   2   3   4   5   6   7   8   9   >