Re: [PHP] Relative URLs

2005-02-21 Thread Justin French
uld've missed. Thanks, Pedro Fayolle -- PHP General Mailing List (http://www.php.net/) 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 = http://209.204.172.137/casesearch/php/home.php";>Home try $p = 'http://209.204.172.137/casesearch/php/home.php";>Home'; echo $p; --- Justin French, Indent.com.au [EMAIL PROTECTED] Web Application De

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] debugging

2005-01-18 Thread Justin French
://au2.php.net/trigger_error>. That should be more than enough for the average PHP hack, but there is of course the option to write your own custom error handler to customise the look and feel of the error messages, send emails, log things to a database, etc. It's all pretty powerful

Re: [PHP] PHP application for knowledge management?

2005-01-18 Thread Justin French
ern makes a great candidate because of it's 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 De

[PHP] custom superglobals?

2005-01-14 Thread Justin French
it worked like $_GET etc. --- 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
t;=>"2","c"=>"3")); or foo("cat","dog",{"a"=>"1","b"=>"2","c"=>"3"}); would be nice (Ruby has something like this), but I'm guessing it's not possible. But, I'm asking just in case I've missed it in the docs. 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
always clean up old 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

Re: [PHP] Coding Question

2004-12-13 Thread Justin French
" to the user. They don't need to know anything about mysql, tables, 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 readin

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

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: fu

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

[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 (htt

Re: [PHP] Is Perl faster than PHP?

2004-11-19 Thread Justin French
exactly that -- blindingly fast PHP5 shared 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 w

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. You can also experiment with strtotime()... the catch will be the

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 whe

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] 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 L

[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] Meta refresh best answer ??

2004-11-09 Thread Justin French
e hardware, 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

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 Ma

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 p

[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 ea

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 (http://www.ph

[PHP] alias a function

2004-10-26 Thread Justin French
any way to "keep up" 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
de that could be added to the above function, but hopefully it gives you enough to get 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 an

Re: [PHP] Automatic Form processor

2004-10-19 Thread Justin French
need a bad-ass HTML parser which parsed the form to "learn" what was expected and allowed -- 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 wha

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 p

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

2004-10-16 Thread Justin French
d events world-wide, I really need 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
ectly), 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-21 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-19 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
that can teach 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 (ht

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

2004-09-06 Thread Justin French
nsiderations for timezones, daylight savings, etc. UNIX timestamps are all GMT, so 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 Fr

[PHP] PHP IDE for OS X

2004-09-04 Thread Justin French
xt editor, and it has to be OS X native (not some ugly, sluggish Java 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-02 Thread Justin French
estamp. All I can think of here is to record/know the Timezone of every 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? --- Just

[PHP] uppercase sentences

2004-09-02 Thread Justin French
ences" begin with a capital 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] Regex for Validating URL

2004-09-02 Thread Justin French
d 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] trying to do too much with functions?

2004-09-02 Thread Justin French
ght offer a few more ideas. '123','b'=>'456'); echo doStuff($params); ?> '123','b'=>'456'))?> So, is that it? Have I thought of all possible options? --- 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
your bases. Regular Expressions are _probably_ what you need, but you REALLY need to provide a decent description 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
the pixel height 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 unsu

Re: [PHP] User email changes verification strategy?

2004-08-29 Thread Justin French
he verification 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 unsu

Re: [PHP] quick globalisation?

2004-08-23 Thread Justin French
); [/snip] According to http://us3.php.net/language.variables.scope you could do something like global $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

[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*/

Re: [PHP] Storing, formatting and displaying data

2004-08-20 Thread Justin French
y of Textile 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 appea

Re: [PHP] PHP templates

2004-08-15 Thread Justin French
pends on who the target author of the templates will be, and what skills they have. I've spent a lot of time in Smarty, Textpattern's XHTML based template language and many more, and in most cases *I* would prefer straight PHP, but you need to spend a little time with them and deci

[PHP] The Y2038 "bug"

2004-08-12 Thread Justin French
onsible for any 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 Genera

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] 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] 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/articlevi

[PHP] MVC pattern help?

2004-08-10 Thread Justin French
an just data, and the functions used 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] define constants within functions?

2004-08-10 Thread Justin French
read the manual section on variable scope." Ok, just figured out the problem: I didn't activate test() :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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] how to use HTTP_REFERER

2004-08-06 Thread Justin French
link, and the page will reload with the _SERVER array again, and this time there *should* be a value in the HTTP_REFERER. If there isn't, then I'd suggest wither your browser, firewall, virus protection software or your server is messing around with referrers for security or priv

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

2004-07-25 Thread Justin French
ngine 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
via a PHP script 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. may have no affect on my scripts if the TZ is not recognised by the server. --- Justin French http://indent.com.au -- PHP General Mailing

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

2004-07-22 Thread Justin French
x27;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] 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
On 19/07/2004, at 9:22 AM, C.F. Scheidecker Antunes wrote: Is there any easy and efficient way to separate files extention that vary in size? Some have 3 chars after the dot, some 2, some 1, some 4, some none. Examples: test.zip test.gz test.z test.jpeg test.jpg test (no extention) --- Justin

Re: [PHP] model view and control with php

2004-07-15 Thread Justin French
lazy :) http://www.google.com.au/search?q=MVC+PHP&ie=UTF-8&0 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. --- J

Re: [PHP] Site Planning

2004-07-15 Thread Justin French
.com>. Ask a more detailed question, and you'll get a more detailed answer. --- 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
27;', 'c' => null, 'd' => 99, 'e' => 0); print_r (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 significan

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

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

[PHP] unset empty elements in an array

2004-07-11 Thread Justin French
f(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
y by relevancy - print the contents I don't 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 L

Re: [PHP] Printing invoices

2004-06-20 Thread Justin French
- return {THIS_BIT} (no replacing 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

Re: [PHP] Simple cms type system

2004-06-10 Thread Justin French
s much as making a new one and some are just not worth 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://ww

Re: [PHP] Re: PHP Coding Standards

2004-06-02 Thread Justin French
s($file)) { include($file); } else { include('x'); } $file = 'd'; if (file_exists($file)) { include($file); } else { include('x'); } $file = 'e'; if (file_exists($file)) { include($file); } Of course, looping th

Re: [PHP] CMS with best administration part?

2004-05-30 Thread Justin French
erything else out there, and will never cost you 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 disp

Re: [PHP] Forums

2004-05-16 Thread Justin French
ssion site. Thanks, -Ryan --- 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] 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 a

[PHP] Normalising Names

2004-05-13 Thread Justin French
thing 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 irrele

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

2004-05-11 Thread Justin French
ication a lot 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.00

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

2004-05-10 Thread Justin French
nt actions into one form? One for next, one for back? Do you see the problem? I would like to avoid 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 Frenc

Re: [PHP] exclude_once(); ?

2004-05-09 Thread Justin French
e auto_append_file '' OR php_value auto_append_file NULL ... 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] Clean Open Source PHP extranet app?

2004-05-09 Thread Justin French
There's a few under "Groupware" 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

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

2004-05-06 Thread Justin French
e lines) $text = preg_replace('//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

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.ph

Re: [PHP] re-keying an array

2004-04-29 Thread Justin French
ppy to see something in a few less lines :) --- 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
ch I'm sure you'll find 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.ne

[PHP] re-keying an array

2004-04-29 Thread Justin French
ative :) 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: Re[4]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread Justin French
? 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] form textbox with search

2004-04-20 Thread Justin French
echo ""; } else { echo "your search returned 0 matches"; } } ?> Of course there's plenty more that this script could and should do, but the basics are there. You need to alter

Re: [PHP] Bookmark server

2004-04-18 Thread Justin French
g URL, 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
us with some nice basic functions for the above tasks, it's nothing you can't do yourself. A whole heap of the modifiers are straight PHP anyway, and the rest of them are quite simple to reproduce... in fact, I'm sure I have 90% of them tucked away in a library already. Smarty serve

[PHP] The Smarty Aftermath

2004-04-09 Thread Justin French
7;s functions that would give us some more simplicity? The closest I can think of is to pass the attributes in any order using 'attr=value', then using funct_get_args() to sort it all out: But this is STILL less intuitive than: something Any ideas? John --- Justin French

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 :) '> Uhhh, yeah--that's not a templating, that's called spaghetti code :) I fail to see the difference in complexity. Taking an example

Re: [PHP] smarty

2004-04-07 Thread Justin French
is that people familiar with PHP don't need to learn ANOTHER language (that's what Smarty 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.c

Re: [PHP] code design? modular?

2004-04-05 Thread Justin French
eded), 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
seriously. 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:

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

2004-03-25 Thread Justin French
ry 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://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-03-24 Thread Justin French
application/x-httpd-php 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 htt

[PHP] Zend Optimiser -- wide spread??

2004-03-21 Thread Justin French
an run 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 Templating with Standards Based HTML Delima...

2004-03-21 Thread Justin French
tern.com/ On Sunday, March 21, 2004, at 10:01 AM, Adam Reiswig wrote: Is there a good open 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

  1   2   3   4   5   6   7   8   9   10   >