Re: [PHP] Relative URLs

2005-02-21 Thread Justin French
/) To unsubscribe, visit: http://www.php.net/unsub.php --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Displaying a html line as html

2005-01-31 Thread Justin French
On 01/02/2005, at 1:05 PM, Todd Cary wrote: I have the following: $p = a href=http://209.204.172.137/casesearch/php/home.php;Home/a try $p = 'a href=http://209.204.172.137/casesearch/php/home.php;Home/a'; echo $p; --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development

Re: [PHP] debugging

2005-01-19 Thread Justin French
On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote: Justin French wrote: On 19/01/2005, at 5:36 PM, William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the line number

Re: [PHP] PHP application for knowledge management?

2005-01-18 Thread Justin French
keywords, excerpts and decent searching. I'm managing all my collaborative projects in one of two ways: - basecamp - instiki or some other wiki --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] debugging

2005-01-18 Thread Justin French
read up! --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] custom superglobals?

2005-01-14 Thread Justin French
. --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] quicker arrays as func args?

2005-01-13 Thread Justin French
. TIA --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Justin French
code to make it better. I absolutely hate working with other people's code or inheriting a project unless it's really clean and well thought out, and well documented. --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development Graphic Design -- PHP General Mailing List

Re: [PHP] Coding Question

2004-12-13 Thread Justin French
, databases, etc -- the WEBMASTER does, but not the user. --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application Development Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] remember me cookie

2004-11-25 Thread Justin French
I've done these plenty of times, but today i've decided to take a serious look at how I do it, and do it the right way. My current method is just to store the username and an md5 of the password in a couple of cookies. Is there anything else I should be doing, or an article I should be

Re: [PHP] PHP spell checker for Textarea

2004-11-24 Thread Justin French
On 25/11/2004, at 1:13 AM, Angelo Zanetti wrote: HI all, Does anyone know of a decent spell checker for an HTML textarea? most decent browsers (firefox, safari, etc) have one built in :) Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] default extension for includes?

2004-11-22 Thread Justin French
I'd like to be able to call include(thing); and have PHP automatically look for thing.html -- I know include_path can look in multiple places, but I have no idea if I can look for multiple file extensions, close matches, etc. Doubt it, but I'm asking :) Justin -- PHP General Mailing List

Re: [PHP] include files, .php or .inc ?

2004-11-22 Thread Justin French
On 22/11/2004, at 7:02 AM, Perry J├Ânsson wrote: What it the purpose of the .inc file then? It gives you a way of knowing what's a directly executable file (like index.php) and what's an included file. Further, I disallow the direct serving of all .inc files in my htaccess, so that people can't

Re: [PHP] default extension for includes?

2004-11-22 Thread Justin French
On 23/11/2004, at 12:44 PM, Jake Press wrote: Justin, 'Use the force luke' - or perhaps just write yourself a function to do this :) Sadly, included files inside functions don't inherit the global namespace, so you have to do something ridiculous like extract($GLOBALS) inside the function:

Re: [PHP] Is Perl faster than PHP?

2004-11-19 Thread Justin French
hosting with the works. Justin French --- http://justinfrench.com/ http://indent.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] database adapters

2004-11-17 Thread Justin French
Hi, Just upgraded to PHP5 and MySQL 4.1, so I'm keen to try out the mysqli_* functions, SQLite, etc etc. What I'm trying to decide here is if I should go with PHP's dbx module, or accept the fact that it's going to be quite rare for me to switch databases once an application is live, and just

Re: [PHP] Date Conversions?

2004-11-16 Thread Justin French
On 16/11/2004, at 6:29 AM, Robert Sossomon wrote: I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to display it in either format: MM-DD-YY or Month Day, Year format. Do it in PHP, not in the query, IMHO. ? $date = 04-11-28; list($year,$month,$day) = explode('-',$date);

Re: [PHP] Date handling

2004-11-15 Thread Justin French
On 16/11/2004, at 7:05 AM, Ryan wrote: I would like to find out the 'official' way to handle dates in PHP. I am aware of the limits on a Unix timestamp, but I am writing a financial application that needs to deal with dates both before 1970 and after 2038 and of course have run into problems

[PHP] adding a space every 4 chars

2004-11-11 Thread Justin French
Hi, What's the quickest way to add a space every four characters? Eg 123456789 becomes 1234 5678 9 TIA, Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] adding a space every 4 chars

2004-11-11 Thread Justin French
On 13/11/2004, at 12:20 AM, Jason Wong wrote: No idea whether it's the quickest (in terms of cpu time): $doo = '123456789'; $dah = preg_replace('/(\d{4})/', '\\1 ', $doo); echo $dah; Quickest for me is more about lines of code and simplicity, so, thanks!! Justin -- PHP General Mailing

Re: [PHP] keeping format of text in textbox

2004-11-11 Thread Justin French
On 12/11/2004, at 4:05 PM, Amanda Hemmerich wrote: I did a search for this in the archive but didn't find anything. Is there a way to preserve the format of text in a textbox that is being saved in a database and then pulled out and displayed? The people entering the data want to keep their tabs

Re: [PHP] Meta refresh best answer ??

2004-11-09 Thread Justin French
, and optimise the ___k out of your code, mark-up, and queries :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] set_include_path() isn't persistent

2004-11-08 Thread Justin French
Hi, Experimenting with set_include_path(), but it would appear that it doesn't persist for the duration of the request, just the current script. That is to say, an included file will not inherit the include_path() of the parent file. Is there any way to persist this without re-setting it on

Re: [PHP] set_include_path() isn't persistent

2004-11-08 Thread Justin French
On 09/11/2004, at 1:26 AM, John Nichel wrote: Justin French wrote: Hi, Experimenting with set_include_path(), but it would appear that it doesn't persist for the duration of the request, just the current script. That is to say, an included file will not inherit the include_path() of the parent

Re: [PHP] set_include_path() isn't persistent

2004-11-08 Thread Justin French
On 09/11/2004, at 1:19 AM, Justin French wrote: Experimenting with set_include_path(), but it would appear that it doesn't persist for the duration of the request, just the current script. Actually, it does apply to included files... I just ed up my paths :) Justin -- PHP General Mailing

Re: [PHP] alias a function

2004-10-27 Thread Justin French
On 27/10/2004, at 1:46 PM, Curt Zirzow wrote: Instead of aliasing, I would deprecate the function, so the old function would be: really hoping to alias rather than deprecate, but since it's not too easy, I'll just ditch the idea I think :) Thanks, Justin -- PHP General Mailing List

[PHP] alias a function

2004-10-26 Thread Justin French
with changes to the parent function categorise() -- in particular, having the correct number of attributes and default values, for example. TIA Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need function to process tab delimited file using associative array

2004-10-25 Thread Justin French
started. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP framework

2004-10-24 Thread Justin French
On 24/10/2004, at 4:04 AM, Igor wrote: I need to develop an PHP/MySql application (about 20 db tables and 70 screens). I was wandering if there is a solid framework out there that could help development. Also, I would appreciate any recommendations for books/docs on good development practices

Re: [PHP] Automatic Form processor

2004-10-19 Thread Justin French
-- lots of work though. If the HTML writer can be bothered writing a few lines of PHP, you could get a lot more secure. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] guessing timezone based on country/state/city

2004-10-18 Thread Justin French
On 18/10/2004, at 4:03 PM, Manuel Lemos wrote: On 10/18/2004 02:23 AM, Justin French wrote: I was hoping to do this with an educated guess based on user input like country, state and town, rather than by asking the user (who isn't too technically minded) to decide. One easy way to do what you

Re: [PHP] guessing timezone based on country/state/city

2004-10-17 Thread Justin French
On 17/10/2004, at 3:03 PM, Curt Zirzow wrote: * Thus wrote Justin French: I have an event CMS where really, I should know the TZ of the events, which can happen world wide. However the user base is not computer heads, so I can't just ask them. So, I'm faced with the prospect of making an educated

[PHP] guessing timezone based on country/state/city

2004-10-16 Thread Justin French
something less manual. TIA, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dbm choices - advice?

2004-10-14 Thread Justin French
), you probably wouldn't even notice the extra code or whatever needed. I don't think MySQL has anything built in. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] md arrays

2004-09-22 Thread Justin French
I have an array that looks something like this: $cart = Array ( [0] = Array ( [id] = LT4697 [qty] = 1 ) [1] = Array ( [id] =

Re: [PHP] PHP5 Book Recommendation?

2004-09-20 Thread Justin French
Thanks to everyone for their input -- my Amazon wishlist is a lot fatter right now :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 Book Recommendation?

2004-09-18 Thread Justin French
me everything I need to know about OOP one step at a time, geared towards good OOP design, and PHP5-specific OOP problems. TIA, --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] safely using input for mail

2004-09-12 Thread Justin French
On 13/09/2004, at 12:45 PM, John Holmes wrote: str_replace(array(\r,\n,'',$text) Is one way to do it. Typo John: str_replace(array(\r,\n),'',$text); :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread Justin French
if the times you're seeing are not as expected (and the dates you're collecting aren't GMT dates, then you'll need to dig a lot deeper -- it's depends how much accuracy you want. Justin French On 07/09/2004, at 1:59 PM, Jason FB wrote: Can anyone tell me how to convert a date stored in the format

[PHP] PHP IDE for OS X

2004-09-04 Thread Justin French
thing). --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] literal dates

2004-09-03 Thread Justin French
event, but that puts a rather large burden on the user (to get it right), so that I can apply it to the UNIX timestamp. Am I missing something here, I do I really need to know the GMT offset of every event? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net

[PHP] trying to do too much with functions?

2004-09-02 Thread Justin French
ideas. ? $params = array('a'='123','b'='456'); echo doStuff($params); ? ?=doStuff(array('a'='123','b'='456'))? ?=doStuff('a=123','b=456')? ?=doStuff('a','123','b','456'); ? ?=doStuff(a='123' b='456')? So, is that it? Have I thought of all possible options? --- Justin French http://indent.com.au

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Justin French
the question dont bore me with your silliness. No, Jason was right (in his usual, abrupt, rude kinda way). Good questions get good answers. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] uppercase sentences

2004-09-02 Thread Justin French
letter (english) would be a great start. Has any one come across a library of punctuation cleaners or something like that? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with Strings Please

2004-08-31 Thread Justin French
and multiple examples of what you want, otherwise we're just wasting time. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Probably not a php question, but here goes..how do I convert pixels to page units?

2004-08-30 Thread Justin French
and width are of my image, how do I convert it over to page units so that the image displays correctly on the pdf? I just need the equation if you guys can think of one. THanks Brent --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] User email changes verification strategy?

2004-08-29 Thread Justin French
code) to the new address. You may also choose to send a notification to the old address. When in doubt, it's best to visit other sites like yours and see how they handle it. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] quick globalisation?

2004-08-23 Thread Justin French
Is there a quicker way to globalise something other than: $a = 'foo'; $b = 'bah'; ... $GLOBALS['a'] = $a; $GLOBALS['b'] = $b; ?? I was hoping for something like $a = 'foo'; $b = 'bah'; ... makeGlobal('a','b') /*or*/ makeGlobal($a,$b); --- Justin French http://indent.com.au -- PHP General Mailing

Re: [PHP] quick globalisation?

2004-08-23 Thread Justin French
$a, $b, $c, ...; --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing, formatting and displaying data

2004-08-20 Thread Justin French
in the (GPL) source of Textpattern. [1] http://textism.com/tools/textile/ [2] http://textpattern.com/ Justin French On 20/08/2004, at 3:14 PM, Octavian Rasnita wrote: Hi all, I would like to create a program that allow users to insert text into a database, than that text to appear in a web page

Re: [PHP] PHP templates

2004-08-15 Thread Justin French
, based on your own needs. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] timestamp according to timezone?

2004-08-12 Thread Justin French
Hi, How can I get a unix timestamp of the current timezone, rather than GMT as supplied by time()? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Justin French
On 12/08/2004, at 11:26 PM, Jason Wong wrote: On Thursday 12 August 2004 21:06, Justin French wrote: How can I get a unix timestamp of the current timezone, rather than GMT as supplied by time()? What are you trying to solve? The unix timestamp is based off GMT (UTC). All calculations involving

[PHP] The Y2038 bug

2004-08-12 Thread Justin French
more short-sighted code/data that may still be around 34 years from now. My thinking is to store everything in MySQL DATETIME format (-MM-DD HH:II:SS), but perhaps there's some other thinking on the situation? --- Justin French http://indent.com.au -- PHP General Mailing List (http

[PHP] define constants within functions?

2004-08-10 Thread Justin French
If I define a constant within a function, it appears that the constant is only defined within the namespace of the function. Fair enough. Can I globalise these definitions? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] define constants within functions?

2004-08-10 Thread Justin French
','Cat'); echo PET_NAME. is a .PET_TYPE; // works ? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MVC pattern help?

2004-08-10 Thread Justin French
to retrieve and prepare the data for use in the View are part of the Model?? A few hints to help me better grasp this grey area would be appreciated! --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MVC pattern help?

2004-08-10 Thread Justin French
On 11/08/2004, at 2:20 AM, Justin French wrote: Any MVC pattern gurus out there? I have a quick question on app design following an MVC pattern (which I'm attempting for the first time). Nevermind... some extended googling helped! http://www.phppatterns.com/index.php/article/articleview/11

Re: [PHP] how to use HTTP_REFERER

2004-08-06 Thread Justin French
for security or privacy reasons. Good luck, --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Parsing error when XML version is mentioned

2004-07-26 Thread Justin French
engine echo the XML declaration, avoiding the PHP parsing errors. Regards --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] available timezones

2004-07-25 Thread Justin French
If there isn't such a function, a second option would be to check that whatever timezone I *plan* to use is available within the system. ? putenv(TZ=Australia/Melbourne) ? may have no affect on my scripts if the TZ is not recognised by the server. --- Justin French http://indent.com.au -- PHP General

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

2004-07-22 Thread Justin French
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

[PHP] current directory?

2004-07-20 Thread Justin French
I've got some weirdness with files included via a symbolic link. Is there any way I can find out what directory PHP is currently trying include from? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] separating a file extention

2004-07-18 Thread Justin French
= something.foo.bah.jpeg; $bits = explode('.',$filename); $ext = $bits[count($bits)-1]; echo $ext; ? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] model view and control with php

2004-07-15 Thread Justin French
://www.google.com.au/search?q=MVC+PHPie=UTF-80 After reading the above search results, then answer to your question is undoubtedly yes. See also http://phppatterns.com/index.php/link/category/34/ Please search the archives, search google and THEN ask here. --- Justin French http://indent.com.au -- PHP

Re: [PHP] Re: unset empty elements in an array

2004-07-12 Thread Justin French
. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: unset empty elements in an array

2004-07-12 Thread Justin French
(array_filter ($a)); // Output: Array ( [a] = foo [d] = 99 ) As a previous poster noted, though, this will only work for you if 0 and the empty string et al. are not significant in your application. Nice idea Paul, will try it out :) --- Justin French http://indent.com.au -- PHP General Mailing List

[PHP] unset empty elements in an array

2004-07-11 Thread Justin French
) { if(empty($v)) { unset($in[$k]); } } ? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Association Problem?

2004-06-21 Thread Justin French
think the association is all that much of a worry. When you're creating your PHP array of mysql rows, just add in a Nth array element for relevancy, then sort the array on that. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Printing invoices

2004-06-20 Thread Justin French
done -- probably safer for debugging and the mysteries of RTF. c) if there's a match return the value of $myInvoiceData['THIS_BIT'], replacing {THIS_BIT} Let me know if you need more help, but http://php.net/preg_replace_callback should give you enough pointers. --- Justin French http

Re: [PHP] Simple cms type system

2004-06-10 Thread Justin French
it (in mho). As mentioned here many times, http://www.opensourcecommerce.com/ let's you try a bunch of them for free on the web before downloading/installing. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: PHP Coding Standards

2004-06-02 Thread Justin French
); } else { include('x'); } $file = 'e'; if (file_exists($file)) { include($file); } Of course, looping through an array of file names would be even clearer, but you get my point :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net

Re: [PHP] CMS with best administration part?

2004-05-30 Thread Justin French
a cent. I can't speak highly enough of it right now, and the future is very bright. Justin French On 31/05/2004, at 4:51 AM, Khan wrote: Hello, I'm looking for CMS that have great administration part. I'm not interested in site displaying, speed, HTML standards or anything like that. I just need

Re: [PHP] Forums

2004-05-16 Thread Justin French
, -Ryan --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Normalising Names

2004-05-13 Thread Justin French
to lowercase, uppercase the words, then handle as many special cases as I can, but KNOWING all the special cases is half the battle. And yes, I've done a Google, but searching for terms like name and capital and format return thousands of irrelevant results amongst a few gems :) --- Justin

Re: [PHP] Normalising Names

2004-05-13 Thread Justin French
On 14/05/2004, at 1:50 PM, John W. Holmes wrote: Justin French wrote: Can someone point me in the direction of a function/library/tutorial on normalising and formatting user-inputted names so that they have the correct capitalisation etc? I remember a discussion about this on the list

Re: [PHP] loading 250kb include files, performance degration?

2004-05-11 Thread Justin French
or not. Is this even noticable while surfing the site. I am wondering about response times since I found them a bit slow (the time I click on the link until the page starts to display). Thank you for any advice, Merlin PS: The system is a p4 2.4G with 1G RAM and about 500.000PI a month. --- Justin

Re: [PHP] working with forms - loosing data on back button

2004-05-11 Thread Justin French
saving to a database before the user does not finish the whole process. There must be another solution. I guess this is a standard problem and I do just not see the solution?! --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Clean Open Source PHP extranet app?

2004-05-09 Thread Justin French
at http://www.opensourcecms.com/, but I have no idea what any of them are like... lucky this site has demo's of them all :) I don't think you'll find anything as good as Basecamp though, which is VERY slick. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net

Re: [PHP] exclude_once(); ?

2004-05-09 Thread Justin French
'' /IfModule OR IfModule mod_php4.c php_value auto_append_file NULL /IfModule ... placed in your http document root should do the trick. Of course, if the host doesn't allow per-dir .htaccess files, then you're screwed. I'd move hosts very quick. --- Justin French http://indent.com.au

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Justin French
('/!--.*?--/su','',$text); Does work so far, finger's crossed. Thanks again to John, Paul, Rob, Tom, et al. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strip comments from HTML?

2004-05-05 Thread Justin French
Hi, This isn't working: $text = preg_replace('/!--(.*)--/','',$text); Can someone advise what characters I need to escape, or whatever to get it going? TIA --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re-keying an array

2004-04-29 Thread Justin French
:) can anyone point me to the right page in the manual? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] having problems setting up ez publish

2004-04-29 Thread Justin French
a higher ratio of people who can help. Please do your homework before posting a question -- even Googling for EZ CMS forum would have got your where you needed to go. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] re-keying an array

2004-04-29 Thread Justin French
:) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re-keying an array

2004-04-29 Thread Justin French
On 30/04/2004, at 1:47 PM, Curt Zirzow wrote: foreach(array_slice($filenames, 0, 2) as $filename) { $files[] = path/to/ . $filelname; } Ahh array_slice() is EXACTLY what I was looking for :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net

Re: [PHP] form textbox with search

2004-04-20 Thread Justin French
GET or POST data is as clean and safe as possible Good luck! NOTE: the above code is obviously untested and slapped together... --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[4]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread Justin French
with? It would be quite a class. I assume you have access to the original form :) No, he wants it to work with ANY form :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bookmark server

2004-04-18 Thread Justin French
, and passing it to another URL (your bookmark server) as a GET or POST var. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: smarty

2004-04-14 Thread Justin French
... in fact, I'm sure I have 90% of them tucked away in a library already. Smarty serves a purpose, and has a market -- that's for sure. But there's no magic here, it's just an interface to a bunch of PHP functions. --- Justin French http://indent.com.au -- PHP General Mailing List (http

[PHP] The Smarty Aftermath

2004-04-09 Thread Justin French
than: txp:foo b='dog' a='cat' c='mouse'something/txt:foo Any ideas? John --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] smarty

2004-04-07 Thread Justin French
is) -- they can dive straight in. The question is, do you want to give your templater designers full access to the power of PHP, or not. In my case, I did. Justin --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] smarty

2004-04-07 Thread Justin French
On 08/04/2004, at 11:35 AM, Kelly Hallman wrote: Apr 8 at 10:26am, Justin French wrote: PHP itself is a great templating language :) h1?=$title?/h1 table ? foreach($staff as $person): ?tr td?=$person['firstname']? ?=$person['surname']?/td td?=$person['role']?/td td?=$person['phone']?/td tda href

Re: [PHP] code design? modular?

2004-04-05 Thread Justin French
needed), and call the functions as needed. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread Justin French
. LMFAO -- was just about to say the same thing, but I'd also check for at least one period too -- or is that asking too much? if( strpos($email,'@') strpos($email,'.') ) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Methods for creating HTML with PHP

2004-03-25 Thread Justin French
only knows HTML, then perhaps the full power of PHP is a little unsafe -- which is where Smarty wins. Eeek -- sorry for the long post and for straying off topic, but I think Smarty is used in situation where PHP and some well-built functions will do just fine. --- Justin French http

Re: [PHP] Re: hide php extension...

2004-03-24 Thread Justin French
/Files There's plenty Apache can do to solve your problem -- if your host doesn't allow it, move hosts... there's only two ways out of this that I'm aware of: 1. change apache 2. severely rework your file structure (as discussed already) --- Justin French http://indent.com.au -- PHP General

Re: [PHP] CMS Templating with Standards Based HTML Delima...

2004-03-21 Thread Justin French
source php based cms system out there that can do the above? I'd sure like to know about it. Thanks for any pointers! --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zend Optimiser -- wide spread??

2004-03-21 Thread Justin French
the scripts. I know optimiser is available on *my* host, but that's not enough in this case! --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CMS advice needed

2004-03-20 Thread Justin French
requirements/needs. You can trial a lot of them at http://opensourcecms.com/ for free, but I'm sure you discover (like most people who want a CMS), that the only way to get what you want is to build it from scratch. --- Justin French http://indent.com.au -- PHP General Mailing List (http

  1   2   3   4   5   6   7   8   9   10   >