Re: [PHP] Message Board Question

2003-03-11 Thread Tom Rogers
Hi, Tuesday, March 11, 2003, 8:31:47 PM, you wrote: c Hi, this is kind of a complex question, Im making a message board, now I c dont want list, lets say, all 25 messages on the same page. I would like c to have - previous 1 2 3 next - type of links and only list 5 messages c per page and

Re: [PHP] while loop with mysql

2003-03-10 Thread Tom Rogers
Hi, Monday, March 10, 2003, 7:20:37 PM, you wrote: RK Can somebody look at this and tell me way the first while loop will RK only loop through the database once when there is more than one record RK that should be processed. RK while($members = @mysql_fetch_object($result)) { RK

Re: [PHP] Still having a problem with IF/ELSE Statement

2003-03-06 Thread Tom Rogers
Hi, Thursday, March 6, 2003, 10:31:58 PM, you wrote: HJ I want to tahnk those that responded to my previous post, seems I was doing HJ this all the wrong way. I am still having an issue with the syntax: HJ if($status=='active'){ HJ echo(active line\n); HJ }else{ HJ echo(inactive line\n); HJ };

Re: [PHP] Problem updating

2003-03-06 Thread Tom Rogers
Hi, Friday, March 7, 2003, 12:27:27 AM, you wrote: SJ Been on this a couple of hours... anyone see what I'm doing wrong? SJ I get a result of 1 when I echo $result but it doesn't want to update at SJ all. SJ The action of this form index.php?action=update-account is just a switch SJ case SJ

Re: [PHP] How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Tom Rogers
Hi, Tuesday, March 4, 2003, 7:52:26 PM, you wrote: CB Hello! CB I'm new here on the list. I hope you can help me! :) CB I have a function foo1 which has a parameter $params. In the function i want CB to pass $params to another function foo2. if $params is an array the CB elements should be

Re: AW: [PHP] How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Tom Rogers
Hi, Tuesday, March 4, 2003, 8:53:25 PM, you wrote: CB Mh...i need this for a class loader. CB Could you post your class loader? (i do not want to invent the wheel again) CB Thanks! This works for me to load modules in a base class so adapt it as you need. ? class loaderClass { var

Re: [PHP] Supressing a session id in link

2003-03-04 Thread Tom Rogers
Hi, Wednesday, March 5, 2003, 12:45:27 PM, you wrote: G Hi All, GI need to suppress the session id in some links. The xhtml needs to G validate and the session id will no do so. A lot of people that visit G the site will try to validate the xhtml and css. G I call the links with G a

Re[2]: [PHP] Supressing a session id in link

2003-03-04 Thread Tom Rogers
Hi, Wednesday, March 5, 2003, 1:47:39 PM, you wrote: G Tom Rogers wrote: Hi, Wednesday, March 5, 2003, 12:45:27 PM, you wrote: G Hi All, GI need to suppress the session id in some links. The xhtml needs to G validate and the session id will no do so. A lot of people that visit G

Re[2]: [PHP] Still no luck running a PHPCLI script from CRON

2003-03-03 Thread Tom Rogers
Hi, Tuesday, March 4, 2003, 10:01:25 AM, you wrote: JMC Dan, JMC I used your example exactly like you have it specified. My cron log JMC looks like this: JMC Mar 3 15:53:00 prod /usr/sbin/cron[3085]: (root) CMD JMC (/usr/local/contab-scripts/wibble.php) JMC Mar 3 15:54:00 prod

Re[2]: [PHP] ICQ # validation

2003-03-03 Thread Tom Rogers
Hi, Tuesday, March 4, 2003, 12:06:14 PM, you wrote: JF Does it actually NEED a regexp? JF UNTESTED code: JF ? JF $icq = 2264532680; JF if( (is_int($icq)) (strlen($icq) 7) (strlen($icq) 9) ) { JF echo yah; JF } else { JF echo nah; JF } ? JF FWIW, Are you SURE that all valid ICQ #'s

[PHP] Re: Still no luck running a PHPCLI script from CRON -- getting closer

2003-03-03 Thread Tom Rogers
://www.somnioworld.com JMC -Original Message- JMC From: Tom Rogers [mailto:[EMAIL PROTECTED] JMC Sent: Monday, March 03, 2003 6:23 PM JMC To: Justin Michael Couto JMC Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] JMC Subject: Re[2]: [PHP] Still no luck running a PHPCLI script from CRON JMC Hi, JMC

Re: [PHP] heredoc problem

2003-03-02 Thread Tom Rogers
Hi, Monday, March 3, 2003, 8:02:14 AM, you wrote: jvc Can someone tell me what is wrong with the following code: jvc html jvc headtitleTesting/title/head jvc body jvc ?php jvc $str = EOD jvc Example of string jvc spanning multiple lines jvc using heredoc syntax. jvc EOD; ? jvc /body jvc

Re: [PHP] Still no luck running a PHPCLI script from CRON

2003-03-02 Thread Tom Rogers
Hi, Monday, March 3, 2003, 6:33:46 AM, you wrote: JMC Does anyone have a PHP CLI script running from cron? JMC If so I would greatly appreciate any assistance. Below is everything JMC from this on going problem. It seems none has an answer so far. JMC Please help. JMC

Re[2]: [PHP] Still no luck running a PHPCLI script from CRON

2003-03-02 Thread Tom Rogers
Hi, Monday, March 3, 2003, 2:54:47 PM, you wrote: JMC Tom, JMC Did you run the script from cron? If so, what operating system are you JMC using? Putting PHP info in my script won't do me any good since cron JMC won't run it. The trouble is that cron does nothing. When I run the JMC email

Fwd: Re[7]: [PHP] Help!! with array's Please

2003-03-01 Thread Tom Rogers
This is a forwarded message From: Tom Rogers [EMAIL PROTECTED] To: Richard Kurth [EMAIL PROTECTED] Date: Saturday, March 1, 2003, 5:59:11 PM Subject: [PHP] Help!! with array's Please ===8==Original message text=== Hi, Saturday, March 1, 2003, 4:28:27 PM, you wrote: RK

Re: [PHP] Date question

2003-03-01 Thread Tom Rogers
Hi, Sunday, March 2, 2003, 3:39:37 PM, you wrote: S Greetings all. S I have used strtotime() function in the past, and done this: if($time = strtotime('24 hours ago')) { S $new = new!; S } S with it being in UNIX time stamp .. But now I have a different client where S the time stamp in mysql

Re[3]: [PHP] Help!! with array's Please

2003-02-28 Thread Tom Rogers
Hi, Friday, February 28, 2003, 5:39:39 PM, you wrote: RK Hello Tom, RK Thursday, February 27, 2003, 7:39:52 PM, you wrote: TR Hi, TR Friday, February 28, 2003, 12:20:38 PM, you wrote: RK I really need somebody to help me with this I am totally lost on what RK to do RK I need a way to read

Re[4]: [PHP] virtual() test

2003-02-28 Thread Tom Rogers
Hi, Friday, February 28, 2003, 10:41:24 PM, you wrote: TR Friday, February 28, 2003, 12:09:30 PM, you wrote: JWH Can anyone with Apache verify that you can pass arguments inside JWH of a JWH virtual() call? Something like: JWH Virtual(script.pl?id=1) JWH And have $id available within

Re: [PHP] Help with Sessions

2003-02-28 Thread Tom Rogers
Hi, Saturday, March 1, 2003, 1:54:24 AM, you wrote: PKI Hi PKI I just have a little problem with sessions. PKI my code: PKI htmL PKI headtitleTEST/title PKI /head PKI body PKI ?php PKI session_start(); PKI if ($submit) { PKI echo 'Hello '.$_SESSION['ID']; PKI } else { PKI

Re: [PHP] virtual() test

2003-02-27 Thread Tom Rogers
Hi, Friday, February 28, 2003, 12:09:30 PM, you wrote: JWH Can anyone with Apache verify that you can pass arguments inside of a JWH virtual() call? Something like: JWH Virtual(script.pl?id=1) JWH And have $id available within script.pl. JWH I don't have access to an Apache server right now to

Re[2]: [PHP] virtual() test

2003-02-27 Thread Tom Rogers
Hi, Friday, February 28, 2003, 1:16:56 PM, you wrote: TR Hi, TR Friday, February 28, 2003, 12:09:30 PM, you wrote: JWH Can anyone with Apache verify that you can pass arguments inside of a JWH virtual() call? Something like: JWH Virtual(script.pl?id=1) JWH And have $id available within

Re: [PHP] Help!! with array's Please

2003-02-27 Thread Tom Rogers
Hi, Friday, February 28, 2003, 12:20:38 PM, you wrote: RK I really need somebody to help me with this I am totally lost on what RK to do RK I need a way to read the following text file and add to or delete from RK or change the data. RK I have been able to move it all into an array using this

Re: [PHP] Function returns an array of objects...

2003-02-27 Thread Tom Rogers
Hi, Friday, February 28, 2003, 4:24:54 PM, you wrote: AS so i have a function that creates objects (with member variables) and AS pushes those objects onto the array. after adding all of the objects, AS the function then returns the array... AS i'm having trouble accessing the members of each

Re: [PHP] Re: mysqldump

2003-02-27 Thread Tom Rogers
Hi, Thursday, February 27, 2003, 2:55:48 PM, you wrote: JTJ Thanks! exec(mysqldump -c -q database -u user -ppassword, $sql); JTJ Why is there no space between the -p and password? -ppassword JTJ Am I wrong? JTJ Thanks, JTJ John Probably because a space is a valid char in password --

Re: [PHP] getimagesize() issues starting with PHP 4.3..

2003-02-25 Thread Tom Rogers
Hi, Wednesday, February 26, 2003, 2:27:10 PM, you wrote: JD Can anyone reproduce this problem? JD I am involved in running a large forum, and ever since our upgrade to PHP JD 4.3.1, there have been fairly random issues with getimagesize(). It JD happens only on certain images it seems.

Re: [PHP] Help Please

2003-02-23 Thread Tom Rogers
Hi, Sunday, February 23, 2003, 10:43:36 PM, you wrote: HI Hi All, HI i am new to qmail and linux so bear with me.first of all i would like to clearly state my situation here.we have to HI servers linux+windows.we have qmail installed on linux.wesite is hosted on windows.now i want to create

Re: [PHP] Sitewide Header Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread Tom Rogers
Hi, Sunday, February 23, 2003, 6:14:32 AM, you wrote: CH Hey All. CH Got a perhaps easy question here: CH How can I create a global header and footer include to my site pages where I CH don't rely on absolute paths to include and image files? CH I'm having trouble including my header and

Re[2]: [PHP] Sitewide Header Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread Tom Rogers
Hi, Sunday, February 23, 2003, 9:13:16 AM, you wrote: CH Hey Tom. CH Thanks for the idea; however, since we're not hosting the site on our own CH server, we don't have permissions for altering the php.ini file.. CH --Noah It only sets the ini path for the current document, it does not

Re: [PHP] preg_match question: locating unmatched HTML tags

2003-02-22 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 12:35:15 PM, you wrote: AC My apologies in advance if this too basic or there's a solution easily AC found out there, but after lots of searching, I'm still lost. AC I'm trying to build a regexp that would parse user-supplied text and AC identify cases where

Re: [PHP] preg_match question: locating unmatched HTML tags

2003-02-22 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 12:35:15 PM, you wrote: AC My apologies in advance if this too basic or there's a solution easily AC found out there, but after lots of searching, I'm still lost. AC I'm trying to build a regexp that would parse user-supplied text and AC identify cases where

Re: [PHP] Re: including in shtml

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 8:22:44 AM, you wrote: HP anyone? HP Hans Prins [EMAIL PROTECTED] schreef in bericht HP news:[EMAIL PROTECTED] Hello, I have a problem with including a test.php into a test.shtml and HP passing a variable to the test.shtml which should be processed in the

Re[2]: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 2:26:35 AM, you wrote: M I see that its looking for mysql.sock in /tmp/mysql.sock M but I searched on my system and only found mysql.sock in /var/lib/mysql/ M is there a section where I need to change this setting? or a conf file? M Hans Prins [EMAIL PROTECTED]

Re: [PHP] Re: including in shtml

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 12:29:36 PM, you wrote: HP Im trying to write a poll script that is easy to intergrate into other HP documents of a site and thought that since shtml is a much used method, I HP want to make it available. HP Hans Prins [EMAIL PROTECTED] schreef in bericht HP

Re: [PHP] Logging Referer

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 9:19:13 AM, you wrote: MH Hi all, MH I'm working on adding some logging functionality to a PHP image counter MH script that I wrote. The counter outputs an image representing the current MH number of hits and is used via an img tag. After it displays the image,

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 9:34:03 PM, you wrote: Rec Hi all, Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being display the, Rec anything after the ' is being left out. Here is the code I'm using:

Re: [PHP] Pass Array parameter by reference

2003-02-20 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 10:52:11 PM, you wrote: A Hi! A How can I pass an array parameter by reference? A I tried something similar: A function my_function($argument) { A $argument[0]=test; A } A my_function($array); A echo $array[0]; A but the echo function returns Array. A Can

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 9:34:03 PM, you wrote: Rec Hi all, Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being display the, Rec anything after the ' is being left out. Here is the code I'm using:

Re: [PHP] Class VS Functions

2003-02-20 Thread Tom Rogers
Hi, Friday, February 21, 2003, 9:41:46 AM, you wrote: CF Hi. CF I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of CF docs showing the possibilities in php coding with Class's but the true is CF that the reability of the code with Class's i steal can make the same with

Re[2]: [PHP] syntax question

2003-02-19 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 3:34:31 AM, you wrote: AR This is what I was getting at. AR The following is correct mysql syntax in which a comma must be added after AR each field - except for the last field - in this case price: AR i.e., AR . AR CREATE TABLE chairs( AR id

Re: [PHP] pro-rated date

2003-02-17 Thread Tom Rogers
Hi, Tuesday, February 18, 2003, 7:03:37 AM, you wrote: PC Anybody have a quick way of determining the number of days remaining in PC the current month? PC I'm currently using: PC $nextmonth = strftime(%Y-%m-01,strtotime(+1 month)) PC $monthdays =

Re: [PHP] calculating kilobytes

2003-02-15 Thread Tom Rogers
Hi, Saturday, February 15, 2003, 5:17:59 AM, you wrote: j hi j first of all i think this is a great community here :) j now to the point... j i need a script. it should work on safe mode php so it should be as simple j as possible. j it should calculate all the file sizes in the directory that

Re: [PHP] How does PHP transforms an integer on a string? like 3 onto three

2003-02-14 Thread Tom Rogers
Hi, Friday, February 14, 2003, 10:10:55 AM, you wrote: F Does PHP transforms an integer on a string? F Like: 78 onto seventy eight F How does it do it? Here is a class I started to do that kind of transform class num_to_text { var $mode; //NUMERIC CURRENCY var $words =

Re[2]: [PHP] msession users

2003-02-12 Thread Tom Rogers
Hi, Wednesday, February 12, 2003, 11:32:54 PM, you wrote: RM Any information would definitely be interesting. here it is: ?php class msession_class{ var $ses; //session on flag var $sessionname; //current name of session

Re: [PHP] ftp_get()

2003-02-12 Thread Tom Rogers
Hi, Thursday, February 13, 2003, 9:17:17 AM, you wrote: M I am trying to ftp_get($con,/tmp/download.tmp,/remote/file M dir/file.txt,FTP_ASCII). I am getting errors because of the space in the M remote filename. I tried using /remote/file\ dir/file.txt as the M filename, but that also fails. I

Re: [PHP] default php sessions in a database

2003-02-11 Thread Tom Rogers
Hi, Wednesday, February 12, 2003, 1:34:49 PM, you wrote: RM Is there a way to configure php to use a database for sessions rather than RM a text file. RM I have a server farm and want the session files to be accessible to all RM machines in the cluster. I can have the session file on nfs but I am

Re: [PHP] msession users

2003-02-11 Thread Tom Rogers
Hi, Wednesday, February 12, 2003, 4:01:28 PM, you wrote: RM Are there any msession users here, if so please share your experiences. RM I am considering using msession for a multiple server environment for RM handling session data. I have been using it as a general session manager for about a

Re: [PHP] Class within a class

2003-02-10 Thread Tom Rogers
Hi, Tuesday, February 11, 2003, 5:36:22 AM, you wrote: JM I have made a Mysql database class. I wanted to know how I could use JM that class in another class without using extend. For example: JM include 'db.php'; JM $db = new db(); JM ...some php code... JM class blah { JM var

Re: [PHP] Re: MySQL for storing PHP code

2003-02-10 Thread Tom Rogers
Hi, Tuesday, February 11, 2003, 7:39:16 AM, you wrote: DP Thanks for the comments everyone! eval() has just made my day :) DP Cheers, DP Daniel DP Daniel Page [EMAIL PROTECTED] a écrit dans le message de news: DP [EMAIL PROTECTED] Hi, Would it be possible to store PHP code in a MySQL table,

Re: [PHP] GD Chinese support - php4.3

2003-02-07 Thread Tom Rogers
Hi, Saturday, February 8, 2003, 3:30:11 AM, you wrote: ED any one know how display Chinese Characters (tradition or simplified) in ED GD.? ED is that something deal with multibyte functions...? ED i have installed the bundled GD and Libjpeg ED they all worked perfectly with english words ED

Re[2]: [PHP] empty and isset

2003-02-06 Thread Tom Rogers
Hi, Friday, February 7, 2003, 4:39:42 AM, you wrote: JW On Friday 07 February 2003 01:35, [EMAIL PROTECTED] wrote: Thanks for clearing that up. JW Hmm, it seems like you still haven't grasped it yet :) So input of type text does a set, which makes isset() true, JW Correct. but isset()

Re: [PHP] Execute at a defined time

2003-02-05 Thread Tom Rogers
Hi, Wednesday, February 5, 2003, 11:49:35 PM, you wrote: MB Hi, MB I was looking on PHP manual but didn't find anything about it. MB How can I execute a script all days at the same time? I kno i must have MB access to the CRON of the system, but don't know what function should I use MB to make

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 12:07:49 AM, you wrote: JCI Can anyone point to information on how to install mcrypt support for JCI PHP. I tried the PHP mcrypt pages but they are quite lacking in details. JCI I downloaded libmcrypt and got that installed fine. JCI I also downloaded mcrypt (do

Re[2]: [PHP] mcrypt installation problems

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 12:30:01 AM, you wrote: JCI Tom Rogers wrote: I did it this way untar libmcrypt and mcrypt into /usr/src then in libmcrypt ./configure --prefix=/usr (could be /usr/local if you want make make install ldconfig cd ../mcrypt-2.6.3 JCI Up to here fine

Re: [PHP] Date format from file

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 2:41:42 AM, you wrote: ehhc Is it possible to read a string from a text file (i.e. ehhc 0502031130) and be able to use that in a date function such as: ehhc $date = date(dmyHi, strtotime('+28 days)); ehhc How would I use that string as the date in the above

Re: [PHP] reading CD information

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 3:06:29 AM, you wrote: AW Is it possible to have PHP read cd label information? You know in windows AW like after you put in a CD and use Windows Explorer and go to your CD rom AW drive's letter it will say like D: (MSOffice2K) or D: (date of burned cd) AW or D:

Re[2]: [PHP] reading CD information

2003-02-05 Thread Tom Rogers
Hi, Adam TR You could try the vol command using exec{} and parse out the volume name TR -- TR regards, TR Tom This should do it: ? exec(vol g:,$result); $label = trim(strrchr($result[0],' ')); echo 'Label is '.$label.'br'; ? -- regards, Tom -- PHP General Mailing

Re[2]: [PHP] reading CD information

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 4:49:23 AM, you wrote: JN Guess it's not on Linux, eh? :) JN Adam Williams wrote: Thanks Tom, that works perfect! Adam On Thu, 6 Feb 2003, Tom Rogers wrote: Hi, Adam TR You could try the vol command using

Re: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Tom Rogers
Hi, Sunday, February 2, 2003, 3:32:28 PM, you wrote: BS Is it possible (using an apache directive, perhaps?) to turn off php parsing BS for certain directories within a site? (but not others?) BS I picture something like (in httpd.conf) BS directory /home/www/somesite.com/codearchive BS

Re[2]: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Tom Rogers
Hi, Sunday, February 2, 2003, 11:07:20 PM, you wrote: EEV At 12:25 02.02.2003, Tom Rogers said: EEV [snip] you could try php_flag engine = Off EEV [snip] EEV I've tried (this works): EEV In the configuration

Re[2]: [PHP] Loading CSV data into MySQL

2003-02-02 Thread Tom Rogers
Hi, Monday, February 3, 2003, 12:09:59 AM, you wrote: BVB On Sat, 2003-02-01 at 20:07, John W. Holmes wrote: Then use an ORDER BY in your query. If you're relying on the database to spit out rows in the order they went in, then you're wrong. BVB Hey man thanks for pointing that out... I

Re: [PHP] Date and time problem

2003-02-02 Thread Tom Rogers
Hi, Monday, February 3, 2003, 11:10:36 AM, you wrote: DLM Hello friends. DLM The follwing code displays the date on my webpage : DLM echo date (l dS of F Y h:i:s A); DLM However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the above

Re: [PHP] Text size in image

2003-02-02 Thread Tom Rogers
Hi, Monday, February 3, 2003, 8:24:00 AM, you wrote: BVB When creating an image using the image functions how do you control the BVB type face size? If you are using imagestring() the size is determined by the font number (1 - 5) for internal fonts. If you use true type fonts then the size is

Re: [PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread Tom Rogers
Hi, Sunday, February 2, 2003, 1:29:30 PM, you wrote: JK I am displaying a form using values obtained from a database query. JK One of the elements contains about 20 different values. I want the JK use to be able to select multiple values before pressing submit. JK This seems to work, but when my

Re: [PHP] I would like to display a list of the same products only if productPublic = staff or members.

2003-01-31 Thread Tom Rogers
Hi, Saturday, February 1, 2003, 2:00:51 PM, you wrote: PJN I would like to list 2 possable items in a mysql queary. PJN SELECT * FROM products WHERE productType = '$productType AND Where PJN productPublic = 'staff' OR productPublic = 'members' ORDER BY productId DESC PJN LIMIT 10 PJN I would

Re: [PHP] Passing Object Refs throught Arrays

2003-01-30 Thread Tom Rogers
Hi, Thursday, January 30, 2003, 10:36:20 PM, you wrote: J I'm having a problem, and I wrote this sample code to illistrate it. J In this code, I'm trying to create a object, put it throught a que. I J then want something to happen to this object, and this change to be J reflected in the

Re[2]: [PHP] Adding HTTP URL Code

2003-01-30 Thread Tom Rogers
Hi, Friday, January 31, 2003, 3:43:52 AM, you wrote: EKAHFe Hi all! EKAHFe Unfortunately, I didn't receive any replies to the problem I sent out EKAHFe on January 16th so I thought I'd send another email and perhaps EKAHFe clarify what I am seeing so that maybe someone CAN help and ask EKAHFe if

Re: [PHP] Re: [PHP-WIN] Register globals on and off

2003-01-30 Thread Tom Rogers
Hi, Friday, January 31, 2003, 10:42:42 AM, you wrote: DO Thanks for your reactions guys, I stil havent been able to get it to DO work... I have added a .htaccess file into my directory that needs the DO register globals on, containing DO php_value register_globals on DO And i have chanched

Re: [PHP] Too many 'linespaces'

2003-01-27 Thread Tom Rogers
Hi, Tuesday, January 28, 2003, 12:24:21 PM, you wrote: LE Hello, LE I present some content of a mysql-table in an html-table. When the query LE which collects the content contains few rows I get the amount of space I LE want between the output and the above content. But when I get for instance

Re[2]: [PHP] Too many 'linespaces'

2003-01-27 Thread Tom Rogers
Hi, Tuesday, January 28, 2003, 12:47:05 PM, you wrote: LE You mean to comment out the while sentence? LE A do-while-loop won't work without the while-part would it? Comments are LE suplements to understand the code, not needed for the code to work. LE Thanks anyway LE Tom Rogers [EMAIL

Re: [PHP] CRON?

2003-01-25 Thread Tom Rogers
Hi, Sunday, January 26, 2003, 7:58:18 AM, you wrote: N Does anyone have a PHP script to enter cron jobs? I have a limited control N panel (ensim) that doesn't have anyway to do cron, and I don't know how to N do it at the command line yet. Anyone have a good tutorial or a PHP script N to do this?

Re: [PHP] XORing a string with some hash???

2003-01-25 Thread Tom Rogers
Hi, Sunday, January 26, 2003, 10:02:40 AM, you wrote: PL Hello everybody, PL I was wondering if someone can tell me how do I XOR a given string with PL some hash .. like MD5 hash or something. I know how to do this in C - it's PL more than easy but with PHP I can't find a way at all. PL

Re: [PHP] domxml_new_doc() utf8 encoding

2003-01-24 Thread Tom Rogers
Hi, Saturday, January 25, 2003, 4:04:38 AM, you wrote: ØV how do i create ØV ?xml version=1.0 encoding=utf8?? ØV domxml_new_doc(1.0) only creates ØV ?xml version=1.0? ØV vennlig hilsen ØV Øyvind ØV STOPP BARNEPORNO PÅ INTERNET: ØV Send tips om barneporno til Redd Barna: ØV [EMAIL PROTECTED]

Re: [PHP] A rather strange problem.

2003-01-23 Thread Tom Rogers
Hi, Thursday, January 23, 2003, 10:47:56 PM, you wrote: DLM hello friends, DLM I run some queries and output the database fields in a form with text boxes for the purpose of editing by the administrator. My problem is that if my field value is of 2 words or more, my output DLM text box shows

Re: [PHP] Mohawk Software session handler functions

2003-01-22 Thread Tom Rogers
Hi, Wednesday, January 22, 2003, 6:15:36 PM, you wrote: HJ Hello, there. HJ I'm Looking for 'Mohawk Software session handler functions' examples. HJ PHP Manual describes it http://www.php.net/manual/en/ref.msession.php . HJ But, There are no descriptions and examples. HJ Anybody has one? HJ

Re[2]: [PHP] Mohawk Software session handler functions

2003-01-22 Thread Tom Rogers
Hi, Wednesday, January 22, 2003, 6:34:45 PM, you wrote: TR Hi, TR Wednesday, January 22, 2003, 6:15:36 PM, you wrote: HJ Hello, there. HJ I'm Looking for 'Mohawk Software session handler functions' examples. HJ PHP Manual describes it http://www.php.net/manual/en/ref.msession.php . HJ But,

Re: [PHP] Generating a range of IP address

2003-01-22 Thread Tom Rogers
Hi, Thursday, January 23, 2003, 2:10:05 PM, you wrote: rsn I need a way to add a range of IPaddress to a databases the rsn example below work as long as the last numbers in the IPaddress rsn are equal length like three numbers or two or one. If the first rsn IPaddress has 1

Re: [PHP] $header = Location:........ being ignored!

2003-01-21 Thread Tom Rogers
Hi, Tuesday, January 21, 2003, 7:48:04 PM, you wrote: S Hi Group, S I basically have some simple code such as: S == S if ( $_POST['passwd'] != $db['password'] S {header(Location: loginfailed.html); S } S //else S $header = Location:

Re: [PHP] is this better or is it still in html?

2003-01-20 Thread Tom Rogers
Hi, Monday, January 20, 2003, 1:59:17 PM, you wrote: KJ Karl KJ -- KJ PHP General Mailing List (http://www.php.net/) KJ To unsubscribe, visit: http://www.php.net/unsub.php its fine ... no html if thats what you mean :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] passing variables to a sql statement

2003-01-18 Thread Tom Rogers
Hi, Sunday, January 19, 2003, 5:50:51 AM, you wrote: j hi, i'm hoping someone can help me out here - im trying to pass a variable from a string in the href tag, however my sql breaks when i put a var in the statment. j when i replace $foo with a number, the page works fine. can someone please

Re[2]: [PHP] Re: Ever complained about lousy PHP programmers?

2003-01-17 Thread Tom Rogers
Hi, Friday, January 17, 2003, 4:44:19 AM, you wrote: PH Leon Mergen said: Now, first of all, why did you this: ?php echo(?xml version=\1.0\ encoding=\UTF-8\ ?); ? and not just: ?xml version=1.0 encoding=UTF-8 ? PH Because short tags are evil ;-) My provider has short tags enabled, so PH

Re: [PHP] Display Dates in English o_O

2003-01-17 Thread Tom Rogers
Hi, Friday, January 17, 2003, 11:16:53 AM, you wrote: S I have a PHP driven site that as a time schedule. Since the site isn't exactly filled with very intellagent people who just LOVE to translate times and dates from a weird format (Such as the S format used in MySQL), I'd like to take these

Re: [PHP] data move, Please Help..

2003-01-14 Thread Tom Rogers
Hi, Wednesday, January 15, 2003, 12:48:59 AM, you wrote: EP Ok, I know I have asked this question before and I have asked it on the db EP forum, on asp forums, java applet forums, searched google, etc but can't EP really seem to find anything. I have to come up with a way to move data EP from

Re: [PHP] Change Date

2003-01-13 Thread Tom Rogers
Hi, Sunday, January 11, 2004, 10:42:01 PM, you wrote: NS Hi, NS How can I find time stamp for example 125 next days. or 03:30 hours next? NS Regards, NS S. Naqashzade NS PS: Sorry for my bad english :-( The simplest way is with strtotime() for example $stamp = strtotime(+ 125 days); --

Re: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 9:36:57 AM, you wrote: P -BEGIN PGP SIGNED MESSAGE- P Hash: SHA1 P I did a complex class that works with XML parsing and complex structured where P I used references extensivly and now I'm surprised with: P Warning: Call-time pass-by-reference has been

Re[2]: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 11:01:33 AM, you wrote: P -BEGIN PGP SIGNED MESSAGE- P Hash: SHA1 P On Monday 13 January 2003 20:01, Tom Rogers wrote: Hi, Tuesday, January 14, 2003, 9:36:57 AM, you wrote: P -BEGIN PGP SIGNED MESSAGE- P Hash: SHA1 P I did a complex class

Re: [PHP] Getting info with WHILE

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 1:09:10 PM, you wrote: ES I have the following problem: ES I have a DB named 'fotografias' with the following information: ES ind indice_bio url ES 1 2 ../images/agosti.jpg ES 2 2 ../images/militar.jpg ES 3 2 hgfhgfh ES 4 2 eze ES

Re: [PHP] SESSION variable to pass login ID

2003-01-12 Thread Tom Rogers
Hi, Monday, January 13, 2003, 1:04:49 AM, you wrote: WG Hi, WG I have been trying to solve the problem of using session variables, but I WG have not had any luck. What I want to do is simple, I want to set my userid WG and password in a login screen and use it later (in another php form) to log

Re: [PHP] File information JPEG Files

2003-01-12 Thread Tom Rogers
Hi, Monday, January 13, 2003, 2:10:57 AM, you wrote: hmgd How can i get the file information of a uploaded jpeg-file. hmgd i need the heigt and width in pixel and the resolution. hmgd Thanks Harry Use getimagesize() $info = getimagesize('image.jpg'); echo 'Width = '.$info[0].' Hieght =

Re: [PHP] checkboxes, radio buttons and $_POST['name']

2003-01-09 Thread Tom Rogers
Hi, Friday, January 10, 2003, 4:25:00 AM, you wrote: JEO Hi JEO HELP!!! JEO I have read through the manual about using $_POST['name'] to retrieve JEO data from forms, but what happens when a form element is not filled in JEO or checked? JEO If I have a checkbox on a form called chk1 I get an

Re: [PHP] Is this possible with php?

2003-01-09 Thread Tom Rogers
Hi, Friday, January 10, 2003, 4:06:23 PM, you wrote: tnc I would like to know if the follwing function can be implemneted tnc in php with help of other tools: tnc using MS Word in windows, when a file is saved, can it be AUTOMATICALLY tnc uploaded (via http POST or other mechanism) to a server?

Re: [PHP] HTML email that generates !s - any ideas?

2003-01-08 Thread Tom Rogers
Hi, Thursday, January 9, 2003, 7:31:35 AM, you wrote: PH Hi everyone, I am new to this list, so this is my first post. PH I am trying to sen dan HTML email, and so far I got everything running, PH except for one very odd problem. PH 1.) I am setting up all my variables within the .php Script.

Re[2]: [PHP] XHTML Validator Problem[Scanned]

2003-01-07 Thread Tom Rogers
Hi, Tuesday, January 7, 2003, 10:23:54 PM, you wrote: ME Tom, ME Thanks for that. ME I don't have access to the server on which the site is being run but I'll suggest the change to the hosting company. ME Michael Egan ME -Original Message- ME From: Tom Rogers [mailto:[EMAIL PROTECTED

Re: [PHP] Get your *own* IP...?!

2003-01-07 Thread Tom Rogers
Hi, Tuesday, January 7, 2003, 6:45:43 AM, you wrote: ClP Does anyone know a way to fetch your own IP-adress? I need it because I run ClP a web server on my computer with a dynamic-IP so I need it to change all the ClP URLs it creates dynamically... ClP Thanks! ClP -Charles I think you should

Re: [PHP] Forwarding POST info from a PHP script

2003-01-07 Thread Tom Rogers
Hi, Wednesday, January 8, 2003, 12:29:50 AM, you wrote: DB I want to be able to retrieve POST variable in one PHP script (which is DB straight-forward) and then send these from the script to another one DB returning the processed input. DB I have written a script that will parse a frames-based

Re: [PHP] XHTML Validator Problem

2003-01-07 Thread Tom Rogers
Hi, Tuesday, January 7, 2003, 6:58:08 PM, you wrote: ME I've finally got round to making some attempt to validating the pages of a site I've done with PHP using the W3C XHTML Validator. However, it's throwing out errors wherever I use session control ME on pages. ME The server generates PHP

Re: [PHP] undefining an array element

2003-01-05 Thread Tom Rogers
Hi, Sunday, January 5, 2003, 9:46:05 PM, you wrote: DTG Hi, all -- DTG If I have an array like DTG $a1 = array ( 'a' = 'aaa' , 'b' = 'bbb' , 'c' = 'ccc' ) ; DTG and I want to completely remove 'b' from it (not just set $a1[b] to ), DTG how do I undefine that element? DTG TIA HAND DTG :-D

Re: [PHP] Unexpected $end error?

2003-01-05 Thread Tom Rogers
Hi, Monday, January 6, 2003, 8:56:58 AM, you wrote: VB Can someone tell me why I keep getting that error: VB Parse error: parse error, unexpected $end in D:\Program Files\Apache VB Group\Apache2\htdocs\proxy\acc_new.php on line 62 VB line 62 refers to /html VB Thanks for your help VB Vincent

Re[2]: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Tom Rogers
Hi, Sunday, January 5, 2003, 12:47:40 PM, you wrote: AP How about something like this.. AP function runquery($query) AP { AP $query = mysql_query($query); AP if (mysql_error()) AP { AP echo div style=\color:red\MySQL Error: . mysql_error() ./div\n; AP exit(1);

Re[2]: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Tom Rogers
Hi, Saturday, January 4, 2003, 3:23:37 AM, you wrote: FML -Original Message- FML From: Daevid Vincent FML To: [EMAIL PROTECTED] FML echo action = .$_POST[action].BR; FML if ($_POST[action] == 1 || $_POST[action] == 0) FML echo = UPDATE Company SET Enabled = .!(intval($_POST[action])).

Re[2]: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Tom Rogers
Hi, Friday, January 3, 2003, 10:33:39 AM, you wrote: MJP Just to add to that... what it is doing is reading it as a 0. 0,0,0,09,30,1998 = 883458000 MJP Tue, 30 Dec 1997 00:00:00 -0500 0,0,0,0,30,1998 = 883458000 MJP Tue, 30 Dec 1997 00:00:00 -0500 MJP Did you see this in the manual? MJP The

<    1   2   3   4   5   6   7   8   9   >