Re: [PHP] Replacing accented characters?

2010-01-28 Thread Paul M Foster
this image of all of us at a table at the local Chili's twirling around in place like dogs, trying to find our asses. giggle Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating an Entire .html page with PHP

2010-01-28 Thread Paul M Foster
, then cursor back to fill it in. Not so easy when you are using PHP to generate a complex layout! Use heredocs to do it. Then you can generate the layout in PHP and still do what deal...@gmail.com said. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Paul M Foster
necessary and adds time. Instead, work out the number of items before going into the loop and simply refer to that for the number of items in controlling the loop. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DirectoryIterator

2010-01-26 Thread Paul M Foster
number of files) without having to iterate through at least once? On Linux with safe mode off you can call system(du -hcs THE_DIR) to get the size of all files, no iterations needed. This assumes the du command is available on the host system. Check first to make sure. Paul -- Paul M. Foster

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Paul M Foster
this don't block while they make connections. From the OP's description, it sounded like his phpmailer() process was blocking while it made foreign connections. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Paul M Foster
their opening PHP tags. :) Gosh, I can't believe so many people could be so *wrong*. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Paul M Foster
aren't covered with rubber over the plastic of the handles (Stanley and Klein brands). What I like about programming is that you get to build your own tools, just the way you like them. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
doesn't fire with the above code. The docs on magic methods are pretty slim, so I'm not sure what it is I'm missing. Can someone enlighten me? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
On Wed, Jan 27, 2010 at 11:19:34AM +0800, Eric Lee wrote: On Wed, Jan 27, 2010 at 11:04 AM, Paul M Foster pa...@quillandmouse.com wrote: I have a class which instantiates other classes, and has a magic method like this: function _get($classname) {        return

Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Paul M Foster
/magic, which has a more thoroughgoing understanding of ogg files. Unless someone's built a class which does this for you. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 07:21:34PM -0800, Daevid Vincent wrote: -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Tuesday, January 26, 2010 7:05 PM To: php-general@lists.php.net Subject: [PHP] Magic Methods not working I have a class which

Re: [PHP] If the first four characters are 0000, then do {}

2010-01-25 Thread Paul M Foster
(), no? if () { } From what I understand, strpos() faster than a lot of other similar string functions and much faster than regexps. You could do: if (strpos($mydata-restored, '') === 0) { do_stuff(); } Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] In need of better __FILE__, __LINE__ and __FUNCTION__ magic variables

2010-01-25 Thread Paul M Foster
outputs the backtrace. I do this when my error handler encounters E_USER_ERROR and the like. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-25 Thread Paul M Foster
installations, but if so, I'd do that. In fact, if you're just sending simple emails, you could use PHP's built-in mail() function, which will connect directly to the local mailserver without further configuration. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] SQL question

2010-01-25 Thread Paul M Foster
amounts of computation in determining intervals and durations. Typically, coders try to store dates in unix timestamps internally, and then add 86400 seconds for every day to calculate intervals and such. This is often inaccurate. Julian days are far more accurate.) Paul -- Paul M. Foster -- PHP

Re: [PHP] If the first four characters are 0000, then do {}

2010-01-25 Thread Paul M Foster
On Mon, Jan 25, 2010 at 08:12:43PM -0800, Daevid Vincent wrote: -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Monday, January 25, 2010 8:05 PM To: php-general@lists.php.net Subject: Re: [PHP] If the first four characters are , then do

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Paul M Foster
typed language like PHP that advantages of polymorphism far outweigh any potential disadvantages, especially where virtual functions are concerned. My viewpoint may be jaundiced from having programmed in C++, but the polymorphism of PHP seems a little crippled by comparison. Paul -- Paul M

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Paul M Foster
be happy to use them. OTOH, MVC (OOP on steroids) is just beyond reasonable in most cases for client sites. I will also echo that it takes a lot of time/work to correctly build OO components, compared to straight functions or function libraries. Paul -- Paul M. Foster -- PHP General Mailing List

Re: [PHP] Open Source CMS

2010-01-20 Thread Paul M Foster
- Tomato CMS - modx - xoops - Symphony Add CodeIgniter to your list. Relatively easy to understand and extend. Though I'm not sure I'd classify it as a content management system. (Same for Symfony.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Open Source CMS

2010-01-20 Thread Paul M Foster
and it will echo all over the site. This is particularly important if you're working with designers who don't know HTML but do the work of designing pages. This is just simple advice based on my experience. Feel free to ignore it completely if you work better a different way. Paul -- Paul M

Re: [PHP] header(Location:...) fails

2010-01-13 Thread Paul M Foster
it fails) unless you put something like exit(); after it. This terminates execution and forces the script to transfer control as it should. Just make it a habit to always include and exit(); call after your final header() call. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] php and XML BibTeX

2010-01-13 Thread Paul M Foster
at some point. What I'm hoping is that already exists some php classes / functions for dealing with the XML bibTeX but I haven't found them. Anyone know of any? I don't know, but the first place I look for things like that is phpclasses.org. Paul -- Paul M. Foster -- PHP General Mailing

Re: [PHP] POLL: To add the final ? or not...

2010-01-12 Thread Paul M Foster
-on. Has anyone thought to factor this in? Is that an African or European egg? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POLL: To add the final ? or not...

2010-01-12 Thread Paul M Foster
On Tue, Jan 12, 2010 at 06:08:59PM +, Ashley Sheridan wrote: On Tue, 2010-01-12 at 13:10 -0500, Paul M Foster wrote: On Tue, Jan 12, 2010 at 05:24:06PM +, Ashley Sheridan wrote: snip There's always a chance that if thrown, the egg won't contact end

Re: [PHP] Formatting Decimals

2010-01-11 Thread Paul M Foster
/book.bc.php Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting Decimals

2010-01-11 Thread Paul M Foster
() function won't do banker's rounding, as far as I know. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] corect way to use mail() function

2010-01-11 Thread Paul M Foster
() function doesn't have a parameter for the From:, how do you force it to be a certain thing in the first place? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POLL: To add the final ? or not...

2010-01-10 Thread Paul M Foster
On Sun, Jan 10, 2010 at 06:41:19AM -0800, Michael A. Peters wrote: Daevid Vincent wrote: What do you guys all do? I leave it off. I don't want to have to worry about which editor I'm using or whether I accidentally left some whitespace where it shouldn't be. Paul -- Paul M. Foster

Re: [PHP] Form validation and save the form

2010-01-10 Thread Paul M Foster
through, the value attribute will yield nothing. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Happy New Year All!

2009-12-31 Thread Paul Scott
Bipper Goes! wrote: return ThankYou; Oh god I think I blowed it up. I prefer: ?php while(date('Y') 2010) ; exit (' Happy New Year'); -- -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za All Email originating from UWC is covered by disclaimer

Re: [PHP] Happy New Year All!

2009-12-31 Thread Paul Scott
--=neXtPaRt_1262280971 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Robert Cummings wrote: Oh dear... that's terribly inefficient... Here's a better stab: True, but my design criteria included that it needed to fit into a 140 char tweet too... -- -- Paul

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2009-12-30 Thread Paul M Foster
expect to reuse, whether it's just a function, a plain class or whatever. If you implement it properly, it will be reusable elsewhere. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Appeal from Monty

2009-12-15 Thread Paul M Foster
and MySQL is known more for performance. PostgreSQL generally matches MySQL in performance, and maintains referential integrity (foreign keys and such) without the need for multiple backend storage engines. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Paul M Foster
. :-) (STA) I thought that list was swallowed by a .Net black hole? ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can't retrieve more than 1 record at the time

2009-12-09 Thread Paul M Foster
'])) unset($_SESSION['DOCIDs'] );*/ $res = null; $dbh1 = null; Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookies and carts

2009-12-07 Thread Paul M Foster
'] like I have the SESSION? First, don't use multiple cookies; already covered elsewhere. Second, you can serialize/unserialize array data and store it compactly in a cookie. See the serialize() and unserialize() functions on php.net. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Paul M Foster
and fast to pull up successive records. I wrote a C program many years ago to access xBase files: http://sourceforge.net/projects/dbfsak Unfortunately, it's not possible with this program to access individual fields by name. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] processing html forms and keeping the values

2009-11-24 Thread Paul M Foster
values in the $_SESSION array. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Paul M Foster
use and put it up on sourceforge years ago in case someone could use it.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Noob question: Making search results clickable.

2009-11-19 Thread Paul M Foster
On Thu, Nov 19, 2009 at 03:53:55PM +0100, Nisse Engström wrote: On Wed, 18 Nov 2009 10:31:59 -0500, Paul M Foster wrote: Replace your query with: SELECT title, id FROM videos WHERE topid1 = '$topic' or whatever index you have to select a particular video from your table. Replace

Re: [PHP] Noob question: Making search results clickable.

2009-11-19 Thread Paul M Foster
On Thu, Nov 19, 2009 at 03:07:42PM +, Ashley Sheridan wrote: On Thu, 2009-11-19 at 10:09 -0500, Paul M Foster wrote: snip Ahem. You are correct. I should have escaped the double quotes. I've *never* made this kind of mistake before. ;-} Paul -- Paul M

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Paul M Foster
sticking out from behind that cabinet over there? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Noob question: Making search results clickable.

2009-11-18 Thread Paul Jinks
of that video. I have a page video_display.php set up, ready to display the details from the database, but how do I connect the two? Thanks in advance Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Noob question: Making search results clickable.

2009-11-18 Thread Paul M Foster
On Wed, Nov 18, 2009 at 03:04:13PM +, Paul Jinks wrote: Hi all I'm building a fairly basic php/mySql site but I'm running into problems due to my total lack of experience. I have a database of videos - each has a title, transcript, description and one or more topics. So far I can

Re: [PHP] Shoutbox suggestion needed

2009-11-16 Thread Paul M Foster
. You may find that many more have it turned off. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 t...@marston-home.demon.co.uk 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=12553625831r=1w=2 Paul -- PHP General Mailing List (http

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

2009-11-08 Thread Paul M Foster
On Sun, Nov 08, 2009 at 06:30:37PM -0500, Robert Cummings wrote: Also, why support two libraries for which one is obviously inferior in speed and functionality? Because Tony's Radicore framework has a bunch of ereg* calls in it. ;-} Paul -- Paul M. Foster -- PHP General Mailing List

Re: [PHP] Re: UrlRewrite htaccess confusion

2009-10-29 Thread Paul M Foster
as you need. a href=?php makelink($file, $arrayOfVars); ?Something/a -- or -- echo 'a href=' . makelink($file, $arrayOfVars) . 'Something/a'; +1 I initialize a links class from the config, and then use it to serve up link text and URLs depending on the parameters I give it. Paul -- Paul

Re: [PHP] Re: Create a screenshot of a website

2009-10-28 Thread Paul M Foster
kind I know of. There is an endless variety of code for almost anything you could want to do in PHP. That's why I maintain a login there. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Paul M Foster
class. The model serves up whatever data the controller needs to feed to the view. All are welcome to disagree. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Paul M Foster
On Tue, Oct 27, 2009 at 04:11:32PM +, David Otton wrote: 2009/10/27 Paul M Foster pa...@quillandmouse.com: On Tue, Oct 27, 2009 at 05:27:07PM +1100, Eric Bauman wrote: I'm in the process of implementing an ultra-light MVC framework in PHP. It seems to be a common opinion

Re: [PHP] regex pattern for extracting URLs

2009-10-23 Thread Paul M Foster
On Fri, Oct 23, 2009 at 01:54:40PM -0400, Brad Fuller wrote: Thanks Ash you are awesome! Brad, you're violating list rules. We never say that kind of thing to Ash *where he can hear it*. Only behind his back. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] php mail() function

2009-10-23 Thread Paul M Foster
of the mailserver, and ask them if it's a problem for you to post mail from your internal webserver to their mailserver. Then ask them why such posts might bounce with a 5XX error. Paul Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] php mail() function

2009-10-22 Thread Paul M Foster
is forbidden at the destination mail server. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php mail() function

2009-10-22 Thread Paul M Foster
IP.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Spam opinions please

2009-10-20 Thread Paul M Foster
? ?php $deny = array(111.111.111, 222.222.222, 333.333.333); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header(location: http://www.google.com/;); exit(); } ?Gary Have you tried CAPTCHA? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

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 s...@sed.is 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

Re: [PHP] PHP broadcast mailer

2009-10-17 Thread Paul M Foster
to help me? Use PHPList. It's free. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Native support to MS SQL Server

2009-10-09 Thread Paul M Foster
. (No flames. I'm teasing.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

Re: [PHP] Newb question about getting keys/values from a single array element

2009-10-08 Thread Paul M Foster
($_POST[$index])) { echo The user wants fruit #$key, $value.; } } Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Insult my code!

2009-10-07 Thread Paul M Foster
who actually code for a living fall under the spell of academic rules about this or that. The real key is, does it work, and can it be maintained. If so, don't worry about people who argue esoteric points about what should or shouldn't be in models and controllers, etc. Paul -- Paul M. Foster

Re: [PHP] Apache Rewrite Issues

2009-10-07 Thread Paul M Foster
for that person, when I find them. As you can see, it causes all manner of odd problems, no matter what OS it's on. (My local LUG list is periodically hit with messages from people trying to overcome the problems attendant to this habit.) Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] Insult my code!

2009-10-07 Thread Paul M Foster
share it. The notion that OOP was going to save the world billions of hours of programming time because of re-use is bunk. It hasn't, doesn't and won't. /rant Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Insult my code!

2009-10-07 Thread Paul M Foster
On Wed, Oct 07, 2009 at 11:31:58PM +0100, David Otton wrote: 2009/10/7 Paul M Foster pa...@quillandmouse.com: I think this is a bit extreme. It really depends on what's in your parent model class. It could be something really simple, but something you don't want to have to rewrite

Re: [PHP] foreach insert error

2009-10-07 Thread Paul M Foster
be on the complete wrong track here. so far I have tried imploding the array posting an associative array. You don't actually saw what your real problem is, and I'm too lazy (and tired) to try to figure it out from your code. Can you elaborate? Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-06 Thread Paul M Foster
as silly as a = a++; except under the rarest of circumstances. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: On Wed, Sep 30, 2009 at 23:29, Paul M Foster pa...@quillandmouse.com wrote: I'm not sure how to do this. Please no exotic external libraries my shared hosting provider doesn't include. RTFM will be fine; just tell me which

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Thu, Oct 01, 2009 at 04:23:46PM -0400, Daniel Brown wrote: On Thu, Oct 1, 2009 at 16:14, Paul M Foster pa...@quillandmouse.com wrote: Okay, I've figured out how to shove the data through cURL to the receiving URL, but then it occurred to me that the client browser must go

Re: [PHP] Curl output

2009-10-01 Thread Paul M Foster
get dragged along with the original file, and thus wouldn't be there to style anything on the HTML page. Just a guess. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
external libraries my shared hosting provider doesn't include. RTFM will be fine; just tell me which Fine Manual to Read. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: On Wed, Sep 30, 2009 at 23:29, Paul M Foster pa...@quillandmouse.com wrote: I'm not sure how to do this. Please no exotic external libraries my shared hosting provider doesn't include. RTFM will be fine; just tell me which

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Thu, Oct 01, 2009 at 12:24:41AM -0400, Daniel Brown wrote: On Thu, Oct 1, 2009 at 00:16, Paul M Foster pa...@quillandmouse.com wrote: However, assuming it *wasn't*, I've found the following example from a google search (thank goodness for google's hinting or I couldn't have found

Re: [PHP] Extract links from strings

2009-09-21 Thread Paul M Foster
can I extract the URL from these strings? They can be [http:// + url] or [www. + url]. Use the preg_match() function (see http://us2.php.net/manual/en/function.preg-match.php ) and a good regular expression from a place like http://www.regexlib.com/ . Paul -- Paul M. Foster -- PHP General

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread Paul M Foster
with autoincrement fields, that the numbers placed in them are random. They are only designed to be unique within that table, to allow for easy fetching of a single unique record within the table. Autoincrement fields are not designed to be used to order the records in a table. Paul -- Paul M. Foster -- PHP

Re: [PHP] Ckeckbox list populated from database

2009-09-19 Thread Paul M Foster
that the $_POST variable contains the value you set in the value=something attribute. Checkboxes and radio buttons are tricky in this way, because they don't normally return values in the same way an input type=text ... field does. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] Does anyone here use TCPDF?

2009-09-18 Thread Paul M Foster
non-PHP tools. It's something that's very difficult to get right. Therefore, I'd suggest instead using your existing TCPDF methods to actually *build* the PDF from scratch, with additional method calls to put in your content. That is, build and populate each time you need the form. Paul -- Paul M

Re: [PHP] ie6 memory could not be read help!

2009-09-17 Thread Paul M Foster
with me and insists I use IE or Mozilla on Windows, I typically don't go there anymore. So if you're interested in driving off people who are less technologically advanced than you'd like, I think you'll probably succeed. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Paul M Foster
On Mon, Sep 14, 2009 at 08:56:59PM +0200, Andrea Giammarchi wrote: You are looking for me than, cool! I can vouch for the fact that Andrea believes he's all that. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Paul M Foster
to waste my time guys, and it is open source, maybe next time I'll keep for me Yeah, we people on this list just don't get it. So, you're gonna leave the list now, right? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reading files in PHP 5.3.0

2009-09-12 Thread Paul M Foster
On Sat, Sep 12, 2009 at 10:22:10AM -0400, tedd wrote: At 6:02 PM -0400 9/11/09, Paul M Foster wrote: I typically use us2.php.net, which is hosted by Hurricane Electric. Paul Paul: I wouldn't use Hurricane Electric if their accounts were provided for free! The following is an experience

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Paul M Foster
should switch to gmail... I think I'm reading this wrong. Are you saying that php.net is hosted with *Yahoo*? WTF? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Paul M Foster
On Fri, Sep 11, 2009 at 08:38:13AM -0700, Tommy Pham wrote: --- On Fri, 9/11/09, Paul M Foster pa...@quillandmouse.com wrote: From: Paul M Foster pa...@quillandmouse.com Subject: Re: [PHP] Reading files in PHP 5.3.0 To: php-general@lists.php.net Date: Friday, September 11, 2009, 8:57

Re: [PHP] User Account Management

2009-09-11 Thread Paul M Foster
page checks to see if the user ID in the session variable is allowed to access this page, etc. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread Paul M Foster
. If Formaldehyde is really a debugger for PHP code, then call it a PHP code debugger. The examples on your Google code page fit this. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] get an object property

2009-09-11 Thread Paul M Foster
into an object. I myself don't know what would happen. Also, what's allowed and what effects are produced could depend heavily on the version of PHP you're running. Version 4 != 5 != 5.3 in this respect. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Fixing the path

2009-09-11 Thread Paul M Foster
using a front controller, then you can use PHP server variables to get the path to that file, and use that as the reference for the location of the other files. (Or maybe I've completely misread what you're trying to do.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] Hoping for a hand with a login script

2009-09-10 Thread Paul M Foster
, I'm using CI right now, and as far as I know, it does *no* user authentication. I had to write my own routines, using their session class to save the user data. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Renaming a Directory

2009-09-09 Thread Paul M Foster
On Wed, Sep 09, 2009 at 12:11:14AM -0400, Eddie Drapkin wrote: On Wed, Sep 9, 2009 at 12:08 AM, Paul M Fosterpa...@quillandmouse.com wrote: On Tue, Sep 08, 2009 at 05:39:43PM -0400, Floyd Resler wrote: How can I rename a directory with files in it?  The rename function gives me

Re: [PHP] new php script and sqlite

2009-09-08 Thread Paul M Foster
. It's deprecated. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Renaming a Directory

2009-09-08 Thread Paul M Foster
find a *nix command which will actually rename a directory. The man pages for mv, rename and such all refer only to files, not directories. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting URL's to hyperlinks.

2009-09-08 Thread Paul M Foster
(like filter_vars). Yeah, I know, I feel like some spanish windmill hunter. I'm not sure it's well known on this list, but one resource I use for regexps is: http://www.regexlib.com/ Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Taking body of an email and storing it in MySQL database

2009-09-07 Thread Paul M Foster
. But emails are downloaded as a stream of bits, sequentially, top to bottom. Somewhere in the class is a routine which is sucking up that bit stream. At that point, you can capture it without other parsing. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Taking body of an email and storing it in MySQL database

2009-09-07 Thread Paul M Foster
On Tue, Sep 08, 2009 at 03:27:05AM +0900, Dave M G wrote: Paul, Is there a decent tutorial anywhere on the net for the pop3.class.inc available on phpclasses.org? http://www.phpclasses.org/browse/package/1120.html Maybe I'm blind, but I just can't find anywhere a decent description

Re: [PHP] mail attachment

2009-09-06 Thread Paul M Foster
, but the process is complicated, and the mail() function isn't really set up to do this. I believe the usual suggestion for users who ask this question is to use the phpmailer package. It does this more easily. Google for phpmailer. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread Paul M Foster
anyway. Like I said, just a clue. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Paul M Foster
than one). Any time you or someone else would like to backstop me in setting up a dedicated server on rackspace or somewhere else, for free or really cheap, you let me know! Otherwise, those of us with less than complete expertise in server setup are stuck with shared hosting. ;-} Paul -- Paul M

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Paul M Foster
On Fri, Sep 04, 2009 at 08:15:41PM -0400, Robert Cummings wrote: Paul M Foster wrote: On Fri, Sep 04, 2009 at 04:22:18PM -0400, Eddie Drapkin wrote: On Fri, Sep 4, 2009 at 12:02 PM, Lupus Michaelismickael+...@lupusmic.org wrote: if you're on shared hosting (but then again I am

Re: [PHP] Date Comparison

2009-09-03 Thread Paul M Foster
, newbies. You're welcome to ask questions here. Just do whatever research you can first, and follow our advice afterward, to RTFM.) Paul -- Paul M. Foster -- 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   >