[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Pierre Joye
hi,

On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham tommy...@gmail.com wrote:
 Hi everyone,

 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
 and its PDO in addition to Wincache, which I've already brought to MS'
 attention.

Please report a bug at http://pecl.php.net/package/sqlsrv
http://pecl.php.net/package/wincache.

however I do not see what could be broken with 5.3.9, there is no
change that could affect these extensions.


  What's the estimated official release of 5.4?

See https://wiki.php.net/todo/php54

There is no deadline for the final release as we do not know yet all
possible issues we may find during the RCs phase.


Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Ferenc Kovacs
On Sun, Nov 27, 2011 at 2:39 PM, Pierre Joye pierre@gmail.com wrote:

 hi,

 On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham tommy...@gmail.com wrote:
  Hi everyone,
 
  5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
  and its PDO in addition to Wincache, which I've already brought to MS'
  attention.

 Please report a bug at http://pecl.php.net/package/sqlsrv
 http://pecl.php.net/package/wincache.

 however I do not see what could be broken with 5.3.9, there is no
 change that could affect these extensions.


I think that he meant that only 5.4 is affected by those problems.


-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu


[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Pierre Joye
hi,

I just uploaded two zip for sqlsrv and 5.4. I did not test them and
they are no official builds, only for testing purposes (so is 5.4 :).

you can find them at http://www.php.net/~pierre/

Cheers,

On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham tommy...@gmail.com wrote:
 Hi everyone,

 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
 and its PDO in addition to Wincache, which I've already brought to MS'
 attention.  What's the estimated official release of 5.4?  I can't
 wait for the feature session.upload_progress* in 5.4 which I need to
 do some testing as how I can implement that into my existing apps!!!
 That's just awesome!!  Thanks for all your continuous hard work :)

 Platform: Win08R2/IIS7.5 SP1 with current patches running PHP as FastCGI.

 Applications:
 drupal, joomla, mediawiki, wordpress, and a few of my own :)

 Cheers,
 Tommy

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





-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



Re: [PHP] news and article posts in one table

2011-11-27 Thread Larry Garfield

On 11/26/2011 09:45 PM, Paul M Foster wrote:

On Sat, Nov 26, 2011 at 01:26:49PM -0600, Tamara Temple wrote:


muad shibanimuad.shib...@gmail.com  wrote:


i wanna to create one table that contains both news and articles posts,
they have similar columns like id, title, content, and date but they are
differ in one column = the source of news or article post
article has  writers that have permanent names and pictures obtained from
another table called writers that supposed to be  left joined with the news
table, while news posts simply have a source as text like AFP
or Reuters and so one.

How I can solve this ?


How you store things in tables can sometimes get a little tricky. One
way to approach this is with normalized tables and using joins in your
query like you are doing. To make this work, in your main entries table,
have a field that indicates what the entry type is. If you are doing one
select that gets both articles and news stories, having that extra field
can help you distinguish what type it is, and which fields contain data
in each record.

(cf: Wordpress wp_posts table for an example of how this is done. They
store posts, pages, and attachments in a single table this way. I can't
say if this is a better arrangement than keeping them in separate
tables.)


I've had to hack this table. It's a prime example of bad design. Take a
long look at the records of this table in an active blog, with a survey
of each of the fields and their values. You'll see what I mean.

Paul


The Drupal approach to this problem is to have a common table for all 
nodes (our generic content object thingie), and then dependent tables 
for type-specific stuff.  So (over-simplifying):


node: id, title, type, created time, updated time, published (1 or 0)
field_body: node_id, delta, value
field_picture: node_id, delta, url
field_source: node_id, delta, url to reuters or whatever
field_writers: node_id, delta, writer name, url to writer picture
// etc.

That way, you can have the basic information all in one table and then 
specific fields can be shared by some, all, or just one node type, and 
all can be multi-value.  It does mean loading up a full object is 
multiple queries, but really, MySQL is fast.  You don't need to 
over-optimize your query count, and this gets you a well-normalized 
database.


If you know in advance exactly what your types are going to be (in 
Drupal they're user-configurable), you could simplify it to something like:


node: id, title, type, body. created time, updated time, published (1 or 0)
node_article: node_id, writer name, writer picture url
node_news: node_id, url to reuters or whatever

And you can still select on whatever you need.  With a LEFT JOIN, you 
can even get back all data on all articles of both types, and just have 
lost of nulls in the result set for the off-record fields.


--Larry Garfield

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



Re: [PHP] news and article posts in one table

2011-11-27 Thread muad shibani
Thanks for all .. I really appreciate your effort .. now I have a solid
idea of how I should do Thanks a lot

On Sun, Nov 27, 2011 at 10:28 PM, Larry Garfield la...@garfieldtech.comwrote:

 On 11/26/2011 09:45 PM, Paul M Foster wrote:

 On Sat, Nov 26, 2011 at 01:26:49PM -0600, Tamara Temple wrote:

  muad shibanimuad.shib...@gmail.com**  wrote:

  i wanna to create one table that contains both news and articles posts,
 they have similar columns like id, title, content, and date but they are
 differ in one column = the source of news or article post
 article has  writers that have permanent names and pictures obtained
 from
 another table called writers that supposed to be  left joined with the
 news
 table, while news posts simply have a source as text like AFP
 or Reuters and so one.

 How I can solve this ?


 How you store things in tables can sometimes get a little tricky. One
 way to approach this is with normalized tables and using joins in your
 query like you are doing. To make this work, in your main entries table,
 have a field that indicates what the entry type is. If you are doing one
 select that gets both articles and news stories, having that extra field
 can help you distinguish what type it is, and which fields contain data
 in each record.

 (cf: Wordpress wp_posts table for an example of how this is done. They
 store posts, pages, and attachments in a single table this way. I can't
 say if this is a better arrangement than keeping them in separate
 tables.)


 I've had to hack this table. It's a prime example of bad design. Take a
 long look at the records of this table in an active blog, with a survey
 of each of the fields and their values. You'll see what I mean.

 Paul


 The Drupal approach to this problem is to have a common table for all
 nodes (our generic content object thingie), and then dependent tables for
 type-specific stuff.  So (over-simplifying):

 node: id, title, type, created time, updated time, published (1 or 0)
 field_body: node_id, delta, value
 field_picture: node_id, delta, url
 field_source: node_id, delta, url to reuters or whatever
 field_writers: node_id, delta, writer name, url to writer picture
 // etc.

 That way, you can have the basic information all in one table and then
 specific fields can be shared by some, all, or just one node type, and all
 can be multi-value.  It does mean loading up a full object is multiple
 queries, but really, MySQL is fast.  You don't need to over-optimize your
 query count, and this gets you a well-normalized database.

 If you know in advance exactly what your types are going to be (in Drupal
 they're user-configurable), you could simplify it to something like:

 node: id, title, type, body. created time, updated time, published (1 or 0)
 node_article: node_id, writer name, writer picture url
 node_news: node_id, url to reuters or whatever

 And you can still select on whatever you need.  With a LEFT JOIN, you can
 even get back all data on all articles of both types, and just have lost of
 nulls in the result set for the off-record fields.

 --Larry Garfield


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




-- 
*___*
*
*
السجل .. كل الأخبار من كل مكان

www.alsjl.com

صفحة السجل على فيسبوك
http://www.facebook.com/alsjl

*Muad Shibani*
*
*
Aden Yemen
Mobile: 00967 733045678

www.muadshibani.com


[PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread David McGlone
Hi all, I am wondering if it's possible to find the bookmarks file in
firefox and output the contents on a page with PHP.. I'm wanting to do
this so I can use it as my home page.
-- 
Thanks,
David M.


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



[PHP] RE: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Keith Davis
Thanks Pierre! And thanks Tommy for bringing that up. I've been discussing the 
Wincache issue for some time and also brought it up with the new MS person 
assigned to it, but I had completely forgot to check sqlsrv and that would have 
been a big problem for us.

Keith Davis (214) 906-5183


-Original Message-
From: Pierre Joye [mailto:pierre@gmail.com]
Sent: Sunday, November 27, 2011 9:33 AM
To: Tommy Pham
Cc: php-general@lists.php.net; php-wind...@lists.php.net
Subject: Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

hi,

I just uploaded two zip for sqlsrv and 5.4. I did not test them and they are no 
official builds, only for testing purposes (so is 5.4 :).

you can find them at http://www.php.net/~pierre/

Cheers,

On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham tommy...@gmail.com wrote:
 Hi everyone,

 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
 and its PDO in addition to Wincache, which I've already brought to MS'
 attention.  What's the estimated official release of 5.4?  I can't
 wait for the feature session.upload_progress* in 5.4 which I need to
 do some testing as how I can implement that into my existing apps!!!
 That's just awesome!!  Thanks for all your continuous hard work :)

 Platform: Win08R2/IIS7.5 SP1 with current patches running PHP as FastCGI.

 Applications:
 drupal, joomla, mediawiki, wordpress, and a few of my own :)

 Cheers,
 Tommy

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





--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



This message (including any attachments) may contain confidential or otherwise 
privileged information and is intended only for the individual(s) to which it 
is addressed. If you are not the named addressee you should not disseminate, 
distribute or copy this e-mail. Please notify the sender immediately by e-mail 
if you have received this e-mail by mistake and delete this e-mail from your 
system. E-mail transmission cannot be guaranteed to be secured or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this message or that arise as a 
result of e-mail transmission. If verification is required please request a 
hard-copy version from the sender.

www.pridedallas.com


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



Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread Camilo Sperberg
You can export the bookmarks as a json or html and then read it easily with php 
but i suspect you want to read the firefox files directly, in which case you 
can read the sqlite file called places.sqlite

More info here:
http://support.mozilla.com/en-US/kb/Profiles

Sent from my iPhone 5 Beta [Confidential use only]

On 28 nov. 2011, at 00:47, David McGlone da...@dmcentral.net wrote:

 Hi all, I am wondering if it's possible to find the bookmarks file in
 firefox and output the contents on a page with PHP.. I'm wanting to do
 this so I can use it as my home page.
 -- 
 Thanks,
 David M.
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

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



[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Pierre Joye
On Mon, Nov 28, 2011 at 1:07 AM, Keith Davis keithda...@pridedallas.com wrote:
 Thanks Pierre! And thanks Tommy for bringing that up. I've been discussing 
 the Wincache issue for some time and also brought it up with the new MS 
 person assigned to it, but I had completely forgot to check sqlsrv and that 
 would have been a big problem for us.

The new person? I did not hear of a new switch lately (there was one
earlier this year but then not).

Cheers,

 Keith Davis (214) 906-5183


 -Original Message-
 From: Pierre Joye [mailto:pierre@gmail.com]
 Sent: Sunday, November 27, 2011 9:33 AM
 To: Tommy Pham
 Cc: php-general@lists.php.net; php-wind...@lists.php.net
 Subject: Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

 hi,

 I just uploaded two zip for sqlsrv and 5.4. I did not test them and they are 
 no official builds, only for testing purposes (so is 5.4 :).

 you can find them at http://www.php.net/~pierre/

 Cheers,

 On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham tommy...@gmail.com wrote:
 Hi everyone,

 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
 and its PDO in addition to Wincache, which I've already brought to MS'
 attention.  What's the estimated official release of 5.4?  I can't
 wait for the feature session.upload_progress* in 5.4 which I need to
 do some testing as how I can implement that into my existing apps!!!
 That's just awesome!!  Thanks for all your continuous hard work :)

 Platform: Win08R2/IIS7.5 SP1 with current patches running PHP as FastCGI.

 Applications:
 drupal, joomla, mediawiki, wordpress, and a few of my own :)

 Cheers,
 Tommy

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





 --
 Pierre

 @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



 This message (including any attachments) may contain confidential or 
 otherwise privileged information and is intended only for the individual(s) 
 to which it is addressed. If you are not the named addressee you should not 
 disseminate, distribute or copy this e-mail. Please notify the sender 
 immediately by e-mail if you have received this e-mail by mistake and delete 
 this e-mail from your system. E-mail transmission cannot be guaranteed to be 
 secured or error-free as information could be intercepted, corrupted, lost, 
 destroyed, arrive late or incomplete, or contain viruses. The sender 
 therefore does not accept liability for any errors or omissions in the 
 contents of this message or that arise as a result of e-mail transmission. If 
 verification is required please request a hard-copy version from the sender.

 www.pridedallas.com





-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread David McGlone
On Mon, 2011-11-28 at 01:15 +0100, Camilo Sperberg wrote:
 You can export the bookmarks as a json or html and then read it easily with 
 php but i suspect you want to read the firefox files directly, in which case 
 you can read the sqlite file called places.sqlite
 
 More info here:
 http://support.mozilla.com/en-US/kb/Profiles
 
 Sent from my iPhone 5 Beta [Confidential use only]
 
 On 28 nov. 2011, at 00:47, David McGlone da...@dmcentral.net wrote:
 
  Hi all, I am wondering if it's possible to find the bookmarks file in
  firefox and output the contents on a page with PHP.. I'm wanting to do
  this so I can use it as my home page.

I realized I wasn't very clear with the post after I sent it. I
apologize. But you are correct, I was wondering if there was an easy way
to just use readfile to read the bookmarks file, but I looks like I'll
be having to get the info from the sqllite db instead. (At least that's
what I'm thinking at the moment now that I know what file the bookmarks
are stored in)

-- 
Thanks,
David M.


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



[PHP] RE: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Keith Davis
Well, she is new to Wincache at least:

Jenny Lawrence

http://forums.iis.net/t/1174639.aspx


Keith Davis (214) 906-5183


-Original Message-
From: Pierre Joye [mailto:pierre@gmail.com]
Sent: Sunday, November 27, 2011 6:20 PM
To: Keith Davis
Cc: Tommy Pham; php-general@lists.php.net; php-wind...@lists.php.net
Subject: Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

On Mon, Nov 28, 2011 at 1:07 AM, Keith Davis keithda...@pridedallas.com wrote:
 Thanks Pierre! And thanks Tommy for bringing that up. I've been discussing 
 the Wincache issue for some time and also brought it up with the new MS 
 person assigned to it, but I had completely forgot to check sqlsrv and that 
 would have been a big problem for us.

The new person? I did not hear of a new switch lately (there was one earlier 
this year but then not).

Cheers,

 Keith Davis (214) 906-5183


 -Original Message-
 From: Pierre Joye [mailto:pierre@gmail.com]
 Sent: Sunday, November 27, 2011 9:33 AM
 To: Tommy Pham
 Cc: php-general@lists.php.net; php-wind...@lists.php.net
 Subject: Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

 hi,

 I just uploaded two zip for sqlsrv and 5.4. I did not test them and they are 
 no official builds, only for testing purposes (so is 5.4 :).

 you can find them at http://www.php.net/~pierre/

 Cheers,

 On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham tommy...@gmail.com wrote:
 Hi everyone,

 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with
 sqlsvr and its PDO in addition to Wincache, which I've already brought to MS'
 attention.  What's the estimated official release of 5.4?  I can't
 wait for the feature session.upload_progress* in 5.4 which I need to
 do some testing as how I can implement that into my existing apps!!!
 That's just awesome!!  Thanks for all your continuous hard work :)

 Platform: Win08R2/IIS7.5 SP1 with current patches running PHP as FastCGI.

 Applications:
 drupal, joomla, mediawiki, wordpress, and a few of my own :)

 Cheers,
 Tommy

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





 --
 Pierre

 @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



 This message (including any attachments) may contain confidential or 
 otherwise privileged information and is intended only for the individual(s) 
 to which it is addressed. If you are not the named addressee you should not 
 disseminate, distribute or copy this e-mail. Please notify the sender 
 immediately by e-mail if you have received this e-mail by mistake and delete 
 this e-mail from your system. E-mail transmission cannot be guaranteed to be 
 secured or error-free as information could be intercepted, corrupted, lost, 
 destroyed, arrive late or incomplete, or contain viruses. The sender 
 therefore does not accept liability for any errors or omissions in the 
 contents of this message or that arise as a result of e-mail transmission. If 
 verification is required please request a hard-copy version from the sender.

 www.pridedallas.com





--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread Curtis Maurand


It seems to me that the file structure should be in the source code 
somewhere and you can download that.


--C

On 11/27/2011 7:28 PM, David McGlone wrote:

On Mon, 2011-11-28 at 01:15 +0100, Camilo Sperberg wrote:

You can export the bookmarks as a json or html and then read it easily with php 
but i suspect you want to read the firefox files directly, in which case you 
can read the sqlite file called places.sqlite

More info here:
http://support.mozilla.com/en-US/kb/Profiles

Sent from my iPhone 5 Beta [Confidential use only]

On 28 nov. 2011, at 00:47, David McGloneda...@dmcentral.net  wrote:


Hi all, I am wondering if it's possible to find the bookmarks file in
firefox and output the contents on a page with PHP.. I'm wanting to do
this so I can use it as my home page.

I realized I wasn't very clear with the post after I sent it. I
apologize. But you are correct, I was wondering if there was an easy way
to just use readfile to read the bookmarks file, but I looks like I'll
be having to get the info from the sqllite db instead. (At least that's
what I'm thinking at the moment now that I know what file the bookmarks
are stored in)




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



Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread Paul M Foster
On Sun, Nov 27, 2011 at 06:47:36PM -0500, David McGlone wrote:

 Hi all, I am wondering if it's possible to find the bookmarks file in
 firefox and output the contents on a page with PHP.. I'm wanting to do
 this so I can use it as my home page.

The answer to this is not in PHP; it can be done in Firefox by itself.
It's been a long time since I set this up, but if I'm not mistaken, the
procedure goes like this:

1. In Firefox, enter about:config in the URL bar. (Ignore warnings.)
2. You are now in the raw configs. Search for a key called
browser.bookmarks.autoExportHTML. Set this to 2. This should cause
Firefox to dump the contents of it places.sqlite file to a file called
bookmarks.html when Firefox is closed.
3. Find another key called browser.startup.homepage. Set this to the
absolute path of a file called bookmarks.html in your Firefox file tree.
The path will be something like (in Linux):
/home/username/.mozilla/firefox/random string.default/bookmarks.html.
(Obviously, you'll have to locate this file ahead of time.)

If this isn't the exact procedure, it's close. You can dig into the
Firefox docs to get the exact values or keys if these aren't right. (For
example, I don't know why the first key I mentioned is 2 instead of 1.)

Anyway, I have my Firefox set up this way.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

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



[PHP] Re: Yaf_Route

2011-11-27 Thread Laruence
HI:
   Yaf designd a route statck to proviods the ability for extends route process.

   you can  add new route into stack by calling
Yaf_Router::addRoute(or addConfig),

   when a request coming , Yaf will call the top route in the stack at
the first time, as  pseudo  codes like:

   while ($route = pop($stack)) {
   if ($route-route($request) ==  TRUE) {
 return FINISH.
   }
   }


  there are two routes defined  by Yaf are always return TRUE, that
are Yaf_Route_Simple and Yaf_Route_Static.

  so according your question, the easiest way is reigster a
Yaf_Route_Simple route with no-sence parameters, then all the request
will be routed to default controller and default action.


  and  also you can use Yaf_Route_Regex,  it is the most felixible
route in Yaf:  http://www.php.net/manual/en/yaf-route-rewrite.construct.php

  the first argument for Yaf_Route_Regex::__construct is used to match
a uri, if the uri doesn't match this value,  then the Yaf_Route_Regex
will don't route this request, just simple return FALSE, so we
can register a Regex route at the Bootstrap like:


public function _initRoute(Yaf_Dispatcher $dispatcher) {
$route = new Yaf_Route_Regex (
#(.*)#,
array(
controller = product,
action = info,
),
array(
1 = test,
)
);
$router-addRoute('regex', $route);
}

see the code above, we set the first argument to Yaf_Route_Regex a
value : #(.*)#,  which means this route will match any request-uri.

then we can assign any controller/action pair for this route
result in the second argument.

the last argument means,  the first captrue in the regex pattern
will be named test in the $request::_$params, that is you can access
this value by calling $request-getParam(test).


I have updates some new docs at php.net, but it need a little time
to show up.and I will keep updating :)

PS: I am going to cc this mail to php-generall list,  then if any
other people have the sampe question,  they will find this :)

   thanks  very much for you interesting of Yaf :)


2011/11/28 Moldován Eduárd e...@boxed.hu:
 Oh, I forgot something. An example of a complete application.ini and ways to
 get the config values with YaF would be great!
 Thx ahead,
 edi



 2011.11.27. dátummal, 14:49 időpontban Laruence larue...@php.net írta:

 HI:
    I  have  update some new docs into Yaf doc(php.net), but it will take a
 little time to show up.
    and sure,  could you give me some specific questions?  I will answer you
 :)
    also, I will add some new examples soon :)
 thanks very much for your interesting of Yaf
 :)
 2011/11/27 Moldován Eduárd e...@boxed.hu

 Hey there,

 I started working a bit with YaF, but it looks like the documentation is
 very rare. Could you tell me please where any documentation can be found on
 routing?
 Any example maybe?
 I would actually welcome any kind of documentation, on any part of YaF
 (Except what I already found on php.net and code.google.com).

 Thx,
 edi

 --
 logo.png Moldován Eduárd
 boxed.hu
 e...@boxed.hu
 +36 30 691 2 691
 skype: edimoldovan


 --
 Laruence  Xinchen Hui
 http://www.laruence.com/




-- 
Laruence  Xinchen Hui
http://www.laruence.com/

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



[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Tommy Pham
On Sun, Nov 27, 2011 at 7:32 AM, Pierre Joye pierre@gmail.com wrote:
 hi,

 I just uploaded two zip for sqlsrv and 5.4. I did not test them and
 they are no official builds, only for testing purposes (so is 5.4 :).

 you can find them at http://www.php.net/~pierre/

 Cheers,


Hi Pierre,

I really appreciate your help with the sqlsrv build.  It seems that
I'm having problems test installing Drupal 7 with it.  So I tried test
installing on MySQL instead to see if the driver is the issue.
Apparently that fails also.  Then I went to pull up phpMyAdmin v3.4.7
to do some create/drop databases. Nothing works and no errors
reported.  Using PHP Manager for IIS, I tested 3 configurations that I
have:

5.3.5 nts
5.3.9RC2 nts
5.4RC2 nts

The only PHP version that would create/drop MySQL database via
phpMyAdmin is 5.3.5 nts :(

Platform is Win08R2/IIS7.5 SP1 with all current patches.
MySQL is 5.5.7-rc (official binary).

Can someone please confirm if you're able to create/drop MySQL
database on using phpMyAdmin with PHP 5.3.9RC2 or PHP5.4RC2?

phpMyAdmin reports MySQL client driver version:
5.3.9RC2 as  mysqlnd 5.0.8-dev - 20102224 - $Revision: 318113 $
5.4RC2 as mysqlnd 5.0.10-dev - 20111026 - $Revision: 318612 $


Thanks again,
Tommy

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



[PHP] Apache's .htaccess issue with absolute addressing

2011-11-27 Thread Grega Leskovšek
That is problem on my skavt.net server, but also an issue of knowledge.
I need to access my css/js/pic files with absolute addressing(starting
with /)  I can do this on my home server if I start from /var/www and
not from /var/www/peace-refuge/, but when I upload to skavt.net server
in the www/ (my root dir) the thing doesn't work any more.
What do I need to write in .htaccess file in base dir
to mark for example /www/ is base dir and when accessing a file with /my.css
will look in /www/my.css address and not in somewhere else I do not
where and I do not know how to figure that out?

I tried this
RewriteBase /www/
writing in the file /www/.htaccess

but it doesn’t work. Please help me! Thanks in advance, Grega from Slovenia

♥♥♥ When the sun rises I receive and when it sets I forgive! ♥♥♥
http://moj.skavt.net/gleskovs/    ♥ Always, Grega Leskovšek

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