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
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 (
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
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
> 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
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:
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
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
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
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
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
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
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
in?
eval(base64_decode('Pz4gPC9kaXY+DQo8ZGl2IGlkPSJmb290ZXIiPjxhIGhyZWY9Imh0dHA6Ly93ZWItaG9zdGluZy1jbGljay5jb20vIiB0aXRsZT0iV2ViIGhvc3RpbmciPldlYiBob3N0aW5nPC9hPg0KPCEtLSAyNyBxdWVyaWVzLiAwLjU2MSBzZWNvbmRzLiAtLT4NCjwvZGl2Pg0KPD9waHAgd3BfZm9vdGVyKCk7ID8+DQo8L2JvZHk+DQo8L2h0bWw+IDw/'));?>
--
John Taylor-J
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
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
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
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
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
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
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
(
...
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
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
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
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
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'
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
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
"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
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
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
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
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"
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
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
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
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?
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
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
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
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
---
= 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
$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:/
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
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
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
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
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
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
>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
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
]', $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
$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
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
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
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.
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
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
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
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://
$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
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
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
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
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
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
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
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
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
$_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
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
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
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
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
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
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
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
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
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 (
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
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
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
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
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
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
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(
$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
Thanks everyone,
Gave me a much better understanding of it
"Jim Lucas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jim Lucas wrote:
> > Jeff Taylor wrote:
> >> Hey all, got a slight problem, where for some reasons my variables
> >>
Child class __construct
$this->foo.='Bar';
$this->foo2 .= rand(1,6);
$this->type = 'Child';
Outputs of variables foo == Bar Bar
foo2 == 11-16
type == Child
Th
OOPS!... typo
Please replace implements with extends:
class Child extends Parent
Sorry about that
""Jeff Taylor"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey all, got a slight problem, where for some reasons my variables dont
seem
> t
Hey all, got a slight problem, where for some reasons my variables dont seem
to be getting stored in the child class:
e.g
class Parent
{
$private type;
public function __construct()
{
}
public function GetType()
{
return $this->type;
}
}
class Child implements Parent
{
;
>
> On Thu, March 8, 2007 11:51 pm, Jeff Taylor wrote:
> > Hey all,
> > I'm very new to programming and PHP.
> > I want to pass instances of a class through an array, and then use a
> > foreach
> > later to grab details of each class at once... but it returns
;
}
else
{
$newarray[$name] = 2;
}
}
Sorry for the spam everyone
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sat, 2007-03-10 at 15:31 +1030, Jeff Taylor wrote:
> > Hey everyone,
> > Newb back again - Im trying to
ge the $newarray[$name] to something to represent the current
element and just add the value to it?
I might be able to work around it then
""Jeff Taylor"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey everyone,
> Newb back again - Im trying to popu
Hey all,
I'm very new to programming and PHP.
I want to pass instances of a class through an array, and then use a foreach
later to grab details of each class at once... but it returns a fatal error
Code:
$me = new Toon('Toon1','1')
$him = new Toon('Toon2','0')
$characterListing = array($me,
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
;.ord($a[0]).";";'), $theEmail);
Hopefully that works?
On 2/27/07, John Taylor-Johnston
<[EMAIL PROTECTED]> wrote:
> How do I encode it? And would the href tag work?
>
> Casey Chu wrote:
> > ^ So put that into a tag.
> >
> > On 2/27/07, Casey Chu <
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
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
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
1 - 100 of 829 matches
Mail list logo