Re: [PHP] Looking for article]

2004-08-13 Thread EE
Sorry I did not send it to the list
---BeginMessage---
Check out phpbuilder; the article is named Building Dynamic Pages With
Search Engines in Mind

http://phpbuilder.com/columns/tim2526.php3?aid=20

Hope this helps


On Fri, 2004-08-13 at 07:44, Curt Zirzow wrote:
 * Thus wrote Ashley M. Kirchner:
  
 Anyone have an article written, or can point me to one that talks 
  about converting URLS from:
  
 http://www.domain.com/script.php?var=1var=2
  
 ...to:
  
 http://www.domain.com/script/var1/var2
 
 I'm not aware of any articles but the trick basically goes like
 this:
 
 - set up the webserver to parse a file name 'script' as php
   aka with apache:
 
   Files script
 SetHandler   application/x-httpd-php
   /Files
 
 - script uses $_SERVER['PATH_INFO'] to know what was passed:
   echo $_SERVER['PATH_INFO'];
 
   results with: /var1/var2
 
 
 The rest is up to your discretion.
 
 
 Curt
 -- 
 First, let me assure you that this is not one of those shady pyramid schemes
 you've been hearing about.  No, sir.  Our model is the trapezoid!

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

[PHP] PHP5 Manual in PDF and for Pocket PCs

2004-07-30 Thread EE
Dears,
Anyone knows where can I find php5 manual in pdf format for for ppc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] [HAB] Virtual Host

2004-07-29 Thread EE
Dears,

How can I make a virtual host. I usually type 127.0.0.1 in my browser to
test my site but I need to work on another site in a different
directory? 

I am running Apache, PHP4, Mandrake 10. I am not sure which appache  I
am running but when I do 'apachectl graceful' it says Reloading httpd2

I hope that I am not running apache2 as it is not recommended to use
apache2 and php in production.

Best Regards

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



[PHP] PHP5 and Webhost

2004-07-29 Thread EE
Dears,

I have asked my webhost when will they install PHP5, he told me that not
very soon as he assured me that there will be some bugs.

Usually, when do you quys/gals think that php5 will be stable and
webhost will start to upgrade?

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



[PHP] MathML

2004-07-27 Thread EE
Dears,

I wounder if PHP support MathML? I not really not sure if actually if it
is browser function or server-side function?

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



[PHP] [Fwd: IMPORTANT: Please Verify Your Message]

2004-07-26 Thread EE
What is this? I got this message few times from php.net...
---BeginMessage---
Title: Verify Email







Hello [EMAIL PROTECTED] ,

[EMAIL PROTECTED] is currently protecting themselves from receiving junk mail using Spamcease

Just this once, click the link below so I can receive your emails.
You won't have to do this again.

http://www.tgpwizards.com/spamcease2/verify.php?id=1800309
 







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

[PHP] Can't find the rest of the this article? [HAB]

2004-07-25 Thread EE
Dears,

Can anyone tell me where can I find the rest of this artilce i.e. parts
2-6:

Building a Members Area with PHP - Part 1 of 6 -- By Ben Rowe

I tried to search/google for it on the net with but with no help. I went
to the site that where I got part 1 of 6 but with no help?

Plz help.

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



Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread EE
On Fri, 2004-07-23 at 00:06, Justin Patrin wrote:
 On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote:
  Dears,
  
  I am planing to rewrite my website. My site is tutorial-type site I
  wrote it, when I first learned php3, as an undergraduate research class.
  I think the code is sloppy as it is mixed with the HTML. I would like to
  rewrite the site utilizing the good things such OOP classes, template,
  etc. I would also like to separate my styles (CSS) from the HTML.

Do you recommend any any tutorial?
  
  I would like to have the following functions:
  
  1. Printer Friendly Version Capability
 
 You can use CSS and @media print to have *different* CSS for printing,
 right from the same site. You could also just have a different
 stylesheet that you include when the user wants to print. Or you could
 have multiple templates. Whatever floats your boat.
 
  2. Search-ability
 
 A CMS could possibly handle this, but may be a bit big for this. If
 you want search capabilities, I'd look into a local solution that
 indexes your site manually. I've had good luck with mnogosearch.
 
How about using MySQL fulltext?

  3. Search Engine Friendly
  
 
 https://www.reversefold.com/tikiwiki/tiki-index.php?page=PHPFAQs#id926344
 

I read the aritcle and it is good.

  Therefore, I have the following questions:
  
  1. What is the best way to store the tutorials. Should they be in a
  database or each in a separate HTML file.
 
 I'd go for database. But if you do that, you may want to look into
 some existing CMS software.

Do you recommend any? I'll appreciate if you point me to the right
track.

 
  
  2. How to implement the above three points?
  
  I know it is a broad question but you can help me on whatever you know?
  

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



Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread EE
On Fri, 2004-07-23 at 04:57, Justin French wrote:
 On 23/07/2004, at 6:48 AM, EE wrote:
 
  1. Printer Friendly Version Capability
 
 This can be achieved with media specific style sheets stylesheets -- no 
 need for separate templates.
 
Do you recommend any tutorial?

 
  2. Search-ability
 
 For the most part, this can be achieved with MySQL's fulltext search 
 capabilities.  You just need to wrap it all in a search GUI and results 
 page.
 
 
  3. Search Engine Friendly
 
 This relates back to #1.  If you restrict your use of HTML to only 
 semantic page elements (DIVs, H1-6s, Ps, etc), rather that filling it 
 with presentational mark-up (FONT, TABLE, etc) your pages will be 
 lighter, which will allow better indexing by search engines.  This is a 
 really quick overview of course, but standards-based web pages with all 
 presentational stuff moved to a CSS file will help SE's index your 
 content accurately, and it will be a pleasure to maintain.
 
How can I restrict my html to semantic elements? My tutorial has tables.
I don't mean styling table. I mean engineering data tables?

www.eeetc.bjaili.com/tutorial.php?num=7act=dig

how can I move presentational stuff to css file?

 This seems to be a common stylesheet set-up:
 link rel='stylesheet' media='all' href='css/basic.css' /
 link rel='stylesheet' media='print' href='css/print.css' /
 style type='text/css' media='screen'@import 
 url(css/advanced.css)/style
 
 But we're getting WAY off topic here.
 
 
  1. What is the best way to store the tutorials. Should they be in a
  database or each in a separate HTML file.
 
 Either is fine, but searching will be easier in a database -- 
 especially with MySQL's fulltext search built in.
 
 
 Search Google for specific help on any of the above, and you'll be set 
 :)
 
 
 ---
 Justin French
 http://indent.com.au
 
 
 

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



[PHP] Best practice to re-write a tutorial website

2004-07-22 Thread EE
Dears,

I am planing to rewrite my website. My site is tutorial-type site I
wrote it, when I first learned php3, as an undergraduate research class.
I think the code is sloppy as it is mixed with the HTML. I would like to
rewrite the site utilizing the good things such OOP classes, template,
etc. I would also like to separate my styles (CSS) from the HTML.

I would like to have the following functions:

1. Printer Friendly Version Capability
2. Search-ability
3. Search Engine Friendly

Therefore, I have the following questions:

1. What is the best way to store the tutorials. Should they be in a
database or each in a separate HTML file.

2. How to implement the above three points?

I know it is a broad question but you can help me on whatever you know?

Thank you in advance.

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



Re: [PHP] Re: template and file read

2004-07-21 Thread EE
On Tue, 2004-07-20 at 23:08, Jason Barnett wrote:
 Ee wrote:
 
  Dears,
  
  In one of the tutorials I read about templates, the writer is diving the
  code into multiple files. He put the menu, main, left, right, footer
  each in a separate file. He is using foreach to go through an array and
  reads all these files.
  
  Is this a good practice?
 
 I use a lot of includes in most of my scripts mostly for logical seperation of 
 libraries.  So IMHO yes, that is a good practice.  However I wouldn't bother 
 using a foreach to include each file if I know ahead of time what files I'm 
 going to need to call.
 
  Would this slow down the site?
 
 Absolutely!  Include(s) and Require(s) are some of the most expensive calls to 
 make, however that can be mitigated by using a compiler cache.  Google or check 
 the list archives for some PHP cache suggestions.

Is the compiler cache a function of the my web host or my code?

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



[PHP] template and file read

2004-07-20 Thread EE
Dears,

In one of the tutorials I read about templates, the writer is diving the
code into multiple files. He put the menu, main, left, right, footer
each in a separate file. He is using foreach to go through an array and
reads all these files.

Is this a good practice?
Would this slow down the site?

 
---THE WRITER'S CODE---

?php require_once('lib/template.php'); 

$page = new Page('std.tpl'); 

$page-replace_tags(array( 'title' = 'HOME', 
'description' = 'Welcome to my website!', 
'main' = 'dat/index.dat', 
'menu' = 'dat/menu.dat', 
'left' = 'dat/submenu.dat', 
'right' = 'dat/right.dat', 
'footer' = 'dat/footer.php')); 
$page-output(); ?


//template.php

?php class Page { 
var $page; 

function Page($template = 'std.tpl') { 
if (file_exists($template)) $this-page = join('', file($template));
else die(Template file $template not found.); 
} 

function parse($file) { 
ob_start(); 
include($file); 
$buffer = ob_get_contents(); ob_end_clean();
return $buffer; 
} 

function replace_tags($tags = array()) {

if (sizeof($tags)  0) 
foreach ($tags as $tag = $data) { 
$data = (file_exists($data)) ? $this-parse($data) : $data; 
$this-page = eregi_replace('{' . $tag . '}', $data, $this-page); 
} 
else die('No tags designated for replacement.'); 
} 

function output() { 
print($this-page); 
}
}
?

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



[PHP] Site Planning

2004-07-14 Thread EE
Can anyone point me to a good article about site planning before coding.
I searched the net but couldn't find a good one?

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



[PHP] Templates Are Driving me Nuts

2004-07-13 Thread EE
Dears,

Please help. This template thing is driving my nuts. I though maybe when
I read more articles things will clear up; however, things got even
worse. Every article writer has a different idea. Can anyone explain to
me what are Templates for? What are the advantages of using them? If I
use a third party template, will my site have a different look or is it
only a parser that will take my designed template and data and combine
them. I really don't know.

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



[PHP] PHPEdit almost as good as s*x (with a women in bikini)

2004-07-13 Thread EE
Sorry Guys,
I know that this is off-topic. In one of the sites,I saw the subject AD
{PHPEdit almost as good as s*x (with a women in bikini)}. This is really
irritating. What sex has to do with PHP. Does the PHPEdit folks think
that I will use their product if it is as good as s*x.
Sorry, really sorry.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php