php-general Digest 7 Nov 2011 11:54:29 -0000 Issue 7556

Topics (messages 315604 through 315606):

Re: php sqlite
        315604 by: tamouse mailing lists

Re: Google Search Appliance and PHP
        315605 by: tamouse mailing lists

Re: pcre little problem
        315606 by: Richard Quadling

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On Sat, Nov 5, 2011 at 3:33 AM, saeed ahmed <mycomputerbo...@gmail.com> wrote:
> i want to start with php sqlite.which  light weight versions should i
> download?i have win xp sp3.
>

I though sqlite came bundled...

--- End Message ---
--- Begin Message ---
On Thu, Nov 3, 2011 at 10:11 AM, Gates, Jeff <gat...@si.edu> wrote:
> I am a newbie in PHP.
>
> I need to create a search using Google's Search Appliance for a site I'm 
> designing but don't have the slightest idea on how to do it. Because I want 
> to incorporate the site's design into the search results page I can't use the 
> GSA's simple page layout wizard.
>
> Here's what I need to be able to learn how to do:
>
>
>  1.  Create a search form and send it to our GSA (this is pretty easy).
>  2.  Create a processing page to parse the XML

Take at look at SimpleXML:
http://us.php.net/manual/en/book.simplexml.php -- it may be as far as
you need to go with XML.

>  3.  Create a results page using the header and footer of my site.

PHP was born a templating language. This is simplicity in itself: just
include them where you want them to display:

   include("HEADER.html");

    blah blah page content blah blah

   include("FOOTER.html");


>
> Can anyone help me with simple explanation on how to do steps 2 and 3?
>
> Thanks,
>
> Jeff
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On 4 November 2011 16:52, QI.VOLMAR QI <qi.vol...@gmail.com> wrote:

> i have this part of code that works with DOMDocument:
>
> public function translateNFeXML(NFE $nfe_factory) {
>        $inf_adic = $nfe_factory->createElement('infAdic');
>        if ($this->inf_ad_fisco) {
>            $inf_adic_fisco =
> $nfe_factory->createElement('infAdicFisco', $this->inf_ad_fisco);
>            $inf_adic->appendChild($inf_adic_fisco);
>        }
>
>        $string = "a=10&b[]=20&c=30n°&d=40+:50";
>        die(preg_filter('/[^:][[:punct:]]/', '', $string));
>        $inf_cpl = $nfe_factory->createElement('infCpl',
> $this->inf_complementar);
>
> QUESTION: Why the preg_filter causes a end of the application, with no
> error throwing (even in die don't appears nothing)?


preg_filter() returns NULL if there are no matches and the subject is a
string.

And ...

php -r "die(null);"

outputs nothing.

-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc : Fantasy Shopper
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea :
fan.sh/6/370

--- End Message ---

Reply via email to