Re: [PHP] Regular Expression

2011-11-04 Thread Negin Nickparsa
your welcome my Friend,I used it myself. On 11/4/11, drive view wrote: > Thanks alot Negin for the prompt reply. This is most useful. > > Regards > > Best Toni > > On Sat, Nov 5, 2011 at 6:30 AM, Negin Nickparsa wrote: > >> http://weblogtoolscollection.com/regex/regex.php >> >> On 11/4/11, driv

Re: [PHP] Regular Expression

2011-11-04 Thread drive view
Thanks alot Negin for the prompt reply. This is most useful. Regards Best Toni On Sat, Nov 5, 2011 at 6:30 AM, Negin Nickparsa wrote: > http://weblogtoolscollection.com/regex/regex.php > > On 11/4/11, drive view wrote: > > Hi > > > > I'm new to PHP. I'm currently trying understand how to ap

Re: [PHP] Regular Expression

2011-11-04 Thread Negin Nickparsa
http://weblogtoolscollection.com/regex/regex.php On 11/4/11, drive view wrote: > Hi > > I'm new to PHP. I'm currently trying understand how to apply the patterns > for the preg* commands and I am having difficulty finding a good source > explaining in detail how to build a filter. I would appre

[PHP] Regular Expression

2011-11-04 Thread drive view
Hi I'm new to PHP. I'm currently trying understand how to apply the patterns for the preg* commands and I am having difficulty finding a good source explaining in detail how to build a filter. I would appreciate if someone can direct me to such a website. Thanks Toni

Re: [PHP] What's the problem with this PHP code?

2011-11-04 Thread tamouse mailing lists
On Fri, Nov 4, 2011 at 2:52 AM, shiplu wrote: > On Fri, Nov 4, 2011 at 1:47 PM, Sophia wrote: > >> Here is the PHP code: >> >> >> > >> >> $panka = "   c:can-it-rock- >>    :the-boat-of- >> :love-  "; >> >> $pankb = preg_split(':',$panka); >> > > It should be preg_split('/:/', $panka); Maybe just

[PHP] pcre little problem

2011-11-04 Thread QI.VOLMAR QI
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);

Re: [PHP] Writing out errors to a file

2011-11-04 Thread Daniel Brown
On Thu, Nov 3, 2011 at 19:55, Rick Dwyer wrote: > Hello all. > How do I get PHP to write out any errors or warnings to a text file that I > can review and go through to troubleshoot issues? > I don't have access to the ini file... so I was hoping for a simple write to > a file at the web root.

Re: [PHP] What's the problem with this PHP code?

2011-11-04 Thread shiplu
On Fri, Nov 4, 2011 at 1:47 PM, Sophia wrote: > Here is the PHP code: > > > > > $panka = " c:can-it-rock- >:the-boat-of- > :love- "; > > $pankb = preg_split(':',$panka); > It should be preg_split('/:/', $panka); > $pankc = $pankb{"1"}; > > echo "(" . $panka . ")\n(" . $pankc . ")\n";

[PHP] What's the problem with this PHP code?

2011-11-04 Thread Sophia
Here is the PHP code: I keep getting the following error: Sophia-Shapiras-MacBook-Pro:tmp red_angel$ Sophia-Shapiras-MacBook-Pro:tmp red_angel$ php testo.php Warning: preg_split(): No ending delimiter ':' found in /Users/red_angel/tmp/testo.php on line 8 ( c:can-it-rock- :the-bo