php-general Digest 7 Jan 2013 18:16:55 -0000 Issue 8090

2013-01-07 Thread php-general-digest-help

php-general Digest 7 Jan 2013 18:16:55 - Issue 8090

Topics (messages 320050 through 320053):

Re: Pear Page2
320050 by: Silvio Siefke
320051 by: Tedd Sperling
320052 by: Stuart Dallas

Re: variable placeholders in a text file
320053 by: Nelson Green

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---
Hello,

On Sun, 6 Jan 2013 11:36:39 -0500
Tedd Sperling t...@sperling.com wrote:

 You said --
 
  1.) All websites are created manually. (nano + html/css Tags)
 
 -- and I replied Not mine. In other words, some of my web-sites are 
 NOT created manually. 

What do you mean I do realize. I'm just wondering, why write an email 
to the matter is insignificant.

 They are dynamically generated from user input.

When you have this situation be happy. Other site, other content, and 
other target groups.

 I don't use nano (I don't even know what that is), but what I do is 
 to create pages that pass W3C compliance and follow best practices. 
 From what I've gathered from most frameworks I've reviewed, they have 
 problems (similar to ASP) in mixing different languages in ways such 
 that compliance with W3C and accessibility issues are difficult, if 
 not impossible, to achieve.

Nano is a editor, very simple editor for Linux. http://www.nano-editor.org
Which website is the w3c compliant? No website that has many users and has 
a lot of interaction.
 
 Even CMS's have difficulty with compliance and accessibility issues 
 because of the lack of knowledge of the user/client. I have clients 
 who insist on CMS's, but then are clueless as to user issues and 
 difficulties..

Correct. 
 
 So, where does that leave a Web Developer? It leaves them with the 
 responsibility to learn and apply what they learned to their craft. 
 Is there an easy way out, such as to use a certain framework, or CMS, 
 or other such attempts at minimizing the work involved? The answer is 
 a simple  No.

I simply asked a question, nothing more, nothing less. I looked for an 
alternative. I do not need a web developer. I'm not a web developer. 
I manage a few sites, most of my Customers are hosting customers.

 Instead, you have to spend every waking hour learning and applying that 
 knowledge with openness to the possibility that you still don't understand 
 the problems involved  it's a never ending battle to educate yourself.

I have not asked about the internationalization of web pages, I ask for an 
alternative a Pear package. As I have also written the websites are manually 
created and activated for years.I want to try out just a little and learn if 
you do not understand that the problem is not with me. Internationalization 
between large and small sites is the difference. The websites that I manage 
only a different date. For this need not study. That goes with nano and a
good Database Sheet. Learning will never stop. The only thing that changes
is the speed. As a child we hjaben knowledge absorbed, today I sweep only.


Thank you for help, Kind Regards
Silvio
---End Message---
---BeginMessage---
On Jan 6, 2013, at 12:52 PM, Silvio Siefke siefke_lis...@web.de wrote:
 On Sun, 6 Jan 2013 11:36:39 -0500
 Tedd Sperling t...@sperling.com wrote:
 So, where does that leave a Web Developer? It leaves them with the 
 responsibility to learn and apply what they learned to their craft. 
 Is there an easy way out, such as to use a certain framework, or CMS, 
 or other such attempts at minimizing the work involved? The answer is 
 a simple  No.
 
 I simply asked a question, nothing more, nothing less. I looked for an 
 alternative. I do not need a web developer. I'm not a web developer. 
 I manage a few sites, most of my Customers are hosting customers.

No offense meant, but therein lies the problem. Two fold:

1. You asked a question without the intent to learn and practice.

2. By your own admission, you are not a web developer and as such you cannot 
use our advice.

This is similar to me asking about brain-surgery -- I don't know much about it, 
but I would be very reluctant to operate.

You also said:

 I'm just wondering, why write an email to the matter is insignificant.

On that point, I must agree -- I probably should not have answered. I should 
have seen you were having difficulties understanding what was being offered and 
passed on my contribution -- my apologies.

I also realize there is a language problem here -- while I cannot speak your 
language, what you say in mine and my replies, may be misinterpreted -- but in 
any case, no offense was meant.

I wish you well.

Cheers,

tedd
_
t...@sperling.com
http://sperling.com


---End Message---
---BeginMessage---
On 6 Jan 2013, at 

RE: [PHP] variable placeholders in a text file

2013-01-07 Thread Nelson Green

On Sat, 5 Jan 2013 04:20:09 -0600, Kevin Kinsey wrote:

 Nelson (et al),

 I've enjoyed reading this thread and apologize for dredging it up.
 It's interesting to see your progression of thought and the templating
 discussion is indeed a worthy one.

 However, I wanted to answer this objection from your initial message:

 The reason I ask is because I am going to want to do three substitutions,
 and I'd rather not do three str_replace calls if I don't have to.

 You *don't* have to; str_replace() is perfectly capable of handling
 arrays:

 =
 $replace = array(USER,SITENAME,SOME_CONSTANT);
 $replacements = array($user,$site_name,$foo);

 $replaced = 
 str_replace($replace,$replacements,file_get_contents(/somefile.txt));
 =

 This, of course, doesn't negate a good templating system* ... but it's
 handy to know and you'll probably use it sooner or later.

 Kevin Kinsey

 P.S. *assuming that's not an oxymoron!

Kevin,

No apologies necessary, at least not to me. I always appreciate help and
I probably wouldn't have figured out your way on my own, at least not in
relation to what I am trying to do. And you've just proved once again that
there is almost always more than one way to accomplish a goal. I like this
solution as much as what I ended up with and will keep it handy.

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