Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Tom Rogers
Hi, Friday, January 3, 2003, 4:18:05 PM, you wrote: AF I'm just starting out, this is my script... AF ? AF $name = $_POST['username']; AF $name = $name; AF $db = mysql_connect(localhost); AF mysql_select_db(vinyldealers,$db); AF $query = SELECT shops.name FROM shops WHERE name = .$name.; AF

Re: [PHP] multiple select problem

2003-01-01 Thread Tom Rogers
Hi, Thursday, January 2, 2003, 12:39:46 PM, you wrote: EK i am now facing a problem in multiple select. EK This is my example code in html. EK select name=destList MULTIPLE size=6 EK option value=4123/option EK option value=5234/option EK option value=6345/option EK /select EK i

Re[2]: [PHP] Getting short (DOS) name of file?

2002-12-31 Thread Tom Rogers
Hi, Tuesday, December 31, 2002, 5:14:18 PM, you wrote: LKB Thanks... thing is, it can be anything from c:\whatever.exe to LKB c:\program files\program name\bin\program.exe. I'll write a function LKB that goes to each directory in a string and does a dir /x if I have to, LKB but isn't there a

Re: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Tom Rogers
Hi, Tuesday, December 31, 2002, 4:54:36 PM, you wrote: e hi i've just started a job and they are sadly using php3 , what is the work e around for the session handling limitation ? i have an authentication class e which will not work now beause it cant handles sessions :| Have a look at phplib

Re: [PHP] Repeats of values

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 2:47:57 AM, you wrote: AR I'm running the following sql query which outputs a repeat value for each AR field in the html cell box. AR Like this: AR .. AR 3.3 3.3 78 78 2002-06-11 2002-06-11 AR ... AR which is not what I would

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

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 5:28:43 AM, you wrote: Try encoding like this: $retval = base64_encode(serialize( domxml_open_mem( $xml ))); and on the next page: $xml = unserialize(base64_decode($xml)); It works via html but don't know enough about soap BC Well, you don't have to use soap

Re[2]: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 4:01:35 PM, you wrote: DR oh have you got an example proper usage of it ? i had it working then DR suddenly i didnt :| DR -Original Message- DR From: Tom Rogers [mailto:[EMAIL PROTECTED]] DR Sent: Tuesday, December 31, 2002 7:57 PM DR To: electroteque DR

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()

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: [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[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] 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: [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] 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[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] 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] 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] 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: [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] 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[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] help needed with crypt()

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 12:45:15 AM, you wrote: cyc Hi cyc The script is not working. cycfunction authenticate($user,$pass) { cyc $result = -1; cyc $data = file(shadow); /* permission every cyc one read */ cyc foreach($date as $line ) { cyc

Re[2]: [PHP] help needed with crypt()

2002-12-03 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 1:27:49 AM, you wrote: cyc Hi cycI made some changes to this script but still it is cyc not working Try using the whole password as the salt like this if(crypt(trim($pass),$arr[1]) == $arr[1]) Or are you still only getting -1 returned ? -- regards, Tom

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

2002-12-02 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 1:57:21 PM, you wrote: GS Ive just been getting myself deep into using sessions. GS Sessions are working as it should except for one condition. GS Say I log into the site, and the session is started, and I don't do GS anything for the next 30 mins, then go back to

Re: [PHP] Validating get and post data

2002-12-02 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 12:12:09 PM, you wrote: BG Okay, I've just solved my own problem by simply doing: BG settype($input,integer); BG but.. I'm puzzled about why the following more complicated solution BG didn't work. The ASCII value for 0 is 48, and for 9 is 57. BG The idea was to

Re[2]: [PHP] Validating get and post data

2002-12-02 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 5:17:48 PM, you wrote: TR Hi, TR Tuesday, December 3, 2002, 12:12:09 PM, you wrote: BG Okay, I've just solved my own problem by simply doing: BG settype($input,integer); BG but.. I'm puzzled about why the following more complicated solution BG didn't work. The

Re: [PHP] Inheritance problem

2002-12-01 Thread Tom Rogers
Hi, Sunday, December 1, 2002, 10:05:53 PM, you wrote: BC Hi, BC I would like to post the following question related to an inheritance BC problem with PHP OO programming : BC With an object of a subclass, I call a method of the parentclass in order BC to modify an attribute of the

Re: [PHP] RV: includes globals

2002-12-01 Thread Tom Rogers
Hi, Monday, December 2, 2002, 4:06:54 PM, you wrote: CA Hi all, CA I'm making a site with a dynamic menu based on IF statements and DB CA queries, but have this little problem which I can't understand the CA reason. My programming method is based upon an application.php file CA which controls

Re: [PHP] Logging out and session ids

2002-11-29 Thread Tom Rogers
Hi, Friday, November 29, 2002, 4:58:02 PM, you wrote: GS I was just going through the archive. Seems this comes up enough for me GS to think I have something wrong. GS A simplistic code flow of events... GS ?php GS session_start(); GS // user successfully logs in, set a session variable GS

Re[2]: [PHP] Logging out and session ids

2002-11-29 Thread Tom Rogers
Hi, I have never bothered with the cookie, I only delete the server side info. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] object passing by reference

2002-11-27 Thread Tom Rogers
Hi This should do it: class parentClass { var $x; var $child; function parentClass($_x, $_child) {// $this-x = $_x; $this-child = $_child; // $this-child-m = Grow up, sonbr; } function foo() { return I'm the parent.br; } } class childClass { var $m;

Re: [PHP] form question ???

2002-11-11 Thread Tom Rogers
Hi, Tuesday, November 12, 2002, 2:27:10 AM, you wrote: JH HI all... JH looking at the code below. It works and I get what I want on the screen. BUT JH it leaves a gap between the top lines and where the table starts equal to the JH size of the table, ie if the table is 5 lines long the gap is

Re: [PHP] string to array

2002-11-08 Thread Tom Rogers
Hi, Friday, November 8, 2002, 10:43:10 PM, you wrote: MK Hi all, MK has anyone an elegant (and faster) way of converting 'string' to MK array('s','t','r','i','n','g'), other then MK for($i=0; $istrlen($string); $i++) $array[$i]=$string[$i]; A string is already an array of chars $string =

Re[6]: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-07 Thread Tom Rogers
/libsablot.so: undefined reference to `operator new(unsigned)' EN collect2: ld returned 1 exit status EN make: *** [dummy] Error 1 EN = End of Error Report = EN On Wednesday 06 November 2002 09:49 pm, Tom Rogers wrote: Hi, Thursday, November 7, 2002, 1:11:43 PM, you wrote

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tom Rogers
Hi, Friday, November 8, 2002, 12:36:03 PM, you wrote: TM First of all I would like to say that I know this is a lot of text but I TM would be very pleased if you take a little time to read it nevertheless. The TM situation described below is not complicated at all... TM

Re: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Tom Rogers
Hi, Wednesday, November 6, 2002, 2:56:33 PM, you wrote: DV Does anyone know of a nice efficient way to convert an array of values DV into a mask... DV Here's the deal. Given an array such that: DV $purchitem[0] = 1; DV $purchitem[1] = 3; DV $purchitem[2] = 4; DV I want to end up with a

Re: [PHP] Javascript and PHP

2002-11-06 Thread Tom Rogers
Hi, Wednesday, November 6, 2002, 2:52:31 AM, you wrote: vaue Hi. I'm not sure if is here where i have to ask this, but, if it's vaue not i hope you say to me :D. vaue Well the question is: i want to know how can i make to insert into vaue the $_GET or $_POST arrays, an entry with a value from

Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Tom Rogers
Hi, Wednesday, November 6, 2002, 2:50:42 PM, you wrote: EN -BEGIN PGP SIGNED MESSAGE- EN Hash: SHA1 EN I'm trying to get XSLT working with PHP, and after slowly working my way EN through several other problems, I've found one that I can't figure out. EN Software: EN PHP 4.2.3 EN Apache

Re[2]: [PHP] generically accessing member variables problem

2002-11-06 Thread Tom Rogers
Hi, Thursday, November 7, 2002, 3:11:12 AM, you wrote: MM You can do: ${this-$passed_in_array_name} MM not sure right now of the correct syntaxing, I never do that - normally MM I'd pass the element key. MM -- MM Maxim Maletsky MM [EMAIL PROTECTED] MM John Kenyon [EMAIL PROTECTED] wrote...

Re[2]: [PHP] generically accessing member variables problem

2002-11-06 Thread Tom Rogers
Hi, Thursday, November 7, 2002, 3:45:34 AM, you wrote: MM Yet, this is not a such elegant way doing it. It can be helpful in a lot MM of cases, but most often, element key is enough. Try rethinking your MM logic: MM class Example { MM var $array = array(); MM function

Re[2]: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Tom Rogers
Hi, Thursday, November 7, 2002, 5:35:10 AM, you wrote: EN -BEGIN PGP SIGNED MESSAGE- EN Hash: SHA1 EN Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too. End EN result: same error. Any other ideas??? EN On Wednesday 06 November 2002 09:09 am, you wrote: Hi,

Re[4]: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Tom Rogers
Hi, Thursday, November 7, 2002, 1:11:43 PM, you wrote: EN Same error. As a test try compiling statically into apache...That is the way I have php at the moment. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display only so many characters

2002-11-05 Thread Tom Rogers
Hi, Wednesday, November 6, 2002, 3:21:03 AM, you wrote: S I've seen this on a lot of news sites and such. How can I display only so many characters, then put a ... to show that it's continued? S Thanks, S Stephen Craton S http://www.melchior.us S Life is a gift from God. Wasting it is like

Re: [PHP] More on cleaning Windows characters...

2002-11-04 Thread Tom Rogers
Hi, Monday, November 4, 2002, 2:58:22 PM, you wrote: ahsb After considerable investigation into the form input of non-Latin 1 ahsb characters to be processed by PHP on a Linux box, I've been able to ahsb distill the issue down considerably, though a solution (and one oddity) ahsb remains

Re: [PHP] Get shipping problem continued!

2002-11-01 Thread Tom Rogers
Hi, Friday, November 1, 2002, 11:11:52 PM, you wrote: SJ Sorry to keep on at you guys but this is really getting to me now! SJ I want to pull a shipping quantity (the very last record in the Db) into SJ a page and am still having problems. Tried looping through the records SJ and I can't seem to

Re: [PHP] Can anyone help please.

2002-10-27 Thread Tom Rogers
Hi, Monday, October 28, 2002, 1:44:37 AM, you wrote: SJ I have two test carts online at the moment. SJ This one works fine: SJ http://www.violasystems.com/shop/ SJ this one is the one I want to get working SJ http://www.violasystems.com/shop_testing/ SJ The code for the first shop basically

Re: [PHP] Library question

2002-10-27 Thread Tom Rogers
Hi, Monday, October 28, 2002, 2:52:47 PM, you wrote: MK Hi all. MK I would like to know what does it mean by I need to have a certain library MK to have access to a certain function such as encrypt and decrypt? MK And how do I install these library? Those are a collection of functions that PHP

Re: [PHP] mysql_fetch_row options

2002-10-26 Thread Tom Rogers
Hi, Saturday, October 26, 2002, 8:23:23 PM, you wrote: JT There's got to be a better way to go about this: I am constantly doing mysql JT queries where I am doing JT a count(), so a sample query would be like this: select count(*) from JT database. I'm expecting only JT ONE value back exactly,

Re: [PHP] Enum table entry

2002-10-19 Thread Tom Rogers
Hi, Saturday, October 19, 2002, 2:48:14 PM, you wrote: SM Have a question that im trying to figure out how to resolve. I have a field type in mysql that is of the enum type. Unless youre familiar with Dungeons and Dragons, you wont get what the values SM mean, but hopefully youll get the gist

Re[2]: [PHP] Enum table entry

2002-10-19 Thread Tom Rogers
of you people are pretty freakin' smart. :) JN One note though, when you pull the serialized data out, you may have to JN stripslashes before unserialize... JN $school = unserialize ( stripslashes ( $row['school'] ) ); JN Tom Rogers wrote: Hi, Saturday, October 19, 2002, 2:48:14 PM, you wrote

Re: [PHP] Re: Get the string in between two other strings

2002-10-17 Thread Tom Rogers
Hi, Thursday, October 17, 2002, 10:33:43 PM, you wrote: CC I have looked at these, and they make no sense to me. I tried the substr CC function, but it all went a bit pear shaped. Here is a way that will handle line breaks which tend to stuff up the string functions: ? function

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Tom Rogers
Hi, Wednesday, October 16, 2002, 11:49:04 PM, you wrote: JY I'm going to approach this question in a different way, in case some JY people were put off by the complexity of it yesterday. JY For all those who don't know my question from yesterday, I have a form JY where I can upload up to 9

Re[2]: [PHP] Blank PHP pages..

2002-10-16 Thread Tom Rogers
Hi, Thursday, October 17, 2002, 12:58:02 AM, you wrote: AG I checked and register_globals is set to on - so that can't be the AG problem. Stop teasing us and show us the code you have on those pages :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Working with dates in PHP

2002-10-11 Thread Tom Rogers
Hi, Friday, October 11, 2002, 3:53:55 PM, you wrote: JP I am at my wits end at the moment. I am pulling a datetimestamp out of a JP database and attempting to get the year month and day out of it. However JP I am stumped as how to do it. JP The format is -MM-DD HH:MM:SS and its coming

Re: [PHP] Found the problem with the libmcrypt.....

2002-10-09 Thread Tom Rogers
Hi, Thursday, October 10, 2002, 5:35:12 AM, you wrote: SF Found the problem with libmcrypt-2.5.3. When I configured PHP using SF the --with-mcrypt option and the PHP configuration found libmcrypt without a SF problem. After compiling and installing it. SF Once I fired up Apache. I checked

Re: [PHP] Re: POST method not allowed

2002-10-09 Thread Tom Rogers
Hi, Wednesday, October 9, 2002, 10:19:30 PM, you wrote: MK Ok, my bad, firstup i didnot set in httpd.conf to process *.php3 files. But MK i already fix that. So, now all I'm getting is that when I I try to process MK the data from a form whether I'm using GET or POST method, the value that i MK

Re: [PHP] Installing both static and dynamic modules

2002-10-08 Thread Tom Rogers
Hi, Wednesday, October 9, 2002, 1:24:31 AM, you wrote: JD In the INSTALL file notes for PHP is says: JD 1: Only install either the static module or the dynamic one. Do not JDinstall both. JD No reasoning is given for this statement. Does anyone know what the reason JD for this is? JD

Re[2]: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Tom Rogers
Hi, Wednesday, October 9, 2002, 1:58:50 PM, you wrote: BL On 10/8/02 11:54 PM, CC Zona [EMAIL PROTECTED] wrote: Yeah that's the path to where php.ini should be (/usr/local/lib, in my case, but the Jaguar version of PHP doesn't use a php.ini file, so there's nothing there. BL There is no

Re: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 6:53:43 AM, you wrote: SV Hiya, SV DOn't think I am getting anywhere!!! SV I have no turned register_globals off and recoding my website, but I cant work out how to do sessions. SV The following code dosen't keep sessions. Its logs on, but I dosent

Re[2]: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:00:59 PM, you wrote: TR After the successful first login you are not saving the $_POST variables TR into the $_SESSION equivalents TR -- TR regards, TR Tom Ok after looking a little harder I found you were setting it :) Your prblem is in the lines

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:13:59 PM, you wrote: You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? JWH No. Can you recommend a good method on windows? Should I get lynx or JWH does opera have a method to view all

Re[4]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:59:40 PM, you wrote: JWH Wouldn't everything be encrypted, though, since it's over SSL? Including JWH the headers? JWH Unfortunately, the way they set up the server, it will not process any JWH unsecured requests now. JWH ---John Holmes... Yes it is encrypted

Re[2]: [PHP] File download doesn't work with SSL

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 1:32:16 PM, you wrote: JWH Thanks for the help guys. Like I said, the download works fine as long JWH as it's not over SSL. I will try to disable it and see if I can look at JWH the headers sent to see if a no-cache header is being sent, even though JWH I haven't

<    2   3   4   5   6   7   8   9   >