php-general Digest 13 Dec 2008 16:06:17 -0000 Issue 5843
Topics (messages 284574 through 284587):
Re: Using a class inside of a class
284574 by: Nathan Rixham
284575 by: Nathan Rixham
Re: Instructions on compiling PHP 5.2.8 for Mac OS X Server 10.4.11
284576 by: Nathan Rixham
First PHP program
284577 by: Anwarulhaq
284579 by: Marc Steinert
284580 by: Kevin Waterson
Re: GD library for creating tables
284578 by: Osman Osman
284582 by: Tim-Hinnerk Heuer
284584 by: Osman Osman
Re: Chrome 1.0 released
284581 by: Richard Heyes
284583 by: Yeti
284585 by: Richard Heyes
284586 by: Richard Heyes
284587 by: Dotan Cohen
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Robert Cummings wrote:
On Fri, 2008-12-12 at 13:21 -0800, Richard Kurth wrote:
Can I use another class inside of a function in a class
this function process_queue below is inside of a class called class mailer
I want to use the phpMailer class inside of this function so I can send
email using smtp.
Can this be done and is there any information out there on how to do this
Should be simple enough. Make sure you've included the file that holds
the phpMailer class (and any dependencies it may have) then just
instantiate an instance of the class... or am I missing the oint of the
question?
Cheers,
Rob.
sounds right to me Rob..
function whatever() {
$mailer = new PHPMailer();
$mailer->send( $this->email );
}
pretty standard stuff (and the point of classes/objects i think?
regards!
--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Fri, 2008-12-12 at 13:21 -0800, Richard Kurth wrote:
Can I use another class inside of a function in a class
this function process_queue below is inside of a class called class mailer
I want to use the phpMailer class inside of this function so I can send
email using smtp.
Can this be done and is there any information out there on how to do this
Should be simple enough. Make sure you've included the file that holds
the phpMailer class (and any dependencies it may have) then just
instantiate an instance of the class... or am I missing the oint of the
question?
Cheers,
Rob.
sounds right to me Rob..
function whatever() {
$mailer = new PHPMailer();
$mailer->send( $this->email );
}
pretty standard stuff (and the point of classes/objects i think?
regards!
--- End Message ---
--- Begin Message ---
Rene Fournier wrote:
Since Marc Liyange hasn't updated his binary since 5.2.4, I've been
looking for some instructions on building my own, specifically the
latest 5.2.8 source for 10.4 Server. Google doesn't turn up anything for
me. Anyone have a good link?
...Rene
http://www.hmug.org/pub/MacOS_X/BSD/Server/WWW/php/ maybe - not sure but
hope it helps (linux/win guy)
--- End Message ---
--- Begin Message ---
I am working on MS.net.But now i days i want to work on PHP. I dont know the
basis of PHP. Can any one guide me how i have to start with PHP and which
editor i should use. Also the links of useful sites for help in PHP. I shall
be thankful.
Anwar UL-Haq
--
View this message in context:
http://www.nabble.com/First-PHP-program-tp20988175p20988175.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
Anwarulhaq wrote:
I am working on MS.net.But now i days i want to work on PHP. I dont know the
basis of PHP. Can any one guide me how i have to start with PHP and which
editor i should use. Also the links of useful sites for help in PHP. I shall
be thankful.
Since you've allready worked with .NET, I assume, that you are already
familiar with basics principles of programming.
Zend (the company behind PHP) offers some great resources and tutorials
for programmers that want to give a shot at PHP, without the obligatory
"what is a variable" etc chapters, that most ppl tend to skip anyways.
http://devzone.zend.com/node/view/id/627 for instance is imo a good
start, plus it covers PHP4 & PHP5 equally.
http://php.net/ is great as reference, to quickly look up some functions
and real world examples.
On the editor part I can strongly recommend Zend Studio, though it's not
free:
http://www.zend.com/en/products/studio/
If you need something free, try weaverslave:
http://www.weaverslave.ws/
Hope, I could help you.
Marc
--
http://bithub.net/
Synchronize and share your files over the web for free
--- End Message ---
--- Begin Message ---
This one time, at band camp, Anwarulhaq <[email protected]> wrote:
> I am working on MS.net.But now i days i want to work on PHP. I dont know the
> basis of PHP. Can any one guide me how i have to start with PHP and which
> editor i should use. Also the links of useful sites for help in PHP. I shall
> be thankful.
have a look at phpro.org and for an editor, well vi(m) of course ;)
set yourself a project to make something, start coding, and ask lots
of questions.
Kevin
--- End Message ---
--- Begin Message ---
Hello,
I'm looking for a library in PHP that will let me easily create tables
programmatically. It would be great if I can just specify information about
the rows/columns, what each cell should contain, etc, and the table would
get created automatically. I should be able to do anything I would be able
to do with normal HTML tables. Is there anything like that available?
Thanks,
Osman
--- End Message ---
--- Begin Message ---
On Sat, 2008-12-13 at 10:18 +0200, Osman Osman wrote:
> Hello,
> I'm looking for a library in PHP that will let me easily create tables
> programmatically. It would be great if I can just specify information about
> the rows/columns, what each cell should contain, etc, and the table would
> get created automatically. I should be able to do anything I would be able
> to do with normal HTML tables. Is there anything like that available?
>
> Thanks,
> Osman
$arr = array(array('celldata row 1, col1', 'celldata row 1, col2'),
array('celldata row 2, col1', 'celldata row 2, col2'));
<table>
<tr>
<th>heading1</th>
<th>heading2</th>
</tr>
<?php foreach ($arr as &$row): ?>
<tr>
<?php foreach ($row as &$col): ?>
<td><?php echo $col ?></td>
<?php endforeach ?>
</td>
<?php endforeach ?>
</table>
Do you really need a library for that? I had thought about this too but
couln't come up with a good solution to do this generically and being as
flexible as this. All you have to do is copy/paste the html code and put
some php inbetween if you have a designed table with css and all that
jazz.
Tim
--- End Message ---
--- Begin Message ---
Hey Tim,
Thanks for the reply. I'm actually looking for something to do that
exactly, but output it as an image (via GD, imageMagick, etc). I should've
been clearer; I mentioned it in the subject but not the actual e-mail.
There's actually a PEAR library that does that for HTML, HTML_Table:
http://pear.php.net/package/html_table/redirected. I'm looking for
something very similar, which will allow me to output as an image.
On Sat, Dec 13, 2008 at 12:35 PM, Tim-Hinnerk Heuer <[email protected]>wrote:
> On Sat, 2008-12-13 at 10:18 +0200, Osman Osman wrote:
> > Hello,
> > I'm looking for a library in PHP that will let me easily create tables
> > programmatically. It would be great if I can just specify information
> about
> > the rows/columns, what each cell should contain, etc, and the table would
> > get created automatically. I should be able to do anything I would be
> able
> > to do with normal HTML tables. Is there anything like that available?
> >
> > Thanks,
> > Osman
>
> $arr = array(array('celldata row 1, col1', 'celldata row 1, col2'),
> array('celldata row 2, col1', 'celldata row 2, col2'));
>
> <table>
> <tr>
> <th>heading1</th>
> <th>heading2</th>
> </tr>
> <?php foreach ($arr as &$row): ?>
> <tr>
> <?php foreach ($row as &$col): ?>
> <td><?php echo $col ?></td>
> <?php endforeach ?>
> </td>
> <?php endforeach ?>
> </table>
>
> Do you really need a library for that? I had thought about this too but
> couln't come up with a good solution to do this generically and being as
> flexible as this. All you have to do is copy/paste the html code and put
> some php inbetween if you have a designed table with css and all that
> jazz.
>
> Tim
>
>
--- End Message ---
--- Begin Message ---
> Do you mean "as seen on /." ?
I don't know, "dotslash" has a nice ring to it. Darn, the domains are gone...
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated December 5th)
--- End Message ---
--- Begin Message ---
I got so used to Opera's mouse gestures, now I can't work fluently
with other browsers. So I tried Chrome for like 5 minutes. It's always
like "How do I go back to the previous page again or how do I open a
new tab?".
As long as Chrome is not being bundled with new computers the average
Windows users will stick to Internet Explorer. I know that from
customers who are referring to IE as "the program on my computer's
desktop running the internet". So if Google can manage to transform
Chrome into the "internet program" M$ might be forced to make IE9
support Richard's HTML5 graphing.
--- End Message ---
--- Begin Message ---
2008/12/13 Yeti <[email protected]>:
> I got so used to Opera's mouse gestures, now I can't work fluently
> with other browsers. So I tried Chrome for like 5 minutes. It's always
> like "How do I go back to the previous page again or how do I open a
> new tab?".
Umm. It's easy.
Going back:
1. Click the back button.
2. Right click on a web page and click back.
> As long as Chrome is not being bundled with new computers the average
> Windows users will stick to Internet Explorer.
Yes. Google will need to do something quite significant to fix that.
> I know that from
> customers who are referring to IE as "the program on my computer's
> desktop running the internet". So if Google can manage to transform
> Chrome into the "internet program" M$ might be forced to make IE9
> support Richard's HTML5 graphing.
I have a dream... :-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated December 5th)
--- End Message ---
--- Begin Message ---
> As long as Chrome is not being bundled with new computers the average
> Windows users will stick to Internet Explorer. I know that from
> customers who are referring to IE as "the program on my computer's
> desktop running the internet". So if Google can manage to transform
> Chrome into the "internet program" M$ might be forced to make IE9
> support Richard's HTML5 graphing.
Just to add, you could feasibly use the graphs on a website where IE
compatibility isn't a requirement. So an internal website or intranet
where you can stipulate that people need to be using Firefox, Opera,
Chrome or Safari.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated December 5th)
--- End Message ---
--- Begin Message ---
2008/12/13 Richard Heyes <[email protected]>:
>> As long as Chrome is not being bundled with new computers the average
>> Windows users will stick to Internet Explorer. I know that from
>> customers who are referring to IE as "the program on my computer's
>> desktop running the internet". So if Google can manage to transform
>> Chrome into the "internet program" M$ might be forced to make IE9
>> support Richard's HTML5 graphing.
>
> Just to add, you could feasibly use the graphs on a website where IE
> compatibility isn't a requirement. So an internal website or intranet
> where you can stipulate that people need to be using Firefox, Opera,
> Chrome or Safari.
>
Just to add, you could just stop coding for IE and alert users that IE
is not a supported browser. The longer we bend over backwards trying
to support that browser, the longer we will make each other suffer. I
am in the terrific position of coding websites as a profitable hobby
and not as a profession, so I can afford to pick and choose, but I
argue that professional web developers can simply leave out non-IE
features for the IE-using public. If we stop acting like IE
compatibility is the holy grain of web design then our customers will
have no reason to think that either.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
--- End Message ---