[PHP] isset empty or ...?

2013-03-30 Thread John Taylor-Johnston
I'm using if($mydata->DPRresponselocationaddress1 != "") is this the same as if (!isset($mydata->DPRresponselocationaddress)) http://php.net/manual/en/function.isset.php or if (!empty($mydata->DPRresponselocationaddress)) http://php.net/manual/en/function.empty.php or is there another functi

[PHP] Re: Populate input from another form

2013-03-08 Thread John Taylor-Johnston
Scratch that, IE does not like form elements outside the !!?? :,( I can't a form within a form either, unless ... I float a div??. John Taylor-Johnston wrote: I have a form target="_CRTP">type="submit"> OnSubmit, I want to include data from another form (

[PHP] Populate input from another form

2013-03-08 Thread John Taylor-Johnston
I have a form target="_CRTP"> OnSubmit, I want to include data from another form (form="DPRform"). value=""> I should use a hidden identical field and use form="CRTP_Query": "> But I have no idea how to populate the hidden field with the data from the viewable field. PHP cannot do this o

Re: [PHP] Open form in new window

2013-03-04 Thread John Taylor-Johnston
If you want to open a new page in response to a submit button press (using PHP) you may be out of luck. I don't know of a way to do it without involving another language. Opening a different page in the *same* window, yes. Otherwise, no. But watch the other replies. Maybe someone knows somet

Re: [PHP] Re: Open form in new window

2013-03-04 Thread John Taylor-Johnston
> You could echo HTML code e.g. Which is still purely HTML and has nothing whatsoever to do with PHP. > > > Number: > Submit > > > or include it as one of your form attributes: > > > First name: > Last name: > > Again, pur

[PHP] Open form in new window

2013-03-03 Thread John Taylor-Johnston
I have many different submit button. When php processes value="Enter Data", I would like to open a new window, but only if I click this one. Possible? I knw ther is an HTML target="" thingy. Can PHP do anything magic? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] phpinfo()

2013-02-20 Thread John Taylor-Johnston
Design in Motion Webdesign wrote: John Taylor-Johnston wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST["button2"] value. What am I doing wrong? I really wanted to use a button to pass a different condition than a Use a differen

[PHP] stripped \n

2013-02-20 Thread John Taylor-Johnston
Hi, I have a when submitted creates a new form with the textarea data in a hidden field: But when this new form gets resubmitted, the \n get stripped? I don't get it. There is nothing in my code that is stripping the \n? value=""> Do I need to put it in another textarea and declare it

[PHP] if (empty versus if (isset

2013-02-19 Thread John Taylor-Johnston
What is the difference between? if (empty... http://www.php.net/manual/en/function.empty.php "Determine whether a variable is empty" and if (isset... http://php.net/manual/en/function.isset.php "Determine if a variable is set and is not *|NULL|*" I have an . If it is not checked, it is NOT

[PHP] phpinfo()

2013-02-19 Thread John Taylor-Johnston
I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST["button2"] value. What am I doing wrong? onclick="formSubmit()"> I really wanted to use a button to pass a different condition than a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] parsing select multiple="multiple"

2013-02-19 Thread John Taylor-Johnston
tamouse mailing lists wrote: >I hate arrays. :D Here's a small snippet showing how it works, I hope: foreach ($DPRpriority as $item => $value) { echo " ".$item.": ".$value['name']." selected: ".$value['selected']." \n"; } Question 1: when did we have to add [] to a name to turn it into a

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread John Taylor-Johnston
1. Crimes Against Persons 2. Disturbances 3. Assistance / Medical 4. Crimes Against Property 5. Accidents / Traffic Problems 6. Suspicious Circumstances 7. Morality / Drugs 8. Miscel

[PHP] parsing select multiple="multiple"

2013-02-18 Thread John Taylor-Johnston
I am capable with . (I suppose I did it correctly? :p ) But I haven't the first clue how to parse a and multiply select name="DPRtype". Would anyone give me a couple of clues please? :) Thanks, John Priority: {echo "selected";} ?>>1 {echo "selec

[PHP] Re: {ATTENTION} Re: [PHP] base64_decode

2012-10-02 Thread John Taylor-Johnston
in? eval(base64_decode('Pz4gPC9kaXY+DQo8ZGl2IGlkPSJmb290ZXIiPjxhIGhyZWY9Imh0dHA6Ly93ZWItaG9zdGluZy1jbGljay5jb20vIiB0aXRsZT0iV2ViIGhvc3RpbmciPldlYiBob3N0aW5nPC9hPg0KPCEtLSAyNyBxdWVyaWVzLiAwLjU2MSBzZWNvbmRzLiAtLT4NCjwvZGl2Pg0KPD9waHAgd3BfZm9vdGVyKCk7ID8+DQo8L2JvZHk+DQo8L2h0bWw+IDw/'));?> -- John Taylor-J

[PHP] base64_decode

2012-10-02 Thread John Taylor-Johnston
Without anyone infecting their machines, can someone tell me what this is? I found a phishing site on my DreamHost server. DreamHost has been very helpful. We found a file containing this code. What is it? What does it contain? eval(base64_decode('Pz4gPC9kaXY+DQo8ZGl2IGlkPSJmb290ZXIiPjxhIGhyZWY

Re: [PHP] array.sorting.php

2012-09-04 Thread John Taylor-Johnston
Matijn Woudt wrote: Taken from the natsort manual page comments: I've tried it. I don't see it sorting anything? http://cegepsherbrooke.qc.ca/~languesmodernes/test/keynatsort.php $words = preg_split('/[[:space:]]+/',$mynewstring); foreach ($words as $word) { $freq[$word]++; } function

Re: [PHP] array.sorting.php

2012-09-04 Thread John Taylor-Johnston
David OBrien wrote: On Tue, Sep 4, 2012 at 1:15 PM, John Taylor-Johnston mailto:jt.johns...@usherbrooke.ca>> wrote: Hi, Sorting question. http://www.php.net/manual/en/array.sorting.php I'm using ksort, which sorts like this. I don't want to use strolower

Re: [PHP] array.sorting.php

2012-09-04 Thread John Taylor-Johnston
The problem is I'm sorting the key. The alphabetical thing is in the key. David OBrien wrote: On Tue, Sep 4, 2012 at 1:15 PM, John Taylor-Johnston mailto:jt.johns...@usherbrooke.ca>> wrote: Hi, Sorting question. http://www.php.net/manual/en/array.sorting.php I&#x

[PHP] array.sorting.php

2012-09-04 Thread John Taylor-Johnston
Hi, Sorting question. http://www.php.net/manual/en/array.sorting.php I'm using ksort, which sorts like this. I don't want to use strolower. Is there a function/switch in one of the sort functions where I could get another aphabetical sort? http://www.php.net/manual/en/array.sorting.php has a lo

Re: [PHP] ksort by value

2012-09-03 Thread John Taylor-Johnston
et vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2012/9/3 John Taylor-Johnston <mailto:jt.johns

Re: [PHP] ksort by value

2012-09-03 Thread John Taylor-Johnston
Sort does not work seamlessly. I have my key and sort($freq); print_r ($freq); looks like: Array ( ... [1000] => 172 [1001] => 176 [1002] => 179 [1003] => 441 ) This is what I want: Array ( ...

Re: [PHP] ksort by value

2012-09-03 Thread John Taylor-Johnston
Serge Fonville wrote: Have you looked at http://php.net/manual/en/array.sorting.php? 2012/9/3 John Taylor-Johnston <mailto:jt.johns...@usherbrooke.ca>> ksort($freq) sorts the array by the key. And that works fine. But I would also like to sort

Re: [PHP] ksort by value

2012-09-03 Thread John Taylor-Johnston
ksort($freq) sorts the array by the key. And that works fine. But I would also like to sort by value to see which words are more frequent. There is no |ascending/descending option to ksort?| ksort sorts by key, if you want by value, look at sort. As to asc/desc sort, they just have a differen

Re: [PHP] ksort by value

2012-09-03 Thread John Taylor-Johnston
ksort($freq) sorts the array by the key. And that works fine. But I would also like to sort by value to see which words are more frequent. There is no |ascending/descending option to ksort?| ksort sorts by key, if you want by value, look at sort. As to asc/desc sort, they just have a differen

[PHP] ksort by value

2012-09-03 Thread John Taylor-Johnston
Hi, If I have my terminology right, ksort($freq) sorts the array by the key. And that works fine. But I would also like to sort by value to see which words are more frequent. There is no |ascending/descending option to ksort?| Thanks, John Array ( [] => 1 [a] => 165 [about] => 4

[PHP] load rtf file

2012-09-02 Thread John Taylor-Johnston
I have a big giant RTF file. I could convert it to plain text. BUT can PHP do it for me? Also: I want to read the text file into a string. This does the job well, right? http://php.net/manual/en/function.file-get-contents.php This is it? Not more complicated? |http://www.example.com/text.txt'

Re: [PHP] array_push

2012-09-02 Thread John Taylor-Johnston
Frank Arensmeier wrote: 2 sep 2012 kl. 19.48 skrev John Taylor-Johnston: Why not add two lines of code within the first loop? $chunks = explode("-30-", $mystring); foreach($chunks as $chunk) { preg_match_all("/News Releases\n(.+)/s", $chunk, $matches); fo

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread John Taylor-Johnston
tamouse mailing lists wrote: On Sun, Sep 2, 2012 at 7:57 PM, John Taylor-Johnston wrote: Just to prove me right, our mail clients start quoting from the top too :)p Exactly. The quoting starts from the *top*. The problem is that the cursor to start typing is also put there by default. Step

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread John Taylor-Johnston
"tamouse mailing lists wrote:" Just to prove me right, our mail clients start quoting from the top too :)p tamouse mailing lists wrote: On Sun, Sep 2, 2012 at 11:31 AM, John Taylor-Johnston wrote: I'll never get it. Newest work on top of the pile, instead of digging :)) Usuall

[PHP] array_push

2012-09-02 Thread John Taylor-Johnston
How can I clean this up? My approach would be to split the hole text into smaller chunks (with e.g. explode()) and extract the interesting parts with a regular expression. Maybe this will give you some ideas: $chunks = explode("-30-", $mystring); foreach($chunks as $chunk) { preg_match

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread John Taylor-Johnston
See: http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.php http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.phps In $mystring, I need to extract everything between "|News Releases|" and "-30". The thing now is $mystring might contain many instances of "|News Releases|" and

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread John Taylor-Johnston
Frank Arensmeier wrote: >>> See: >>> http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.php >>> http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.phps >>> >>> In $mystring, I need to extract everything between "|News Releases|" and >>> "-30". >>> >>> My approach would be to sp

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread John Taylor-Johnston
On Sun, Sep 2, 2012 at 6:23 AM, John Taylor-Johnston wrote: See: http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.php http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.phps In $mystring, I need to extract everything between "|News Releases|" and "-30"

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-01 Thread John Taylor-Johnston
See: http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.php http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.phps In $mystring, I need to extract everything between "|News Releases|" and "-30". The thing now is $mystring might contain many instances of "|News Releases|" an

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-08-20 Thread John Taylor-Johnston
This is usually a first-year CS programming problem (word frequency counts) complicated a little bit by needing to extract the text. You've started off fine, stripping tags, converting to lower case, you'll want to either convert or strip HTML entities as well, deciding what you want to do with

[PHP] How do I do count the occurrence of each word?

2012-08-18 Thread John Taylor-Johnston
I want to parse this text and count the occurrence of each word: $text = http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.html; #Can I do this? $stripping = strip_tags($text); #get rid of html $stripping = strtolower($stripping); #put in lowercase First of all I wa

Re: [PHP] Connect to Google

2012-02-16 Thread John Taylor-Johnston
I'm a top quoter. I would parse the text first. Phrase by phrase, or phrase segments. Then spit out a report. Marc Guay wrote: If that's not good enough, can you explain how you would like it to function? Would the whole paper be scanned phrase-by-phrase for matches and then spit out a report?

Re: [PHP] Connect to Google

2012-02-16 Thread John Taylor-Johnston
oter. It's more intuitive.) Thanks Ash. John Ashley Sheridan wrote: On Wed, 2012-02-15 at 21:56 -0500, John Taylor-Johnston wrote: How can I use PHP to interface with Google and see if this text exists on the internet? Wow, that's a pretty big project you're chewing there. A

[PHP] Connect to Google

2012-02-16 Thread John Taylor-Johnston
I'm a teacher. I want to use PHP to interface with Google and see if a student has plagiarized. I don't see many open-source projects on the subject, so I want to create my own script. How can I use PHP to interface with Google and see if this text exists on the internet? If this is possib

[PHP] 9970318527584

2011-02-18 Thread John Taylor-Johnston
9970318527584 Could this number refer to a date()? In late 2009? How could I calculate it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: strtotime

2010-10-17 Thread John Taylor-Johnston
Yaay, I'm 45 now :). Here is another nifty piece of code I found. How does this work? What is 31556926? function calculateAge($birthday){ return floor((time() - strtotime($birthday))/31556926); } echo calculateAge('1965-10-17'); http://ca.php.net/manual/en/function.floor.php ---

[PHP] Re: strtotime

2010-10-16 Thread John Taylor-Johnston
= date("m") - $month; $day_diff = date("d") - $day; if ($day_diff < 0 || $month_diff < 0) $year_diff--; return $year_diff; } echo birthday ($birthday); John Taylor-Johnston wrote: I'm working my way right now through the manual: http://ca.php

[PHP] strtotime

2010-10-16 Thread John Taylor-Johnston
$now=date("Y-m-d"); A = $mydata->birthday = 1928-02-12; B = $mydata->birthday = 1965-03-18; C = $mydata->birthday = 1976-04-11; I'm doing a demographic sort. How do I calculate whether $mydata->Birthday falls into these categories below? I'm working my way right now through the manual: http:/

[PHP] If the first four characters are "0000", then do {}

2010-01-25 Thread John Taylor-Johnston
I am reading the manual: http://ca.php.net/manual/en/ref.strings.php $mydata->restored = "-00-00"; How do I express this? If the first four characters are "", then do {} What I am looking for is in strpos(), no? if () { } -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] order by ASC

2010-01-16 Thread John Taylor-Johnston
Did some googling. This worked: ORDER BY CAST(`rollnumber` AS SIGNED) What is the difference? My problem in the meanwhile must be my version of MySQL? John Taylor-Johnston wrote: It hates me: SELECT * FROM ... WHERE `type` IN ('Member', 'Affiliated', 'Life Member&#

Re: [PHP] order by ASC

2010-01-16 Thread John Taylor-Johnston
ASC' at line 1 I'll keep trying. Robert Cummings wrote: CAST it to an integer in the ORDER BY clause. Cheers, Rob. John Taylor-Johnston wrote: Ok, I think this is a MySQl question. Take pity on me? $sql = "SELECT * FROM $db.`mailinglist` WHERE `type` IN ('Member', 'A

[PHP] order by ASC

2010-01-16 Thread John Taylor-Johnston
Ok, I think this is a MySQl question. Take pity on me? $sql = "SELECT * FROM $db.`mailinglist` WHERE `type` IN ('Member', 'Affiliated', 'Life Member') ORDER BY `rollnumber` ASC"; rollnumber is a varchar(50). I need it to be a text field. ASC does not order the way I want. 1000 1001 998 999

Re: [PHP] strtotime

2010-01-14 Thread John Taylor-Johnston
My thanks to all! Adam Richardson wrote: I've not read this, but if the first valid date is Jan. 1st, 1970, then passing that date back in the case of errors would lead to ambiguity. Is it a valid date or is it an error. Passing back the date of the day just before (in terms of time, I think

[PHP] strtotime

2010-01-14 Thread John Taylor-Johnston
Hello, In a mysql date() field, I set the default to "-00-00". Therefore, $mydata->birthday = "-00-00"; But when I run this next line, $then = 1969. $then=date("Y", strtotime($mydata->birthday)); Why 1969, and not 0 or nothing? If I echo strtotime("-00-00"); Nothing appears. So

Re: [PHP] parse date field

2010-01-14 Thread John Taylor-Johnston
>birthday); On Thu, Jan 14, 2010 at 3:31 PM, John Taylor-Johnston <mailto:john.taylor-johns...@cegepsherbrooke.qc.ca>> wrote: How do I parse a date field from mysql? I was hoping this would work: $mydata->birthday = "2007-02-13"; #What month is it

[PHP] parse date field

2010-01-14 Thread John Taylor-Johnston
How do I parse a date field from mysql? I was hoping this would work: $mydata->birthday = "2007-02-13"; #What month is it? echo date("F", $mydata->birthday); #What year is it? echo date("Y", $mydata->birthday); What am I missing? All I get is December 1969. Hmmm? I am looking at the manual: ht

Re: [PHP] Newbie needs help

2010-01-07 Thread John Taylor-Johnston
]', $content); } Cheap & Dirty and need refinement :p viraj wrote: try http://www.php.net/manual/en/function.preg-replace-callback.php. you need to read a bit on 'regular expressions' http://www.gskinner.com/RegExr/ will be handy in crafting a suitable regex to capture

[PHP] Newbie needs help

2010-01-07 Thread John Taylor-Johnston
$content = "... a bunch of text with some protected information with some more text with some more more protected text and even some protected content>b>"; I want to replace any content between these tags: with say $replacewith = "protected content"; $content = " a bunch of text with so

[PHP] Object of class stdClass could not be converted to string

2009-11-30 Thread John Taylor-Johnston
Good grief. It doesn't like printing an INT field like as if it were a string?? I looked at: http://php.ca/manual-lookup.php?pattern=stringtoint like I might of in Delphi :)p echo " $mydata->2010\n"; echo " $mydata->2009\n"; Is this something new in PHP? Geez. John -- PHP General Ma

[PHP] Re: FImage $aSubDir

2008-10-28 Thread John Taylor-Johnston
Could it be this easy? $chopped= strlen($aFn) - 4; $filename = $chopped.".txt"; print"color='#99'>"; include($filename); print""; John Taylor-Johnston wrote: I have http://www.flash-here.com/downloads/fhimage.html installed. I like it jus

[PHP] FImage $aSubDir

2008-10-28 Thread John Taylor-Johnston
I have http://www.flash-here.com/downloads/fhimage.html installed. I like it just the way it is. But instead of displaying (see function below). Instead of displaying the file name under the photo, weak excuse for a caption, I would like to open and nl2br the contents of a like named text file.

Re: [PHP] PHP Code I Must find

2008-05-29 Thread John Taylor-Johnston
27;t waste time trying to decode every string like that that they encounter (at least not yet). - Rick Original Message Date: Thursday, May 29, 2008 07:08:34 PM -0400 From: John Taylor-Johnston <[EMAIL PROTECTED]> To: PHP-General Subject: [PHP] PHP C

Re: [PHP] PHP Code I Must find

2008-05-29 Thread John Taylor-Johnston
encounter (at least not yet). - Rick Original Message Date: Thursday, May 29, 2008 07:08:34 PM -0400 From: John Taylor-Johnston <[EMAIL PROTECTED]> To: PHP-General Subject: [PHP] PHP Code I Must find A web site deploys what I think are UTF characters to mask email address

[PHP] PHP Code I Must find

2008-05-29 Thread John Taylor-Johnston
John Taylor-Johnston wrote: My source is this page: http://www.grandlodge.mb.ca/contact.html John /To report a technical problem with this site please href="mailto:webmaster@grandlodge.mb.ca";>contact the webmaster./ /In UTF code: mailto:webmaster@grandlodge.mb.ca; would be

Re: [PHP] string

2008-04-07 Thread John Taylor-Johnston
Excellent. Thanks all! John Daniel Brown wrote: On Mon, Apr 7, 2008 at 9:25 AM, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: $name = "John Taylor"; I want to verify if $name contains "john", if yes echo "found"; Cannot remember which to use: http://

[PHP] string

2008-04-07 Thread John Taylor-Johnston
$name = "John Taylor"; I want to verify if $name contains "john", if yes echo "found"; Cannot remember which to use: http://ca.php.net/manual/en/ref.strings.php Sorry, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: MySQL Group?

2008-03-19 Thread John Taylor-Johnston
Thanks for getting me started. (Sorry, I'm a top quoter.) Below is some working code for the archives. What I've learned so far is that : 1) what I'm referring to in `person` has to be a key. 2) if I want to refer to more than one field from person in shopping, I have to use unique keys. I'm

[PHP] Re: MySQL Group?

2008-03-19 Thread John Taylor-Johnston
John Taylor-Johnston wrote: Does anyone know of a good MySQL group? Found it: http://lists.mysql.com/mysql/ Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL Group?

2008-03-19 Thread John Taylor-Johnston
Does anyone know of a good MySQL group? I want to make a relational link from `data` to `shopping` so when I insert a new record in `shopping`, I will see the contents of `data`.`name` and `data`.`email` as a drop-down menu in `shopping`. Where does one go to get this kind of help? Thanks, Joh

Re: [PHP] Re:

2008-03-14 Thread John Taylor-Johnston
Robert Cummings wrote: On Sat, 2008-03-15 at 00:33 -0400, John Taylor-Johnston wrote: Robert, Array ( [0] => Hemmingford [1] => Huntingdon ) You want the following (otherwise each checked entry overwrites the previous): How would you proceed? $sql ='insert into `datab

Re: [PHP] Re:

2008-03-14 Thread John Taylor-Johnston
Robert, Array ( [0] => Hemmingford [1] => Huntingdon ) You want the following (otherwise each checked entry overwrites the previous): How would you proceed? $sql ='insert into `database`.`table` (`Nom` ,`checkregion`) values ('John', '". ?? ."') '; I'm just guessing. -- PHP Gene

Re: [PHP] Re:

2008-03-14 Thread John Taylor-Johnston
Sorry, will this work? $sql ='insert into `database`.`table` (`Nom` ,`checkregion`) values ('John', '".serialise($_POST['checkregion'])."') '; John Taylor-Johnston wrote: Will this do it? > $sql ='insert into `database`.`t

Re: [PHP] Re:

2008-03-14 Thread John Taylor-Johnston
Will this do it? > $sql ='insert into `database`.`table` (`Nom` ,`checkregion`) > values ('John', '".implode(',', serialise($_POST['checkregion'])."') '; http://ca.php.net/manual/en/function.serialize.php Array ( [0] => Hemmingford [1] => Huntingdon ) -- PHP General Mailing List

Re: [PHP] Re:

2008-03-14 Thread John Taylor-Johnston
is this? Diagnostic-Code: smtp; 550-5.7.1 mail rejected by policy. SURBL hit 550-Spammy URLs in your message 550 See http://master.php.net/mail/why.php?why=SURBL Robert Cummings wrote: On Fri, 2008-03-14 at 23:14 -0400, John Taylor-Johnston wrote: $_POST["checkregion"] is suppose

[PHP] Re:

2008-03-14 Thread John Taylor-Johnston
$_POST["checkregion"] is supposed to be an array, no? John Taylor-Johnston wrote: http://www.glquebec.org/English/test.php When I check "Knowlton" and "Thetford Mines" or others, only "Thetford Mines" shows up in phpinfo(). $_POST["checkregion&q

[PHP] Re:

2008-03-14 Thread John Taylor-Johnston
http://www.glquebec.org/English/test.php When I check "Knowlton" and "Thetford Mines" or others, only "Thetford Mines" shows up in phpinfo(). $_POST["checkregion"] only sees "Thetford Mines". What am I doing wrong? How do I parse value checkregion? Or set this up differently? A A CREATE

[PHP]

2008-03-14 Thread John Taylor-Johnston
Am coding something. Cannot quite clear my head. I know what my SQL looks like. I just cannot see clearly to input it. What is $_POST["checkregion"] going to look like? Is it going to have all the convenient commas I will need in my SQL? Or do I have to parse God knows how many checkboxes? John

[PHP] Re: /?feed=rss2

2008-03-11 Thread John Taylor-Johnston
Any other inspiration? Thanks, John John Taylor-Johnston wrote: It used to have a feed, by accident. Now someone munches up too much bandwidth. http://www.foo.com/?feed=rss2 How can I divert this to 127.0.0.1 or something to convince this one to leave my bandwidth alone? John -- PHP General

[PHP] Re: /?feed=rss2

2008-03-10 Thread John Taylor-Johnston
I do. CPanel too. How would I write that into an htaccess ? Shawn McKenzie wrote: John Taylor-Johnston wrote: If you have apache, I would use a rewrite rule to return not found. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] /?feed=rss2

2008-03-10 Thread John Taylor-Johnston
It used to have a feed, by accident. Now someone munches up too much bandwidth. http://www.foo.com//?feed=rss2 How can I divert this to 127.0.0.1 or something to convince this one to leave my bandwidth alone? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] array problem with a zencart shipping module

2008-02-06 Thread John Taylor-Johnston
Thanks for the reply and checking it out. I was hoping my problem lies only in the class. I do have a Paypal account and at this point in time, it is a question of time - I've got to get my site in production and shut off the old cart. Nathan Nobbe wrote: On Feb 6, 2008 11:11 PM, John T

Re: [PHP] PHP Source code protection

2008-02-06 Thread John Taylor-Johnston
I'm not sure where PHP stands on this politically. But I believe in Open Source, which allows you to encode your code. But why? At heart I'm a purist GNU. Stallman was right when he first tried to fix a faulty printer. * The freedom to run the program, for any purpose (freedom 0). * Th

Re: [PHP] shopping carts

2008-02-06 Thread John Taylor-Johnston
zencart is giving me every possible custom field I can dream of. John Jason Pruim wrote: On Feb 6, 2008, at 5:56 PM, Eric Butera wrote: On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: Does anyone know of a shopping cart which allows you to add multiple custom fields to ea

[PHP] array problem with a zencart shipping module

2008-02-06 Thread John Taylor-Johnston
I'm desperately going outside the forum, seeking help. Does anyone have any experience with Zencart shipping modules, or understand arrays? http://www.zen-cart.com/forum/showthread.php?t=87831 Its borrowed code and I,m not good at arrays to begin with. Thanks, John -- PHP General Mailing List (

[PHP] calculate a varchar

2007-12-03 Thread John Taylor-Johnston
Is there a calculation function? I'm using an e-commerce shopping cart. I want to tweak the code. The author is using a varchar(100) field to store prices. Taking advantage of there being a varchar, instead of entering a price, I would like to enter a calculation. (24*2.2)+(24*2.2*.1) 24 is

[PHP] Compose MP3 from a php enabled flash page.

2007-10-11 Thread John Taylor-Johnston
I have an educational web site. I want to create an interface where my students can record their voices client side and then save messages server side. I thought Odeo would solve my problems. (The have their own problems now.) Then I tried: MyChingo and Mobasoft. COme on $6,000 for a site lic

[PHP] Parsing Poor XML into to PHP

2007-09-16 Thread John Taylor-Johnston
Pour examples of xml, but this is what I want to do. I have a quiz. BASICALLY How do EXTRACT THE Contents and Values of these tags into strings and arrays I can work with. Depending upon the students answer, compared to the criterion below, I need to calculate a value = x/1. The score could v

[PHP] Opensource CPanel

2007-09-01 Thread John Taylor-Johnston
Does anyone recommend a decent server panel, one like cpanel? Something made from PHP preferably? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] make a gif

2007-04-24 Thread John Taylor-Johnston
Excellent. I was trying to figure out how to use colour from the example in the manual. This is easier. Thanks! John Richard Lynch wrote: On Mon, April 23, 2007 12:01 pm, John Taylor-Johnston wrote: I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too

[PHP] make a gif

2007-04-23 Thread John Taylor-Johnston
I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo date('Y-m-d', $mydata->timestamp);

2007-04-21 Thread John Taylor-Johnston
It is actually a generated timestamp in MySQL. timestamp(14) Now what? I was hoping to avoid: |echo substr(|$mydata->timestamp|, 0, 8); John |Richard Lynch wrote: On Sun, April 22, 2007 1:05 am, John Taylor-Johnston wrote: $mydata->timestamp = "20070419162123"; echo date(

[PHP] echo date('Y-m-d', $mydata->timestamp);

2007-04-21 Thread John Taylor-Johnston
$mydata->timestamp = "20070419162123"; echo date('Y-m-d', $mydata->timestamp); result: 2038-01-18 ?? What is wrong?? Should be 2007-04-19? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread John Taylor-Johnston
Can I PHP generate a flash *.swf? How? If not how do I PHP generate a *.png or gif? Jochem Maas wrote: Stut wrote: Of course the best way is to use an image and don't link it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread John Taylor-Johnston
[EMAIL PROTECTED]> wrote: > >> Try using Javascript? Or use all entities? For example: > >> mailto:php-general@lists.php.net would turn into > >> mailto:php-general@lists.php.net > >> > >> > >> > >> > >> On 2/27/

[PHP] echo text - anti-spam-spider measure

2007-02-27 Thread John Taylor-Johnston
I need an anti-spam-spider measure for my site. Too many addresses are getting raked. In once instance, I created a flash page: http://erasethis.glquebec.org/English/contact.htm But I just don't have the time to create a flash image for every single instance, most of which come from dynamically

Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread John Taylor-Johnston
n 2/27/07, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > I need an anti-spam-spider measure for my site. Too many addresses are > getting raked. In once instance, I created a flash page: > http://erasethis.glquebec.org/English/contact.htm > But I just don't have the tim

Re: [PHP] date to string

2007-02-01 Thread John Taylor-Johnston
Chris wrote: John Taylor-Johnston wrote: How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Use strtotime (http://php.net/strtotime) to turn it into a timestamp and then format it using date (http://php.net/date). echo date("l, F j, Y", s

[PHP] date to string

2007-02-01 Thread John Taylor-Johnston
How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Simple question, except I don't know the answer :) This is all I see for now: http://ca.php.net/manual/en/function.px-date2string.php John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us

2006-10-17 Thread John Taylor-Johnston
Stut, Richard, Thanks for the feedback! Quebec has a language law, so I'm obligated to serve French first. I can wiggle around that if the preferred language is "other". John Is this a reasonable approach? if(stristr($_SERVER["HTTP_HOST"],"fr")) { include("french.htm");}else{ include("english

[PHP] _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us

2006-10-16 Thread John Taylor-Johnston
This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3 _SERVER["HTTP_ACCEPT_LANGUAGE"] fr-ca,en-us;q=0.5 Is this a reasonable approa

[PHP] If array()

2006-10-10 Thread John Taylor-Johnston
How can I use "if" to see an array contains something? if ($array()) does not work, of course. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Removing quotes

2006-10-10 Thread John Taylor-Johnston
Someone kindly gave me this once. I now need to reverse engineer it to remove the quotes and plus signs from $searchenquiry. Is it as simple as this? // FINAL RESULT: [+"john" +"johnston"] $sEnquiry = preg_replace("/\s+/", "+", $sEnquiry); // RESULT: ["john" "johnston"] $sEnquiry

[PHP] Alternative to FCKeditor

2006-09-24 Thread John Taylor-Johnston
Anyone know of a good alternative to FCKeditor? Or a decent file uploader? Even after paying for a little help, I get zip for FCK. I need another solution, another editor with an active forum or support, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] RSS Creator

2006-08-30 Thread John Taylor-Johnston
Has anyone created an RSS feed creator in PHP? I could make one fast enough, but ... John -- John Taylor-Johnston - "If it's not Open Source, it's Murphy's Law." ''&#

Re: [PHP] proxy server

2006-08-14 Thread John Taylor-Johnston
ervers won't do diddly-squat... I'm sure. CGI proxy I think is the key word I'm looking for. I would even pay $10 per year for an SMTP access account if it fixed my problems. John -- John Taylor-Johnston --

  1   2   3   4   5   6   >