Re: [PHP] Comment management

2006-10-23 Thread Leif Gregory
Hello tedd, Monday, October 23, 2006, 1:53:41 PM, you wrote: Well... I was afraid that someone would say that (paint me into a corner). I just wanted to check before launching my own home-grown solution and then having everyone say Why didn't you use so-and-so's 'comment manager' ? Sorry,

Re: [PHP] Send process to background

2006-10-13 Thread Leif Gregory
Hello André, Friday, October 13, 2006, 10:42:58 AM, you wrote: Evidently, this will take a while. My first requirement was that it should _NOT_ deppend on external libraries (ie. pecl, modules and such). It has to be self-sustained. As such, it will take a bit longer to execute. Not knowing

Re: [PHP] Displaying MySQL results on runtime

2006-09-27 Thread Leif Gregory
Hello Mário, Wednesday, September 27, 2006, 10:25:31 AM, you wrote: Is there a way to display the MySQL actions at runtime, i. e., display the MySQL commands while they are being executed ? Echo the sql statements... -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP

Re: [PHP] Mailto members..?

2006-03-06 Thread Leif Gregory
Hello John, Wednesday, March 1, 2006, 11:38:15 AM, you wrote: Outside of being a major spam flag, and possibly reaching the limits of your smtp server. Agreed... Sending mass mail via BCC is going to be nothing but headaches. I've been down that road a number of times. --

Re: [PHP] need a php multiple/mysql choice quiz

2006-02-20 Thread Leif Gregory
Hello Ross, Monday, February 20, 2006, 8:49:55 AM, you wrote: I am looking for a php/mysql multiple choice quiz. One that saves the answers to a database. A basic example I can expand on is all that is required. http://www.hotscripts.com/PHP/Scripts_and_Programs/Tests_and_Quizzes/index.html

Re[2]: [PHP] What software do you use for writing PHP?

2005-12-07 Thread Leif Gregory
Hello Miles, Wednesday, December 7, 2005, 8:56:23 AM, you wrote: Why these clumsy interfaces? Just plug the Firewire in your ear! So that's where it's supposed to go!?!?!? I've been doing it wrong all this time, not to mention it made sitting so very uncomfortable. grin --

Re[2]: [PHP] Regex for Amateur Radio Callsigns

2005-11-16 Thread Leif Gregory
Hello Leonard, Tuesday, November 15, 2005, 8:39:19 PM, you wrote: Here are how they look W1W W1AW WA1W AD4HZ N9URK WB6NOA 4N1UBG Let's do it this way... What are the rules for a valid callsign? i.e. - If it's only three characters, it must start with a letter. - All callsigns must have

Re: [PHP] Type of form element

2005-10-28 Thread Leif Gregory
Hello Shaun, Friday, October 28, 2005, 9:00:05 AM, you wrote: Is it possible to loop through all $_POST values to see if it is a checkbox? If so then for that element if it is equal to 'on' then change it to 1 otherwise change it to 0? Yes and no. 1. You can't determine by the POST variable

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

2005-10-22 Thread Leif Gregory
Hello Richard, Saturday, October 22, 2005, 6:37:14 PM, you wrote: Otherwise, it's compiled into the DLL and you are stuck. A Windoze shortcut WILL NOT WORK One of the easiest ways to ensure you're using the php.ini file you want is to create the following registry key:

Re: [PHP] Imap, reading the email-body

2005-10-19 Thread Leif Gregory
Hello Bruno, Wednesday, October 19, 2005, 10:08:24 AM, you wrote: Look the main page and try to read any message... I dont know what can i do to fix it... nl2br() (see php manual) -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B __

Re: [PHP] Any good free easy converting tool?

2005-10-13 Thread Leif Gregory
Hello Gustav, Wednesday, October 12, 2005, 12:55:11 PM, you wrote: Someone know of any good free tool for converting from Access to Mysql. I just need to import certain tables into an already existance database. DBTools (freeware) http://www.dbtools.com.br/ I use it quite a bit. --

Re: [PHP] regular expression for time

2005-08-29 Thread Leif Gregory
Hello babu, Monday, August 29, 2005, 6:50:32 AM, you wrote: how can i write regular expression for time in 24-hour format i:e, HH:MM:SS. using preg_match. ?php $xtime=19:59:53; if (preg_match(/([01][0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9]/, $xtime)) echo Good; else echo Bad; ? --

Re: [PHP] need to convert field names into array for form submission

2005-08-12 Thread Leif Gregory
Hello Bruce, Friday, August 12, 2005, 1:39:54 PM, you wrote: I believe this can be done with an array. any assistance is greatly appreciated! I've been working on a validation function for quite a while now that does what you're asking. I keep adding to it as I run across stuff I didn't need

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 2:47:51 PM, you wrote: M Ok all - I've been playing with this print styl sheet thing. I can M get the media=print to behave correctly, but I cannot get table M background colors set. I want to print the table bg colors and M background images. I was hoping this

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 3:34:30 PM, you wrote: M Yeah I do understand this. That is primarily what I was trying to M find a workaround for. It doesn't seem like CSS will save me on M this one. I can't seem to get table borders to look identical in M ff/ie using CSS they render

Re: [PHP] What Works Works Validator

2005-06-02 Thread Leif Gregory
Hello Richard, Wednesday, June 1, 2005, 3:16:50 PM, you wrote: R Does anybody know of a What Works Works Validator which checks R for maxiumum browser compatibility rather than the W3C standard? E. Got it listed on my XHTML test page at: http://www.devtek.org/test (In the resources section

Re: [PHP] php forum and (almost certainly 0T) client editor

2005-05-31 Thread Leif Gregory
Hello Ryan, Tuesday, May 31, 2005, 7:59:10 AM, you wrote: R Can anybody recommend a real bare bones forum that i can modify or R a tutorial for creating a forum or URLs/Classes etc to help me R create a simple forum? ??? That's a hard question to answer. You could make it real bare bones and

Re: [PHP] [Files suffix] .inc.php files

2005-05-31 Thread Leif Gregory
Hello Martin, Sunday, May 29, 2005, 9:24:00 PM, you wrote: M I saw files like file.inc.php and file.inc M What is the *.inc suffix good for ? It's good for a lot of trouble if the webserver hasn't been set up to parse .inc files as PHP. If it hasn't then someone can request that file in a

Re: [PHP] Bar codes

2005-05-20 Thread Leif Gregory
Hello Emil, Friday, May 20, 2005, 4:45:49 AM, you wrote: E I've never done anything like this before, do you know of any good E starting points? I don't know anything about bar codes. http://www.phpclasses.org and search for barcode -- Leif (TB lists moderator and fellow end user). Using The

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-20 Thread Leif Gregory
Hello Graham, Friday, May 20, 2005, 12:46:28 PM, you wrote: G Can the server variable 'user agent' be modified/spoofed by the G user? Oh yeah Firefox and Opera are easy to change. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.5 Return RC9 under Windows XP 5.1 Build

Re: [PHP] upload videos (might be a bit 0T)

2005-05-19 Thread Leif Gregory
Hello Ryan, Thursday, May 19, 2005, 10:57:55 AM, you wrote: R Any suggestions on how to do this? Normal upload form with PHP and R increase timeout on server? or some P2P method? I dont think they R know much about FTP or i would have given them a directory on the R server to upload to. Have

Re: [PHP] using require

2005-05-14 Thread Leif Gregory
for people who already haven't authenticated. If you're not familiar with sessions, the key thing to remember is you need to do a session_start(); somewhere in the page prior to reading or writing session variables. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize

Re: [PHP] Re-initiating an autostarted session

2005-05-11 Thread Leif Gregory
Hello Ville, Wednesday, May 11, 2005, 12:32:07 PM, you wrote: V session_destroy(); V session_regenerate_id(); V session_write_close(); V Header(Location: ...); V exit; I honestly don't know if it's the right way, but I ran into a similar issue a while back. I did it this way:

Re: [PHP] Accessible HTML - OT

2005-05-10 Thread Leif Gregory
(maybe I didn't look hard enough). Recently I decided to write a tutorial on Web Accessibility and XHTML 1.0 Strict so that I could learn them. If you're interested, it's at: http://www.devtek.org/test Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Leif Gregory
Hello balwant, Tuesday, May 10, 2005, 5:59:15 AM, you wrote: b is there any method to know whether the other webserver is running b or not. http://us2.php.net/fsockopen You'll be doing what's termed an HTTP Ping. You make a socket connection to the other server, perform a GET request on a page

Re: [PHP] number format?

2005-05-10 Thread Leif Gregory
Hello Dustin, Tuesday, May 10, 2005, 9:34:10 AM, you wrote: D I have a number like -56.98 D I need to convert it to -5698. I tried ?php $num = -56.98; $newNum = str_replace(.,,$num); echo newNum = . $newNum; $add50 = $newNum + 50; echo brAdd50 = . $add50; $sub50 = $newNum -50; echo brSub50

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables [LONG]

2005-04-20 Thread Leif Gregory
this: Array ( [1] = Array ( [name] = Leif Gregory [email] = [EMAIL PROTECTED] [phone] = 505-123-4567 ) [2] = Array ( [name] = Jenny Craig [email

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Kim, Tuesday, April 19, 2005, 6:44:58 PM, you wrote: K If you are still looking for tips and want to get K complicated/fancy, I have seen columns used called sort_order more K than a few times. This should not be too hard to maintain for K things like a few buildings, etc., where the lookup

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Richard, Tuesday, April 19, 2005, 9:12:14 PM, you wrote: R Just build a JOIN query and do one query. Doing a join on four tables is ok? (serious question, not being facetious). R No, it is *NOT* sorting on the ID number. I can definitely say it is sorting on locationID, categoryID, or

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Chris, Tuesday, April 19, 2005, 1:23:53 PM, you wrote: C Firstly, what DB are you using? MySQL. C SELECT C course.name, C location.name, C instructor.name C FROM C course C INNER JOIN location ON location.id = course.locationID C INNER JOIN instructor ON instructor.id =

[PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Leif Gregory
ideas. Thanks. Tagline of the day: Small town sign: Speed Limit 15 MPH: Our kids can't run any faster. -- Leif Gregory Development Supervisor Licensing, Regulation and Small Projects Section Application Development and Support Bureau Information Technology Services Division Runnels Building

Re: [PHP] Anybody getting these also?

2005-04-07 Thread Leif Gregory
Hello Kim, Thursday, April 7, 2005, 3:22:19 AM, you wrote: K Nevertheless the _f*ker_ who are using this should be thrown OFF K the list! It must be possible to see, who was added to the list K just before the first activewireinc mail came... I hate those challenge/response systems. We get them

[PHP] OT - Re: [PHP] Anybody getting these also?

2005-04-06 Thread Leif Gregory
Hello John, Wednesday, April 6, 2005, 10:29:48 AM, you wrote: J First requirement is to still have in your possession, a computer from J the Atari/Commodore/Timex days. Root on your mail server helps too. Heheh... I've still got (and most still working): Commodore 64 Commodore 128 Atari 2600

Re: [PHP] Set session variable if link is clicked, do not want to use GET

2005-04-04 Thread Leif Gregory
and then match it on the following page. If they don't match then you know they bookmarked it or fudged the GET request. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General

Re: [PHP] What's the going rate for making websites ?

2005-04-03 Thread Leif Gregory
in the beginning is a whole lot better than nearly starting over at the end. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Retrieve URL of website

2005-04-01 Thread Leif Gregory
site, use $_SERVER['PHP_SELF'] Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail with acknowledgement of delivery

2005-03-30 Thread Leif Gregory
Hello marc, Wednesday, March 30, 2005, 8:31:48 AM, you wrote: m I got a problem with mail function. I want to know if it's possible m to send a email in php and to get back an acknowledgement of m delivery. My problem is that i want to know if my emails are m delivered successfully to recipients.

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread Leif Gregory
Hello Georg, Wednesday, March 30, 2005, 8:05:30 AM, you wrote: G I wish to format the output of a database select. The result is G presented in a table, in which i'd like to present everey secound G row with a different background color. My idea was to test if the G remaining number of rows where

Re: [PHP] PHP CODE TO DISPLAY ISP

2005-03-28 Thread Leif Gregory
Hello jenny, Monday, March 28, 2005, 9:36:07 AM, you wrote: j i am making a website in php and i will appreciate if anybody can j tell me the php code to : j - (1)display isp name, One problem you're going to run into is that by using $_SERVER['REMOTE_ADDR'] oftentimes, you'll end up with just

Re: [PHP] include literal

2005-03-28 Thread Leif Gregory
Hello Jeremy, Monday, March 28, 2005, 1:36:10 PM, you wrote: J -- J I would like the output of Document B to be: J ?php echo 'something here'; ? J instead of something here. J -- highlight_file('Document A'); -- Leif (TB lists moderator and fellow end user).

Re: [PHP] redirection, same host, two domains

2005-03-25 Thread Leif Gregory
/index.php#domainRedirection The only difference in your case is you don't need the second check, and you'll just place your mysite.com HTML below the PHP. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http

Re: [PHP] html image

2005-03-24 Thread Leif Gregory
Hello delos, Thursday, March 24, 2005, 11:48:50 AM, you wrote: d i would like to produce a script that can make an image d (screenshot) based only on the site url. so that i enter an URL d and php makes the picture. Hmmm. It can be done. See http://www.whois.sc/www.php.net But I'm just not sure

Re: [PHP] access violation

2005-03-23 Thread Leif Gregory
Hello Rob, Tuesday, March 22, 2005, 4:14:55 PM, you wrote: R That's interesting - it also started happening for me after R installing PHP 5.0.3. But I have reverted to 4.3.10 for now, and I R can't see how installing 5.0.3 into an entirely separate directory R can break my old php install. Hmm..

Re: [PHP] access violation

2005-03-22 Thread Leif Gregory
Hello Rob, Monday, March 21, 2005, 10:32:36 PM, you wrote: R Anyone else had a problem like this? I couldn't find anything in the R php or apache bug databases that sounded like the same problem. R Windows XP pro SP2 R Apache/1.3.33 (Win32) R PHP/4.3.10 I have something similar on one

Re: [PHP] Getting form name

2005-03-22 Thread Leif Gregory
Hello j, Tuesday, March 22, 2005, 10:13:50 AM, you wrote: j I'm trying to get the name of a form. I tried the following code, j but I guess the data in $_POST only contains data on the form j elements that go inside the form tags, but not info from the form j tag itself. Any suggestions on how to

[PHP] Re: [PHP-WIN] setting php for accepting the urls... phpinfo.php/extra/information/

2005-03-19 Thread Leif Gregory
finally ended up building them an Win2K, Apache2, MySQL, PHP5 box so they could use Moodle to the fullest with slash arguments. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP

Re: [PHP] build an array of checkbox

2005-03-18 Thread Leif Gregory
Hello Tomás, Friday, March 18, 2005, 1:31:40 PM, you wrote: T I have a doubt, I want to build an array of checkbox, why? well T because I list a recordset from data base, and I want to delete the T current record when the check is selected by the click mouse. for T example the editor of

Re: [PHP] multidimensional array sort

2005-03-14 Thread Leif Gregory
Hello Ashley, Monday, March 14, 2005, 12:12:19 PM, you wrote: A I need to do a sort on the whole thing in such a way that: Aa) all the Dir#'s are in ascending order, and Ab) all the User#'s are in ascending order with each Dir#, and Ab) all the File#'s are also in

Re: [PHP] bulk emailer

2005-03-12 Thread Leif Gregory
out the e-mail address being e-mailed to. Within an hour I had the challenge showing the e-mail address in the subject line and we summarily unsubscribed them. Granted this was on a Windows system which was using Mercury and not SendMail though. Cheers, Leif Gregory -- TB Lists Moderator

Re: [PHP] recommended way for server side validation - include in same file or have a different file

2005-03-08 Thread Leif Gregory
Hello Vinayakam, Tuesday, March 8, 2005, 4:11:43 AM, you wrote: V However in the second case, in case of an error, displaying the V data becomes an issue. V Any recommended ways for server side validation I usually do the updates in the same file unless there are a lot of different things

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

2005-03-08 Thread Leif Gregory
Hello Jochem, Tuesday, March 8, 2005, 3:30:19 AM, you wrote: J link rel=stylesheet type=text/css title=Site CSS href=includes/site.css / J I'm pretty sure the url is ./includes/site.css i.e. the include J subdir of the dir in which the html file that includes the link tag J is in. if you move

Re: [PHP] Quite a basic question

2005-03-08 Thread Leif Gregory
Hello Mário, Tuesday, March 8, 2005, 8:18:34 AM, you wrote: M How can i solve this ? M Any help would be apreciated. Because you're outputting javascript to the browser before doing the redirection. You can't output *anything* to the browser before a redirect. M echo M script

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

2005-03-07 Thread Leif Gregory
Hello Tom, Sunday, March 6, 2005, 11:20:04 PM, you wrote: T I do this for security as I have things in include that I don't T want to be avaiable directly to the browser Also you don't need a T path for include files you can just do: Don't necessarily disagree with you there other than if you

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

2005-03-06 Thread Leif Gregory
: test.php Include: c:\sambar\docs\test\folder1\folder2\include OS: winnt Include: c:\sambar\docs\test\folder1\folder2\include;.;C:\php5\pear I don't see where your script is giving me the include folder I want. Thanks though. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end

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

2005-03-06 Thread Leif Gregory
would be. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-03-06 Thread Leif Gregory
we mimic that capability in PHP so pages don't have to be re-written if point 1 or point 2 of the Problem are met? Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General

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

2005-03-06 Thread Leif Gregory
: C:\Sambar\docs\test\folder1\folder2\include OS: winnt Include: C:\Sambar\docs\test\folder1\folder2\include;.;C:\php5\pear *** Thanks. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http

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

2005-03-06 Thread Leif Gregory
dynRoot() { $levels = substr_count($_SERVER['PHP_SELF'],/); for ($i=0; $i $levels - 1; $i++) { $relativeDir .= ../; } return $relativeDir; } include(dynRoot() . 'includes/somefile.php') ** Thanks again! Cheers, Leif Gregory -- TB Lists Moderator (and fellow

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

2005-03-04 Thread Leif Gregory
Hello Chris, Friday, March 4, 2005, 9:58:05 AM, you wrote: C .htaccess Right.. But if you're on a hosted server running Sambar which is configured to ignore .htaccess, then what? (I'm not being facetious, this is actually an issue I've run across for a client). My point I guess, is that there

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

2005-03-04 Thread Leif Gregory
Hello Richard, Friday, March 4, 2005, 11:41:29 AM, you wrote: R http://php.net/set_include_path Ok... Maybe I should put all this together in one e-mail so that all the issues can be looked at... The problem: Finding a reliable method to include files, keeping in mind the following: 1. The

Re: [PHP] Help with REGEXP please

2005-03-04 Thread Leif Gregory
Hello Shaun, Friday, March 4, 2005, 12:54:34 PM, you wrote: S Please could someone tell me how i can extract the information from S a string that is after 'ID_' and before '_FN' ?php $myString = ID_723456ABc_FN; preg_match(/ID_([a-z0-9]+)_FN/i,$myString, $extracted); echo $extracted[1]; ?

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

2005-03-04 Thread Leif Gregory
Hello Richard, Friday, March 4, 2005, 1:25:35 PM, you wrote: R If *those* are broken, you might as well just not use that host. R :-^ Your solution seems to be pretty bulletproof. I definitely appreciate it. Just wondering though for posterity sake, have you or anyone ever run into a host that

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

2005-03-03 Thread Leif Gregory
Hello Richard, Thursday, March 3, 2005, 1:15:38 PM, you wrote: RL include_path In the php.ini? But wouldn't that affect every virtual host on the server? Meaning I'd have to put all the includes for every virtual host in the same place? Cheers, Leif Gregory -- TB Lists Moderator (and fellow

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

2005-03-02 Thread Leif Gregory
Hello Al, Wednesday, March 2, 2005, 12:21:58 PM, you wrote: A What do you guys use for you docroot? I ran into the same problem and also asked here for any ideas. I finally ended up writing my own function to do it. You can find the tutorial here:

Re: [PHP] combining values

2005-03-01 Thread Leif Gregory
Hello Bret, Tuesday, March 1, 2005, 11:43:18 AM, you wrote: B why wouldn't B $birthday = $day.$month.$year; B work as well. Because in PHP the unencapsulated period means to concatenate. i.e. $var1 = Hello; $var2 = there; $var3 = Bret; echo $var1 . $var2 . $var3; Would net you:

Re: [PHP] combining values

2005-03-01 Thread Leif Gregory
Hello Bret, Tuesday, March 1, 2005, 11:43:18 AM, you wrote: B why wouldn't B $birthday = $day.$month.$year; B work as well. Whoops... Disregard my previous post. I missed your quotes. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.2.3 Rush under Windows XP 5.1 Build

Re: [PHP] Identifying a user who previously created a profile

2005-02-25 Thread Leif Gregory
Hello Jacques, Thursday, February 24, 2005, 3:02:09 AM, you wrote: J I thought of capturing his IP Address and checking this value J against my users table in my database where I have captured IP J Addresses of users who have previously registered. Good luck. There isn't a way that I know of

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D on which page of php.net can I find out what this code does? D $a = $b? $a :dian; It's called a ternary operator, basically an if-else statement. There really isn't a page (that I've found) that explains in on php.net, but

Re: [PHP] help with adding

2005-02-25 Thread Leif Gregory
Hello Jay, Thursday, February 24, 2005, 8:39:16 AM, you wrote: J I have messed with this for a couple of days and cant get it right. J Maybe I need sleep :-) J The question is, how would I take add each of these numbers (10+5+25)? for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i];

Re: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Leif Gregory
Hello David, Friday, February 25, 2005, 1:27:54 PM, you wrote: D Can the '*' be used? What am I doing wrong. It's the % symbol, not the *. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.2.3 Rush under Windows XP 5.1 Build 2600 Service Pack 2 on a Pentium 4 2GHz with

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Jason, Friday, February 25, 2005, 12:42:30 PM, you wrote: J Note to self: write ternary on the blackboard 100 times. You're telling me. I knew what it was but it took me like five minutes to remember what it was called! grin -- Leif (TB lists moderator and fellow end user). Using The

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Jay, Wednesday, February 23, 2005, 11:05:51 AM, you wrote: How can I convert sentences like this. To be upper and lower case. J http://www.php.net/ucfirst That won't work because it'll only capitalize the first letter of the string. Since his string contains more than one sentence he

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Chris, Wednesday, February 23, 2005, 11:49:32 AM, you wrote: C And on top of that he'll need to convert all 'i' to 'I' because of C step 1. You and Mattias both have valid points. The only other thing I can think of is a regexp that is searching for a period and a space then does a

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Mattias, Wednesday, February 23, 2005, 12:35:21 PM, you wrote: M Oh, and sentences may end with other characters, too. Notably ! M and ?. Nuh-u Prove it!(Oh dang..) grin -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.2.3 Rush under Windows XP 5.1

Re: [PHP] Wierd PHP Problem

2005-02-23 Thread Leif Gregory
Hello Will, Wednesday, February 23, 2005, 2:39:27 PM, you wrote: W On this subject, is there anything 'wrong' with using $_REQUEST W instead of specifying between $_POST and $_GET? $_REQUEST includes POST, GET, and cookies. It basically boils down to knowing where the information is coming

Re: [PHP] PHP Post method HTTP 404

2005-02-16 Thread Leif Gregory
Hello Stefan, Wednesday, February 16, 2005, 12:32:55 AM, you wrote: S I've a strange problem When I try to send a form with method=POST S to a php-file I always get an HTTP 404 error. I really don't know S why, because the file exists on the server. Can you show us the code for the form? --

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Leif Gregory
Hello Dave, Tuesday, February 15, 2005, 8:37:02 AM, you wrote: D while ($tantoData = mysql_fetch_array($tantoResult)) D { D $tantoEmail = $tantoEmail . , . $tantoData; D } D mail($tantoEmail, $subject, $mailcontent, $addHeaders); Everything looked good up to here.

Re: [PHP] Many forms in one php file

2005-02-15 Thread Leif Gregory
Hello NSK, Tuesday, February 15, 2005, 8:21:43 AM, you wrote: N After the user completes and submits Form1, the script will process N it and display a different form. etc... There's a boatload of ways to do this, but here's a real simple one to get you rolling. I'll leave it up to you to make

Re: [PHP] Server Uptime

2005-02-13 Thread Leif Gregory
very well. He's got a lot of neat code in his beta 2 version for pulling all sorts of info off Windows systems. If you're not on a Windows server, *nix might have a file other than pagefile.sys that you could do the same thing with. Cheers, Leif Gregory -- TB Lists Moderator (and fellow

[PHP] Re: [PHP-WIN] Random

2005-01-29 Thread Leif Gregory
$upperLowerNumber = rand(1,10); controls the so called seed for the script because I placed constraints on how often uppercase and numbers could appear. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http

Re: [PHP] Re: [PHP-WIN] Random

2005-01-29 Thread Leif Gregory
Hello trobi, Saturday, January 29, 2005, 12:05:33 PM, you wrote: t whatabout uniqid()? He also wanted symbols [EMAIL PROTECTED]*() etc. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http

Re: [PHP] regular expressions ?

2005-01-27 Thread Leif Gregory
Hello Zouari, Thursday, January 27, 2005, 7:33:04 AM, you wrote: Z I need to verify if $x is between 1 and 20 and i need to do that Z with regular expressions ? If you *need* to do it with regexp, try this: if (preg_match(/[2-19]/,$x)) echo It is!; If 1 and 20 are

Re: [PHP] Cannot connect to Database

2005-01-27 Thread Leif Gregory
Hello Supersky, Thursday, January 27, 2005, 8:55:04 AM, you wrote: S But I cannot, and I see Fatal error: Call to undefined function S mysql_connect() in 1. Make sure you uncomment the extension=php_mysql.dll in your php.ini 2. Copy the php_mysql.dll to your Windows/System folder 3. Restart

Re: [PHP] regular expressions ?

2005-01-27 Thread Leif Gregory
Hello Zouari, Thursday, January 27, 2005, 8:53:55 AM, you wrote: Z doesnt work ! Z this is working fine : Z if (eregi(^-?([1-3])+$,$x) Z echo x is 1 or 2 or 3; Whoops. Sorry.. That's what I get for throwing out an answer while on the run: Try this: ?php for ($x=0; $x 120; $x++) { if

Re: [PHP] regular expressions ?

2005-01-27 Thread Leif Gregory
Hello Rick, Thursday, January 27, 2005, 12:36:39 PM, you wrote: R /^(1?[1-9]|[12]0)$/ works too. The first part covers 1-9, 11-19; R the second part gets you 10 and 20. R Plus, it's ever so slightly shorter! And isnt' that what's most R important? :P Purty :grin: -- Leif (TB lists

Re: [PHP] Cannot connect to Database

2005-01-27 Thread Leif Gregory
Hello Supersky, Thursday, January 27, 2005, 1:37:12 PM, you wrote: S Thank you for your help. I have done what you told me to do. But it S doesn't work. Does phpinfo(); output anything like below (except it looks prettier! :grin: )? mysql MySQL Support enabled Active Persistent Links

Re: [PHP] NT domain info

2005-01-19 Thread Leif Gregory
allow you to either use the perl BD solution, or rewrite what it does in php... They have in PHP... I learned a lot from this: http://www.phpldapadmin.com/product_info.php/products_id/29 Free to home users. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize

[PHP] Re: [PHP-WIN] Weird windows error

2005-01-18 Thread Leif Gregory
Hello Louis, Tuesday, January 18, 2005, 4:51:49 AM, you wrote: LY LoadLibrary(php_mssql.dll) failed - The specified module could LY not be found. Because this DLL has a dependency on ntwdblib.dll. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor

Re: [PHP] Obtaining the base dir of a file in a web server

2005-01-17 Thread Leif Gregory
but it continue there. How can i remove it? Can JAG it be anohter char? See if this does it. $htmlFile = trim($_SERVER['DOCUMENT_ROOT']); Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com

[PHP] Re: [PHP-WIN] including an HTML file

2005-01-15 Thread Leif Gregory
the information contained between the BODY and /BODY tags. You could put and else clause to your if(file_exist) which would include the contents of some other file if that condition happens. That file could just be some default content. Cheers, Leif Gregory -- TB Lists Moderator (and fellow

Re: [PHP] delete part of array

2005-01-13 Thread Leif Gregory
. His array is numerically indexed. It does exactly what he wants. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] php editor

2005-01-13 Thread Leif Gregory
Hello William, Thursday, January 13, 2005, 9:02:12 AM, you wrote: W I'm quite new with writing php code. I was considering of using W some kind of php editor program to help with the syntax. Know any W goog ones? There are a few. http://www.pspad.com is my favorite, and it'll syntax highlight a

Re: [PHP] delete part of array

2005-01-13 Thread Leif Gregory
Hello Jochem, Thursday, January 13, 2005, 10:55:35 AM, you wrote: J heh but who says I'm not a bar steward ;-) grin I'll take a beer then! I need one after today. J sorry if it came accross a little harsh, but I stand by the point J that the onus is on the person asking the question to give an

Re: [PHP] URL-funtion - returnvalue into variable...?

2005-01-12 Thread Leif Gregory
Hello Wiberg, Wednesday, January 12, 2005, 1:40:26 AM, you wrote: W Another company wants me to access their productinfo thorugh URL, something W like this: W https://www.anothercompany.com/returnValueOfProductID=1043 Oddly enough I just happened to run across something that might be useful

Re: [PHP] delete part of array

2005-01-12 Thread Leif Gregory
Hello Sebastian, Wednesday, January 12, 2005, 5:22:20 PM, you wrote: S how do i delete keys from an array if it has no values? S eg, this: array_merge($name); Try it that way first. If not, $name = array_merge($name); But I think I remember the first way working for me. Cheers, Leif

[PHP] Re: [PHP-WIN] HTML in PHP to a File

2005-01-12 Thread Leif Gregory
to do the pagebreaks, but the reason your script didn't do anything is that you never echo'd $echowrite. $echowrite would have output: echo This is the first line. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ

Re: [PHP] sorting mysql results

2005-01-10 Thread Leif Gregory
in there just for GPs. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to argue with ASP people...

2005-01-04 Thread Leif Gregory
ends and a for loop begins. It actually took me a while of staring at it before anything started coming back to me. After I made the changes, I just felt, well, so dirty ;-) Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP

Re: [PHP] How to argue with ASP people...

2005-01-03 Thread Leif Gregory
in ASP. !-- #include virtual=includes/databaseconnect.asp -- Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http://www.PCWize.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Leif Gregory
on this is to keep it simple rather than carrying over a ton of hidden fields. It may not be the most efficient method, but it'd work. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http

  1   2   >