php-general Digest 19 May 2010 11:27:22 -0000 Issue 6752

Topics (messages 305308 through 305317):

Re: dompdf class problem
        305308 by: Rene Veerman

Re: html analyzer
        305309 by: Manuel Lemos

php photo galery
        305310 by: David Mehler
        305311 by: David McGlone
        305312 by: Ross McKay
        305313 by: Justin Cripps
        305314 by: Ashley Sheridan
        305315 by: Micky Hulse

Re: Authentification and session management
        305316 by: Michelle Konzack

Email from php
        305317 by: Ferdi

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 ---
we don't have that class, nor it's documentation...?

On Tue, May 18, 2010 at 1:17 PM, saeed ahmed <[email protected]> wrote:
> I extremely sorry, if my topic isn't related with this group. I apologizes
> for this.
>
> I'm trying to add page number on the pdf. I have try the below code.
> but couldn't get the page number at the pdf.
> where I'm doing wrong. please suggest me.
> <?php
> require_once("dompdf_config.inc.php");
>
> $dompdf = new DOMPDF();
>
> $html = '<html><body>';
> $html .='<script type="text/php">
>                        $font = Font_Metrics::get_font("verdana", "bold");
>                        $dompdf->page_text(200, 16, "{PAGE_NUM} of
> {PAGE_COUNT}", $font,
> 10, array(0,0,0)); </script>';
> $html .=  '</body></html>';
> $dompdf->load_html($html);
> $dompdf->render();
> $dompdf->stream("sample.pdf");
> ?>
>
> regards,
> saeed
>



-- 
---------------------------------
Greetings from Rene7705,

My free open source webcomponents:
  http://code.google.com/u/rene7705/
  http://mediabeez.ws/downloads (and demos)

http://www.facebook.com/rene7705
---------------------------------

--- End Message ---
--- Begin Message ---
Hello,

on 05/18/2010 07:30 PM Rene Veerman said the following:
> Hi.
> 
> I'm trying to build a html analyzer that looks at natural words in html text.
> 
> I'd like to build a routine that walks through the HTML character by
> character, but i'm not sure on how to properly walk through escaped "
> and ' characters in javascript or other embedded languages. Skipping
> the first " and ' is no problem, but after that, the escaped " and ',
> they can get difficult imo.
> 
> If you have any ideas on this i'd like to hear 'm..

Better try something that is already done. HTML parsing is not that
trivial. If the HTML you are parsing is malformed, things get worse.

You may want to try this HTML parser package. It can parse HTML, CSS,
DTD, etc.. in pure PHP. No special extensions required. It can tolerate
malformed HTML and even filter insecure HTML and CSS that may contain
dangerous Javascript. Actually it was done mainly for that purpose.

http://www.phpclasses.org/secure-html-filter


-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
Hello,
I've googled for this and tried some downloads but not finding what
i'm looking for. A site requirement is to have a photo gallery. These
user's are not very technical so i thought about getting a galery with
the ability to upload photos via a browser, I would also like thumb
nails, and the ability to have an alt text attribute with the photo
and a longer description of the picture, for accessibility reasons.
If anyone has anything similar to this please let me know.
Thanks.
Dave.

--- End Message ---
--- Begin Message ---
On Tuesday 18 May 2010 21:11:00 David Mehler wrote:
> Hello,
> I've googled for this and tried some downloads but not finding what
> i'm looking for. A site requirement is to have a photo gallery. These
> user's are not very technical so i thought about getting a galery with
> the ability to upload photos via a browser, I would also like thumb
> nails, and the ability to have an alt text attribute with the photo
> and a longer description of the picture, for accessibility reasons.
> If anyone has anything similar to this please let me know.
> Thanks.
> Dave.

coppermine

http://coppermine-gallery.net/
-- 
Blessings,
David M.

--- End Message ---
--- Begin Message ---
On Tue, 18 May 2010 21:11:00 -0400, David Mehler wrote:

>I've googled for this and tried some downloads but not finding what
>i'm looking for. A site requirement is to have a photo gallery. These
>user's are not very technical so i thought about getting a galery with
>the ability to upload photos via a browser, I would also like thumb
>nails, and the ability to have an alt text attribute with the photo
>and a longer description of the picture, for accessibility reasons.
>If anyone has anything similar to this please let me know.

http://www.plogger.org/
-- 
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin

--- End Message ---
--- Begin Message ---
I have used Satellite.  Worked pretty well for me.

http://design.tedforbes.com/

Justin


-----Original Message-----
From: Ross McKay [mailto:[email protected]] 
Sent: Wednesday, 19 May 2010 11:23 AM
To: [email protected]
Subject: [PHP] Re: php photo galery

On Tue, 18 May 2010 21:11:00 -0400, David Mehler wrote:

>I've googled for this and tried some downloads but not finding what
>i'm looking for. A site requirement is to have a photo gallery. These
>user's are not very technical so i thought about getting a galery with
>the ability to upload photos via a browser, I would also like thumb
>nails, and the ability to have an alt text attribute with the photo
>and a longer description of the picture, for accessibility reasons.
>If anyone has anything similar to this please let me know.

http://www.plogger.org/
-- 
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
On Wed, 2010-05-19 at 11:22 +1000, Ross McKay wrote:

> On Tue, 18 May 2010 21:11:00 -0400, David Mehler wrote:
> 
> >I've googled for this and tried some downloads but not finding what
> >i'm looking for. A site requirement is to have a photo gallery. These
> >user's are not very technical so i thought about getting a galery with
> >the ability to upload photos via a browser, I would also like thumb
> >nails, and the ability to have an alt text attribute with the photo
> >and a longer description of the picture, for accessibility reasons.
> >If anyone has anything similar to this please let me know.
> 
> http://www.plogger.org/
> -- 
> Ross McKay, Toronto, NSW Australia
> "Let the laddie play wi the knife - he'll learn"
> - The Wee Book of Calvin
> 


Something like this wouldn't be too hard to put together.

A form with a <input type="file"/> element could handle the image upload
and text part. If they need to upload multiple files then you could
either use several input elements or a multi-upload option, although the
latter aren't very accessible at all I've found, which seems to go
against one of your requirements.

I assume the need for multiple galleries, and further assume that you
already have a way that you are distinguishing users. Just use this
identifier against each image to denote a gallery. A database can easily
be used here to not only identify the gallery an image belongs to but
the user who uploaded it, and what galleries the user has rights to,
etc.

Creating thumbnails is also a doddle. I've just written up a function I
wrote for http://www.vicestyle.com which creates thumbnails in any size
you want from any image without distortion using a smart crop technique
at http://www.ashleysheridan.co.uk/coding/php/Smart_Image_Resizing .

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---
--- Begin Message ---
> If anyone has anything similar to this please let me know.

SlidesShowPro Director:

<http://slideshowpro.net/products/slideshowpro_director/>

You could use the Director API and create a PHP gallery with your own
code, or you could use the SlideShowPro flash player.

The Director interface is very easy to use. For a nominal fee, you can
have SSP site host Director for you, or you can host the software it
yourself.

Cheers,
M

--- End Message ---
--- Begin Message ---
Hello Ashley,

Am 2010-05-18 12:25:59, hacktest Du folgendes herunter:
> I recently heard about a PHP-based authentication system called Sumo. It
> might be what you need to stop re-inventing them darn wheels!
> http://sumoam.sourceforge.net 

This sounds realy good...  I will check ist immediately!

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL       itsyst...@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber [email protected]
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Attachment: signature.pgp
Description: Digital signature


--- End Message ---
--- Begin Message ---
Hi List,

I have met with little success sending mail from PHP. I have used mainly the
mail() function but have also tried imap_mail() which the documentation says
is just a wrapper around mail().

Here is my understanding of the situation:
On Windows (WampServer 2.0i ) I manage to send email after setting SMTP =
smtp.someserver.com. I guess this works because the server I use relays all
mail received; it does not check if the user has been registered or not. It
obviously does not bother about the password.

On Linux (Centos 5.XX, XAMPP 1.7.2), the above function [mail()] does not
work. On Linux, what I have understood, is that the smtp server settings in
php.ini do not matter. The sendmail / mail (something like that) utility is
called which sends the mail. I have put in the correct sendmail_path setting
in php.ini, but, I guess this utility is not configured since I don't
receive the mail and running the code does not throw up errors or warnings.

What I need to achieve is the ability to send attachments in an email from
PHP. I would like one of the following options (in order of preference):

1. Create an email account (specifically Google Apps Mail) and send email as
that user. This will not be trivial. I will need to get a fix on
authenticating, logging in etc.
OR
2. Send mail using an SMTP server. Could you also point me to links showing
installation / setting up of a SMTP server on Linux? The XAMPP docs say the
Mercury mailserver is included, but I couldn't find any help for setting it
up.
OR
3. Configuring the sendmail utility on Linux

Alternaltly, any URLs giving the entire picture are also welcome. So far, I
have only found info that is almost verbatim copy of the PHP manual. They
just explain the different mail libraries and functions without considering
the mail servers and all the back end.

Thanks for taking the trouble to read!

Regards,
Ferdi

--- End Message ---

Reply via email to