Re: [PHP] Mysqli Extension
On Aug 19, 2013 2:32 PM, Ethan Rosenberg erosenb...@hygeiabiomedical.com wrote: Dear List - My mysqli extension seems to have gone away. (REACTED) Remember: avoid putting passwords - especially for root users - on a public mailing list, which is also permanently archived. echo hello2br /; var_dump(function_exists('mysqli_connect'));// this returns boo(false) $db = 'Store'; $cxn = mysqli_connect($host,$user,$password,$db); I tried to reinstall - rosenberg:/home/ethan# apt-get install php5-common libapache2-mod-php5 php5-cli Reading package lists... Done Building dependency tree Reading state information... Done libapache2-mod-php5 is already the newest version. libapache2-mod-php5 set to manually installed. php5-cli is already the newest version. php5-cli set to manually installed. php5-common is already the newest version. php5-common set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. It did not help. TIA Ethan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session Vars not staying active
On Aug 3, 2013 3:03 PM, dealTek deal...@gmail.com wrote: Hi all, I am having trouble with session vars. I'm trying to implement the credit card direct pay method outlined here... http://developer.authorize.net/api/dpm/ - Basically, page 1 is my form that goes outside my site to the cc gateway company then comes back with a result... (PG2) Problem: if I try to create session vars on page 1 - they don't work on page 2. Am I correct in thinking that when this process leaves my site and goes to the gateway, then returns, it is similar to creating a new session and that is why the session vars don't remain active? Thanks in advance. Are you calling session_start() on both pages or at least using a session auto start? Also, is the API returning the data by redirecting the client (browser) or doing a postback? If the remote server is calling back behind the scenes, then you'll need a workaround and additional processing, or the ability to pass the session ID and assume the client-initiated session (not ideal). If it's all processed by the browser, the redirection should have no bearing, as the session will persist based upon the server-side data and the client-side cookie; the server will have no knowledge of the client's redirection to the payment gateway (nor any remote destination).
Re: [PHP] Wrong time being displayed by PHP!
On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford rich...@underpope.com wrote: The value of date.timezone in php.ini is set to America/Los_Angeles. The local time is 11:02 a.m. Yet the output of date(h:i a e) is: 02:02 pm America/Los_Angeles which is three hours ahead of the real time. Why is this? What's going on? Your server time is probably set incorrectly. That's EDT, not PDT, so it sounds like the timezone is what you expect, but the system time is incorrect. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: A Question of SESSION
On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling t...@sperling.com wrote: 3. Looking for an explanation, I came across Daniel's post to the PHP manual, which follows: http://www.webbytedd.com/b/sessions3 Now I am totally bonkers. What am I not getting? Anything. Because that page 404's. ;-P Chances are, what you may be seeing as a post I made is, in fact, just someone else's user note submission which I edited. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: A Question of SESSION
On Thu, Jun 7, 2012 at 11:20 AM, Daniel P. Brown daniel.br...@parasane.net wrote: On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling t...@sperling.com wrote: 3. Looking for an explanation, I came across Daniel's post to the PHP manual, which follows: http://www.webbytedd.com/b/sessions3 I see: http://www.webbytedd.com/b/sessions2/ (not 3). And yes, I edited the note, I didn't submit it. Now I am totally bonkers. What am I not getting? Anything. Because that page 404's. ;-P Chances are, what you may be seeing as a post I made is, in fact, just someone else's user note submission which I edited. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cyberweaponry
On Jun 3, 2012 12:05 PM, Tedd Sperling t...@sperling.com wrote: On May 31, 2012, at 7:45 PM, Ross McKay wrote: He said that this was unusual because typically such viruses are written in languages like Ruby-on-Rails and such. Um, really? I very much doubt that. AFAIK, most true viruses are written in a compiled language, and many trojans as well. RoR websites would definitely be a vulnerability target though... Yeah, that's what I thought, but this guy was held out to be one of the foremost experts on cyber-warfare. So, I listened and asked. Actually, that's not true anymore. Flame was indeed written in Lua (and you can find the source if you look), and while that choice of language is a bit surprising, since it's a gaming language, the choice of distributing a script-based virus/worm is not unique. Remember, WSH viruses and worms, though not as prevalent today, were some of the most widespread and destructive forms of malware in history --- a la Loveletter/Lovebug/ILOVEYOU.
Re: [PHP] Variables are empty only in fwrite
On Thu, Mar 15, 2012 at 11:30, Larry lrr...@gmail.com wrote: Hello, when I pass a variable whose value originally came from $_GET or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty string. Note that the file is successfully opened and written to by the script, but the variable that originally came from $_GET does not have its value interpolated in the text file, even though it does get interpolated in the echo(). Code ? $meh = $_GET[q]; $writeline = : . $meh . : . strlen($meh) . PHP_EOL; echo ( $writeline ); $fp = fopen(/tmp/wtf.log,w+); fwrite($fp, $writeline ); fclose($fp); var_dump($writeline); ? Are you sure it's not a permissions-based issue, perhaps when writing as the normal user, then the user as which the web server runs, et cetera? What happens if you completely remove /tmp/wtf.log and re-run your script with the appended query string? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error in portuguese translation of substr_compare
Forwarded to the proper address. Docs PT/PT-BR folks, please see the below email. Thanks, and happy new year! On Fri, Dec 30, 2011 at 14:35, QI.VOLMAR QI qi.vol...@gmail.com wrote: I was read substr_compare description in portuguese language, an I asked myself to test it, so after several test, I found that its wrong. The text is in Portuguese: Se length é igual ou maior que o comprimento de main_str e length é setado, substr_compare() imprime warning e retorna FALSE. That is translated: If length is equal or bigger than size of main_str and length is setted, substr_compare() prints a warning and return FALSE The original is: If offset is equal to or greater than the length of main_str or length is set and is less than 1, substr_compare() prints a warning and returns FALSE. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: php-general Digest 9 Dec 2011 20:09:28 -0000 Issue 7604
On Mon, Dec 12, 2011 at 16:06, David Savage dsav...@cytelcom.com wrote: I thought I posted this in the php.net web site under the ksort user notes, but I don't know if it would be approved to be placed in the web site. Would ksort($sortarr,SORT_STRING) on a 1 dimensional array with a key comprised of a person's name, -, and time stamp I..E. (key: david savage-2011-12-12 14:43:00) actually delete duplicate keys from the array, if there were two keys the same ? Did not see anything regarding this in the user notes of ksort page in php.net If it's a question posted there as a user note, I would delete it. I put up a big sign on the page for posting user notes months ago, complete with an XKCD strip, but somehow still, no one seems to notice it (or read it, at least). -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php on my pc, no go, FUBAR, thank you Bill Gates?
On Tue, Oct 4, 2011 at 09:47, Kirk Bailey kbai...@howlermonkey.net wrote: I installed it in a Windows XP PC with a cgi capable server in it. No dice, nothing happens. I also installed python in the same computer. Works perfect. NEITHER language modified the http server. So, what do I have to do to get php to play well with others in a XP environment? Cute remarks about install Linux shall be ignored as line-noise. To just get up and go, consider using a Windows package such as XAMPP. It'll automatically install and configure the basics. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP installations, usage, and popularity
On Mon, Sep 19, 2011 at 17:08, Tedd Sperling tedd.sperl...@gmail.com wrote: As such, I need information regarding how wide-spread PHP is (i.e., number of installations), who's using it (i.e., companies, organizations), and how it compares with other Web Languages (i.e., ASP, Ruby, etc.). There's no really good metric in recent history (since about Netcraft's 2007 survey, I guess) that shows PHP's installation figures --- not even a general representation. Back in early 2009 (as in, almost three years ago), I used Google's 'filetype' filter to get an approximation and posted the results on this list and on one of my sites[1]. I'm working on finishing a new version of my own software which will sample millions of domains and query them to see if they report having PHP installed as well, but I don't expect those results to be available for some time to come. I have, however, been thinking of making it a real-time counter, which would then show the stats as things run. As for who's using it, that's a question with an unending answer. Facebook was built in PHP, which is perhaps the most glaring argument by itself, and one to which most folks can instantly relate, as they're more likely to be a user than not, according to Facebook's market saturation statistics. Other sites and companies include Yahoo!, Google, NBC, Verizon, and - as you know - LCC-MAHE. On top of that, what most folks may not realize, is that the White House website (http://www.whitehouse.gov/) uses Drupal, which is also written in PHP. In fact, a fun fact for now is that regular freelance developers aren't the only ones who drop the ball sometimes and let error messages display on the web. So does the White House[2]. Other US government body websites that have used and/or continue to use PHP include the US Congress, the Library of Congress, the National Oceanic and Atmospheric Administration (NOAA), the National Aeronautics and Space Administration (NASA), the Department of Justice (DOJ), most state government websites, and all five branches of the armed services. ^1: http://links.parasane.net/nc8d ^2: http://links.parasane.net/zdzu -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please help to unsubscribe
On Sat, Aug 27, 2011 at 15:45, Eli Orr eli@logodial.com wrote: The advised email to unsubscribe does not work: php-general-unsubscr...@lists.php.net It should work just fine, but I had checked and I don't even see any subscribers to the General mailing list with 'logodial' anywhere in their address. Are you still having issues? If so, it sounds like perhaps you subscribed using a forwarder. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dreaded Premature end of script headers
On Sat, Aug 27, 2011 at 01:01, Jim Lucas li...@cmsws.com wrote: Well, you might have to go about this the long way. I suggest you cut larger sections of code out until you get a working script. Then start putting it back together. If possible, I'd also try running it from the production box CLI. It may give you some insight, such as a missing symlink or different path structure in a file include. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] form validation
On Sun, Aug 14, 2011 at 18:19, Ford, Mike m.f...@leedsmet.ac.uk wrote: The last part of that test is redundant, since if $_POST['market'] is NULL isset($_POST['market'] will be FALSE. Good catch. Didn't even notice I typed that. Not that it would've done any damage, but a good reminder why code here is not meant to be blindly copied-and-pasted. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] form validation
On Fri, Aug 12, 2011 at 11:42, Chris Stinemetz chrisstinem...@gmail.com wrote: I have a select menu created by a foreach loop. I am trying to validate that there was a selection made before it is submitted to the database. But I am not doing something correctly. Try using a combination of isset, empty, and is_null() instead: ?php if (!isset($_POST['market']) || empty($_POST['market']) || is_null($_POST['market'])) { // Wasn't set } ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] text insertion
:On Wed, Aug 10, 2011 at 16:02, Chris Stinemetz chrisstinem...@gmail.com wrote: Are you sure its not preserved? When you output text in a browser, by default its output as html, not plain text. Html ignores extraneous whitespace, and doesn't use a monospaced font, so formatting text into columns in a textarea won't work either. Look at the html source code to see what is actually being output. Thanks Ashley Source is showing indentation and new paragaraphs just as I inserted the text. How can I get HTML output to show same format? Use HTML 'pre' tags: pre?php echo $your_content; ?/pre -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] text insertion
On Wed, Aug 10, 2011 at 17:37, Chris Stinemetz chrisstinem...@gmail.com wrote: No luck. Thanks. Per list rules, please don't top-post. If the situation you're describing is accurate and correct, then pre is indeed what you want. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A php bug or?..
On Mon, Aug 8, 2011 at 16:20, Andre Polykanine an...@oire.org wrote: Hi everyone, As we all know, count() returns 1 if the variable is not an array. Question is: why in the world does it this? If a variable is *notA* an array, it contains *zero* array elements. You can answer: but no, man, you can say $x=world; $y=$x{3}; // $y=l so the variable is treated or can be treated as an array. Well. If strings are treated like arrays, why count($x) doesn't return 5 instead of 1? Just asking. Using count() will return the number of items passed in the first parameter. If it's an array, each element is an item. If it's a string, the string is an item. If it's an object, logically, the items depend on what is contained in the object. However, at no time does it return the number of characters within a string --- instead, as you likely know, you'd use strlen(). -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A php bug or?..
On Mon, Aug 8, 2011 at 16:41, Andre Polykanine an...@oire.org wrote: For sure. But I'm asking: why it doesn't return 0 if it is not an array? Logically: no array - no items! No, actually, if it's a string, it's a single item --- thus, 1. The documentation should probably reflect that as well. It wasn't always this way before, though --- in older version of PHP5 it returned 0, and in all versions of PHP4 it did as well. Also, keep in mind that a blank string still constitutes a string and will return 1, but null or nonexistent variables will still return 0. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] form hidden value
On Mon, Aug 8, 2011 at 17:23, Chris Stinemetz chrisstinem...@gmail.com wrote: input type=hidden name=id value=?php echo '$id[]';? You should drop the quotes around the $id[] array, and also figure out how you want to extract the element from the array. For example: ?php echo $id[0]; ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL Rewriting
On Wed, Jun 22, 2011 at 17:22, Silvio Siefke li...@silvio-siefke.de wrote: Hello, is there a chance with php to use rewriting? Like Example: mysite.com/theme.php?id=1 to theme.php theme2.php etc. I have ask on the nginx list, but there they say i should use the power language php. When i search in google for Examples or Tutorials i only found mod_rewriting. Has someone a Link with Tutorials or other Information? Not entirely sure what you're asking here, or how you (or the nginx folks) expect it to relate to PHP. Do you mean that you want to use PHP to have theme2.php act as if it was called as theme.php?id=2 ? If so, it's not redirect or rewrite, and it's extremely hacky, but this is the only real way PHP could achieve the desired result: ?php // dynamictheme.php if (preg_match('/.*([0-9]+)\.php/Ui',$_SERVER['PHP_SELF'],$match)) { $_GET['id'] = $match[1]; include dirname(__FILE__).'/theme.php'; } ? Then just symlink dynamictheme.php to your various themes like so: ln -s dynamictheme.php theme2.php ln -s dynamictheme.php theme301.php ln -s dynamictheme.php theme18447.php -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with an array if its possible!
On Wed, Jun 22, 2011 at 18:43, Adam Preece a...@blueyonder.co.uk wrote: Hi Gang! i have 2 assoc arrays from 2 querys, first one is page categorys it consists of: id name second is pages name cat_id now, i am using smarty, so i pass arrays into the view. this i would like to pass to the view and display within a html select element. select id=name option value=CAT_IDCAT NAME option disabled=disabledPAGE NAME ASSOCIATED TO THE CAT NAME/option /option /select and i cannot think of how i can structure an array to pass in to achieve this and/or is it even possible :-/. i hope this makes sense. i'm truly stuck! If I'm understanding you correctly, this should get you started: ?php $arr = array( 'inventory_100' = 'apples', 'inventory_101' = 'oranges', 'inventory_102' = 'pears', 'inventory_103' = 'bananas', ); echo 'select id=inventory_items'.PHP_EOL; foreach ($arr as $k = $v) { echo ' option value='.$k.''.$v.'/option'.PHP_EOL; } echo '/select'.PHP_EOL; ? You can copy and paste that code (though I just typed it in here, it should work) and it should illustrate the point. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Odd Apache2/PHP Problem
On Fri, Jun 3, 2011 at 15:12, Floyd Resler fres...@adex-intl.com wrote: I am having a really odd Apache2/PHP problem. My employer set up a new Web server to migrate our Web sites to. One site requires a log in and I have the ability to log in a someone else. However, when I do this, Apache throws a Segmentation fault error. It's happening when it tries to get user information from the database of the user I'm logged in as. The data is stored in a FoxPro database and is retrieved through ODBC. What is really odd is that the same functions work fine until I log in as someone. All this does is swap my id with the person I'm logging in as in the session variable. I have no idea why this is happening. So, I'm hoping someone may have some ideas or point in the right direction to find answers. A lot of times, this happens because of a bad module, poorly-compiled core or extension, missing dependencies, or even mismatched architecture (for example, trying to run x86_64 code on an i386 platform). Do you have the capability to recompile PHP and the extensions? Also, presuming the logs strictly show segmentation fault (which is less than helpful, I know), are there any filesystem logs that might give a hint, such as bad blocks on the drive? Have you tried running an fsck on the drive? Finally, you may want to check your core dumps and see if you can glean any hints from there. The file sizes themselves may even be helpful --- for example, are you running out of disk space or memory on that box when the code is executing? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Does requesting $_SERVER variables need to query the server
On Wed, Feb 23, 2011 at 14:00, Marc Guay marc.g...@gmail.com wrote: This question will probably reveal my lacking knowledge of the fundamentals, but I'm a go for it anyway: When you use a $_SERVER variable, is a query made to the server to get the information or is it just sitting in a variable all ready to go? Reworded, is there any efficiency gained by storing the data in a local variable if it's going to be used many times in the script? My experience with jQuery has taught me to store $(objects) in local variables if they're going to be used repeatedly because the DOM is queried every time a jQuery object is generated, so I'm wondering if a similar logic applies. $_SERVER is just a prepopulated superglobal array that is created at runtime. When the script is executed via the web, PHP and the web server (for example, Apache) generate numerous environment values as directed by their configuration. The quickest way to learn about this in more detail is to use it's nickname in Google: EGPCS. The actual configuration directive is variables_order, but many folks - particularly the PHP3/4 and very early PHP5 - will be more familiar with the nickname, which is an acronym for the default order of superglobals: Environment, Get, Post, Cookie, Server. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?
On Wed, Feb 16, 2011 at 07:15, Richard Quadling rquadl...@gmail.com wrote: On 16 February 2011 11:25, Andre Polykanine an...@oire.org wrote: Hello Fotoo, ? error_reporting(0); Really? You consider shoving your head in the sand a REALISTIC option? Well, at the least, it would shut the errors up in the meantime, pending an actual resolution. However, the use of short_open_tags may completely defeat the intended purpose. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?
On Wed, Feb 16, 2011 at 09:37, David Hutto smokefl...@gmail.com wrote: What was the intended purpose again? The hiding of errors. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?
On Wed, Feb 16, 2011 at 09:41, David Hutto smokefl...@gmail.com wrote: On Wed, Feb 16, 2011 at 9:41 AM, David Hutto smokefl...@gmail.com wrote: Only those who live in glass houses, should hide their errors. if that makes sense. Did you even bother to read the whole of what I said? I wasn't advocating it as a solution, I simply said it was a temporary fix pending a real resolution. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex for telephone numbers
On Fri, Dec 31, 2010 at 11:04, Per Jessen p...@computer.org wrote: AFAIK, they too vary from country to country. Swiss mobile numbers are 07[6789] NNN, the latter usually written as NNN NN NN, but also often in a way that will help remembering the number. Danish mobile#s are the same as land line numbers, no area code, just . In the US and Canada, though, there's [as of yet] no difference between landline, mobile, VOIP, fax, toll-free, premium (900), et cetera. Again, that's why I wrote out the example the way I did, which conforms to NANP (NPA/NXX) standards. It's the only suggestion so far that will work completely (which sounds cocky, but screw it, it's the last Friday of the year ;-P). -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex for telephone numbers
On Fri, Dec 31, 2010 at 19:09, Jim Lucas li...@cmsws.com wrote: Actually... Specified here [1] it says that the {1,} is the same as '+'. I think you should drop the comma. If you don't this would be valid 844-2345-123456 ^[2-9]{1,}[0-9]{2,}\-[2-9]{1,}[0-9]{2,}\-[0-9]{4,}$ should be ^[2-9]{1}[0-9]{2}\-[2-9]{1}[0-9]{2}\-[0-9]{4}$ Bah, you're absolutely correct. Force of habit with the commas. I didn't even notice the sample test cases I put into that test array didn't check for more than the number of digits per field, either. Good catch, Jim, and Happy New Year. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Do you trim() usernames and passwords?
On Thu, Dec 30, 2010 at 11:27, Omega -1911 1911...@gmail.com wrote: Which topic ashley do u wish to discuss. With the eccouncil.org being in your neck of th woods, learning/reading what hackers are using/doing shouldn't be hard... Really, this entire thing has gone on for far too long. One final time, please either move the discussion off-list, where it belongs, or just drop it. This is the kind of stuff that makes good, talented people leave the list, or new folks decide they'd rather not ever even be involved. Everyone is entitled to their opinion, for sure, but this is not the proper place to air them, unless they're directly-related to PHP. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Do you trim() usernames and passwords?
On Wed, Dec 29, 2010 at 11:57, Omega -1911 1911...@gmail.com wrote: Those were some pretty confident statements there. You doubt the government would want to hack your computer... Well, the U.S. tries to prevent over 1 million attacks per day as documented and has admitted to having been breached more often than not... !!! But as someone who let's just say has prior knowledge, I personally would not want your password unless I needed to do some social engineering but rather hijack your connection to hide my nefarious intent. Is that how it works out there in Indianapolis, David Chapman? Because, to the rest of the world, this whole diatribe just sounds plain silly. No, your yahoo login info wouldn't be of much use, but your bank login info would be there are many who trade account info multiple times on private networks for a few dollars at a time. Your login and account info doesn't mean much to them, but a few hundred passwords can make thousands daily. Wow. Good thing folks don't use their Yahoo! email accounts for password reminders, I guess. Just wow. Pfft. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File-Upload per Drag-N-Drop?
On Wed, Dec 29, 2010 at 13:23, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hello, my users have an Online-File-Store with nearly anything they need but one feature is missing: Drag-D-Drop. I like to implement Drag-D-Drop so users can Drag a file from a File- Manager and Drop it on the Upload-Icon in my Webinterface. Can someone tell me HOW THIS WORKS? That's more of a frontend question to which you and your six-million-line signature should check Google to find the answer. Don't get me wrong, Michelle, we've always tried to help out even with off-topic questions, but this is really pushing it a bit too far with all of the non-PHP questions you've been asking lately. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Do you trim() usernames and passwords?
On Wed, Dec 29, 2010 at 15:16, Omega -1911 1911...@gmail.com wrote: Sound silly? Why Daniel? It's all documented and public knowledge. What I thought was silly was a entire thread about which ASCII combination was best.. convert to a higher range above the 255 character range... There is NOTHING I have mentioned that you or anyone can call a lie. Google or eccouncil.org are great resources. You forte is php... what security certs doyou hold that contradict my previous email? Aside from involvement with the now-defunct Federal agency, the National Infrastructure Protection Center, training by the FBI's Regional Computer Forensic Laboratories, accreditation as the first private-sector mobile computer forensic investigation laboratory in the tri-state area, multiple computer security certifications, and about fourteen years of professional network and computer security service to multiple public and private sector entities, I suppose not much. I was pleased earlier, however, to learn about your interest in helping others by creating a venue for them to sell their own homemade pornographic DVDs at such a low price, but then disappointed to learn that your grasp of Perl and site management wasn't yet up to par. Hacking didn't work out all that well over the last couple of years either, but you could probably go, what, just a thousand feet or so to hire one of the kids from Ben Davis high school to help out. Pay them a fair wage, though I mean, with your home last appraised at $122,100 (on the 27th of July, 2007, so you might want to see if it's appreciated more in value by now), we know you can afford to pay better than minimum. Heck, if they'd pave your street as well as your driveway is sealed, that alone might help improve the value, at least a little bit. Which would be fine --- I mean, you already get the benefits of better insurance, consider how close you are to that fire hydrant. (You know the one I mean, that little bluish-green one when you turn right out of your driveway and cross the street.) Speaking of blue-green, I love that picture of Javen. Was that done right on his iPhone, or did he do it on the computer before uploading it? Pretty cool either way, just like his name. I'm just not sure if it's pronounced with a J or an H sound. I mean, Arthur's name is easy enough, but I honestly am confused by Javen's (except when he spells it out like James Vencent). It's no surprise that he's an intelligent kid, though, being born at the autumnal equinox and all (and even before sunrise that morning). That aside, you might be right. Perhaps my qualifications don't quite justify my opinion in contradicting anything you have to say. I mean, being contracted to trace people all over the world can sometimes be almost as fun as knowing what tools to use to find out who they are in the first place. Still, one shouldn't spend so much time doing just one thing, which is why we both enjoy programming. Regardless, it doesn't matter, and I see no reason to get into any kind of flame war --- especially with one of the famous Six Hounds from the Darkside of Hell. Anyway, sorry for being ten days late, but happy birthday, Chap. It was good getting to know you. And, as the Ques know, friendship is essential to the soul. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Do you trim() usernames and passwords?
On Wed, Dec 29, 2010 at 18:20, Omega -1911 1911...@gmail.com wrote: AHHH... Searching by by an email is REALLY what you call hacking? Oh wait, you said that with all your knowledge in forensics you can find people all over the world. Thank God for Go0GlE. Please don't top-post. Never said I was hacking. And yes, I did see that infinite redirect-loop you call a website (well, multiple, since they all direct there). And again, yes, I used Google (among other things). However, for the rest of your statement (which you didn't even quote properly), you're confusing two different jobs. Anyway, you were the one who claimed I said your email was a lie. Go back a few messages and you'll see I never even insinuated that at all. I meant your attempt to show your conspiracy-theory-driven opinion as fact was silly. The rest of it may well have been valid, but - my apologies - I just honestly couldn't bear to keep reading it. If you're otherwise unconvinced that I had no intent on any kind of arguments or personal attacks, or if you'd like to continue with your agenda, please shoot me an email off-list, where it belongs. Even worse than anything else so far would be the two of us clogging up everyone else's inbox. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Do you trim() usernames and passwords?
On Wed, Dec 29, 2010 at 18:38, Omega -1911 1911...@gmail.com wrote: Etiquette went out the window a while ago. As Rambo said, He drew first blood... If you could not PROVE ME WRONG, you could have kept your mouth shut. You jumped in head first. And you have YET to prove me wrong. Then to throw off the subject, you resort to telling the world who you believe I am... That's what kids do as a last resort. Now take your ball and run home. First, COULD YOU PLEASE PROVE ME WRONG? You have open doors and windows (if you know what I mean...) Like I said off-list. I'll happily keep the conversation going between us, but I sure won't continue to bother others just because that's what you feel like doing for whatever reason. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex for telephone numbers
On Wed, Dec 29, 2010 at 19:12, Ethan Rosenberg eth...@earthlink.net wrote: Dear List - Thank you for all your help in the past. Here is another one I would like to have a regex which would validate that a telephone number is in the format xxx-xxx-. Congrats. People in Hell would like ice water. Now we all know that everyone wants something. ;-P Really, this isn't a PHP question, but rather one of regular expressions. That said, something like this (untested) should work: ?php $numbers = array( '123-456-7890', '2-654-06547', 'sf34-asdf-', 'abc-def-ghij', '555_555_', '000-000-', '8007396325', '241-555-2091', '800-555-0129', '900-976-739', '5352-342=452', '200-200-2000', ); foreach ($numbers as $n) { echo $n.(validate_phone($n) ? ' is ' : ' is not ').'a valid US/Canadian telephone number.'.PHP_EOL; } function validate_phone($number) { if (preg_match('/^[2-9]{1,}[0-9]{2,}\-[2-9]{1,}[0-9]{2,}\-[0-9]{4,}$/',trim($number))) { return true; } return false; } ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need code like pastebin.org
On Sat, Dec 25, 2010 at 12:32, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hello, before I reinvent the weehl, I ask here: In my webinterface My Space I wan t include a section where users can upload files and have them proposed like on pastebin.org. Also for source codes it would be nice, if users could choose syntax highliting. Does someone has a source codes to share or know, where I get one? Sure, you can just download the actual PasteBin script from the original author. It's GPL'd, and you can grab it here: http://links.parasane.net/42ez Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France EURL itsyst...@tdnet UG (limited liability) Owner Michelle Konzack Owner Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix http://www.itsystems.tamay-dogan.net/ http://www.flexray4linux.org/ http://www.debian.tamay-dogan.net/ http://www.can4linux.org/ Jabber linux4miche...@jabber.ccc.de Linux-User #280138 with the Linux Counter, http://counter.li.org/ -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Need code like pastebin.org
On Mon, Dec 27, 2010 at 19:51, Michelle Konzack linux4miche...@tamay-dogan.net wrote: OK, I was a little bit working on it, but a GPLed code which include AdWords and GoogleAnalytics is already suspect. Then the whole code is spagetti... And I do not know what Paul was smoking, when he has written layout.php. It I want to adapt the code for my webste I can recode anything from scratch. I didn't evaluate the code, I merely did a single two-second Google search, as I presumed you'd already done yourself. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server response very poor again
On Wed, Dec 22, 2010 at 10:19, Al n...@ridersite.org wrote: It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many times outs etc. Took me 4 tries to post this. Al, are you using NNTP? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server response very poor again
On Wed, Dec 22, 2010 at 12:17, Nicholas Kell n...@monkeyknight.com wrote: I am with Steve. Well, what I mean is, on this topic I am in agreement with Steve. My connection, etc. seems to be quite responsive. Oh, that's what you mean! Several of us were speaking about it the other day and thought you two were dating. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Warning when calling session_start()
On Wed, Dec 22, 2010 at 11:43, Ravi Gehlot r...@ravigehlot.net wrote: session_start (); should be before everything...first thing in the page. Unlike the body of your email, Ravi, which is why I've asked you before not to top-post. Please follow the formats as outlined in the list rules. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server response very poor again
On Wed, Dec 22, 2010 at 13:07, Steve Staples sstap...@mnsi.net wrote: whoa... wait a sec there... i seem to recall this statement... ;) This seems to be the most likely, and considering how all messages are permanently and independently archived and propagate throughout the Internet, it might be a good reason not to go nuts in sending unrelated and unintelligible messages of this nature in the future. this could be one of those situations ;) Yes, you're right but mine was intelligible. ;-P so now the whole world knows... GREAT! this was supposed to be a secret. As they say, 'tis the season to be jolly. It's up to each individual to determine just *how* jolly. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with Include
On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot r...@ravigehlot.net wrote: My point is that you tried to take code from one page and put it all organized in another page and the include that page of includes back into the pages that you want it to feed off from. If stuff works the way that it does then there a reason for it to have been done that way. So you think no one should ever do that because it's only making it look pretty? Ever hear of maintainability? That's why documenting code is so important. 99% doesn't do it (including me). Please cite your source. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with Include
On Mon, Dec 20, 2010 at 02:49, Simcha Younger sim...@syounger.com wrote: Since it is being included by PHP, and not served by Apache, the extension is not important. Correct, but keep in mind that it will likely be served as plain text if accessed directly, if the web server is not properly configured (which, by default, it isn't). -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Performance Improvement on Calling C++ executable from PHP
On Sun, Dec 19, 2010 at 15:35, Shiplu shiplu@gmail.com wrote: === Recently I my this php-general doesn't accept my mail for some reason. So I send it again from anther email === No, actually, you sent it from the exact same address --- but both came through anyway. I am developing a php application that interfaces with an external executable binary. The program is written in C++. I open the program (say a.out) using proc_open. Write some command at its stdin and fetch data stdout. Then close the program. The timing of only a.out is real 490ms usr 160ms sys 290ms When I invoke it using proc_open in php-cli, the timing becomes real 530ms usr 50ms sys 450ms Look closely, the cpu time and the real elapsed time increases. I run the php version from command line. As an apache handler this will surly take more time. Is this just the processing time of the a.out file, or is this considering the PHP script's execution time including the a.out processing? If so, this increase is, of course, to be completely expected. Also, were the input and output exactly the same size in bytes as the direct test? The program a.out can not be converted in php unless I write an extension. But this will need a lot of effort to write it in PHP. Extensions aren't written in PHP, they're binary packages. Some of my ideas are, 1. Create a standalone multi-threaded server that calls a.out and php calls that server. This is the same basic idea that Facebook's HipHop project uses. 2. Call a.out as a CGI and convert it that way. This would likely be your best bet, as you're stripping away all of the excess interfacing by PHP (or another scripting language), and would instead just be accessing it directly via the web server. That said, it would depend on whether or not your program is (or could be) written to handle everything itself, so that PHP - or any capable language, for that matter - would no longer be necessary. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems w/ goto
On Fri, Dec 17, 2010 at 12:22, Robert Cummings rob...@interjinn.com wrote: I was one of the people that argued in favour of GOTO on the Internals list a few years ago. GOTO has a use, and a very good one at that. It is by far the most efficient construct when creating parsers or other similar types of logic flow. The demonized GOTO of the 80s was primarily due to jumping to arbitrary points in the code, or in the case of basic to arbitrary line numbers in the code which had little meaning for future readers. Not to mention failure to properly break, as in the OP's code example. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo disabled due to security
On Wed, Dec 15, 2010 at 09:57, Paul S pau...@adelphia.net wrote: Warning: phpinfo() has been disabled for security reasons in /home/.../php/phpinfo.php on line 2 My ISP has disabled phpinfo and has not answered my tech requests on this for over a month. They seem to never have a thing to do but play games with silly security issues. Well, phpinfo() does, by default, divulge some things that could be considered security concerns --- particularly in poorly-managed environments. Primarily, this is by giving a synopsis of versions and paths of software, but some versions and configurations will also broadcast information about the currently logged-in user (PTS/TTY) in the $_ENV display. Sure, you can display everything manually that phpinfo() does automatically, but it's easier for some to vilify something because they heard it was bad than to actually address the greater issues. In a day some phone calls are going to be made. I need some help. What brief arguments should I be giving to get this changed? In cases like this, I'd agree with Al's response; there are plenty of other web hosts out there. (My own signature is not intended as a form of advertisement in this case, mind you it's simply the default. ;-P) -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Querying Database
On Wed, Dec 15, 2010 at 13:42, Gary gp...@paulgdesigns.com wrote: I cant seem to get this to connect. This is to my local testing server, which is on, so we need not worry that I have posted the UN/PW. This is a duplicate of a script I have used countless times and it worked. The error message is 'Error querying database.' Some one point out the error of my ways? Replace: or die('Error querying database.'); With: or die('Error querying database. MySQL said: '.mysql_error()); -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Where is my array?
On Wed, Dec 15, 2010 at 17:21, Don Wieland d...@dwdataconcepts.com wrote: Hello, I originally had a line that built a static array: $instruments = array('Leader','Singer','Piano','Synth','A-Guitar','E-Guitar','Bass','Drums','Perc','Sax','Flute','Sound/AV','Pastor','Producer'); Then I decided I wanted this dynamic and to pull it form the DB. So I thought this would bring back similar results: $queryi = SELECT Instrument FROM Instruments WHERE `acct_id` = '.$_SESSION['ACCT'].' ORDER BY `id_Sort`; echo $queryi; $resultsi = mysql_query($queryi) or die(Error performing query); $instruments = mysql_fetch_array ($resultsi); Does not. What am i missing here? Thanks! Some notes: Try adding a mysql_error() call to your 'or die()' condition: or die('Error performing query. MySQL said: '.mysql_error()); Change mysql_fetch_array() to mysql_fetch_assoc() and run it through a while() loop to print things out and make sure it appears as you expect: while ($instruments = mysql_fetch_assoc($resultsi)) { var_dump($instruments); } Always, ALWAYS sanitize input --- specifically anything that exists or is manipulable via any part of the $_REQUEST family ($_GET, $_POST, $_COOKIE, $_SESSION). For your code: $queryi = SELECT Instrument FROM Instruments WHERE `acct_id` = '.mysql_real_escape_string($_SESSION['ACCT']).' ORDER BY `id_Sort`; -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] empty() in email message
On Mon, Dec 13, 2010 at 12:47, Gary gp...@paulgdesigns.com wrote: I have an email message $msg = 'Name: $fname ' . ' $lname\n' . Phone: $phone\n . Email: $email\n and it works fine, however in this message there are about 30 variables that are being called...as such . Order: beefschnitzel $beefschnitzel\n . Order: beefstrips $beefstrips\n . Order: cheesesausage $cheesesausage\n . Order: crumbedsausage $crumbedsausage\n . Order: chucksteak $chucksteak\n . Order: cornedbeef $cornedbeef\n . Order: dicedsteak $dicedsteak\n . Order: filletmignon $filletmignon\n I want to only send the message if the submitter enters an amount in the form for the corresponding variable, instead of having a bunch of empty messages. So I have been trying to use the empty() function as such: . if empty($beefolives){''} elseif (isset($beefolives)) { 'Order: beefolives $beefolives\n'} But I am getting the error Parse error: syntax error, unexpected T_IF Can someone point me in the right direction? That's because you're concatenating. When appending to a variable, you can't use constructs and conditions, unless using ternaries: . (!empty($beefolives) is_numeric($beefolives) ? 'Order: beefolives '.$beefolives : null) However, for readability and ease of management, you might want to try something like this. It makes at least two assumptions: you're using a form post, and you understand that it's untested (as I'm just typing it here into the body of this email). ?php // If we've posted our order if (isset($_POST) is_array($_POST['order'])) { // Instantiate the $order variable $order = null; // Iterate the order quantities foreach ($_POST['order'] as $k = $v) { // If the field is set and the amount is a number if (isset($v) is_numeric($v)) { $order .= 'Order: '.$k.': '.$v.PHP_EOL; } } /** * Note: in your example, you used single (literal) * quotes and included the variables. That would * literally print $fname and $lname. */ $msg = 'Name: '.$_POST['fname'].' '.$_POST['lname'].PHP_EOL; $msg .= 'Phone: '.$_POST['phone'].PHP_EOL; $msg .= 'Email: '.$_POST['email'].PHP_EOL; $msg .= PHP_EOL; $msg .= $order; // And then handle the rest of your processing. Here, we just echo. echo 'pre'.PHP_EOL.$msg.'/pre'.PHP_EOL; } ? form method=post action=?php echo $_SERVER['PHP_SELF']; ? First Name: input type=text name=fname id=fnamebr/ Last Name: input type=text name=lname id=lnamebr/ Phone: input type=text name=phone id=phonebr/ Email: input type=text name=email id=emailbr/ br / h3Order/h3 Beef Schnitzel: input type=text name=order[beefschnitzel] id=order[beefschnitzel] size=2 maxlength=3br/ Beef Strips: input type=text name=order[beefstrips] id=order[beefstrips] size=2 maxlength=3br/ Cheese Sausage: input type=text name=order[cheesesausage] id=order[cheesesausage] size=2 maxlength=3br/ Crumbed Sausage: input type=text name=order[crumbedsausage] id=order[crumbedsausage] size=2 maxlength=3br/ Chuck Steak: input type=text name=order[chucksteak] id=order[chucksteak] size=2 maxlength=3br/ Corned Beef: input type=text name=order[cornedbeef] id=order[cornedbeef] size=2 maxlength=3br/ Diced Steak: input type=text name=order[dicedsteak] id=order[dicedsteak] size=2 maxlength=3br/ Filet Mignon: input type=text name=order[filletmignon] id=order[filletmignon] size=2 maxlength=3br/ !-- NOTE: Filet as displayed on the form has one 'L', but the variable is unchanged. -- br / input type=submit value=Order Now /form -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] sending emails
On Thu, Dec 9, 2010 at 13:36, Marc Fromm marc.fr...@wwu.edu wrote: We have web forms that send the user an email confirmation after submission, like most forms do. The emails are being delivered to the users' junk folder. The main campus IT staff claim it is because our server is sending the emails. The campus is using Microsoft exchange servers. I am using Red Hat Linux, sendmail, and PHP. Is there a way to give php the exchange server's ip address and have the emails from my php forms be sent from the exchange server? Unfortunately, folks don't seem to read the archives anymore Marc, check the archives to see answers to this question even this month. Some have recommended PEAR packages, others have recommended other packages and methods, and for one particular instance, I recommended using the fifth parameter of the mail() function to pass the '-f' flag to Sendmail. That said, unless there's more to the story, there should be no reason why your server shouldn't deliver email. Shared hosting, for example, most often provides both SMTP and POP3 in addition to hosting the actual website(s), and is used exclusively in most cases for all services for a given account. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] new keyword combined with other things...
On Tue, Dec 7, 2010 at 10:40, Alexandru Patranescu dreal...@gmail.com wrote: but is there any way to write it directly? and if not, why isn't this implemented yet and when will it be? That kind of chaining has not yet been implemented in PHP --- but it's being discussed and voted now, as a matter of fact. There's no guarantee if or when it will be implemented. It's looking positive that it will, but whether it will be soon or not, it's hard to tell right now. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Barcode Reader
On Mon, Dec 6, 2010 at 12:07, Floyd Resler fres...@adex-intl.com wrote: They're 2d barcodes. I did a Google search and really couldn't find anything. After talking with my boss, though, we decided that this project would probably take too much time and be frustrating for the users. We're trying to decode barcodes from pictures taken with cell phones. In testing the images are blurry and probably wouldn't be able to be read. However, if you happen to know of PHP class that could decode 2d barcodes, I'd still be interested in checking it out just in case my boss wants to revisit it. It's likely that the only way you could do something like that would be to screen-read the image you receive, because - even if you generated the barcode yourself - there are a variety of different formats and compression algorithms. Coming from a cell phone, an image of an image, would be even more difficult. That said, there are a variety of free barcode scanners, and most now handle 2D barcodes (including QR codes), which then translate the data into a plain string of data, which could then quite easily be read and managed by PHP, of course. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] code quest
On Sat, Dec 4, 2010 at 15:58, Kirk Bailey kbai...@howlermonkey.net wrote: And it works! BUT! Where is the 1 coming from?!? No need to see the page. You're echo'ing an include. No need to do that; including the file is enough, and that's what's working. Adding the echo makes it print the status returned by 'include' --- which is boolean TRUE, AKA 1. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Iterators.
On Fri, Dec 3, 2010 at 08:09, Richard Quadling rquadl...@gmail.com wrote: Now I know someone could supply a solution not using the SPL. I've got one of those. But trying to use the SPL just seems to awkward. Too many choices. Too many things with the same name I put an example up on the list this week, actually. Had you seen it? If not, or if you can't find it in the archives, let me know (even on chat) and I'll repost it. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pass a value as hidden to PHP
On Fri, Dec 3, 2010 at 12:12, Larry Sandwick l...@sarreid.com wrote: How do I get the document.tstest.timestamp.value from the JS and pass it as a hidden value on the resultsHistory.php page ? [snip!] There are tons of issues with that code, but not one bit of it has to do with PHP. You should ask on a newbie HTML list or a JavaScript mailing list. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] code quest
On Wed, Dec 1, 2010 at 23:13, Kirk Bailey kbai...@howlermonkey.net wrote: [snip!] Can this be improved to exclude anything with a '.' or a '-' in it's name? This will exclude the smileys and cgi-bin and such. If it can be persuaded to read a 1 line description from each subdirectory it could then use THAT as the text in the link, instead of the name. This could be useful in many settings. Sure. Change: if (is_dir($d) $d != '.' $d != '..') { To: if (is_dir($d) !preg_match('/[\.\-]/',$d)) { Keep in mind, though, that the change will no longer show anything that matches the below either: example.directory example-directory special-images css.files In other words, you may instead want to explicitly state which directories to omit, and then drop anything that begins with a dot as well (hidden directories on *NIX-like boxes) like so: ?php $excludes[] = 'cgi-bin'; $excludes[] = 'vti_cnf'; $excludes[] = 'private'; $excludes[] = 'thumbnail'; $ls = scandir(dirname(__FILE__)); foreach ($ls as $d) { if (is_dir($d) !preg_match('/^\./',basename($d)) !in_array(basename($d),$excludes)) { echo 'lia href='.$d.''.$d.'/abr/'.PHP_EOL; } } ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php mail() and sendmail/smtp
2010/12/2 Michael Crowl octo...@serv.net: Possible solutions? I'm a little frazzled and a little undereducated here. Use the under-appreciated fifth paramter in mail() to pass the -f flag to sendmail, like so: ?php $to = 'danbr...@php.net'; $subject = 'This is an emample for a php-general request!'; $body = 'This is the body of the email.'; $headers = From: daniel.br...@parasane.net\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; $sendmail_flag = '-fdaniel.br...@parasane.net'; // Note the lack of space between the flag and variable mail($to,$subject,$body,$headers,$sendmail_flag); ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST issues
On Wed, Dec 1, 2010 at 09:50, Bundhoo M Nadim na...@alienworkers.com wrote: If I just put only this piece of code: ?php var_dump($_POST); ? i get nothing. But the above codes is successfully redirecting me to page.php with a properly constructed query string - which means that $_POST was never empty. So why var_dump($_POST) is returning just array(0) { } ??? Are you actually posting data to it? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: $_POST issues
On Wed, Dec 1, 2010 at 16:32, Nadim Attari na...@alienworkers.com wrote: Thank you Daniel for this detailed post of yours. Really appreciated. Quite welcome. Saving the $_POST data (in response.php) in a file will serve nothing. - And you said this was an unnecessary step from the payment gateway - All i need is the result of the transaction, which I'll get in receipt.php thr' $_GET. All I can say is that I do not have any control on the payment gateway (you may realise it has been badly implemented - if it is not too harsh to say like that) Not too harsh at all. If anything, you're being too kind. ;-P Another unnecessary step occurs in send_transaction.php - you have seen that once the XML data is sent to the payment gateway (well SBM asked me to send like that - i mean no declaration, just the tags), the gateway sends back paymentid and paymentpageurl and i have to redirect my browser to that page, concatenating the paymentid in the query string. --- this should have been done automatically by the payment gateway itself. Really baffling. I agree. It seems as though it's a very clunky setup, unless there's a different way it's supposed to be done that their API docs explain. I think I'll report this to my boss, who shall contact the client (YU Lounge). Now up to the client to decide whether they'll be doing business with SBM payment gateway solution or not. BTW, would you recommend someone to use this payment gateway ? What are your comments on such payment gateway implementation ? I'd honestly never heard of this service until you submitted the original post in this thread. However, knowing what we've already ascertained in this short time, as well as other things I've noticed, I would highly advise against using the service. Three key issues I see are: (1) unnecessary processes and slow response times; (2) insecurities, including data disclosure and plain-text GET/POST calls; (3) poor data validation and error handling. If the client would permit the use of another service, I'd recommend researching some of the alternatives. Anyway thanks again for your time and help Daniel. My pleasure. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP shows nothing
On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh khalifeh...@gmail.com wrote: it seems that the problem is in pg_connect(). Do you have PostgreSQL support compiled into PHP? Command line: php -i | egrep -i 'postgres|pgsql' Web: ?php phpinfo(); /* Check in a browser for 'pgsql' or 'postgres' */ ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mySQL query assistance...
On Mon, Nov 29, 2010 at 14:35, Don Wieland d...@dwdataconcepts.com wrote: Hi all, Is there a list/form to get some help on compiling mySQL queries? I am executing them via PHP, but do not want to ask for help here if it is no the appropriate forum. Thanks ;-) Yes. For MySQL queries, write to the MySQL General list at my...@lists.mysql.com. For PHP-specific database questions (for any database backend, not strictly MySQL), such as problems in connecting to the database, questions on support for database platform/version, or even query processing, you should use php...@lists.php.net. For your convenience, both have been CC'd on this email. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mySQL query assistance...
On Mon, Nov 29, 2010 at 14:40, Daniel P. Brown daniel.br...@parasane.net wrote: For your convenience, both have been CC'd on this email. Actually, PHP-DB (php...@lists.php.net) was accidentally BCC'd. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Processing
On Mon, Nov 29, 2010 at 18:54, Ron Piggott ron.pigg...@actsministries.org wrote: $new_email = mysql_escape_string ( $_POST['referral_$i'] ); Because you're using literal quotes, so PHP is literally looking for the POST reference 'referral_$i'. Instead of using the style of field names you're using, why not use a virtually limitless array? ?php if (isset($_POST['referral']) is_array($_POST['referral'])) { $refcnt = count($_POST['referral']); for ($i=0;$i$refcnt;$i++) { echo 'Referral #'.$i.': '.$_POST['referral'][$i].'br/'.PHP_EOL; } } ? form method=post action=?php echo $_SERVER['PHP_SELF']; ? ?php for ($i=1;$i6;$i++) { echo ' nbsp; nbsp;input type=text name=referral[] id=referral_'.$i.'/br/'.PHP_EOL; } ? input type=submit id=submitButton value=Send/ /form -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I have a question about MLM
On Sun, Nov 28, 2010 at 15:54, Tommy Pham tommy...@gmail.com wrote: Which MLM are you referring you? ;) Multi-Level Marketing? Mid-Level Manager? Medicare Learning Network? Marxism-Leninism-Maoism? It's likely SPAM-testing or email harvesting. The exact same vague email was sent to the php-db@ list during the same minute. I'd ignore it, and if the OP wants a real response, he can try again in a more intelligent form. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] code quest
On Sat, Nov 27, 2010 at 12:36, Daniel P. Brown daniel.br...@parasane.net wrote: If you want something more powerful - and often quicker - check into SPL: specifically FilesystemIterator[1], DirectoryIterator[2], and RecursiveDirectoryIterator[3]. A quick example to link all child files and directories with relative linking: Might help to provide the key as well, eh? Sorry ^1: http://php.net/filesystemiterator ^2: http://php.net/directoryiterator ^3: http://php.net/recursivedirectoryiterator -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with RegEx for BBCode
On Sat, Nov 27, 2010 at 12:50, Asmann, Roland roland.asm...@adesso.at wrote: Besides, what I don't really understand is WHY does this happen? Any other language that has RegEx doesn't match a thing in my example and just returns the original input. Why is PHP different in this regard? All we've seen is your regexp, not your code - not even which regexp library you're using. So that's a pretty ambiguous question, really. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Query Error...
On Sat, Nov 27, 2010 at 12:30, Don Wieland d...@dwdataconcepts.com wrote: Hi gang, I am executing a query via PHP that gives me a PHP error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND m.`Preferred_First_Name` LIKE 'Don' AND m.`Preferred_Last_Name` LIKE 'Wielan' at line 1 but when I copy the ECHO of the select query and run it in Sequel Pro Query, it returns no error. Here is the query: select m.* from Members m inner join Member_Years my on m.aucciim_id = my.member_id where now() DATE_ADD(DATE_SUB(concat(`member_year` + 1,'-07-01'), INTERVAL 1 DAY), INTERVAL 30 DAY) AND m.`Preferred_First_Name` LIKE 'Don' AND m.`Preferred_Last_Name` LIKE 'Wieland' group by m.AUCCIIM_ID order by m.preferred_last_name What is causing it to choke via PHP? This is actually better-suited to the DB list (CC'd) than the General list, but one primary question: are you using the mysql_* family, mysqli_* family, or another method of interfacing with MySQL? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Query Error...
On Sat, Nov 27, 2010 at 13:18, Don Wieland d...@dwdataconcepts.com wrote: On Nov 27, 2010, at 10:07 AM, Bastien wrote: Try removing the backticks around the table names. If you do use them, then all values (field names and table names) need it. I tried that and still chokes... select m.* from Members m inner join Member_Years my on m.aucciim_id = my.member_id where now() DATE_ADD(DATE_SUB(concat(member_year + 1,'-07-01'), INTERVAL 1 DAY), INTERVAL 30 DAY) AND m.Preferred_First_Name LIKE 'Don%' group by m.AUCCIIM_ID order by m.preferred_last_name ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND m.Preferred_First_Name LIKE 'Don%'' at line 1 Note how you keep changing case here. For example, m.aucciim_id vs. m.AUCCIIM_ID. Also note that all of this is cAsE-sEnSiTiVe. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with RegEx for BBCode
Please be sure to hit Reply-All so that the list is CC'd on each response as well. On Sat, Nov 27, 2010 at 13:55, Asmann, Roland roland.asm...@adesso.at wrote: I'm currently running this on a default XAMPP installation on my PC, because I was told something similar is running on the server. I thought this had a default RegEx lib, or does it have something extra for that? No, I mistyped, it's not your fault. I meant: which function are you using to execute the regexp? As for the code, here's the part that I think *should* work, but doesn't do the trick for me: $s = preg_replace(/\[i\]((\s|.)+?)\[\/i\]/, i\\1/i, $s); This is exactly what I meant when I erroneously said, library. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Query Error...
On Sat, Nov 27, 2010 at 14:30, Don Wieland d...@dwdataconcepts.com wrote: Strange... I have no idea what to do. I got to run it via PHP. Don, on which table is the column `member_year` located? Is that on `Members`? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange Query Error...
On Sat, Nov 27, 2010 at 14:45, Don Wieland d...@dwdataconcepts.com wrote: Pretty please - I just want to get this working and move on ;-) At this point, can you just send the whole related snippet? The cases keep changing and there's a lot of other suggestions that you said you've tried. Just doing that on my local machine works without error, so it's likely the result of another part of the code --- hence why the query works externally. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Suppressing error from displaying
On Wed, Nov 24, 2010 at 14:13, Ron Piggott ron.pigg...@actsministries.org wrote: I am using this syntax to check for a valid e-mail address list($userName, $mailDomain) = split(@, $buyer_email); if (checkdnsrr($mailDomain, MX)) { if no domain is provided ( ie e-mail address is something like “ron” with no @ ) the following error is displayed: Warning: checkdnsrr() [function.checkdnsrr]: Host and type cannot be empty Can I suppress this from displaying so *just* my error message displays? Sure. if (@checkdnsrr($mailDomain,'MX')) -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is this thing on??
On Tue, Nov 23, 2010 at 14:52, Steve Staples sstap...@mnsi.net wrote: tap tap tap... testing testing... 1, 2, 3 Hello? No activity since yesterday at like 6pm EST... am i not getting messages, or has there not been any activity? Just curious... carry on about your business... :P Some of the lull is likely due in part to the American Thanksgiving holiday this week. Historically, the list has always calmed down over the years during major holidays or events in North America, the UK, and Northern Europe. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't find existing file
On Mon, Nov 22, 2010 at 14:36, Dee Ayy dee@gmail.com wrote: Thes two lines means that they exist by using quoted and unquoted commands: ls ./photos/HPR-130-260_HD-3070-1.jpg ./photos/HPR-130-260_HD-3070-1.jpg ls ./photos/HPR-130-260_HD-3070-1.jpg ./photos/HPR-130-260_HD-3070-1.jpg Please use Reply-All to reply back to the list. Also, please note: ./photos/HPR-130-260_HD-3070-1.jpg != ./photos/Nozzle 130 Amp SS Alum 94-00994-06 220197.JPG -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Procedural Autoloader?
On Mon, Nov 22, 2010 at 15:37, Jason Pruim li...@pruimphotography.com wrote: Hey Everyone! Fresh off my problem with functions and arrays I come across something that I can't seem to find currently... The autoloader function that is in PHP 5+ works on classes... But I'm not finding anything that would do the same thing on the procedural end... Such as I have a folder typically called includes in my projects where I place all my function files... I would LOVE to use the autoloader to be able to just load them on demand... But in my quick searching/thinking I haven't found away too... So I thought I would see if anyone had invented that wheel yet before I go and try and do it my self :) I may also have a misunderstanding of how it is supposed to work since I don't truly understand OOP I've always done procedural... Any help on this one would be greatly appreciated it! :) There's no such thing, Prune. Autoloaders are for classes, and the only way you could have it work for functions would be to catch the error in the core and handle it at a lower level than your scripts (modified core or extension), because the error generated for an undefined function isn't a catchable fatal. Alternatively, you *could* write a function wrapper that utilizes function_exists() and the like, then rewrite all of your code to use that wrapper but how much sense does that make? ;-P -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Procedural Autoloader?
On Mon, Nov 22, 2010 at 15:37, Jason Pruim li...@pruimphotography.com wrote: Hey Everyone! Fresh off my problem with functions and arrays I come across something that I can't seem to find currently... The autoloader function that is in PHP 5+ works on classes... But I'm not finding anything that would do the same thing on the procedural end... Such as I have a folder typically called includes in my projects where I place all my function files... I would LOVE to use the autoloader to be able to just load them on demand... But in my quick searching/thinking I haven't found away too... So I thought I would see if anyone had invented that wheel yet before I go and try and do it my self :) I may also have a misunderstanding of how it is supposed to work since I don't truly understand OOP I've always done procedural... Any help on this one would be greatly appreciated it! :) There's no such thing, Prune. Autoloaders are for classes, and the only way you could have it work for functions would be to catch the error in the core and handle it at a lower level than your scripts (modified core or extension), because the error generated for an undefined function isn't a catchable fatal. Alternatively, you *could* write a function wrapper that utilizes function_exists() and the like, then rewrite all of your code to use that wrapper but how much sense does that make? ;-P -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Procedural Autoloader?
On Mon, Nov 22, 2010 at 16:31, Nathan Nobbe quickshif...@gmail.com wrote: Shrug, if you want to really be dirty about it, you could just put a 'class' atop each file of functions. ?php class IWishTheseFunctionsWereOOInstead {} // :P function firstProceeduralFunc() { // .. } ? That's not going to be economical or allow him to autoload, though, because the autoloader is called when the class is instantiated. Prune could instantiate it thusly: ?php $foo = new IWishTheseFunctionsWereOOInstead(); firstProceeduralFunc(); // [sic] ? but it would be just as simple to do: ?php require dirname(__FILE__).'/includes/function.php'; firstProceeduralFunc(); // [sic, again] ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to protect the source code.
On Fri, Nov 19, 2010 at 17:07, Tamara Temple tamouse.li...@gmail.com wrote: Perhaps it's just me, but I'm completely missing the point of this. How is someone going to get your code off of a server? It's more likely that he's interested in learning how to protect code he will be distributing or otherwise delivering to a third party than worried about it being discovered on or taken from his server. That said, the OP may benefit from Hip-Hop by Facebook, which converts PHP code into optimized C++, which can then be compiled into an optimized binary. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] protecting email addresses on a web site
On Tue, Nov 16, 2010 at 16:29, a...@ashleysheridan.co.uk a...@ashleysheridan.co.uk wrote: Sorry for top post on phone. Depending on the type of site and location an email address might be legally required. For example, a business website in the UK requires a value email address to be made accessible to all your visitors, which includes blind people, so no image-only addresses. Spam is just a fact of life now, and the only real method of protection is a decent spam filter. ?php /** * Just hacked this together for your usage now. It's * a very basic implementation of a graphical display * of an email address (or any text, for that matter). * This can still easily be picked up by harvesters that * employ OCR, but beggars cannot be choosers. Well, * they can, but they really shouldn't. I mean, seriously, * there they are, just hoping and praying for a handout, * and when it finally comes, they bitch and moan that * I don't have any apples that didn't fall into the * sewer and sit there for a week that one time I donated * food to the food kitchen because I wanted this girl * to like me but it turned out she was a lesbian so * I just wasted the gas in the first place and my * car smelled like homeless people and crap-flavored * apples for three weeks. */ function drawEmail($email) { /** * Set the width/height of the image. */ $im = imagecreate(220,20); /** * Define the colors to be used, using RGB values. */ $black = imagecolorallocate($im,0,0,0); $white = imagecolorallocate($im,255,255,255); /** * Fill the image with a chosen color. */ imagefill($im,0,0,$white); /** * Calculate the text size to be used. */ $px = (((imagesx($im) - 7.5) * strlen($string)) / 2); /** * Write $email in calculated size with chosen color. */ imagestring($im,3,$px,9,$email,$black); /** * Output the image. */ header(Content-type: image/png); imagepng($im); /** * Garbage clean-up, pass-through the status bool. */ return imagedestroy($im); } drawEmail('danbr...@php.net'); ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template engines
On Thu, Nov 11, 2010 at 08:51, Robert Cummings rob...@interjinn.com wrote: Yeah, that and some Gateway with a Common Interface. My point was that there is now and never was any such PHP project known as pre-hypertext preprocessor. It originated as Personal Home Page Tools (PHP Tools) and Forms Interpreter (FI) --- the former was a series of C binaries, the latter was a CGI wrapper that actually preprocessed straight HTML by hopping in and out of !--HTML Comments-- using SSI. For a short while, if memory serves me correctly, a version of the package was also named Personal Home Page Construction Kit. Eventually the packages merged into PHP/FI, and a rewrite was done sometime during 1997, I believe, which became PHP/FI 2.0. I first started using it back in 1996 for quick and simple tasks where Perl would be a bit overkill. The part I can't remember clearly is whether PHP/FI2 was done in 1996 or 1997, though, because I do remember it was the fall of 1997 when PHP3 came out, and it blew me away. It sucked a bit having to now learn how to use the new PHP to build a page, but damned if it wasn't a trillion times easier to work with than Perl, right from the get-go. I remember being excited by the fact that I could rewrite a simple flat-file database Perl program I originally wrote in about three days in under two hours with PHP. From that point on, I was hooked on it, despite its quirky recursive-acronym name --- PHP: Hypertext Preprocessor. So when I asked if pre-hypertext preprocessor meant Perl, it could well have been Python, C/C++ on SSI, Tcl/Tk, or anything anything, that is, that came pre- PHP. That said, I have seen references to PHP being named Pre-Hypertext Preprocessor, but that would be incorrect anyway. The HTML (HyperText Markup Language) could be preprocessed, so that much is fine but pre-hypertext would be truly amusing. Any request to a web page is presently made via HTTP (HyperText Transfer Protocol), and any text displayed on any electronic device with embedded references (also known as hyperlinks). So any language that could pre-process pre-hypertext would either have the unique ability to foresee the future, the mundane ability to pre-process plain text (or request headers or anything prior to the data being classified as hypertext), or the disconcerting ability to modify reality as we know it. And why bother to do that when you could just %= go elsewhere. %? ;-P (It's felt like Friday all day.) -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template engines
On Wed, Nov 10, 2010 at 20:59, Nathan Rixham nrix...@gmail.com wrote: I went back to using a pre hypertext processor, seemed like a really powerful templating engine that was v familiar to use :p Pre-hypertext preprocessor? Perl? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Basic question
On Tue, Nov 9, 2010 at 02:55, Tseveendorj Ochirlantuu tseveend...@gmail.com wrote: Hello, I would like to know what is the difference between follows. PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46) and PHP 5.1.6-pl6-gentoo (cgi-cgi) They are completely and totally different in almost every way. The first: * PHP 5.3.2 * Command Line Interface * Built for Ubuntu * Has the Suhosin patch applied The second: * PHP 5.1.6 * Common Gateway Interface * Built for Gentoo For further explanations, remember that Google is your friend. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie looking for a project
On Mon, Nov 8, 2010 at 06:29, Ashim Kapoor ashimkap...@gmail.com wrote: Writing apps on my own is fun but it's fruit is only for me to benefit from,but yes if nothing else I should do that. Not at all, many others can benefit from it as well. Tedd's examples have been referenced on this list many times, and you can see them yourself: http://www.php1.net/ Just because you're developing the code to learn for yourself doesn't mean you can't put it in the public domain for others to do the same. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template engines
On Mon, Nov 8, 2010 at 16:41, Hansen, Mike mike.han...@atmel.com wrote: I really like the idea of using a templating engine. Which one do you use? Why? For those that don't use templating engines, why don't you use them? I chose to write two of my own over the years: one procedural, one OOP. That said, the most common is likely still to be Smarty, and by far. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] List-Unsubscribe
To unsubscribe, send a blank email to php-general-unsubscr...@lists.php.net from the email address that is subscribed to the list. Alternatively, you may use the form at http://php.net/mailinglists . -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache mod_pagespeed
On Thu, Nov 4, 2010 at 05:12, Colin Guthrie gm...@colin.guthr.ie wrote: Yeah it seems like a nice idea. Basically we already do a pre-process stage where we minify css and js before we deploy the application (dev versions are nicely verbose so that the javascript error on line 1 debugging does not plague us!). We also try to pngcrush pngs and optimise jpegs etc. I'm also working toward detecting if a browser can accept them, and if it can, serving WebP images instead of PNGs, JPegs, or GIFs. Typing the sentence out, I'm not sure why I hadn't thought of it before, but it would be a greater speed increase to do it as a PHP extension than to have it run through the parser. Looks like I'll be starting over But this module seems to do all that stuff for you on the fly which is pretty nice. It would save over head in terms of application deployment processes here and I'd likely be happier using it than doing all this stuff myself. Yeah, we were compressing JavaScript with some projects as well, and trying to minify CSS and scripts, consolidating files for production (like you, development versions are the fully-bloated version, because there's nothing worse than being told you have six-hundred errors on line one). In preliminary testing yesterday, though, I'm already highly impressed with mod_pagespeed. It even removes excess spaces - such as those in br / tags - without any adverse reactions I've seen so far. That said, it's often nice to think about these things rather and learn about the consequences than just blunder on and hope for the best. This module will result in a bit of dumbing down of devs, but that's not to say I'm against it generally. I agree to a point: but I also think those of us who already know how to do the work will gain at least two added benefits from this. First, we can even further improve page-load times by doing all of the optimizations to code, layout, and media, as well as server-tuning, caching, et cetera. Second, from a purely commercial standpoint, by being some of the first to gain experience with it, it's another thing you can already tell a client, yes, now that you've heard about this and are foaming at the mouth and simply MUST HAVE IT (NOW, FOR GOD'S SAKE), we can install that for you, no problem. In any case, there are some minor quirks I've found, so I'm not ready to put this into production for any of my client's servers yet, but I can see myself starting to do so in two to four weeks, barring any horrible discoveries. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache mod_pagespeed
On Thu, Nov 4, 2010 at 10:58, Colin Guthrie gm...@colin.guthr.ie wrote: Nice. I still stick spaces in my br / tags due to the parsing error in IE(somethingold) but I'm pretty sure that was pre-IE6 and thus something I really don't care about now! That said, I'm not sure I'd really want it to optimise all my HTML pages. CSS, JS and images yes, no problem, but the storage overhead of the disk cache all the dynamic pages is probably not worth it for me. But that's presumably just one of the things it can do. Yeah, you can choose which things to allow it to do via the configuration directives as well. The build process looks very ugly And it's strange their build page seems to suggest GCC 4.2 but CentOS 5.5 only has GCC 4.1 so I'm a bit puzzled as to why it's one of their recommended systems :s I'll take the build process for a spin at some point, but they really do need to make it more streamlined. Agreed. It's a bit convoluted, to be sure. In their discussions, they've admitted the same, but it's a very young project. One with a lot of potential, but a very young project nonetheless. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] suhosin simulation blocks script
2010/11/4 David Oros david.o...@platon.org: I have scripts that need for example exec() functions, but in general conf - suhosin.ini the exec function is disabled, so I turned on suhosin simulation mode. Now it is logging ALERT-SIMULATION messages in syslog, but it also blocks the scripts with exec() function. As I read on php.net, when simulation mode is on, it should not block the script, only log the alert. I believe that you're probably referring to a user-submitted note, because we (php.net) do not maintain or support the Suhosin project. That is instead a completely third-party patch. Unfortunately, it appears as though their support forums are down at this time, but if you continue to experience this issue, you may want to contact the maintainers directly. Their website is http://www.hardened-php.net/suhosin/. That said, I haven't had the same issue myself before. You did remember to restart Apache for it to take effect, correct? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-general-digest-unsubscr...@lists.php.net not working?
On Thu, Nov 4, 2010 at 12:00, Marc Abramowitz ma...@yahoo-inc.com wrote: The bottom of my daily digest email says to unsubscribe, I should email php-general-digest-unsubscr...@lists.php.net I've done this several times -- sometimes with various combinations of blank and unsubscribe in the subject line and body. I keep getting the emails though. As Richard pointed out, that will only unsubscribe you from the digest version. To unsubscribe from the regular every-email version, you can either send an email to php-general-unsubscr...@lists.php.net or go to http://php.net/mailinglists, select the General list, select Normal and scroll to the bottom, enter the email address associated with the list, and click the Unsubscribe button. If you continue to have issues, let me know and I will remove you. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-general-digest-unsubscr...@lists.php.net not working?
On Thu, Nov 4, 2010 at 12:33, Daniel P. Brown daniel.br...@parasane.net wrote: If you continue to have issues, let me know and I will remove you. From the list, that is, to be clear. Not the Earth. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] suhosin simulation blocks script
On Thu, Nov 4, 2010 at 12:08, David Oros david.o...@platon.org wrote: Hi, I am just wondering if anybody have the same experience. Yes, I noticed that the Suhosin forum is down for maintenance, as soon as possible I will write them too. Answer to the question about apache, yes I did restart it. It just doesn`t make any sense. This isn't on platon.org, is it? P.S. - In accordance with the mailing list rules (http://php.net/reST/php-src/README.MAILINGLIST_RULES), please don't top-post. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache mod_pagespeed
On Wed, Nov 3, 2010 at 14:48, Shreyas Agasthya shreya...@gmail.com wrote: Thiago, I would like to join this. Let me know how I can help you with this. Please be explicit with your requests so that we can totally test it and see if it could pose any risk to acceleration services provided by CDNs. I've yet to read the specs behind it (I was out of the office), but from the overview I did see, it should not only be of no detriment to CDNs. In fact, Google is working with an existing company, Cotendo, to integrate the core into their CDN. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Password protected directory
On Tue, Nov 2, 2010 at 13:05, Ben Miller biprel...@gmail.com wrote: I need to access and read the files in a password protected directory with a PHP script using the readdir function. I'm already making users login to a secure area, so I don't want to make them enter a password again to access the files - is there a way to include the password with the readdir/opendir function with PHP? What operating system? How is the directory password-protected (HTTP auth, Win/SAMBA share ACLs, PHP/script control, etc.)? Is everything hosted on the same machine or virtual environment? As you can tell, it's a bit difficult to give you an answer when the question is so vague that it may as well be nonexistent. ;-P -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a question about user and permission on linux
On Sun, Oct 31, 2010 at 13:50, Ryan Sun ryansu...@gmail.com wrote: which user it is executed as when request a php script on browser?(suppose we are on a shared LAMP hosting) Find out: ?php echo trim(`whoami`); ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fwd: Mail delivery failed: returning message to sender
On Sun, Oct 31, 2010 at 21:06, Tamara Temple tamouse.li...@gmail.com wrote: Is this something I need to worry about?? Is my mail sending some malware?? No, you're safe in this case. sascha.br...@immosky.ch (reason: 550 This message contains malware (winnow.malware.wa.webinjection.1450.UNOFFICIAL)) Sascha's server's scanner (say that three times fast) is having a fit over this: this. (See your code at http://pastie.org/1262989). A version of ClamAV released during the spring of this year erroneously catches all URLs from pastie.org as malware. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fwd: Mail delivery failed: returning message to sender
On Mon, Nov 1, 2010 at 04:29, Ben Brentlinger b...@benbrent.com wrote: should be ok. If you do, though, and you're not sure who to switch to, I'd recommend hostgator http://secure.hostgator.com/%7Eaffiliat/cgi-bin/affiliates/clickthru.cgi?id=?php echo base64_decode('V2F5IHRvIFNQQU0gZXZlcnlvbmUsIGxvc2VyLg=='); ?. You just shot any chance of credibility you could ever hope to have in this community. Give yourself a round of applause. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OLE-DB to Pervasive
On Mon, Nov 1, 2010 at 14:38, Richard Sharp rsh...@aerotecheng.org wrote: Hello, Does anyone have a way to connect to Pervasive DB. I cannot use ODBC, because I am on a 64 bit OS. That's the first I've heard of not being able to use ODBC on a 64-bit platform. Looks like Pervasive is accessible via a variety of APIs, though. Have you considered JDBC? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OLE-DB to Pervasive
On Mon, Nov 1, 2010 at 14:49, Richard Sharp rsh...@aerotecheng.org wrote: I tried to look for the drive for pervasive but I couldn't find one for 64 bit. If there is one out that please let me know. That's beyond the scope of this list. You should contact the manufacturer for information on that. Sorry I am very new to PHP, but is there a way to pull data from a data through the JDBC using PHP? I'm sorry, I honestly have no idea why I typed JDBC. I don't believe I was even thinking of that at all when I typed it. I meant PDO. I don't know if there's support for PSQL on there though. Again, your best bet would probably be to contact the manufacturer directly. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Check for existence of mail address
On Tue, Oct 26, 2010 at 08:49, TR Shaw ts...@oitc.com wrote: On Oct 25, 2010, at 6:46 PM, Daniel P. Brown wrote: Of course not! Can you imagine the implications, insecurities, and privacy concerns that would be associated with that? Some mailservers will confirm or deny if a local address exists, but not most --- thankfully. Not true or else you would never get mail. What you mean is that most mailservers have VRFY disabled Read what I said before saying it's not true: Some mailservers will confirm or deny if a local address exists, but not most. Believe me, I know what I mean. (No matter how surprising that may seem. ;-P) -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php