[PHP] Clean Up the sand box time

2003-08-22 Thread John Taylor-Johnston
This is my favourite question. Can I clean up my 'if then' statements a tad? Must be a cleaner way? Still learning, still having fun :) Thanks, John $news = mysql_query($sql) or die(print "document.write(\"".mysql_error()."\");"); $found = 0; while ($mydata = mysql_fetch_object($news)) { if

Re: [PHP] Clean Up the sand box time

2003-08-23 Thread John Taylor-Johnston
Yes, but must be a better way to setup my if.then's ? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arrays

2003-03-16 Thread John Taylor-Johnston
> ) > > > > What I want to get is the keys 'AN' and 'AU' as values. > > > > while (??){ > > echo "This key is $var[??]"; > > } > > > > This key is AN > > This key is AU > > foreach($var as $key => $value

[PHP] copy ...

2003-03-16 Thread John Taylor-Johnston
have this code. snip filter_strings("TI: ", $textarea) function filter_strings($tofilter,$line){ if(eregi('^'.$tofilter.' (.*)$',$line,$m)) { $filtered=$m[1];

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
rong feeling that POSIX regexs cannot do multiline, try using > perl-compatible, or make a loop to read the textarea content line by line > > John Taylor-Johnston wrote: > > >I need to process the contents of > > > >SU: something ... blah blah¶ > >TI: Title ... asasa

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
t to use > > eregi("TI([^¶]*)¶",$line,$m) > > so it's not greedy. > > ---John Holmes... > > - Original Message - > From: "John Taylor-Johnston" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]&g

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
examples. phpbuilder.com also > has a good article on them. > > ---John Holmes... > > - Original Message - > From: "John Taylor-Johnston" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 17, 2003 2:54 PM > Subject: Re: [PHP] co

[PHP] [php] nomenclature

2003-03-22 Thread John Taylor-Johnston
Hi, I'm writing an academic paper detailing how my bibliographic database works. $myinput = mysql_query($sql) or die(print "".mysql_error().""); while ($mydata = mysql_fetch_object($myinput)) { } What is the usual, normal, standard nomenclature for $myinput and $mydata? How do people "usually"

[PHP] [php] Blind?

2003-03-22 Thread John Taylor-Johnston
I'm blind or tired or both. Anyone see anything wrong with: $sql = 'SELECT * FROM '.$table.' WHERE MATCH (author,title,book,journal,volumenumber,issuenumber,placeofpublication,publisher,year,pages) AGAINST (\''.stripslashes($searchenquiry).'\' IN BOOLEAN MODE) ORDER BY id asc;'; I've tried lookin

Re: [PHP] [php] nomenclature

2003-03-22 Thread John Taylor-Johnston
Thanks jason, john. http://www.php.net/manual/en/function.mysql-fetch-object.php $row and $result Jason Wong wrote: > On Sunday 23 March 2003 13:13, John Hicks wrote: > > $result = mysql_query($sql) ; > > ^ > > while ($rec = mysql_fetch_object($results)) > > ^ > > I think $row is more c

Re: [PHP] [php] Blind?

2003-03-22 Thread John Taylor-Johnston
Yeah, but it works it you pass it into MySQl. Obligatory I think. I found my problem 10 lines up. A missing ; but singled out that line - just to confuse me. Sorry, it wasn't that after all. Thanks, John Tom Rogers wrote: > Hi, > > Sunday, March 23, 2003, 4:25:29 PM, you wrote: > JTJ> I'm blind

[PHP] Benchmark

2003-03-27 Thread John Taylor-Johnston
Hi, I'm tired, it's late, I'm trying to remember two URLs, I should have bookmarked. The first gives me the benchmark performance of Apache on the web. last I looked Apache was at 60% of all Internet servers used. There was another URL (probably the same site) that would tell me everything I wa

[PHP] Who is Tim O'Reilly?

2003-03-28 Thread John Taylor-Johnston
Who is Tim O'Reilly? In a nutshell? http://www.oreilly.com/catalog/opensources/book/tim.html http://oreilly.com/oreilly/about.html Perl guru? www.OpenSource.org founder? software publisher? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who is Tim O'Reilly?

2003-03-28 Thread John Taylor-Johnston
Thanks Chris. While I am waiting, can someone help put him in context of the whole OpenSource culture? 10 words or less. I'm trying to finish a paper (university humanities academic type and geek-like coder). Chris Shiflett wrote: > > Who is Tim O'Reilly? > Ask him: http://oreilly.com/ask_tim/

[PHP] GNU & OpenSource

2003-03-28 Thread John Taylor-Johnston
What's the difference between www.GNU.org and www.OpenSource.org? I have been reading: http://www.oreilly.com/catalog/opensources/book/intro.html but don't get what DiBona, Ockman & Stone mean. OpenSource permits folks like RedHat to distribute a paid CD, GNU doesn't? OpenSource permits greating

[PHP] GNU & Open Source

2003-03-30 Thread John Taylor-Johnston
Where does PHP.net stand? Is it GNU or OpenSource or both? What's the difference between www.GNU.org and www.OpenSource.org? I have been reading: http://www.oreilly.com/catalog/opensources/book/intro.html but don't get what DiBona, Ockman & Stone mean. OpenSource permits folks like RedHat to distr

Re: [PHP] GNU & Open Source

2003-03-31 Thread John Taylor-Johnston
Hi, > > This is a list for questions about PHP. Look in the titlebar of your > > browser when you go to www.php.net > He was asking *where* PHP stands (regarding licenses), not *what* PHP > stands for. Maybe PHP FAQ should have something about licenses. Indeed, I did find somehting ... in the li

Re: [PHP] GNU & Open Source

2003-03-31 Thread John . Taylor . Johnston
Rasmus, I hardly call it a "school" paper. I haven't done one of them in 25 years. But if you are not the one to ask, nor is the "general" list not the place to ask, who do I email or where do I post to find out more about your statement at: http://www.php.net/license/ "GPL enforces many restri

[PHP] RedHat

2003-04-05 Thread John Taylor-Johnston
gestions where to ask, to give them a nudge :) ? -- John Taylor-Johnston - "If it's not open-source, it's Murphy's Law." Université de Sherbrooke: http://compcanlit.ca/ -- PHP General Mailing Li

Re: [PHP] RedHat

2003-04-05 Thread John Taylor-Johnston
>John I'm not sure if you've noticed, ... Larry, Pete et al., Point taken. I won't exacerbate the point, but php.net does point out the lists, and this "general" group in particular, are for "talking about PHP". "There are a number of mailing lists devoted to talking about PHP and related pro

Re: [PHP] 4 hours staring - can't see clear.

2003-06-11 Thread John Taylor-Johnston
Lars, Thanks. I am getting this error however: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in It does not like addslashes() because of the {}? What is a sensible work around? Or do I even need addslashes?? if ($found) { $sql = "INSERT INTO $dbtable (RNu

Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread John Taylor-Johnston
Lars, Much thanks. Life saving :) Ignatius, I like your idea. Thanks to you too. John > if (isset($var[$key]['Option'])) > { > // Flag that we got one this time round. > $found = true; > // Get the translated name from $var. > $recor

[PHP] Looking for a forum

2002-09-25 Thread John Taylor-Johnston
Hi, I'm looking for some forum script, a bit like this: http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi Can anyone post a link to something useful? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Owner

2002-09-25 Thread John Taylor-Johnston
Hi, Who is the forum's owner? I want to post questions using [EMAIL PROTECTED] and [EMAIL PROTECTED] in my from: and reply-to: I post infrequently to this list using news://news.php.net/php.general NOT [EMAIL PROTECTED] This is about the only list I post to. I've been receiving a lot of spam

Re: [PHP] Owner

2002-09-25 Thread John Taylor-Johnston
Justin, > Best advice is to post strictly to the newsgroup with a dud email address, Unfortunately, that doesn't work. I had a hotmail address, but not acceptable. Someone did not put it on the "accepted' list. Someone back there needs to accept that address to allow that poster to post when u

[PHP] check for \n

2002-11-18 Thread John Taylor-Johnston
Like I have a clue :) I want to convert some fields from TEXT to VARCHAR(255). (Going from a textarea to an input type=text) I've checked the length of each $mydata->ST, so I won't be losing data. What I am worried about is losing data if there are \n in any of the fields. How do I check to see i

Re: [PHP] MY CLIENT

2002-11-20 Thread John Taylor-Johnston
ived > your anticipated positive reply. This matter should be > treated as urgent and confidential. This is very > important. > > Best Regards, > > Barrister George Emeka. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.

[PHP] masters thesis

2002-06-05 Thread John Taylor-Johnston
Hi, Not your usual question. Sort of off-topic, but not really. I'm doing a masters thesis on the interdisciplinary study of the use of computer technology (especially MySQL, PHP & PHPMyAdmin) in the study of and research on Comparative Canadian Literature. http://compcanlit.ca/ ... Humanities

[PHP] Re: redirection

2002-06-05 Thread John Taylor-Johnston
ere any way other than > > header("Location: http://www.php.net/";); > > to redirect to another page. -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô ht

Re: [PHP] mail() problem

2002-06-05 Thread John Taylor-Johnston
> Yes. I had something similar. Try putting 'Reply-To: [EMAIL PROTECTED]' in > the fourth argument for mail. For some reason some systems balk without > a reply address, I'm not certain why? I questioned my ISP on that. They had something in their sendmail.exe which prevented outgoing mail (scrip

[PHP] Re: Alocating file in memory...

2002-06-05 Thread John Taylor-Johnston
e file the server doesn't need to >alocate it in memory each time. > > Thanks > > Paulo Cesar -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesher

[PHP] Re: PHP Apache Module AND command Line

2002-06-05 Thread John Taylor-Johnston
of PHP that is > installed as a module in/for Apache? Basically, I want to have both on the > same server. Or can this even be done? > > Thank You > Steve -- John Taylor-Johnston - &

[PHP] Re: Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread John Taylor-Johnston
Should find enough code for displaying graphics (and sending by smtp) in this code. You'll find some session stuff too. HTH J http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/index.html.phps http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/display_image.phps http://www.co

[PHP] Re: Finding out how a variable was registered

2002-06-05 Thread John Taylor-Johnston
a page that handles a form and I need to know whether or not a variable was created >using the GET or POST method (I don't want the user to be able to to >'foo.php?var=value' and mess with the results) > - - Joe > > [EMAIL

[PHP] text file

2002-06-05 Thread John Taylor-Johnston
I want to open a text file which has 12 lines and (1) insert a new line at line[0] (2) re-save the text file only with 12 lines (Therefore line[12] gets chopped out. I had some code to do this with Perl. open (NEW, ">$filepath\\$file"); print NEW "$something"; for ($i = 2; $i < 12; $i

[PHP] PHPMyAdmin Alternative?

2002-06-08 Thread John Taylor-Johnston
Are there alternatives to PHPMyAdmin available? www.mysql.com/ is supposed to have one, no? -- John Taylor-Johnston - - Université de Sherbrooke: -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Date?

2002-06-08 Thread John Taylor-Johnston
Sunday, June 09, 2002 But I would use: Don't know why, but someone told me once it had something to do with versions. John Jeremy Bowen wrote: > I am having nothing but trouble with the date function. I want it to print > out a date like this: Saturday June 8, 2002 but as soon as I put spa

[PHP] Re: Javascript & PHP cookies

2002-06-08 Thread John Taylor-Johnston
Absolutely. I've done it. Cookies are cookies. What I don't like is that the cookie is not saved unitl after a submit. In Javascript, I have JS code that will assign a value and save it to a cookie and then recall the cookie value and document.write(myvalue), over and over if I want, without EV

[PHP] Re: Date?

2002-06-08 Thread John Taylor-Johnston
I added a comment to the FAQ: http://www.php.net/manual/en/function.date.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHPMyAdmin Alternative?

2002-06-08 Thread John Taylor-Johnston
This a binary? I was hoping for a web-based (PHP, Perl, ASP, etc.) alternative - like PHPMyAdmin - to analyse. "César l . aracena" wrote: > Look in http://www.mysql.com/downloads/gui-mycc.html and download the > The problem is that you can't issue multiple SQL queries, but that will > be solved

Re: [PHP] alternatives? (Was: Shot in the dark)

2002-06-20 Thread John Taylor-Johnston
Sorry Chris, It's set at June 20th here? Maybe my NNTP server? John Chris Garaffa wrote: > Hello, > any chance you could set your clock to the correct date? It says July 6, > and is really screwing up my sorting order for mail... thanks > > On Saturday, July 6, 2002, at 04:49 PM, jtjohnston.

[PHP] Cookie, how to name

2003-09-01 Thread John Taylor-Johnston
-- John Taylor-Johnston - "If it's not open-source, it's Murphy's Law." ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ -

[PHP] Cookie, how to name

2003-09-01 Thread John Taylor-Johnston
Sorry, hit sent by accident :) I have a cookie: if (!isset($_COOKIE["weather_htm"])) But I want the name of the cookie to include $StudentId like this: if (!isset($_COOKIE["weather_htm".$StudentId])) Of course, the line does not read the cookie. What is the problem with my syntax please? Joh

[PHP] cookie crumbles

2003-09-01 Thread John Taylor-Johnston
I create this cookie, using Javascript:: testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm9995 1 If the browser is reloaded, I want php to read the cookie and do my else statement. Even after a browser shut-down and restart, I cannot get PHP to read the cookie (first part of my if

[PHP] Am I dreaming or what :)

2003-09-03 Thread John Taylor-Johnston
I have a directory jammed-packed with images. I want to read the directory contents /www/usr/htm/images/ and display randomly any *.gif or *.jpg in said directory. Do-able? Seriously? Ideas? Places to start? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] cookie crumbles

2003-09-03 Thread John Taylor-Johnston
As it turned out, all I had to do was get rid of the period "." and things began to work better. I also had to remember to close my browser and empty the cookie jar. Thanks, J Jaap Van Ganswijk wrote: > At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote: > >I create

Re: [PHP] Am I dreaming or what :)

2003-09-04 Thread John Taylor-Johnston
)); > echo "$num = $files[$num]"; > [/code] > > John Taylor-Johnston wrote: > >I have a directory jammed-packed with images. > >I want to read the directory contents /www/usr/htm/images/ > >and display randomly any *.gif or *.jpg in said director

[PHP] Display after a certain date

2003-09-04 Thread John Taylor-Johnston
Anyone have a quick fix for a part of an html page that I do not want to display until after October 1st, and not after October 31st ? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display after a certain date

2003-09-05 Thread John Taylor-Johnston
Jay, I should have though of that. Thanks. "Jay Blanchard" <[EMAIL PROTECTED]> wrote: >$display_start = "2003-10-01"; >$display_end = "2003-10-31"; >if((date("Y-m-d") >= $display_start) && (date("Y-m-d") <= >$display_end)){ >print($stuff); >} >?> Cesar: Is your server is set up correctly?

[PHP] $HTTP_REFERER / Hijacking

2003-09-06 Thread John Taylor-Johnston
This is kind of old-fashioned, but I created a counter that prevents hijacking. "district" is a partial of the word in the URL. If it does not exist, echoes hijacking ... snip--- if(stristr($HTTP_REFERER,"district")) { #... #echo "document.write(\"$num_rows visitors since August 23, 2003\");"

[PHP] [php] formmail.pl formmail.php

2003-09-21 Thread John Taylor-Johnston
use of formmail.pl these days would need updating to protect it from spamming. Anything available? -- John Taylor-Johnston - "If it's not open-source, it's Murphy's Law." ' ' &#x

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

2003-09-22 Thread John Taylor-Johnston
I don't know if such an animal exists? I use Windows Wordpad as a text editor. Then I use Microweb from: http://www.indigostar.com/microweb.htm You might want to download a newer copy of PHP from http://www.php.net/downloads.php This is lilkely not what you are looking for, but will do a very nice

[PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
I have a form. It has any number of hidden fields, named "exercise 1-100". Their names all start with "exercise" as in: ... ? any number fo these possible ... How can I create one scipt that will recognise all of them? Any number of them. My idea is a bit like formmail.pl that reads any old

Re: [PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
Ok, but the problem is that I will, might have other fields. I need to filter out just the exerciseN fields. Interesting though thanks, John Brad Pauly wrote: > You could just loop over the _POST array. > > foreach ($_POST as $field_name => $field_value) { > $content .= "$field_name = $f

Re: [PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
Brad. Perfect thanks. > Brad Pauly wrote: > foreach ($_POST as $field_name => $field_value) { > if (stristr($field_name, 'exercise')) { > $content .= "$field_name = $field_value\n"; > } > } Tom, Not sure why, but wouldn't work >Tom Rogers wrote: >if(isset($_POST['exercise'])){

[PHP] $MySQLver[0]

2003-09-30 Thread John Taylor-Johnston
$MySQLver[0] doesn't seem to echo anything. Code used to work, on another server. Problem with php version? PHP Version 4.1.2 Just updated to MySQL version MySQL 4.0.15-standard Can't find "MySQLver" in phpinfo. if($MySQLver[0] >= 4){ $sql = 'SELECT * FROM '.$table.' WHERE MATCH (KW,AUS,GEO) AGA

Re: [PHP] $MySQLver[0]

2003-09-30 Thread John Taylor-Johnston
John, Thanks! Actually, I just did a bit of reading. http://www.phpbuilder.com/mail/php-general/2001071/1540.php MySQLver was implemented in PHP 4.0.5. My fault. Sorry. Thanks for the read. John "John W. Holmes" wrote: > John Taylor-Johnston wrote: > > > $MySQLver[0

[PHP] embedding code

2003-10-02 Thread John Taylor-Johnston
Are there other ways of embedding or code into an HTML file? On one project, when I try to upolad files with embedded PHP code, they actually filter for those tags and won't permit the FTP transfer. Like reeeal paranoid. Any ideas? John

Re: [PHP] embedding code

2003-10-02 Thread John Taylor-Johnston
it before for some vb script. What do I do now? Anything in the php.ini I could turn off? John Spectre013 wrote: > Try > //php Code here > > Are there other ways of embedding or code into an HTML > file? On one project, when I try to upolad files with embedded PHP c

Re: [PHP] embedding code

2003-10-03 Thread John Taylor-Johnston
John Apache. How exactly? John "John W. Holmes" wrote: > John Taylor-Johnston wrote: > > Brian or anyone, > > > > Ok, supposing I don't want someone to be able to use

[PHP] $_SERVER['REMOTE_HOST']

2003-10-04 Thread John Taylor-Johnston
PHP is Open Source. This is the general forum. Here is my suggestion: Create $_SERVER['REMOTE_HOST'] as a variable. $gethost = gethostbyaddr($_SERVER['REMOTE_ADDR']); is getting old. Anyone agree? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] embedding code

2003-10-04 Thread John Taylor-Johnston
How do you do that? > Wouldn't it be a WHOLE lot smarter to just disable/enable PHP for > specific sites/folders, etc? What web server are you using? Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] embedding code

2003-10-04 Thread John Taylor-Johnston
How do you do that? > Wouldn't it be a WHOLE lot smarter to just disable/enable PHP for > specific sites/folders, etc? What web server are you using? Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Am I asking too much?

2003-10-09 Thread John Taylor-Johnston
$sql1 works, but $sql2 doesn't. Am I asking too much? :=) $sql2 echoes ok. If I copy it and run it in phpmyadmin, it works, but this way as php code, it flunks out when I add: DELETE FROM '.$db.'.'.$table.' WHERE id='.$id.' LIMIT 1; Ideas? John snip - $sql1 = 'inser

Re: [PHP] Free web space

2003-10-09 Thread John Taylor-Johnston
John, Oops, that's a little sarcastic :=) Take it easy on the guy. We don't want them running screaming back to the Perl newsgroups, do we? John > [EMAIL PROTECTED] wrote: > > Hi, I'm searching for a free web space that supports php/mysql. > > Someone knows something about? > > Thanks too much >

Re: [PHP] Creating a Search field

2003-10-09 Thread John Taylor-Johnston
MySQL manual for more information. > > Otherwise, you'll need to parse the search box data to break it up into > individual words, then create a query like... > > WHERE column LIKE '%$var1%' AND column LIKE '%var2%%'..

Re: [PHP] Am I asking too much?

2003-10-10 Thread John Taylor-Johnston
t support ; to separate queries. > phpmyadmin splits multiple query strings up (PMA_splitSqlFile()) > > John Taylor-Johnston wrote: > > $sql1 works, but $sql2 doesn't. Am I asking too much? :=) > > $sql2 echoes ok. If I copy it and run it in phpmyadmin, it works, but this wa

Re: [PHP] Am I asking too much?

2003-10-11 Thread John Taylor-Johnston
Any ideas? I want to avoid having two "mysql_query($sql)". I'm basically looking for better functionality and wanting to learn how to clean up my code. John Taylor-Johnston wrote: > So I should break it up my two queries? > > $sql = 'insert into '.$db2.&#

Re: [PHP] phpmyadmin

2003-10-11 Thread John Taylor-Johnston
What about some javascript to alert() and decide if the form executes like phpmyadmin does: http://ccl.flsh.usherbrooke.ca/example.jpg This would save me time coding PHP. How can I accomplish this? What does the onsubmit look like? John > * Thus wrote John Taylor-Johnston ([EMAIL PROTEC

Re: [PHP] Am I asking too much?

2003-10-11 Thread John Taylor-Johnston
Curt > Oh, and IMO, there isn't anything unclean about having two sql > query() statements. It keeps the code more readable as to > what you're trying to doing. I agree. I also think I should just try to emulate what phpmyadmin does. KISS principle. Thanks!!! John -- PHP General Mailing List

[PHP] Using cookies

2003-10-21 Thread John Taylor-Johnston
Can someone recommend a good URL on cookies and security issues please? I can program them, but am told I'm putting others at risk, forcing people to use cookies on my site. -- John Taylor-Johnston - Universi

Re: [PHP] Using cookies

2003-10-21 Thread John Taylor-Johnston
Nothing much. Been receiving flack about forcing people into cookies. Much misunderstood info about cookies. I need an URL to pass on for extra reading, as rebuttal. "Chris W. Parker" wrote: > John Taylor-Johnston <mailto:[EMAIL PROTECTED]> > on Tuesday, October

[PHP] verify my ISP

2003-11-03 Thread John Taylor-Johnston
How can I verify if my ISP really does have PHP on a server I am using. They say if I want PHP, I must pay an extra $15 per month. Is there somehting I can put in my .htaccess to verify and maybe do this? AddType application/x-httpd-php .php .php4 .php3 .phtml .htm .html Add

Re: [PHP] verify my ISP

2003-11-03 Thread John Taylor-Johnston
Thanks Adam, :=) First thing I tried. Oh well. John > > How can I verify if my ISP really does have PHP on a server I am using. They say > > if I want PHP, I must pay an extra $15 per month. Is there somehting I can put in > > my .htaccess to verify and maybe do this? > > > > > > A

[PHP] Moodle.Org

2003-11-03 Thread John Taylor-Johnston
Moodle.Org, an OpenSource project, needs help. We need someone to help program a module to import WebCT quiz data into Moodle. Any takers with a big heart for a worthwhile educational project? John :=) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] Parse WebCT quiz

2003-11-23 Thread John Taylor-Johnston
Can someone help me get started? Anyone ever use WebCT? It uses quizzes, field types described here. https://online.csus.edu/web-ct/help/en/designer/quiz/quiz_transfer.html#formats Can someone help me parse them out please? I don't want to pay for WebCT. It was a GNU project gone commercial. It

Re: [PHP] Parse WebCT quiz

2003-11-23 Thread John Taylor-Johnston
I have done this (below) already. I suppose. I will have to explode by \n. One of my problems is that with ":QUESTION:{H|T}", the question is on the next line. Exploding by \n puts my question text into the next line_field[]. "Note: Multiple lines of text are permitted." Getting that variabnle c

[PHP] MySQL Question

2004-01-15 Thread John Taylor-Johnston
Sorry, don't want to be off-topic, but have found something curious about MySQL 4.0.16-standard. It does not seem to prioritise properly. Searching for 'English Canada' (as opposed to +English +Canada) gives me all instances of both words but does not prioritize the display order for 'English Can

[PHP] include date

2004-01-25 Thread John Taylor-Johnston
Capitalised. There is no date (f) for a lower case? -- John Taylor-Johnston -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include date

2004-01-25 Thread John Taylor-Johnston
Capitalised. There is no date (f) for a lower case? -- John Taylor-Johnston -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] syntax error

2004-01-26 Thread John Taylor-Johnston
ld I express this line please :) ? -- John Taylor-Johnston -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date(F) +1

2004-01-26 Thread John Taylor-Johnston
Did I miss something at the FAQ? date("F"); gives me this month. Can I get it to give me next month? These combinations don't work: What is the minimum version for this to work? Or is this my problem? It echoes "1" in the html. http://www.php.net/manual/en/function.date.php John -- PHP Ge

Re: [PHP] syntax error

2004-01-26 Thread John Taylor-Johnston
Thanks. Duh :) > replace the + symbols with . and also date(F) should be date('F'). Sleepy time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
Thanks!! :) Getting tired at this hour. Is there a way to detect the language of the browser and echo the name of the month in that language? > Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] GURU HELP: session_unset

2001-11-12 Thread John Taylor-Johnston
http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps I'm trying to "session_unset()" - it worked I thought. session_unset("postcard"); unset($postcard); unset($MyImage); Go to: http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.php and "click me". I

[PHP] Re: GURU HELP: session_unset

2001-11-12 Thread John Taylor-Johnston
Source is here: > http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PRO

[PHP] Session help

2001-11-14 Thread John Taylor-Johnston
Start at index.html. It goes to postcard.php. When I click on submit in postcard.php, if I change any of the values in the form, the session values received in send_mail.php do not change. Anyone have an idea what I have done wrong now? http://www.CollegeSherbrooke.qc.ca/~languesmodernes/postcard

Re: [PHP] IP Address Variable

2001-11-14 Thread John Taylor-Johnston
It may not work, if you are running Windows PHP on your localhost at home. I'll bet you are trying to log getenv('REMOTE_HOST'). Been there done that. I use http://www.indigostar.com/microweb.htm to create a localhost to develop and debug and then upload to the server. (I pay for modem time.) I re

[PHP] array

2004-09-07 Thread John Taylor-Johnston
I'm reading data. Can I open a connection within a connection and write data to another $db.$table or do I have to write my data to an array. In an array, how do I do this? I've looked at array_push, but don't think this is what I want? $authors = array(); array_push($singleauthor,$mydata-

[PHP] create and read array

2004-09-10 Thread John Taylor-Johnston
Can someone help me, show me how to do this please? 1. How do I write $mydata->AUS and $mydata->id into an array? $authors = array(); while ($mydata = mysql_fetch_object($news)) { # echo "$mydata->AUS, $mydata->id\n"; ??? write to array } mysql_close($myconnection); 2. Then I need to create $SQL

Re: [PHP] create and read array

2004-09-11 Thread John Taylor-Johnston
ere-- mysql_query($sql) It's a little more complicated than that, but advice on coding this much would help. John P.S. my condoleances to New York today. Can't believe it was 3 years ago already. John Holmes wrote: > John Taylor-Johnston wrote: > > 1. How d

[PHP] Re: [Newbie Guide] For the benefit of new members

2004-09-11 Thread John Taylor-Johnston
Thanks. As a newbie, something I like to try also is making a second file with phps as the extension. Sometimes reading my code in colour helps me see things better. Sometimes I forget a semi-colon ";" and will see the problem immediately. Ma Sivakumar wrote: > =

Re: [PHP] create and read array

2004-09-17 Thread John Taylor-Johnston
John, $sql .= "INSERT INTO newtable VALUES ({$mydata->AUS},{$mydata->id});\r\n"; I thought mysql would not permit that, running more than one query (insert ...) at a time? You can get away with it in phpmyadmin, although. -- John

[PHP] DROP TABLE IF EXISTS

2004-09-17 Thread John Taylor-Johnston
MySQL question: DROP TABLE IF EXISTS Instead of dropping the table, I want to truncate the table if it contains something. ANyone know of a way? I couldn't find anything under truncate in the manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] How to re-code?

2004-09-17 Thread John Taylor-Johnston
t;\n"; echo " "; echo ""; $temp = ""; foreach ($author_list[$author] as $ausid) { $temp .= "$ausid, "; } $temp = substr("$temp", 0, -2);#delete ", " echo "$temp";

[PHP] How can I re-code?

2004-09-18 Thread John Taylor-Johnston
t;\n"; echo " "; echo ""; $temp = ""; foreach ($author_list[$author] as $ausid) { $temp .= "$ausid, "; } $temp = substr("$temp", 0, -2);#delete ", " echo "$temp";

Re: [PHP] How to re-code?

2004-09-18 Thread John Taylor-Johnston
Jason, I agree. Sorry. I sent it as a "new message". I will try again, John Jason Wong wrote: > You have started a new thread by taking an existing posting and replying to > it while you changed the subject. > > That is bad, because it breaks threading. Whenever you reply to a message, > your mai

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread John Taylor-Johnston
t working. How do I get to let me make comparisons between the post > data and something else? I figure if I can get it so that this will work, > it'll be an easy way to password protect my pages... > > -Andrew -- John Taylor-Johnston ---

[PHP] Re: How can I re-code?

2004-09-19 Thread John Taylor-Johnston
echo ""; > echo "$author"; > echo "".$count." records found/trouvés)"; > echo"\n"; > echo " "; > echo ""; > $temp = ""; > foreach ($aut

[PHP] Re: How can I re-code?

2004-09-19 Thread John Taylor-Johnston
echo ""; > echo "$author"; > echo "".$count." records found/trouvés)"; > echo"\n"; > echo " "; > echo ""; > $temp = ""; > foreach ($aut

<    1   2   3   4   5   6   7   8   9   >