Re: [PHP] Fwd: PHP Enterprise Bananas

2012-11-07 Thread Ben Edwards
Thanks everybody, looks like I was going down a blind alley, we can just run stuff from cron. Ben On 6 November 2012 17:50, Jim Lucas wrote: > On 11/06/2012 05:03 AM, Ben Edwards wrote: > >> Not sure if this was some type of joke but came across it a while ago. We >> have s

[PHP] Fwd: PHP Enterprise Bananas

2012-11-06 Thread Ben Edwards
. Ben -- *Ben Edwards - Freelance Filmmaker, Bristol, UK *http://www.funkytwig.com - View my show-reel and production services http://www.icontactvideo.org - iContact Video Network - Community Video Group http://bristol.mirocommunity.org/ - Bristol Community Channel http://bristol.mirocommunity.org

RE: [PHP] MySQL Query Help

2010-11-21 Thread Ben Miller
joined to p. So swap em around if I misunderstood. iPhone 4. It rocks! On Nov 21, 2010, at 1:37 AM, Simcha Younger wrote: > On Sat, 20 Nov 2010 13:54:29 -0700 > "Ben Miller" wrote: > >> Hi, >> >> I'm building a website for a client in which I need t

[PHP] MySQL Query Help

2010-11-20 Thread Ben Miller
eria_id, eliminating any criteria where the number of criteria_values < count($selected_product), but this seems pretty inefficient. Thanks in advance for any help. Ben Miller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Password protected directory

2010-11-02 Thread Ben Miller
he readdir/opendir function with PHP? Thanks in advance. Ben

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-01 Thread Ben Brentlinger
Reply message ----- From: "Ben Brentlinger" Date: Mon, Nov 1, 2010 08:29 Subject: [PHP] Fwd: Mail delivery failed: returning message to sender To: it could be that the person whom you tried email has reached the quota on their inbox. It's also possible that the person you tried

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-01 Thread Ben Brentlinger
it could be that the person whom you tried email has reached the quota on their inbox. It's also possible that the person you tried emailing gave you a fake email address and it's also possible that your domain might be hosted on a cheap hosting account with a company that has been known for o

Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread Ben Brentlinger
someone had responded with the isset if(isset($_POST['reallife'])) { print_r($_POST); } Richard L. Buskirk -Original Message----- From: Ben Brentlinger [mailto:b...@benbrent.com] Sent: Sunday, October 31, 2010 8:26 AM To: php-general@lists.php.net Subject: Re: [PHP] question

Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread Ben Brentlinger
thanks for your help. I just retested my code and even though it didn't work, I found the reason it wasn't working was because I had an unneeded space between the "if" and the rest of the if statement. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread Ben Brentlinger
assume you're learning php to be a freelance coder working for a company that does freelance work. The truth is, I only have an interest in learning php to use in my own business and when I get good enough, I may do some freelancing on the side on sites like Scriptlance, but my main focus will be my own business and for anyone to have the audacity that I plan on working for someone else my whole life pisses me off, so that's why I'd much rather teach myself than to take a college class on php. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Ben Brentlinger
would be to code a php script to send the data in an email. On 10/30/2010 22:28, ad...@buskirkgraphics.com wrote: If check it will submit the value of 'on' So If($_POST['test'] == "on') { Do this }else{ Do this } Richard L. Buskirk -Original Message---

[PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Ben Brentlinger
checked and a different email when it's not checked. I'm wanting to send an email to the site admin with the information given by the person who filled out the form that contains the checkbox. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SELECT AVG(rating)

2010-07-02 Thread Ben Miller
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Friday, July 02, 2010 2:43 PM To: b...@tottd.com Cc: php-general@lists.php.net Subject: Re: [PHP] SELECT AVG(rating) On Fri, 2010-07-02 at 14:32 -0600, Ben Miller wrote: > Hi - I have a MySQL table f

[PHP] SELECT AVG(rating)

2010-07-02 Thread Ben Miller
x27;]; $product[$i]['rating'] = $row2['rating']; } And then use array functions to sort and display only the first 5. Is there any easier way to get this done with a single query - something like "SELECT AVG(rating) WHERE product_id=DISTINCT(product_id)"? <&l

[PHP] Sessions and Security Concerns

2010-03-29 Thread Ben Stones
user when I call the session_start function? So do I still need to call session_regenerate_id for security purposes when an end user has entered the correct login credentials - would this be necessary since you cant set a session ID via the URL? Thanks, Ben.

[PHP] Recommended Books on Object Oriented Programming

2010-03-24 Thread Ben Stones
OP. I've looked into OOP quite a bit and understand the concept of it, and want to take it further. Any recommendations appreciated :). Thanks, Ben.

[PHP] FTP Site

2010-02-16 Thread Ben Miller
to see if this something that I can handle with just PHP, or if I'm going to need to adopt a third party Ajax app or something like that? Any thoughts or even a point in the right direction would be greatly appreciated. Thanks, Ben

[PHP] Inserting Associative array values into a MySQL INSERT statement?

2010-02-14 Thread Ben Stones
Hi, I want to be able to create a function that acts as an insert mysql function that accepts specific parameters for the fields and the values I want to insert into those respective fields and I know I'll need to use associative arrays to complete this task when passing values to the function, bu

[PHP] Sessions across subdomains

2010-01-29 Thread Ben Miller
pass a hidden input containing PHPSESSID, or do I need to pass each key=>value pair that _SESSION contains at www. and reset them as _SESSION vars at secure. <https://secure.mydomain.com> ? Thanks in advance, Ben

[PHP] Sessions across subdomains

2010-01-29 Thread Ben Miller
pass a hidden input containing PHPSESSID, or do I need to pass each key=>value pair that _SESSION contains at www. and reset them as _SESSION vars at secure. <https://secure.mydomain.com> ? Thanks in advance, Ben

[PHP] http vs https

2010-01-23 Thread Ben Miller
/script_that_calls_function.php Hope the question is clear. Thanks, Ben

[PHP] Object Oriented Programming question

2010-01-19 Thread Ben Stones
Hi, I've been learning about object oriented programming for the past few weeks and I've understood it pretty well, but I have one question. Usually with PHP scripts I make, all the functionality for a specific page is in the actual PHP file, and I'd use PHP functions in a separate directory which

[PHP] MySQL Increment/Decrement

2009-12-28 Thread Ben Miller
re the new value? Thanks in advance. Ben

RE: [PHP] Backup to local drive

2009-12-11 Thread Ben Miller
, December 11, 2009 2:39 PM To: Ben Miller Cc: 'Roberto'; php-general@lists.php.net Subject: RE: [PHP] Backup to local drive On Fri, 2009-12-11 at 14:36 -0700, Ben Miller wrote: Too much reliance on the user knowing how to extract the files to the flash drive – need something that does

RE: [PHP] Backup to local drive

2009-12-11 Thread Ben Miller
) (preferred) run the presentation via an autoplay command or b) open the presentation.html file. Ben From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Friday, December 11, 2009 2:25 PM To: Ben Miller Cc: 'Roberto'; php-general@lists.php.net Subject: RE: [PHP] Backu

RE: [PHP] Backup to local drive

2009-12-11 Thread Ben Miller
drive into a USB port and present the info on the road, regardless of connection to the internet. Ben -Original Message- From: Roberto [mailto:prof...@gmail.com] Sent: Friday, December 11, 2009 11:58 AM To: Ben Miller Cc: php-general@lists.php.net Subject: Re: [PHP] Backup to local drive Hi

[PHP] Backup to local drive

2009-12-11 Thread Ben Miller
going to need a clientSide language like javascript for this, but was wondering if maybe there was a PHP addon or something like that for downloading content to the user's PC. Thanks in advance. Ben

[PHP] Re: Can I get the IP address from a visitor?

2009-12-01 Thread Ben
I happen to have grabbed this function from php.net a while back, and have been using it since: // by "fr600 at hotmail dot com" at http://us2.php.net/getenv function getip() { if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) $ip = getenv('HTTP_CLIENT_IP');

Re: [PHP] this has got me baffled: imagesx() andimagesy()reporting the wrong size?

2009-11-15 Thread Ben
Ashley Sheridan wrote: On Sun, 2009-11-15 at 16:25 -0500, Ben wrote: Ashley Sheridan wrote: On Sun, 2009-11-15 at 15:07 -0500, Ben wrote: On my site I have a web form for users to upload graphics, however there are constraints on the size allowed. Recently, a user has been having problems

[PHP] Re: Help needed with calculation

2009-11-15 Thread Ben
Chris Payne wrote: Hi everyone, I'm not sure of the correct formula for this, if I have a file - just for example, that is 10245458756 bytes long and the download speed is 60KB a second, what formula would I use to calculate how many seconds/minutes/hours it would take to download the file? Mat

Re: [PHP] this has got me baffled: imagesx() and imagesy()reporting the wrong size?

2009-11-15 Thread Ben
Ashley Sheridan wrote: On Sun, 2009-11-15 at 15:07 -0500, Ben wrote: On my site I have a web form for users to upload graphics, however there are constraints on the size allowed. Recently, a user has been having problems, because the code is reporting the wrong size - a size too small to be

[PHP] this has got me baffled: imagesx() and imagesy() reporting the wrong size?

2009-11-15 Thread Ben
On my site I have a web form for users to upload graphics, however there are constraints on the size allowed. Recently, a user has been having problems, because the code is reporting the wrong size - a size too small to be allowed! They sent me a copy of the image so I could confirm the error

Re: [PHP] Re: Converting tables into forms

2009-10-28 Thread ben...@gmail.com
Jay, What function do you have? Thanks to everyone for their feedback. Best, Ben On Wed, Oct 28, 2009 at 9:17 AM, Jay Blanchard wrote: > [snip]If your solution requires you to create hundreds of forms, which > could > take months to code, you need to take another look at the p

[PHP] Re: Converting tables into forms

2009-10-27 Thread ben...@gmail.com
I am trying to take MySQL tables and use the table structure to create HTML/PHP forms in as few steps as possible for further development. I have a project that has hundreds of tables and requires hundreds of forms to be created and don't want to do so field by field by hand. Thanks, Be

[PHP] Converting tables into forms

2009-10-27 Thread ben...@gmail.com
Does anyone have a quick way of converting tables into forms? -- ** The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the inte

[PHP] Converting MySQL into Form

2009-10-27 Thread ben...@gmail.com
Anyone know of a way to can take Mysql tables/fields from phpMyAdmin or .sql file and quickly make into HTML forms?

Re: [PHP] FILTER_VALIDATE_INT - newbie question

2009-10-07 Thread Ben Dunlap
ean and never touch $tainted again >From the original code above, it looks like the OP was misunderstanding the use of filter_var() and expecting it to return a boolean. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FILTER_VALIDATE_INT - newbie question

2009-10-07 Thread Ben Dunlap
TE_INT. But your particular string ("0342352") will only fail FILTER_VALIDATE_INT in the filter's default configuration; set the ALLOW_OCTAL flag and it will pass: http://codepad.org/RNE5LZMr You'll still end up with an unexpected value in your final variable, though. Ben

Re: [PHP] FILTER_VALIDATE_INT - newbie question

2009-10-07 Thread Ben Dunlap
something that starts with 0 and has an 8 or a 9 in it; you'll end up with plain old 0 (presumably because PHP's internal attempt to convert from octal, fails): http://codepad.org/KBUgAZWJ Which, of course, leads to the apparent-false discussed above. Ben -- PHP General Mailing List (h

Re: [PHP] FILTER_VALIDATE_INT - newbie question

2009-10-07 Thread Ben Dunlap
get to the filter. Not sure what's going on there. At any rate it will then pass FILTER_VALIDATE_INT, but the value's not going to be what you expect. You can see it happening here: http://codepad.org/tw2qlpC1 Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-10-02 Thread Ben Dunlap
special case where you assign the variable to itself, that's ambiguous. Like Daevid said, academic at this point -- but it might shed light on some compiler-design decisions that I don't have the vocabulary for. OTOH it could just a be a unique case with unpredictable results. Ben -

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

2009-10-02 Thread Ben Dunlap
>> Seems like any way you slice it the output should be 3. I guess what's > > ... and, in fact, that /is/ how C behaves. The following code: Whereas Perl (v5.10.0) handles the construct the same way that PHP does. Curiouser and curiouser. Ben -- PHP General Mailing List (h

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

2009-10-02 Thread Ben Dunlap
int a = 2; a = a++; printf("a = [%d]\n", a); Will output "a = [3]". At least on Ubuntu 9 using gcc 4.3.3. So I retract my initial terse reply and apologize for misunderstanding your question. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-10-02 Thread Ben Dunlap
On Fri, Oct 2, 2009 at 2:37 PM, Ben Dunlap wrote: >> My issue is that I see no reason to do the ASSIGNMENT FIRST and THEN >> INCREMENT. >> >> That's just counter intuitive. In the case of $foo = $num++, everything to >> the right of the = should be computed FI

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

2009-10-02 Thread Ben Dunlap
s/ does its work after the expression that it's in has been evaluated. Are you thinking it would be more intuitive if that operator departed from its normal behavior in this one special case? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-10-02 Thread Ben Dunlap
> Can someone PLEASE explain why the developers of PHP chose this seemingly > whacky logic? It mimicks C. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread Ben Dunlap
orts of discussions of this pattern. Here's one of the clearer articles that came up on the first page of results, when I ran that search: http://www.andypemberton.com/engineering/the-post-redirect-get-pattern/ Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse Question Using list()

2009-10-01 Thread Ben Dunlap
using fgetcsv(), which will save you a step or two: http://php.net/manual/en/function.fgetcsv.php Ben -- 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 Ben Dunlap
ith its > POST payload. That might actually be the best solution because it's the most transparent, from the user's point-of-view. A 307 is going to cause many browsers to pop up a confirmation dialog, which will freak some users out -- and will break people's flow a lot more tha

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Ben Dunlap
ot; and ">" for ">"). A bit of a thorny problem because you probably do want to escape HTML-characters in the message for security purposes. I suppose you could call str_replace() after htmlspecialchars(), instead of before it as you currently do. OTOH, why not just send

Re: [PHP] variable

2009-09-24 Thread Ben Dunlap
ho $item$i; #how do I properly use this variable $item with $i? $var = "item$i"; echo $$var; Note the two dollar-signs in the second line. I wonder if a basic array would make for easier-to-read code, though: $items = array( "test" ); $i = 0; ech

Re: [PHP] Re: session.gc_maxlifetime

2009-09-24 Thread Ben Dunlap
e the new browsers where more and more users use > subwindows to have concurrent sessions, does anybody know how they handle ip > changes? I'm not. What specific situation do you have in mind in which a browser would even be aware of an IP change on the client side? Maybe there ar

Re: [PHP] Re: Does anyone here use TCPDF?

2009-09-24 Thread Ben Dunlap
> I attempted to use the same functions as FPDI/FPDF, but they did not > work in TCPDF. Which functions did you use in FPDF? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Ben Dunlap
mentRoot -- which I personally prefer not to do when I can avoid it (although that approach is debatable). Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
ctform/ It uses a 3-page process: show form, process post, show thank you. Feel free to read/criticize/modify/reuse. I hope I haven't reinvented the wheel with it, but when I looked for a "wheel" first, I couldn't find one. Ben -- PHP General Mailing List (http://www

Re: [PHP] Configure PHP 5.2.8 on AIX 5.3 With LDAP

2009-09-18 Thread Ben Dunlap
usr/lib", and that one shows up on the command line before "-L/opt/freeware/lib": > configure:53825: gcc -o conftest -I/usr/include -g -O2 > -I/opt/freeware/include -L/usr/lib -L/opt/freeware/lib -L/o > pt/freeware/lib conftest.c -lldap -llber -liconv -lm 1>&5 B

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
> The fundamental idea was to fill in a contact forum , submit it and then go > to an upload page. By "upload", do you mean "transmit the information that the user entered into the contact form"? Or is the upload page supposed to do something separate from the c

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
> if ... you have > output_buffering option enabled in the php configuration. Which is probably the case on the OP's local machine, and would explain why the code doesn't fail for him there. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

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

2009-09-17 Thread Ben Dunlap
. I agree in general, but eventually Microsoft will stop releasing security updates for IE6. It's hard to tell exactly, but right now it seems like that may happen next July: http://support.microsoft.com/gp/lifesupsps/#Internet_Explorer At that point I would consider IE6 "broke". Ben -

Re: [PHP] APC - Upload progress problem. apc

2009-09-17 Thread Ben Dunlap
ew=revision&revision=265595 So the next version up (3.1.1) from what you're currently using will include it. I guess 3.1.1 is still in "beta" but I'd personally go for beta over a custom build, at least on a first pass. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-09-17 Thread Ben Dunlap
e my stuff is functional in IE6, but to forget about pixel-perfect. But I tend to go light on Javascript in general, so it's not that big of a deal usually. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] APC - Upload progress problem. apc

2009-09-16 Thread Ben Dunlap
00 was still present in the latest available source code tarball at http://pecl.php.net/get/APC Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating alphanumeric id for a table

2009-09-14 Thread Ben Dunlap
d by another client. ... Using LAST_INSERT_ID() and AUTO_INCREMENT columns simultaneously from multiple clients is perfectly valid. Each client will receive the last inserted ID for the last statement /that/ client executed. http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html Ben --

Re: [PHP] User Account Management

2009-09-11 Thread Ben Dunlap
the "my account" page and I could get to anyone's account, even the admin's, as long as I was authenticated. Dumb mistake? Sure. Easy to make? Probably more so than one would like to think. Ben -- 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 Ben Dunlap
wser, without having to resort to web-server logs, etc. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-09-11 Thread Ben Dunlap
> Moreover, 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. Yeah, I realized that too (hence my last post to this thread) -- so, scratch CI for the present purpose.

Re: [PHP] Creating alphanumeric id for a table

2009-09-10 Thread Ben Dunlap
AUTO_INCREMENT column, immediately after inserting a row, there are different ways to do this depending on how you're connecting to MySQL. PDO, for example, has a method called lastInsertId(): http://us2.php.net/manual/en/pdo.lastinsertid.php And the mysql_* family of functions has mysql_ins

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

2009-09-10 Thread Ben Dunlap
l (although it does do session management). Solar and ZF do seem to have their own auth/access-control, though. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-09-10 Thread Ben Dunlap
t just the experience of looking at existing frameworks, seeing how they're structured, reviewing some of their code, etc., is still likely to be valuable. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-09-10 Thread Ben Dunlap
7;ve either heard good things about, or suspect are solid because of the authors involved. I'm sure there are several other good ones also. http://codeigniter.com/ http://framework.zend.com/ http://www.solarphp.com/ Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Performance of while(true) loop

2009-09-09 Thread Ben Dunlap
ell for your > usage. Sorry if I'm missing something obvious, but do the concepts of "connection", "close", and "disconnect" even apply in this case, since it's a UDP socket? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] new php script and sqlite

2009-09-09 Thread Ben Dunlap
>   $dbh = new PDO('sqlite:$db_file'); [8<] >        $dbh = new PDO('sqlite2:$db_file'); But with double-quotes, not single-quotes. ;-) Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] new php script and sqlite

2009-09-09 Thread Ben Dunlap
e   $dbh = new PDO('sqlite:$db_file'); } catch (PDOException $e) {    // verify that error occurred because sqlite3 is not supported    try {        $dbh = new PDO('sqlite2:$db_file');    } catch (PDOException $e) {        // bail out gracefully    } } Ben -- PHP General Mailing

Re: [PHP] dns lookups only half working in chroot

2009-09-09 Thread Ben Dunlap
nment, though. I've seen situations where this has happened on my internal network, but only fake hostnames that ended in ".local" were affected. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encrypt then decrypt yields extra dots at end

2009-09-09 Thread Ben Dunlap
be solved with rtrim(). Does your script actually echo "." characters (ASCII 0x2E), or is that your terminal's way of representing some non-printable character? It would surprise me if mcrypt_ecb() used the "." character as its pad, but maybe it does. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Class variable value lost

2009-09-09 Thread Ben Dunlap
gt;        parts of the page for the user (bad imho, as it relies on >        Javascript) I think any AJAX-based approached would run into the same difficulty, because each AJAX call is a separate HTTP request from the one that originally loaded the page (and from every other AJAX call). Ben -

Re: [PHP] script failing at same line

2009-09-09 Thread Ben Dunlap
it all affects your end users. Ben

Re: [PHP] script failing at same line

2009-09-04 Thread Ben Dunlap
ode to use the latter method. Either way it's creeping away from PHP so maybe I should leave it at that. Ben

Re: [PHP] script failing at same line

2009-09-04 Thread Ben Dunlap
> $map = ms_newMapObj($mapfile); > > The command creates a new mapscript object. > > And PHP is hanging somewhere inside that constructor? Is this in a web context or a command-line context? Or both?

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
ch key is "sort of like" the thing he actually needs to find. You might be able to squeeze this problem, or at least some part of it, into a regex-based solution, but I don't think it's a natural fit. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Magento shows blank page.

2009-09-03 Thread Ben Dunlap
gt; .: > Fatal error: Call to a member function createDirIfNotExists() on a > non-object in /var/www/html/magento/app/Mage.php on line 644 Sounds like your version of Magento isn't compatible with PHP 5.3 (and perhaps less-recent releases also?). Is there a newer version of Magento available? Ben -- PHP

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
going to enter the last 7 characters of the product id, but that's not how the OP characterized the problem. The OP talked about search strings where multiple characters had been omitted from different parts of the product id. Ben -- 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-03 Thread Ben Dunlap
equences and end up with this query: SELECT * FROM table WHERE prod_id REGEXP '^0.?7.?A.?B.?C.?D.?9.?8$' I think just stripping the alphanumeric characters would end up being more flexible, though. -Ben -- 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-02 Thread Ben Dunlap
bout Levenshtein distance: http://en.wikipedia.org/wiki/Levenshtein_distance PHP has a levenshtein function but you'll have to figure out a way to use it efficiently with your data set. Or, if Levenshtein isn't quite right for your needs, the article above might at least point you in a useful directio

Re: [PHP] Generic decorators and type hinting

2009-09-02 Thread Ben Dunlap
Decorator interface -- and even then, pre-existing methods in those pre-existing classes would not actually be affected. So those would have to be modified also. But maybe I'm totally missing something? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Generic decorators and type hinting

2009-09-02 Thread Ben Dunlap
in real life, and I'm guessing there are more sophisticated ways to achieve the same concept, perhaps using the Reflection API. I suspect it also needs some refining to handle protected methods. But it might be a start. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CodeWorks 09

2009-09-02 Thread Ben Dunlap
> What I would do for UK PHP events :-( Something like this perhaps? http://conference.phpnw.org.uk/phpnw09/ Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] safe_mode and inclusion of files don't work as documented

2009-09-01 Thread Ben Dunlap
s not a good idea. Security, > unfortunately, is not as simple as toggling a configuration variable. Yes -- and I always look askance at shared-hosting providers who rely on safe_mode and call it a security measure. Then when I'm done looking askance, I take my business elsewhere. Ben -- PHP Gener

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Ben Dunlap
nds them, without even looking aside to another window. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Ben Dunlap
problem while watching the network activity using something like tcpdump or Firebug's "Net" tab? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread Ben Dunlap
t supported by filter_input(). I think filter_input() is the bee's knees and I've stopped touching $_POST or $_GET directly since I discovered it. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread Ben Dunlap
I was surprised when no one recommended this: if ($_SERVER['REQUEST_METHOD'] == 'POST') So now I'm wondering if there's a pitfall to this method that I'm not aware of... Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ben Dunlap
> Which format should I used for log file? *.log or *.txt? Doesn't matter to PHP -- but you do need to provide a local path, not a URL. > [http://domain.com/log/logfile.*] or No... > [C:\some_path\domain.com\log\logfile.*] or just Yes! Ben -- PHP General Mailing List (http

Re: [PHP] user permissions

2009-08-27 Thread Ben Dunlap
7;ve found, in my second life as a system administrator, to be both easy to grasp and extremely flexible/powerful. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] user permissions

2009-08-27 Thread Ben Dunlap
enefit to roles, as such, that I'm not seeing. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] vote package

2009-08-27 Thread Ben Dunlap
phisticated operation, but maybe I'm mistaken about that. Of course source IP isn't a reliable unique-ID, for the opposite reason also: forward proxies, NAT, etc., make it pretty likely that several users will come to the site from the same IP. So you'd end up incorrectly refus

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Ben Dunlap
oportion of spam is sent in this manner -- and and how much, on the other hand, comes from a direct SMTP conversation between a malicious client and the MX server of the recipient's domain. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: unset() something that doesn't exist

2009-08-27 Thread Ben Dunlap
companies the payroll budgets just don't exist, to have well-paid senior technical staff /and/ well-paid managers. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Ben Dunlap
ough; the receiving SMTP server can simply reject the "RCPT TO" command with a 5xx error. This avoids backscatter but also lets well-behaved clients know that the destination address is invalid. AFAIK this is how Rackspace Email works (if you don't have a catch-all address configu

Re: [PHP] Re: unset() something that doesn't exist

2009-08-27 Thread Ben Dunlap
mpany I worked for -- "Member of the Technical Staff". These folks were very good at what they did, but again, not interested in, or perhaps not suited for, management. Ben -- 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   >