Re: [PHP] deleting characters from strings

2003-11-01 Thread Tom Rogers
Hi, Sunday, November 2, 2003, 3:25:09 AM, you wrote: RK I feel really stupid posting this but I can't seem to find the correct RK syntax in the language guide. I have a string which has been progressively RK built during a FOREACH loop through an array (a SELECT statement in which RK the WHERE

Re: [PHP] Oh, for a sureset() (orthogonal to isset())

2003-10-31 Thread Tom Rogers
Hi, Friday, October 31, 2003, 5:31:01 AM, you wrote: wlcn I'm sure I'm not the first person to find strict checking of whether wlcn or not variable (or array index) is set painful. I've considered wlcn just setting error_reporting() to some lax level on every script I wlcn write for the rest of

Re[2]: [PHP] Code optimization: single vs. double quotes?

2003-10-28 Thread Tom Rogers
Hi, Tuesday, October 28, 2003, 9:26:13 AM, you wrote: CWP Curt Zirzow mailto:[EMAIL PROTECTED] CWP on Monday, October 27, 2003 3:16 PM said: 5. no newline after the tr. :) There are some broswer issues with tr and td's not being on the same line. CWP Ok I resisted sending this earlier

Re: [PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-28 Thread Tom Rogers
Hi, Tuesday, October 28, 2003, 3:08:56 AM, you wrote: JB Do you realize how large a PITA this is? For everyone who sends an JB e-mail to the PHP general list they have to take the time to answer JB this. SPAM about SPAM. Wonderful. It is a pain but if we all did it, it would stop an awful lot

Re: [PHP] RE: Verify bUixCtJf for jay.blanchard@niicommunications.com

2003-10-28 Thread Tom Rogers
Hi, Sorry that link was not what I was thinking of, here is a better one. http://hr.uoregon.edu/davidrl/confirm/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP request contents

2003-10-24 Thread Tom Rogers
Hi, Friday, October 24, 2003, 8:10:03 PM, you wrote: HI Hi everyone, HI I need to know, if there is a possibility to read full contents of HTTP HI request. I know, the response can be sent by header() function. But can I HI get the request of the client for server? HI Thank you, HI Ivo HI --

Re: [PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3

2003-10-24 Thread Tom Rogers
Hi, Friday, October 24, 2003, 9:37:07 PM, you wrote: S Hello S I wonder if anyone can help me with this problem or suggest an alternative S strategy. S I have two PHP boxes, one windows box running PHP version 4.2.1 and DOM XML S version 2.4.9, and the other one a FreeBSD box running PHP

Re: [PHP] Php/mysql error....why?

2003-10-24 Thread Tom Rogers
Hi, Saturday, October 25, 2003, 2:50:46 AM, you wrote: RA Hi, RA I am running a very simple query to the database, basically select all the RA firms which start with 0-9, RA eg. RA 1stcompany RA 3isgood RA etc RA using this: RA $qry = select cust_no,firm from companies where firm LIKE

Re[2]: [PHP] fsock sending bad request

2003-10-23 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 10:32:18 PM, you wrote: deo $req = field=1; deo its the data i need to post But you are sending it twice, and there has to be a cr/lf between the header and the data I think. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re[2]: [PHP] Images being uploaded in ASCII format

2003-10-23 Thread Tom Rogers
Hi, Friday, October 24, 2003, 2:11:43 AM, you wrote: PG Hi Tom. make sure you have ENCTYPE=multipart/form-data in the form tag PG Thanks for the tip, but that's not the problem. My code is below, and PG as you can see there is nothing in the code that would be causing this. PG It has to be

Re[2]: [PHP] Images being uploaded in ASCII format

2003-10-23 Thread Tom Rogers
Hi, Friday, October 24, 2003, 2:11:43 AM, you wrote: PG Hi Tom. make sure you have ENCTYPE=multipart/form-data in the form tag PG Thanks for the tip, but that's not the problem. My code is below, and PG as you can see there is nothing in the code that would be causing this. PG It has to be

Re: [PHP] Random Quotes...

2003-10-22 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 1:34:02 AM, you wrote: P Hi, P I am working on a project and I need to see sample quote for doing P random quotes. These quotes will be put from a database. Can some please P share me some sample code. Thanks. P Chuck If you are using mysql have a look at

Re: [PHP] Images being uploaded in ASCII format

2003-10-22 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 4:05:13 AM, you wrote: PG Hi all. I'd like to take a brief sentence to introduce myself first. PG My name is Pablo Gosse, and I've just recently joined the php-general PG list. I've been using PHP since early 2000, and work as webmaster PG at the University of

Re: [PHP] fsock sending bad request

2003-10-22 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 7:58:19 AM, you wrote: deo Hi there the following code doesnt seem to work, i am getting a bad request deo sent back from the server, what could be the problem of something so deo simple ? deo $header .= POST test.php HTTP/1.0\r\n; deo $header.= Host: host\r\n;

Re: [PHP] Test Connection - fsockopen()

2003-10-21 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 5:04:14 PM, you wrote: JW I am trying to create a remote status page for my website. So far, I JW have found the fsockopen() function and used the example code to create JW the following basic script: JW ?php JW $fp = fsockopen (xxx.xxx.xxx.xxx, 80, $errno,

Re: [PHP] bad quality with imagecopyresampled [PHP4]

2003-10-21 Thread Tom Rogers
Hi, Wednesday, October 22, 2003, 9:15:38 AM, you wrote: T imagecopyresampled makes bad quality jpeg images when scaling them down, T especially on areas of the same colour (i.e. large font). T I am using antialiasing. T I thought I'd try converting the images to png - imagecopyresampling them -

Re[6]: [PHP] How does unpack works?

2003-10-21 Thread Tom Rogers
Hi, Wednesday, October 22, 2003, 2:35:43 PM, you wrote: VE Hi, VE I'have found a other structure I gues... VE You can find it here : http://www.f6fbb.org/fbbdoc/fmtinf.htm VE (it's a very slow site...) VE The file inf.sys is included. VE Many thanks for helping!!! VE Greetz, Vincent This

Re: [PHP] Calling object variables is untidy and lengthy - any other ideas?

2003-10-20 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 1:46:14 AM, you wrote: cnscu Here's the problem. I have a php script which generates a Year-on-Year cnscu change graph, works fine, does the job. I want to turn it into an object. cnscu Unfortunately I have to rename all references to variables in the object to

Re[2]: [PHP] Re: Tom-Re: [PHP] session hijacking

2003-10-20 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 12:52:33 PM, you wrote: OMH Hi Tom, OMH I've got a question for you regarding this encrypt class of yours.. Just OMH wanted to understand how well it would work against a guy with a sniffer OMH such as ethereal. (presuming he's on the LAN/wifi to access the app)

Re[4]: [PHP] Re: Tom-Re: [PHP] session hijacking

2003-10-20 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 1:40:20 PM, you wrote: OMH One other thing.. What's the difference in $$ for a site to be https rather OMH than http?? Cos you need to get a verisign cert or something?? Just OMH asking.. I use bulkregister.com and if you are a member the cost is $88.00 per year

Re: [PHP] How does unpack works?

2003-10-20 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 3:12:47 PM, you wrote: VE Hi, VE I'm trying to extract an binary file with unpack but I don't understand VE how it works... VE The F6FBB program makes the file... VE It is a hamradio program http://www.f6fbb.org/ VE This is the structure of 1 record in the file

Re[2]: [PHP] How does unpack works?

2003-10-20 Thread Tom Rogers
Hi, Tuesday, October 21, 2003, 3:36:35 PM, you wrote: TR Hi, TR Tuesday, October 21, 2003, 3:12:47 PM, you wrote: VE Hi, VE I'm trying to extract an binary file with unpack but I don't understand VE how it works... VE The F6FBB program makes the file... VE It is a hamradio program

Re: [PHP] session hijacking

2003-10-19 Thread Tom Rogers
Hi, Monday, October 20, 2003, 10:09:42 AM, you wrote: RA Hi, RA We have a site that runs a kind of membership section. RA When a person logs in we have his username + 3 variables in session, the 3 RA variables are used for background processing and are never disclosed to the RA client, all 3

[PHP] Re: Tom-Re: [PHP] session hijacking

2003-10-19 Thread Tom Rogers
Hi, Monday, October 20, 2003, 10:38:23 AM, you wrote: RA Hi Tom, RA Thanks for replying. encrypt the numbers and decrypt them before use, if they wont decrypt to a RA nuber ditch the connection. If you need a class for that I can send it to you RA Yes please, that should help, but am new to

[PHP] Re[2]: Tom-Re: [PHP] session hijacking

2003-10-19 Thread Tom Rogers
Hi, RA If i declare them before using them like the above example...do you think I RA still need to use that class? RA Cheers, RA -Ryan That depends on what your dicky friend is doing to screw your code up. If you are passing ids' in the url or in post data then encode them. If he is

Re[2]: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread Tom Rogers
Hi, Sunday, October 19, 2003, 7:35:23 AM, you wrote: That would be one solution, but I am on a shared hosting server. I cannot change the folder permissions. I've asked tech support to look into this. Does anyone know where I can get a class that will save the session vars to mysql?

Re[2]: [PHP] preg help please :)

2003-10-16 Thread Tom Rogers
Hi, Friday, October 17, 2003, 10:26:40 AM, you wrote: JF On Thursday, October 16, 2003, at 04:32 PM, Eugene Lee wrote: Try inverting the greediness with a U pattern modifier: /$quote(.*)$quote:$quote(.*)$quote/U For more details:

Re[2]: [PHP] reading linux wtmp file

2003-10-15 Thread Tom Rogers
Hi, Wednesday, October 15, 2003, 2:25:13 PM, you wrote: TR wtmp is a binary file and the format can vary between old and new versions of TR linux. You will need to have a look at struct utmp in, for example, /usr/include/bits/utmp.h TR This location can vary from system to system as well. TR

Re[4]: [PHP] reading linux wtmp file

2003-10-15 Thread Tom Rogers
Hi, Wednesday, October 15, 2003, 5:13:39 PM, you wrote: LM Crap entry 1546673160 LM This one gave me this error. Every line on the wtmp entry. LM -- - LM Louie Miranda LM http://www.axishift.com Then the format must be different for your file, that is one of the problems with the utmp and

Re[4]: [PHP] reading linux wtmp file

2003-10-15 Thread Tom Rogers
Hi, Wednesday, October 15, 2003, 5:13:39 PM, you wrote: LM Crap entry 1546673160 LM This one gave me this error. Every line on the wtmp entry. If you are using netdate that writes crap wtmp entries (at least mine did till I fixed it :) -- regards, Tom -- PHP General Mailing List

Re[4]: [PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-15 Thread Tom Rogers
Hi, Thursday, October 16, 2003, 1:28:23 AM, you wrote: S Justin, S Thank you for you replies, I have decided to convert the whole site to S XHTML, for compatability. However, I am unable to view the site through my S phones WAP browser, does this mean XHTML is only compatible with PC's and S

Re: [PHP] Newbie question about Class

2003-10-15 Thread Tom Rogers
Hi, Thursday, October 16, 2003, 3:35:56 AM, you wrote: A My question seems fundamental. I want to set a variable in one function A in a class and then want to use the value in a second function. A However, the functions are called a html page with two passes. Submit A reloads the page and

Re: [PHP] reading linux wtmp file

2003-10-14 Thread Tom Rogers
Hi, Wednesday, October 15, 2003, 10:52:43 AM, you wrote: MPC Hi to all, MPC Have a problem here in reading the file wtmp in linux. Is there a way I can MPC view it using a php script? MPC Thanks in advance. MPC Mike wtmp is a binary file and the format can vary between old and new versions

Re[2]: [PHP] php variable

2003-10-13 Thread Tom Rogers
Hi, Tuesday, October 14, 2003, 12:42:18 AM, you wrote: OK Jay Blanchard wrote: [snip] $var=¨How are you¨; THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO. [/snip] Pleace $var in a hidden form element. OK I tried... something like this OK input type=hidden name=var2 OK

Re[2]: [PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-12 Thread Tom Rogers
Hi, Sunday, October 12, 2003, 4:53:27 PM, you wrote: JF On Sunday, October 12, 2003, at 12:02 PM, Manuel Vázquez Acosta wrote: Take a look at what is printed by: var_dump($_SERVER); Maybe the HTTP_USER_AGENT can lead you to somewhere out of this problem. Manu. Shaun [EMAIL PROTECTED]

Re: [PHP] https detection

2003-10-12 Thread Tom Rogers
Hi, Sunday, October 12, 2003, 9:09:15 PM, you wrote: R Hi, R Is there a way to determite with PHP thath site visitor is in https (SSL) R mode or in normal mode ? R Thanks, R Rosen put phpinfo(32); at the top of the page and that should show what is available with an ssl connection if you make

Re[2]: [PHP] https detection

2003-10-12 Thread Tom Rogers
Hi, Sunday, October 12, 2003, 9:24:40 PM, you wrote: R I.e. if I use _SERVER[SERVER_PORT] = 443 - for https connection and 80 R for normal - i'll be able to determite if user is in https mode - I think R thath should be works . ? R Thanks, R Rosen looks like a good start :) -- regards,

Re[2]: [PHP] https detection

2003-10-12 Thread Tom Rogers
Hi, Sunday, October 12, 2003, 8:46:41 PM, you wrote: EL On Sun, Oct 12, 2003 at 01:24:40PM +0200, Rosen wrote: EL : EL : I.e. if I use _SERVER[SERVER_PORT] = 443 - for https connection and 80 EL : for normal - i'll be able to determite if user is in https mode - I think EL : thath should be

Re[2]: [PHP] https detection

2003-10-12 Thread Tom Rogers
Hi, Sunday, October 12, 2003, 10:27:21 PM, you wrote: EL Unless Apache is configured so that both SSL and non-SSL virtualhosts EL to point to the same directory containing said script, or said script is EL shared (via PHP include(), require(), etc.) by other PHP scripts in both EL SSL and

Re: [PHP] Detecting devices i.e. PDA, Mobile

2003-10-11 Thread Tom Rogers
Hi, Saturday, October 11, 2003, 10:02:31 PM, you wrote: S Hi, S I have created an online system, and have created a WAP version, and am S currently crreating a PDA version. What I wuold like to to do is give out S the same URL instead of domain.com for normal use, domain.com/wap/ or S

Re: [PHP] pad numbers

2003-10-10 Thread Tom Rogers
Hi, Saturday, October 11, 2003, 12:44:38 AM, you wrote: DC is there a function to convert a number that has less than two digits into a DC number with a leading zero? DC for instance, to convert a 5 to 05 but to leave a 11 as 11 DC thanks, DC Diana $num = sprintf(%02d,$num); is what you need

Re: [PHP] Re: Did anyone have success with the require() function??

2003-10-10 Thread Tom Rogers
Hi, Saturday, October 11, 2003, 3:33:05 AM, you wrote: CZ On Fri, 10 Oct 2003 13:09:16 -0400, Scott Fletcher [EMAIL PROTECTED] wrote: Hi Fellas! Did anyone have success with making the required function work if using this sample code. It didn't work for me. --snip--

Re: [PHP] [xml] character data

2003-10-10 Thread Tom Rogers
Hi, Saturday, October 11, 2003, 6:26:01 AM, you wrote: DA I do not understand why this line does not work : DA $info[$element] = $content; DA but yet this works: echo $content; DA why? what is the trick? DA -- DA $xml_comment_file = basename($svg_file, '.svg.xml') .'.info.xml'; DA if

Re: [PHP] problem transferring a variable using POST

2003-10-09 Thread Tom Rogers
Hi, Friday, October 10, 2003, 1:56:43 AM, you wrote: DC I am having a problem with a form. I am trying to have a form pass a DC variable so that I can update an item. I think the problem is that the DC variable (ticketed) is being read as text instead of a number. These DC are the tests I have

Re[2]: [PHP] Re: PHP CSS

2003-10-08 Thread Tom Rogers
Hi, Thursday, October 9, 2003, 1:37:57 AM, you wrote: RR On Tue, 7 Oct 2003 23:22:02 -0700 RR Raquel Rice [EMAIL PROTECTED] wrote: On Tue, 7 Oct 2003 17:06:13 -0500 erythros [EMAIL PROTECTED] wrote: you probably just want what everyone wants... a seperation of design from content.

Re[4]: [PHP] Re: PHP CSS

2003-10-08 Thread Tom Rogers
Hi, I don't think so, the original question was how to get PHP variables into a style sheet, though your way would work for a separate style sheet for each user. BTW I added .ass (active style sheet :)as a file extension for PHP processing to apache for this sort of function but I now use

Re: [PHP] Appropriate Content

2003-10-08 Thread Tom Rogers
Hi, Thursday, October 9, 2003, 1:51:22 PM, you wrote: EN Hey everyone. EN I just saw the lightspeed 1.1 release announcement. I know it's not in the EN rules right now, but I don't think product announcements are really EN appropriate for php-general. I can see, Hey we've got this new server

Re: [PHP] allowing access to php page by IP

2003-10-07 Thread Tom Rogers
Hi, Wednesday, October 8, 2003, 12:23:16 AM, you wrote: AW Hello, AW I want to allow access to a php page but am not sure how I should verify AW the IP once I get it. I want to allow 10.8.4.* and 10.8.5.* to access a AW certain webpage and keep everyone else out. I have written code to

Re[4]: [PHP] OO parent/child relationship

2003-10-06 Thread Tom Rogers
Hi, Monday, October 6, 2003, 2:10:46 PM, you wrote: RC On Sun, 2003-10-05 at 23:37, Tom Rogers wrote: Hi, Well I must have missed that one :) My answer, if GLOBALS were not meant to be used they wouldn't be there.. So if they make life easier go ahead and use them. I notice a lot

Re[2]: [PHP] OO parent/child relationship

2003-10-05 Thread Tom Rogers
Hi, Monday, October 6, 2003, 3:20:08 AM, you wrote: GS Dan Anderson wrote: Out of curiousity, what exactly are you trying to do? Are you sure this type of framework is most appropriate (and easiest to implement?) GS In my current setup, the more classes Im adding to the code, the more GS

Re: [PHP] $_ENV not working for me with PHP 4.2.0

2003-10-05 Thread Tom Rogers
Hi, Monday, October 6, 2003, 4:43:20 AM, you wrote: JW I've been trying to make a simple script which just JW outputs the username that the script is currently JW executing under (in order to test that suexec is JW working properly). I've tried using the following JW line: JW ?php print

Re[2]: [PHP] OO parent/child relationship

2003-10-05 Thread Tom Rogers
Hi, Well I must have missed that one :) My answer, if GLOBALS were not meant to be used they wouldn't be there.. So if they make life easier go ahead and use them. I notice a lot of 'purists' on this list that want things done a certain way but the bottom line is do what your comfortable with and

Re: [PHP] unexpected results using sprintf() with %u

2003-10-03 Thread Tom Rogers
Hi, Friday, October 3, 2003, 3:51:59 PM, you wrote: CP Im trying to retrieve the unsigned value of an integer. sounds pretty simple... CP [code] CP $i = -86; CP echo br . sprintf(%d, $i); CP echo br . sprintf(%u, $i); CP [/code] CP produces: CP -86 CP 4294967198 CP what i expected: CP -86 CP

Re[2]: [PHP] unexpected results using sprintf() with %u

2003-10-03 Thread Tom Rogers
Hi, TR -86 actually looks like FFAA which if you then look at unsigned is pretty TR big :) TR -- TR regards, TR Tom Maybe what you need is the abs() function which ignores the sign of a number -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] ImageColorAllocate() Problem

2003-10-03 Thread Tom Rogers
Hi, Friday, October 3, 2003, 4:23:27 PM, you wrote: JRB I am having a bizzare problem with the imagecolorallocate() function. Maybe JRB all of you can help me! JRB Here is the code: JRB $hex1 = 0x.$color{0}.$color{1}; JRB $hex2 = 0x.$color{2}.$color{3}; JRB $hex3 = 0x.$color{4}.$color{5}; JRB

Re[4]: [PHP] unexpected results using sprintf() with %u

2003-10-03 Thread Tom Rogers
Hi, Friday, October 3, 2003, 4:39:32 PM, you wrote: CP Yeah abs() looks like it would do the trick CP I wonder if the same output would be generated using C's sprintf() CP Too bad i dont have access to C... oh well -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent

Re: [PHP] mysql query

2003-10-03 Thread Tom Rogers
Hi, Friday, October 3, 2003, 8:17:23 PM, you wrote: CM ok im stumped lol i have used this code in the past to insert data into CM mysql (im relitively new though) CM --code CM mysql_query(INSERT INTO Images (Image, desc) VALUES ('$name', CM '$description')) or die (mysql_error()); CM

Re: [PHP] PHP OOP

2003-10-01 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 9:00:18 AM, you wrote: GH I'm working for the first time with object orientated programming in php and GH I can't figure out how to access elements or methods when you place objects GH inside objects inside other objects. GH my origonal idea was to use the

Re: [PHP] exec shell command from php

2003-10-01 Thread Tom Rogers
Hi, Thursday, October 2, 2003, 1:54:38 AM, you wrote: N hi all; N - When i run php.. what user am i using ? is it apache user (nobody) ?? N - How can i execute useradd command from php ? should i write it in N pearl/cgi ?? N - I want to grant my user on my web a free pop account (or webmail) so

Re: [PHP] upapck() woes

2003-10-01 Thread Tom Rogers
Hi, Thursday, October 2, 2003, 3:31:40 AM, you wrote: JB I have kibitzed and kaboodles all morning seeking the answer to the JB unpack question. I need to unpack some binary data and make sense of it. JB Unfortunately I am unsure how the binary for this was created. I have JB tried converting

Re: [PHP] Avoiding Warning - Page Expired

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 12:10:10 AM, you wrote: EC Is there any way to avoid having this happen using php if someone sits EC on a page too long and clicks the back button to go back to a form they EC have filled out and not having the values in a session? EC Thanks, EC Ed To avoid

Re[2]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 1:25:09 AM, you wrote: j returns the current setting j Thanks Tom... j Now, if I understand this properly, j This should return French_France... jsetlocale (LC_ALL, 'fr_FR'); jecho setlocale (LC_ALL, ''); j and this English_ Great Britain j

Re[4]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 2:15:10 AM, you wrote: j Tom Rogers [EMAIL PROTECTED] wrote in message j news:[EMAIL PROTECTED] Those locales actually have to be available or they will be ignored and j that will depend on what type of system your running on. j OK, I'm on Windows 2k, and after

Re: [PHP] PHP Rading excel files

2003-09-29 Thread Tom Rogers
Hi, Monday, September 29, 2003, 10:10:43 PM, you wrote: BJp Hi ! BJpIt's possible to export data to excel (csv, xml, PEAR excel file BJp writing, ...) but is it possible to import data from excel ? (i.e.: I BJp want to get the data which is in Cell A1 of sheet Toto in the posted BJp .xls

Re: [PHP] A _post question I guess

2003-09-29 Thread Tom Rogers
Hi, Tuesday, September 30, 2003, 1:41:11 AM, you wrote: JTJ I have a form. It has any number of hidden fields, named exercise JTJ 1-100. Their names all start with exercise as in: JTJ input type=hidden name=exercise1 JTJ ... ? JTJ input type=hidden name=exercise11 JTJ any number fo these

Re: [PHP] Q on setlocale...

2003-09-28 Thread Tom Rogers
Hi, Sunday, September 28, 2003, 5:39:53 PM, you wrote: j I found this function, setlocale... j now, is there a way to GET the LOCALE setting of a machine? j Walter call setlocale with 0 (zero or NULL) as the second parameter and it returns the current setting -- regards, Tom -- PHP

Re: [PHP] Re: wml and php

2003-09-28 Thread Tom Rogers
Hi, Sunday, September 28, 2003, 9:32:45 PM, you wrote: PF i cant get this $latnum2 = $_REQUEST['nummer']; to work either, PF when i use this i dont get anything in $latnum2; PF regards PF patrick You will have to do a page refresh to pass the typed in info back to php which is running on the

Re: [PHP] Re: register_globals won't turn off!

2003-09-27 Thread Tom Rogers
Hi, Sunday, September 28, 2003, 12:36:19 PM, you wrote: DK Don't know anything about an auto_prepend_file. There is no .htaccess file. DK Beside, phpinfo says register_globals is off both globaly and localy. DK Damon DK Greg Beaver [EMAIL PROTECTED] wrote in message DK news:[EMAIL PROTECTED]

Re: [PHP] Vpopmail

2003-09-26 Thread Tom Rogers
Hi, Saturday, September 27, 2003, 8:25:05 AM, you wrote: H hi i have a serious problem i want to create qmail user using vpopmail H but all the function are for 4.0.5 - 4.2.3 only. what should i do now any H help will be highly appreciated. H

Re[2]: [PHP] PHP Editor - which to use?

2003-09-25 Thread Tom Rogers
Hi, Thursday, September 25, 2003, 10:40:27 PM, you wrote: DM lmao .. good one. From: pete M [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Editor - which to use? Date: Thu, 25 Sep 2003 10:59:19 +0100 I write my code with pencil and paper and then scan it.. Dont need an editor !

Re: [PHP] Timezones and Daylight Savings Time

2003-09-25 Thread Tom Rogers
Hi, Friday, September 26, 2003, 2:55:51 AM, you wrote: JJ Got a client site in Thailand that is about 13 hours JJ different from the Web Server time so with any JJ date/time stamping I need to add the 13 hours. JJ However, when it comes time for DST, I'd hate to have JJ to code for that or

Re: [PHP] About php String function

2003-09-24 Thread Tom Rogers
Hi, Thursday, September 25, 2003, 3:18:19 PM, you wrote: UST Hello, UST I am using strpos function for finding the string position in a UST particular string .If the string value is equal to zero or greater UST than zero some steps to be executed. If the position is empty it is taking

Re[2]: [PHP] CAN I CASH the output of PHP SCRIPT?

2003-09-23 Thread Tom Rogers
Hi, Wednesday, September 24, 2003, 1:36:26 AM, you wrote: RR On Tue, 23 Sep 2003 05:27:12 + RR Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Nabil ([EMAIL PROTECTED]): Hi all; I would like to cash all the output of PHP files on my apache .. to increase the performance. To

Re: [PHP] Function in php

2003-09-23 Thread Tom Rogers
Hi, Wednesday, September 24, 2003, 3:27:48 PM, you wrote: UST Hello, UST I am using strpos function for finding the string position in a UST particular string . if the searching string is empty it is showing this UST warning error UST Warning: Empty delimiter in filename text.php on line

Re[2]: [PHP] session_start() || shell access problem......

2003-09-21 Thread Tom Rogers
Hi, Monday, September 22, 2003, 2:13:57 AM, you wrote: CH H, CH Well, is there a way to pass params to file_to_be_executed in command line? CH For example: CH ? CH $my_param = 'my_include_path'; CH $text = `usr/local/bin/php /path/to/my/php/page.php`; ? CH Somehow I need $my_param

Re: [PHP] [php] formmail.pl formmail.php

2003-09-21 Thread Tom Rogers
Hi, Monday, September 22, 2003, 11:34:25 AM, you wrote: JTJ Not that formmail.pl was the most secure idea, but it could take any JTJ variable off any form and mail the contents to a vriable on that form. Does JTJ anyone know of such a critter in existence for PHP, a script that will read JTJ in

Re: [PHP] File Upload Issues

2003-09-20 Thread Tom Rogers
Hi, Sunday, September 21, 2003, 1:10:29 PM, you wrote: SK I was hoping to get a bit of help with a strange file upload issue that SK I am having. Below is a simple form that I am using as an example. The SK output from the $_FILES array follows that. The thing that I am unable SK to resolve is

Re: [PHP] Brain cramp with arrays

2003-09-19 Thread Tom Rogers
Hi, Saturday, September 20, 2003, 12:49:52 AM, you wrote: MM I am having a total brain cramp with this array problem (may have to do with MM the pressure change from the hurricane - but whatever ;) ) MM $helpsystem[onlineusignuphelp_username]='The username that you choose must MM be more than 5

Re: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
Hi, Thursday, September 18, 2003, 2:38:50 PM, you wrote: CA Hi all, CA I have a a timestamp in a DB (14 digits) that I want to display like I CA want in my pages. I tried to use strtotime, mktime and date functions CA with no success... it always return the current timestamp instead of the CA

Re[2]: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
Hi, Thursday, September 18, 2003, 2:53:53 PM, you wrote: CA Thanks Tom, but using only the strtotime() and later the date() CA functions, the page throus the following error: CA Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on CA line 52 CA Now my code looks like this:

Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Tom Rogers
Hi, Wednesday, September 17, 2003, 11:47:45 AM, you wrote: EL On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: EL : EL : switch ($var) { EL : case 'TEST-1': case 'TEST-2': case 'TEST-2': EL : do something EL : } EL The switch statement doesn't do an equivalency test,

Re: [PHP] change PHP include directory

2003-09-14 Thread Tom Rogers
Hi, Sunday, September 14, 2003, 3:25:57 PM, you wrote: TT Hi, TT Normally to change a sites include directory for PHP I'd use a .htaccess TT file and the following command: TT php_value include_path .:/path/to/web/ TT Again normally, I would get the path to the site by doing a simple TT

Re[2]: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Tom Rogers
Hi, Saturday, September 13, 2003, 2:09:58 AM, you wrote: why does it work in IE and not in Netscape 7.1? DA I'm pretty sure ActiveX controls don't run on anything besides MS DA Windows Lockinware (TM). There are a number of other things that DA netscape does not fully support (try loading a

Re[2]: [PHP] Calling a function.

2003-09-12 Thread Tom Rogers
Hi, Saturday, September 13, 2003, 5:39:47 AM, you wrote: CJWH From: Jason Wong [EMAIL PROTECTED] On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote: From: Vincent M. [EMAIL PROTECTED] Is there any way to call a function with a variable inside the call. CJWH ie:

Re[2]: [PHP] Integrating an Applet with PHP

2003-09-11 Thread Tom Rogers
Hi, Friday, September 12, 2003, 9:38:48 AM, you wrote: TC Warren - TC That works... TC http://209.204.172.137/editor/ekit.php TC Now the next challenge is to put the value in $text into the HTML editor with some JavaScript...any suggestions? TC Todd TC Vail, Warren wrote: There may be

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Tom Rogers
Hi, Tuesday, September 9, 2003, 2:19:28 PM, you wrote: BP Hello Everyone, BP I want to emulate session objects (as opposed to variables). I stumbled BP upon creating multi-dimensional arrays, so I can do this: BP $name = 'Bob'; BP $year = '2003'; BP $HTTP_SESSION_VARS[$user][$year] =

Re: [PHP] Single Quotes vs Double Quotes

2003-09-08 Thread Tom Rogers
Hi, Tuesday, September 9, 2003, 2:03:34 PM, you wrote: mb Hi everyone, mb Could somebody please explain to me the difference mb between single quotes and double quotes in PHP. It mb seems like they can be used interchangeably a lot in mb PHP but not always. For example: mb This works: mb

Re: [PHP] function returning array

2003-09-07 Thread Tom Rogers
Hi, Monday, September 8, 2003, 11:54:10 AM, you wrote: L How do I get a function to return an array? This code doesn't work: L function getData() { L function builds the array $theArray - tested ok L return $theArray; L } L Any help on the syntax would be appreciated. L Cheers L

Re[2]: [PHP] function returning array

2003-09-07 Thread Tom Rogers
Hi, Monday, September 8, 2003, 12:16:47 PM, you wrote: L Nothing. But it I run: L function getData() { L etc.. L print_r ($theArray); L return $theArray; L } L the data is definitely there. L I should add that the function is within a class so it is like this: L class excel_com {

Re: [PHP] Apache and forward slash

2003-08-30 Thread Tom Rogers
Hi, Saturday, August 30, 2003, 2:49:43 AM, you wrote: CC Hey, CC I am setting up Apache 1.3.27 on a linux box (I really dont know much about CC linux) and I am having small problem. When a specify a subdirectory off of CC my document root, I must include a / forward slash in order for the index

Re: [PHP] Session Timeout

2003-08-30 Thread Tom Rogers
Hi, Saturday, August 30, 2003, 1:55:02 PM, you wrote: SW From what I see, the default timeout for a session is 1440 seconds or SW 24 minutes. I was gone for nearly an hour, came back, and the session SW was still valid. Must the value set in the config file be different SW than 1440, or am

Re: [PHP] jpeg libraries.

2003-08-29 Thread Tom Rogers
Hi, Friday, August 29, 2003, 6:39:16 AM, you wrote: MAS I got the jpeg libraries from: MAS http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809 MAS And installed them; even did a make test to make sure everything was MAS correct. MAS It did install some jpeg stuff under /usr/local/bin,

Re[2]: [PHP] building php witk libiconv

2003-08-29 Thread Tom Rogers
decided to create a link /opt/lib/.libs/libiconv.so - AB /opt/lib/libiconv.so.2.2.0 AB Now, I still have the following message: AB gcc: /usr//lib/.libs/libiconv.so: No such file or directory AB I don't want to make links everywhere! AB Regards, AB Alain. AB Tom Rogers a écrit: Hi, Friday, August

Re: [PHP] parsing domains

2003-08-28 Thread Tom Rogers
Hi, Thursday, August 28, 2003, 6:30:44 PM, you wrote: CcM Quick question... CcM I parse domains in my scripts like this to get the .domain.com out of www.domain.com. However, if someone visits my site with just domain.com in the url, I get .com back as the parsed domain. CcM How can I make it

Re[2]: [PHP] parsing domains

2003-08-28 Thread Tom Rogers
Hi, Thursday, August 28, 2003, 7:02:44 PM, you wrote: str_replace('/www.','/',$parseddomain); MJ wont this just make me get a .com when I use my thing to parse the domain? MJ -- MJ ___ MJ Get your free Verizonmail at www.verizonmail.com No it

Re: [PHP] building php witk libiconv

2003-08-28 Thread Tom Rogers
Hi, Friday, August 29, 2003, 12:52:11 AM, you wrote: AB Hi, AB I don't know what to do with libiconv to build php4.3.3. AB My libiconv-1.9 is installed in /opt AB if I invoke configure --with-iconv=/opt the script runs fine but I AB get the following message at compile time: AB gcc:

Re: [PHP] var static

2003-08-28 Thread Tom Rogers
Hi, Friday, August 29, 2003, 3:01:45 AM, you wrote: AM I want to obtain only one instance of one class. In other to do that, I call AM to a static method, that creates the instance(if it doesnt exit) or returns AM the reference of the instance. AM The call to the static method is the next: AM

Re[2]: [PHP] PHP Interview questions

2003-08-27 Thread Tom Rogers
Hi, Wednesday, August 27, 2003, 9:48:38 PM, you wrote: JB [snip] JB toggle_light(1); JB sleep(120); JB toggle_light(1); JB toggle_light(2); JB move('self', 'room/'); JB if ($lightbulb['temp'] $room['temp']) { JB echo switch #1; JB } elseif ($lightbulb['ison']) { JB echo switch #2; JB }

Re: [PHP] Cookie saving path on Clinet

2003-08-26 Thread Tom Rogers
Hi, Monday, August 25, 2003, 12:01:53 PM, you wrote: BA Hi Everybody BA I know this is vague but couldn't find the answer. BA Where (i mean system path) cookies are saved on Client's machine. BA I though it is in windows/temp or temporaray internet files (in win 2000) but it wasn't there. BA

Re[2]: [PHP] eval function

2003-08-23 Thread Tom Rogers
Hi, Saturday, August 23, 2003, 10:01:54 PM, you wrote: MW Hallo Tom, MW am Samstag, 23. August 2003 um 05:14 hast Du Folgendes gekritzelt: TR This should do it: TR eval('${content.$databasepagename}[$i]();'); MW I'm afraid to say it, but it does not :-( MW Yesterday I was also trying to find

<    1   2   3   4   5   6   7   8   9   >