php-general Digest 9 Aug 2009 10:06:11 -0000 Issue 6275

2009-08-09 Thread php-general-digest-help

php-general Digest 9 Aug 2009 10:06:11 - Issue 6275

Topics (messages 296493 through 296504):

Re: ZCE Question
296493 by: Eddie Drapkin
296503 by: Richard Heyes

Re: PHP programming strategy
296494 by: Clancy

Readline Thread Safety Question
296495 by: MIke Alaimo

use preg_replace to nix and line with display: none
296496 by: Rob Gould
296497 by: LinuxManMikeC
296498 by: Michael A. Peters
296499 by: Rob Gould
296500 by: Rob Gould
296501 by: LinuxManMikeC

APC optimization in CLI
296502 by: Matic Meznar
296504 by: Robert Cummings

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


--
---BeginMessage---
On Sat, Aug 8, 2009 at 4:18 PM, Augusto Flavioafla...@gmail.com wrote:
 Has someone an clue about this zce question:

 The following is a common XML structure used in service oriented
 architectures, what does it represent?


 ?xml version=1.0?
 methodCall
  methodNamemyMethod/methodName
  params
  param
   valuestringHI!/string/value
  /param
  /params
 /methodCall


 Answer...
    None of the above
    A fragment of a complete SOAP request
    XML-RPC
    REST
    SOAP


 i think the answer is: SOAP


 some idea?


 thanks

 Augusto Morais


Looks like XMLRPC to me.
---End Message---
---BeginMessage---
Hi,

 Looks like XMLRPC to me.

Agreed - it's not gibberish so it can't be SOAP...

-- 
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 8th August)
Lots of PHP and Javascript code - http://www.phpguru.org
---End Message---
---BeginMessage---
On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote:

You don't need the width=210 height=300. For example, this works:

div class=pfm
 img src=Images/Nx.jpg
 p class=nrmltextnYanni Nx /p
 p class=notetextnSally Riordan Scholarship, 2007- /p
/div

I have read that if you omit the dimensions you will sometimes see the page 
reshuffle
itself as it loads, because the browser starts loading, then finds the 
dimensions are
incompatible with it's initial assumptions.  I don't know how serious a problem 
this is,
but  if the dimensions prevent it happening I am happy to provide them.
 In my scheme of things p has normal paragraph spacing, 'nrmltxtn' has zero 
spacing, and
'notetxtn' is a size smaller, also with zero line spacing.

Also, if you use first-child, it could be taken down to:

div class=pfm
 img src=Images/Nx.jpg
 pYanni Nx /p
 pSally Riordan Scholarship, 2007- /p
/div

Except that line 2 is smaller than line 1.   In my scheme of things p has 
normal
paragraph spacing, 'nrmltxtn' has zero spacing, and 'notetxtn' is a size 
smaller, also
with zero line spacing.

I could redefine p  h4 for this class (provided I never want to use the 
normal values
in it), but there is something to be said for having a standard set of fonts, 
and always
knowing what I will get, rather than having p mean something different every 
time I use
it.

And, as others have pointed out, a few thousand bytes more or less is totally 
immaterial.

---End Message---
---BeginMessage---

Hello,

I am using PHP 5.3 with readline support.   I read that PHP readline is 
never thread safe.


I do not use the readline functions in a web application.  What 
implications does this warning of thread safety have with respect to 
running normal web applications using apache2?


Thank You,

Mike
---End Message---
---BeginMessage---
I have a bunch of bullets in a list coming from a previous post, and I  
need to eliminate any line from this string that contains display:  
none



li id=bullet_ug1_col2_9 style=display: list-item;Reserved  
Frontstretch Tower Ticket to the Camping World 300 on Saturday /li
li id=bullet_2_9 style=display: list-item;Reserved Frontstretch  
Tower Ticket to the Daytona 500 on Sunday /li

li id=bullet_addon_col2_9 style=display: none;/
li id=bullet_addon3_9 style=display: none;/
li id=bullet_option2_col4_9 style=display: none;/
li id=bullet_option2_col3_9 style=display: none;/
li id=bullet_option2_col2_9 style=display: none;/
li id=bullet_option2_col1_9 style=display: none;/
li id=bullet_option3_col4_9 style=display: none;/
li id=bullet_option3_col3_9 style=display: none;/
li id=bullet_option3_col2_9 style=display: none;/
li id=bullet_option3_col1_9 style=display: none;/
li id=bullet_option4_col4_9 style=display: none;/
li id=bullet_option4_col3_9 style=display: none;/
li id=bullet_option4_col2_9 style=display: none;/
li id=bullet_option4_col1_9 style=display: none;/
li id=bullet_option5_col4_9 style=display: none;/
li id=bullet_option5_col3_9 style=display: none;/
li id=bullet_option5_col2_9 style=display: none;/
li 

php-general Digest 9 Aug 2009 22:31:48 -0000 Issue 6276

2009-08-09 Thread php-general-digest-help

php-general Digest 9 Aug 2009 22:31:48 - Issue 6276

Topics (messages 296505 through 296524):

Re: Displaying user data and picture
296505 by: tedd

Question: what are frameworks?
296506 by: Parham Doustdar
296509 by: Ralph Deffke
296510 by: Michael A. Peters
296511 by: Tony Marston
296512 by: Sudheer Satyanarayana
296513 by: Bastien Koert

Re: PHP programming strategy
296507 by: tedd
296508 by: Ashley Sheridan

Re: Can php be cause a strain on a web server
296514 by: Daniel Brown
296517 by: Jerry Wilborn
296522 by: Daniel Brown

MySQL auto_increment fields Server version: 5.1.32-community-log
296515 by: Ralph Deffke
296516 by: Jerry Wilborn
296519 by: Ralph Deffke
296521 by: Ralph Deffke
296523 by: Nisse Engström
296524 by: tedd

Re: APC optimization in CLI
296518 by: Mattias Thorslund
296520 by: Robert Cummings

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


--
---BeginMessage---

At 9:00 AM -0400 8/7/09, Bob McConnell wrote:

From: Ralph Deffke


 however there are some reasonable reasons to store a
 image in the database.
 1. if u have no access to write files to the disk this
 is the case in most free hosting services they give u
 php and mysql and thats it
 2. if u want some access control to the image, e.g. login
 controlled. server admins dont like u playing arround
 with the htaccess file
 3. its easy in those and other cases
 4. image directores are public, and apear in search engines


5. There is a natural relationship between the images and other data
already in the database, such as ID photos linked to employee numbers.


6. When you move to another server, you simply move the database and 
not the database AND image directories.


Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com
---End Message---
---BeginMessage---
Hi there,
I've heard of frameworks, but I don't quite know what they are used for. I've 
done a little search on the internet, but even though I've been able to find 
different PHP frameworks, I'm not quite sure what they offer, or in what they 
differ, or why I shouldn't just use PHP as it is.
Can someone give a little bit of explaination?
Thanks!

-- 
---
Contact info:
Skype: parham-d
MSN: fire_lizard16 at hotmail dot com
email: parham90 at GMail dot com---End Message---
---BeginMessage---
good question !! I think the word framework is modern fashion term in the
first case. in former days we used to say library C comes with a standard
library, in modern words C comes with a standard framework. I use my own
framework, means I reuse my code written for similar things before, so I use
my framework. its like a painter, he uses a ready made frame to paint what
ever he wants,

u can use the yahoo UI framework to paint ur page. A operating system is a
framework unifieing the underlaying hardware.

as in former days u said library u say more modern framework in both
cases its a bunch of functions doing some stuff the user of the framework
hasn't to take care about by using the framework.

hope that helps

ralph
ralph_def...@yahoo.de
Parham Doustdar parha...@gmail.com wrote in message
news:5c.b0.05105.f18be...@pb1.pair.com...
Hi there,
I've heard of frameworks, but I don't quite know what they are used for.
I've done a little search on the internet, but even though I've been able to
find different PHP frameworks, I'm not quite sure what they offer, or in
what they differ, or why I shouldn't just use PHP as it is.
Can someone give a little bit of explaination?
Thanks!

-- 
---
Contact info:
Skype: parham-d
MSN: fire_lizard16 at hotmail dot com
email: parham90 at GMail dot com


---End Message---
---BeginMessage---

Ralph Deffke wrote:

good question !! I think the word framework is modern fashion term in the
first case. in former days we used to say library C comes with a standard
library, in modern words C comes with a standard framework. I use my own
framework, means I reuse my code written for similar things before, so I use
my framework. its like a painter, he uses a ready made frame to paint what
ever he wants,

u can use the yahoo UI framework to paint ur page. A operating system is a
framework unifieing the underlaying hardware.

as in former days u said library u say more modern framework in both
cases its a bunch of functions doing some stuff the user of the framework
hasn't to take care about by using the framework.

hope that helps


I think framework is different than library.
Pear is a collection of libraries.
PECL (and binary modules that ship with php) are a collection of libraries.

I