Re: [PHP] list of Months

2004-10-01 Thread Paul Bissex
ner. With apologies to the original poster for the drift and the perversity of this example: ".implode("\n",array_map(create_function('$n','return"".strftime("%b",strtotime("2004-$n-01"))."";'),range(1,12))).""; ?>

Re: [PHP] Naming conventions

2004-10-01 Thread Paul Bissex
underscores or both? > Without getting into personal preferences I'd say that the closest thing we have to an industry standard are the PEAR conventions: http://pear.php.net/manual/en/standards.naming.php pb -- paul bissex, e-scribe.com -- database-driven web development 413.585.80

Re: [PHP] set multiple variables

2004-10-01 Thread Paul Bissex
;REMOTE_ADDR'], $redirect_me)) { header ("Location: ..."); exit; } If the addresses you are targeting are ranges in CIDR format (e.g. 192.168.0.0/24), take a look at the PEAR package Net_IPv4. pb -- paul bissex, e-scribe.com -- database-driven web development 413.585.

Re: [PHP] array sort question

2004-10-01 Thread Paul Bissex
quot;Title"] = "Test 4"; uasort() is what you need here. Also see the usort() documentation page for an example of how to write the comparison callback function that you pass to uasort(). pb -- paul bissex, e-scribe.com -- database-driven web development 413.585.8095 69.55.

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Paul Waring
et/manual/en/ref.mcrypt.php Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] --disable-url-fopen-wrapper gone?

2004-10-06 Thread Paul Fierro
ay to change allow_url_fopen is via php.ini or httpd.conf. AFAICT, --disable-url-fopen-wrapper disappeared in PHP 4.0.4. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Determining the length (in an audio sense) of an MP3

2004-10-07 Thread Paul Reinheimer
entation for it (looking at the pecl site). Does anyone know of an decent way to determine the length of a song? What about other formats (oog, wav, etc?). thanks paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Determine variable with the lowest value?

2004-10-18 Thread Paul Fine
Than you very much Matt. Does what I needed. Now I will have to read up on "as" and the function "key". -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 11:27 AM To: BOOT Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Determine variable with the lowest va

Re: [PHP] Holocoste against palestinians

2009-01-07 Thread Paul Scott
ry list that I subscribe to (many) and I am tired of politics creeping into FREE software. I think that part of MY FREEDOM that you are infringing on is my FREEDOM from politics. If I was interested in this crap, I would subscribe to an APPROPRIATE list. Thank YOU and good luck. -- Paul All Emai

Re: [PHP] First steps towards unix and php

2009-01-09 Thread Paul Scott
On Fri, 2009-01-09 at 07:50 -0500, Daniel Brown wrote: > I'd take SMART or urpmi over yum as well, for the record. First choice is ./configure && make && make install, second choice is apt -- Paul All Email originating from UWC is covered by disclaimer http://www

Re: [PHP] First steps towards unix and php

2009-01-09 Thread Paul Scott
On Fri, 2009-01-09 at 14:53 +0200, Paul Scott wrote: > First choice is ./configure && make && make install, second choice is > apt > Even better, of course, is the: "Yo sysadmin intern! Install for me please and don't screw it up" -- Paul All

Re: [PHP] on Mapserver and php5_MapScript

2009-01-09 Thread Paul Scott
You are setting an outline colour, but the style you are using does not allow it to be displayed. Basically all you are getting is the outline and not the fill. I suggest you read the excellent mapfile docs or ask on another list. -- Paul All Email originating from UWC is covered by disclaimer ht

Re: [PHP] Re: hello

2009-01-09 Thread Paul Scott
On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > -12C in Toronto > Meh! 30C - 35C in Cape Town, South Africa almost every day for the last month. It has been a scorcher this year! -- Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/

[PHP] ANN: Chisimba-2.1.0 release!

2009-01-16 Thread Paul Scott
o please take a look at: http://avoir.uwc.ac.za/index.php?module=news&action=viewcategory&id=gen14Srv6Nme27_6705_1226737050 -- Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm -- PHP General Mailing List (http://ww

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Paul Scott
On Tue, 2009-02-17 at 10:30 +, Richard Heyes wrote: > > The *other* white meat? > > Sorry, no idea what that means. > Cats are the other white meat. Sorry have flu, may be delirious -- Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.z

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Paul Scott
On Tue, 2009-02-17 at 10:19 +, Richard Heyes wrote: > There's no reason not to use it - it works for a good many people. And > a few cats too. The *other* white meat? -- Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/port

Re: [PHP] Strange charecters

2009-03-03 Thread Paul Scott
On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: > I am using ob_start() in my application. However I am getting this error > about headers already sent. > _Any_ output will set that error off. Check for Notices, Warnings, echo's, prints and var_dumps in your code. --

Re: [PHP] User Authentication across multiple server

2009-03-06 Thread Paul Scott
ind of like a "Remember me" type deal -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Paul Gregg
In mail.php.general, Merlin Morgenstern wrote: > Hello everybody, > > I am having some trouble with utf-8 encoding. The html file containes > chinese characters and looks ok, when opened in a browser. > > Now I want to extract some text from the file. In order to do this I do: > > $handle = fo

Re: [PHP] PHP MySQL 500 Internal Error

2009-06-19 Thread Paul Scott
execute access on the file and that it ownds the directory etc -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing to a file

2009-07-03 Thread Paul Scott
Jason Carson wrote: > How would I go about writing stuff to a file but in between the > tags? > http://www.php.net/file_put_contents -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-04 Thread Paul Scott
and possibly even using a CDN or something beforehand. -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHPBB Speed Issues

2009-07-31 Thread Paul Scott
uests 3. Use an opcode cache like APC 4. Use a RAM based cache system like memcacheD and give your db a breather 5. FINALLY, throw more hardware at it. -- -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.

[PHP] Clean break.

2009-07-31 Thread Paul Halliday
Whats the cleanest (I have a really ugly) way to break this: [21/Jul/2009:00:00:47 -0300] into: date=21/jul/2009 time=00:00:47 Caveats: 1) if the day is < 10 the beginning of the string will look like "[1/... 2) the "-0300" will differ depending on DST or TZ. I don't need it though, it just ha

Re: [PHP] Re: Clean break.

2009-07-31 Thread Paul Halliday
know what you are doing :). My coding is limited to hammering away at the search box on php.net until I get a push in the right direction. It's just a hack from there. Using phpster's substr suggestion has already sped this up considerably. 2009/7/31 Ollisso : > On Sat, 01 Aug 2009 00

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Paul Scott
arning that quite thoroughly > through experience. > Congratulations! Welcome to the club :) We just had a very similar (we don't have a basement) experience with baby #2, so I feel you! It gets better, sleep is for sissies anyway :) -- -- Paul http://www.paulscott.za.net/ http://

[PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-23 Thread Paul Gardiner
www/htdocs". $_SERVER[PHP_SELF] is "/cgi-bin/index.php", so no use either. How can I do this? Is there a way to interrogate the alias, or can I set a variable in the conf file that PHP can pick up? Cheers, Paul. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-26 Thread Paul Gardiner
Paul Gardiner wrote: I want to write a simple indexing script to display a directory full of photos as a gallery of thumbnails. (There are various solutions out there for this, but they're all a bit more complicated than I need). I've added a file in /etc/apache2/conf.d that looks

Re: [PHP] Chocked

2006-12-28 Thread Paul Novitski
At 12/28/2006 03:51 PM, Skip Evans wrote: "chocked" ? "chocking" ??? RTFM: http://php.net/chocked Warm regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/ajax question

2006-12-30 Thread Paul Novitski
of an img to a PHP script. When the request is made, PHP redirects to another resource. This will affect only the image object in question, not the HTML page in which the image exists. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Snow on the logo

2007-01-01 Thread Paul Waring
s will be). Have a look at these databases, and a search for 'geoip' or 'libgeoip' on Google should get you some more results: http://www.hostip.info/ http://www.maxmind.com/app/geoip_country Hope this helps. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript detection

2007-01-01 Thread Paul Waring
On Mon, 1 Jan 2007 16:14:06 -0500, tedd <[EMAIL PROTECTED]> wrote: > Does this technique work to detect your browser's javascript setting? Not for me, it says "Javascript has not been detected on the client." when in fact I've got JavaScript enabled (Firefox 1.

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Paul Novitski
. For cross-browser javascript that measures the viewport, see Peter-Paul Koch's page: Viewport properties http://www.quirksmode.org/viewport/compatibility.html PHP and javascript can act in concert. If PHP doesn't yet know the monitor size, it can download a javas

[PHP] software recommendation: ServiceCapture

2007-01-02 Thread Paul Novitski
help to me lately while working on a PHP-Flash dialog via AMF-PHP, and will undoubtedly save time on future projects when I need to debug cookies and posts. (This is a spontaneous, unsolicited, uninvested recommendation. I just really like the software and thought you might find it useful.) Rega

Re: [PHP] Exceptions: How much is too much.

2007-01-04 Thread Paul Scott
ptions to handle SQL errors in my db abstraction object(s). That way, only real messes are caught and the script then displays a graceful exit page to the user instead of screen vomit that may scare them off. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/po

Re: [PHP] colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-14 Thread Paul Novitski
, comma ; semicolon : colon http://www.usask.ca/its/courses/cai/javascript/js_semicolon.html http://en.wikipedia.org/wiki/Punctuation http://www.cogs.susx.ac.uk/doc/punctuation/node00.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Going back with multiple submits to the same page

2007-01-15 Thread Paul Novitski
e user simply wants to reload the current page? It sounds messy. Perhaps, rather than interfering with the normal functioning of the browser, you could simply let it do its thing and take steps server-side to prevent the user from re-submitting the current form or whatever your goal is

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Paul Novitski
e, so there won't be so much processing the first time the thumbnail gallery is loaded. Regards, Paul __ Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Paul Novitski
in parent-child relationships? I'm not asking rhetorically but seriously, for discussion. How are you weighing the pros & cons of using MPTT? Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Warning: session_destroy

2007-01-20 Thread Paul Novitski
e effect, or is this some other problem? I've gotten the distinct impression from the documentation and from my own experiences that session_start() is required at the beginning of every page/script that references the session. See http://ca3.php.net/session_start including Examples 1 a

Re: [PHP] one click - two actions?

2007-01-21 Thread Paul Novitski
r for this application is the definition list: Company job 1 job 2 job 3 job 4 Company job 1 job 2 job 3 job 4 ... Regards, Paul __ Juniper Webcraft Ltd. http://juniperwebcraft.c

Re: [PHP] preg_match problem

2007-01-22 Thread Paul Novitski
eed to escape is the backslash itself. In PHP this would be: $sPattern = '[EMAIL PROTECTED]&()*;:_.\'/ ]'; (escaped apostrophe & blackslash) or: $sPattern = "[EMAIL PROTECTED]&()*;:_.'/ ]"; (escaped blackslash) or:

RE: [PHP] preg_match problem

2007-01-22 Thread Paul Novitski
t;/[EMAIL PROTECTED]&()*;:_.'\/ Also, you've got only two backslashes in your char class. PHP is reducing this to a single backslash before the space character. I think you intend this to be two backslashes in the pattern so you need four backslashe

Re: [PHP] preg_match problem

2007-01-23 Thread Paul Novitski
hem. This is all getting archived) Regards, Paul __ Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] preg_match problem

2007-01-23 Thread Paul Novitski
please post a link to a page that demonstrates it not working and give us the complete PHP statements so we can find your error. As an additional resource, here's Oliver Steele's RegExp workbench: http://osteele.com/tools/rework/ Regards, Paul __ Junip

Re: [PHP] Splitting long text

2007-01-23 Thread Paul Novitski
into text. http://php.net/explode http://php.net/implode http://php.net/array-slice Regards, Paul __ Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Splitting long text

2007-01-23 Thread Paul Novitski
ith the font size in a completely zoomable page. If the number of characters per line is allowed to change, as happens when font size changes in a fixed column width, hard carriage returns will break the wrap. Far better to let the browser handle word-wrap. Regards, Paul __

RE: [PHP] preg_match problem

2007-01-24 Thread Paul Novitski
ell so we can proofread your code. My own personal experience is that if you document and demonstrate your problem well enough that someone else can actually help you, the chances are that doing so will reveal the solution to you, like magic. Regards, Paul __ Juniper

Re: [PHP] Multi lingual pages

2007-01-24 Thread Paul Novitski
n both cases I store the text in database tables that contain a language field I can select on to match the user's request. Regards, Paul __ Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Regular Expression Problem

2007-01-24 Thread Paul Novitski
At 1/24/2007 02:27 PM, Richard Luckhurst wrote: What I am trying to do is extract the first chunk. ... preg_match('##', $xml_string,$matches); $tempstr = $matches[0]; What I actually get in $tempstr is everything from the first through to the last (second) I would have expected preg_match

Re: [PHP] sortind arrays

2007-01-24 Thread Paul Novitski
[1] => NameG [2] => Home [3] => url ) } Try multisort: http://php.net/array_multisort Regards, Paul __ Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread Paul Novitski
al Math 0 0 0 * 2^0 = 0 1 1 1 * 2^1 = 2 2 1 1 * 2^2 = 4 Regards, Paul __ Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi lingual pages

2007-01-26 Thread Paul Novitski
At 1/26/2007 12:25 PM, Otto Wyss wrote: Paul Novitski wrote: In both cases I store the text in database tables that contain a language field I can select on to match the user's request. I wonder if retrieving static texts from the database draws too much performance. I know from somebod

Re: [PHP] Select record by ID

2007-01-28 Thread Paul Novitski
at your user_id might be a numeric value (auto-increment?) and that putting it in quotes makes for an invalid query. What is the value of $result? If $result === false then display mysql_error() to diagnose the problem. Regards, Paul __ Juniper Webcraft Ltd. http

Re: [PHP] Select record by ID

2007-01-30 Thread Paul Novitski
method." http://php.net/manual/en/reserved.variables.php#reserved.variables.get I recommend that you make the online PHP manual your resource of first resort. It's got a built-in search engine: just enter php.net/searchterm into your browser address bar. Regards, Paul _

Re: [PHP] Pop up window in PHP code

2007-02-03 Thread Paul Novitski
y. I don't see that quotation marks are a problem in the script you've posted, but maybe you haven't given us an accurate copy of the whole thing. If quotes are a problem, try using heredoc: http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Paul Novitski
clean presentation: __ function drawTableRow($sqlrow) { return <<<_ {$sqlrow['time']} {$sqlrow['field']} {$sqlrow['division']} _; } __ By the way, if every cell in every row

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Paul Novitski
On Feb 3, 2007, at 10:04 PM, Paul Novitski wrote: By the way, if every cell in every row is class "tabletext" why have a class at all? You could simply apply the desired styles to the td element. At 2/3/2007 10:05 PM, Albert Padley wrote: As far as the CSS on the , other cells in

[PHP] REST, SOAP or XML-RPC?

2007-02-04 Thread Paul Scott
/for bandwidth starved Africa. Is REST/SOAP robust enough to do that? Any help would be greatly appreciated! --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: REST, SOAP or XML-RPC?

2007-02-04 Thread Paul Scott
with. I don't really want to spend so much time on this that it becomes a mission, and I _know_ that PEAR works elegantly... Thanks again for your input. I will let you know what happens. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006

Re: [PHP] REST, SOAP or XML-RPC?

2007-02-04 Thread Paul Scott
re likely to be bitten by hosts turning off allow_url_fopen > though. Oh yeah, forgot about that one! > I believe REST is the most light-weight bandwidth of the REST/SOAP/RPC > crowd... I believe so too. I am taking a look at hacking around with the PEAR channel server code. --Paul Al

Re: [PHP] Sorting issue

2007-02-07 Thread Paul Novitski
Employees.Position, Employees.LastName, etc FROM Employees, Positions WHERE Employees.Position = Positions.Position ORDER BY Positions.Sort, Employees.LastName (Assuming more than one employee per position, I figure you'd want a secondary sort criterion.) Regards, Paul

Re: [PHP] Javascript and $_POST

2007-02-07 Thread Paul Novitski
complete and it passes to the save page, none of my $_POST variables are being passed. Of course, all of your form fields need to be inside the same tags as your submit button. The sample HTML you posted did not indicate that you'd done this. Regards, Paul ______

Re: [PHP] Multi lingual pages

2007-02-09 Thread Paul Novitski
lly appropriate for this list. I'd suggest taking it to one of these: multiweb.googlegroups.com Webdesign-L WSG (Web Standards Group) Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Ma

Re: [PHP] PHP or Bridge (card game)

2007-02-10 Thread Paul Novitski
ssion for the two pursuits were, somehow, equal. So... what does this have to do with PHP? Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any Internal search engine in PHP?

2007-02-10 Thread Paul Scott
the Zend Framework. It works really well, and is pretty easy to use. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Joke of the day problem

2007-03-08 Thread Paul Novitski
the database of jokes, in whatever order, once a year. Rather than randomly selecting a record each time you pull a joke from the database, you apply any randomness you want once a year when the database is assembled. Regards, Paul __ Paul Novitski Juniper Webcraft

Re: [PHP] Separating HTML code from PHP code

2007-03-11 Thread Paul Novitski
end } plug error message into form } display form ___ If the user submits the form, the logic begins again. Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Paul Nowosielski
Dear All, I've just upgraded our systems to apache2 and php5 and all our emails are showing up as text now and not html. Any ideas?? Thank you, -- Paul Nowosielski Webmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Just upgraded to php 5, html emails showing up as text

2007-03-15 Thread Paul Nowosielski
That was the issue , thanks! On Thursday 15 March 2007 11:56, Erik Jones wrote: > Are you including a mime-type header in your mail calls? > > On Mar 15, 2007, at 1:45 PM, Robert Cummings wrote: > > On Thu, 2007-03-15 at 12:24 -0700, Paul Nowosielski wrote: > >> Dear

Re: [PHP] Name Capitalization

2007-03-19 Thread Paul Fierro
o the problem I am asking > about (other than to point it out which helps because it points out a > few of the name problems)! > > Would anyone care to work on this project together? Hi Leonard, Take a look at this Perl module - it may be of use to you: http://search.cpan.org/~summer/Lingu

Re: [PHP] Name Capitalization

2007-03-19 Thread Paul Novitski
, but name capitalization seems doomed. Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Name Capitalization

2007-03-19 Thread Paul Novitski
sted to compare notes on strategies for implementing this efficiently in PHP. Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions timing out, php5

2007-03-21 Thread Paul Nowosielski
Dear all, I'm having an issue where sessions timeout after inactivity. I have session.cache_expire set to 1440. But some users have reported sessions timing out after a couple hours. Is there another php.ini setting I need to address?? Thank you, -- Paul Nowosielski Webmaster --

[PHP] Date functions differences between php 4 and 5

2007-03-22 Thread Paul Nowosielski
The code is a pretty bad hack (why use the echo statement once when you can use it 207 times). www:/srv/www/htdocs/admin # grep -ic "echo" calendar/calendar.html 207 Any knowledge of this would be greatly appreciated. Thank you, -- Paul Nowosielski Webmaster -- PHP General Mailing

Re: [PHP] Name Capitalization

2007-03-23 Thread Paul Novitski
o de-capitalize, not an ongoing stream of new names from people who might be trained. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Name Capitalization

2007-03-24 Thread Paul Novitski
how they spell their names. There simply are no rules that apply across the board, whether applied by machine or flesh. Anything but personal interviews is just informed guesswork. Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread Paul Novitski
ator/ SQL validator: http://developer.mimer.com/validator/parser200x/index.tml Good luck and have fun! Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] link counting

2007-04-06 Thread Paul Novitski
rs to use my contact forms more, but it hasn't appeared to have had that effect. Documentation links: http://php.net/count http://php.net/pcre.pattern.syntax http://php.net/preg_match_all http://php.net/preg_match_all http://php.net/preg_split http://php.net/strtolower http://php.net/substr-count

Re: [PHP] Submitting as POST. Why?

2007-04-06 Thread Paul Novitski
can't hack your system through the querystring, but you should already be doing this anyway whether you're using POST or GET. Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.ph

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Paul Novitski
utomatic modification of significant data without thoughtful validation of incoming data. As always. Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Design Dilemma - Database Data Abstraction

2007-04-07 Thread Paul Novitski
(I can ask that all tables have at least a PK, but I can't ask that the PK is made of only one field). You can construct a single array key from multiple database fields: $aArray['pk_' . $aDataRecord['fieldA'] . '_' . $aDataRecord['fieldB']] =

Re: [PHP] mysql if empty

2007-04-09 Thread Paul Novitski
Otherwise, $result is the handle to the query's result. A successful (non-error-producing) query can return zero rows of data. A perfect example is when you check a user table to make sure a username isn't already taken before creating a new record. Read this page again carefully: http

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Paul Scott
On Mon, 2007-04-09 at 22:45 -0300, Davi wrote: > Em Segunda 09 Abril 2007 22:36, Larry Garfield escreveu: > You can't live for and from only open source projects... Why not? I do... --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2

[PHP] coding MySQL error traps [WAS: mysql if empty]

2007-04-10 Thread Paul Novitski
rror('checking user name', mysql_errno(), mysql_error(), $sql); ... function ReportSQLError($context, $errno, $errorMsg, $sql) { if (bDebug) { die("MYSQL ERROR $errno $context:/>\n$errorMsg\n$sql"); } else {

Re: [PHP] Copying PHP array into a Javascript array

2007-04-10 Thread Paul Novitski
ement to browser echo "aFileArray = new Array('$html');"; or: echo <<<_ aFileArray = new Array('$html'); _; Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array remove function?

2007-04-10 Thread Paul Novitski
d forth just to unset individual elements seems extremely inefficient. Besides, if the element values aren't unique, won't flipping the values & keys eliminate array elements that share the same value? Regards, Paul ______ Paul Novitski Juniper Webcraft Lt

Re: [PHP] php5 oop question

2007-04-11 Thread Paul Scott
t maybe creating overly complex SQL queries. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Paul Novitski
you see than the quality of what you get. ...Now that I've had my say... and as dear as this topic is to my heart... it's really off-topic for this list. I'd recommend WD-L http://webdesign-L.com/ Regards, Paul __ Paul Novitski Juniper Webcraft Lt

Re: [PHP] Cheap Ping

2007-04-12 Thread Paul Scott
On Thu, 2007-04-12 at 23:16 -0600, [EMAIL PROTECTED] wrote: > Any other suggestions? cURL. http://www.php.net/curl That will allow all the configs and stuff to be set, and you get the response in a neat variable that you can then test. --Paul All Email originating from UWC is covered

Re: [PHP] PHP RAD framework

2007-04-13 Thread Paul Scott
On Fri, 2007-04-13 at 22:26 +0800, Man-wai Chang wrote: > Any recommendation? Smarty Templates help a bit, but still need lots of > coding... http://avoir.uwc.ac.za All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm --

Re: [PHP] Cheap Ping

2007-04-13 Thread Paul Novitski
com/vb/scripts/ShowCode.asp?lngWId=8&txtCodeId=1786 Pinging a remote host in PHP (using PEAR) http://builder.com.com/5100-6371-5234592.html What's a preferred method? Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP G

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Paul Novitski
eption and because it's an ad, my guess is that it's markup imposed on the designers from the outside. I didn't see a similar structure on the few sub-pages I glanced at, so it doesn't appear to be part of the overall layout strategy. Regards, Paul ___

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Paul Novitski
we all use the same markup language that's presented somewhat differently from browser to browser. Is it possible that back in those first years of the world wide web no one was making a distinction between markup and layout? Hmm. Regards, Paul __ Paul Novitski J

Re: [PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-27 Thread Paul Gardiner
Torben Wilson wrote: 2009/8/26 Paul Gardiner : Paul Gardiner wrote: I want to write a simple indexing script to display a directory full of photos as a gallery of thumbnails. (There are various solutions out there for this, but they're all a bit more complicated than I need). I'

[PHP] What is the best way to process live data?

2009-08-29 Thread Paul Halliday
For those of you that remember (not likely but anyway) I am working on some code that splits CLF records and feeds them into a database. What I need to do now is automate it. So what I have is a program (urlsnarf) that redirects its output (simple "cmd > file.txt") to a file. The script currently

[PHP] what is php4 popularity?

2009-10-08 Thread Paul M.
Hey guys, does anyone have a good link for an article where php4 popularity trends are examined? The best way for me to know php4 % and php5 %. I appreciate any good suggestions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: what is php4 popularity?

2009-10-08 Thread Paul M.
Eric Bauman wrote: On 8/10/2009 4:28 PM, Paul M. wrote: Hey guys, does anyone have a good link for an article where php4 popularity trends are examined? The best way for me to know php4 % and php5 %. I appreciate any good suggestions. Here's a pretty graph comparing PHP version usage and

Re: [PHP] ip-to-country

2009-10-19 Thread Paul Halliday
You might find this useful: http://sites.google.com/site/interrupt0x13h/code/ip2c On Sun, Oct 18, 2009 at 4:03 PM, SED wrote: > Hi, > > How can I access an index for IP to a country (or a more detailed location)? > I have not yet found a function for that in PHP nor a free to use website > that

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Paul Fierro
On 11/9/09 8:56 AM, Tony Marston wrote: > I have tried subscribing to the internals list, but none of my postings ever > appears. That's unfortunate as you missed this thread: http://marc.info/?t=12553625831&r=1&w=2 Paul -- PHP General Mailing List (http://www.php.n

<    2   3   4   5   6   7   8   9   10   11   >