Re: [PHP] What's happened to our newsgroup?

2012-06-28 Thread Daniel Fenn
Or everyone is on holiday for php :P On Fri, Jun 29, 2012 at 10:43 AM, tamouse mailing lists wrote: > On Wed, Jun 27, 2012 at 9:42 AM, Tedd Sperling wrote: >> On Jun 26, 2012, at 3:21 PM, Al wrote: >> >>> No postings for days. >>> >> >> Maybe everyone learned it -- no new questions. >> >>

Re: [PHP] Depreciation message I can't make out....

2012-06-30 Thread Daniel Brown
On Thu, Jun 28, 2012 at 8:37 PM, tamouse mailing lists wrote: > > Just a quick followup -- # comments are deprecated for .ini files, > only, correct? They are still full citizens in php source, aren't > they? Correct, Tam. -- Network Infrastructure Manager http://www.php.net/ -- PHP Gene

Re: [PHP] log tailing

2012-06-30 Thread Daniel Brown
On Fri, Jun 29, 2012 at 4:49 AM, Mihamina Rakotomandimby wrote: [snip!] > > Typically, a log line like: > Jun 29 11:24:10 dev5 sshd[12775]: Accepted password \ >            for dev5 from 192.168.0.12 port 50544 ssh2 > [snip!] > So that I can: > > INSERT INTO ssh_activity \ >   VALUES ('2012-06-29

Re: [PHP] log tailing

2012-06-30 Thread Daniel Brown
On Sat, Jun 30, 2012 at 2:30 PM, Daniel Brown wrote: > > > $ssh_entries = explode(PHP_EOL,trim(`tail /var/log/syslog | awk > {'print $1,$2,$3 "|" $5 "|" $11'}`)); Actually, the above was intended to grab just sshd entries, so instead of 'tai

Re: [PHP] embedding php inside of php

2012-07-02 Thread Daniel Brown
On Sat, Jun 30, 2012 at 8:00 PM, Tim Dunphy wrote: > Hello, > > I am trying to get the hang of php using some examples that I found > in a book. I've been making progress lately, but one thing has me a > bit stumped. > > > In an HTML form that I am echoing through PHP I would like to embed > smal

Re: [PHP] Way to test if variable contains valid date

2012-07-02 Thread Daniel Brown
On Mon, Jul 2, 2012 at 2:54 PM, Ron Piggott wrote: > > Is there a way to test a variable contains a valid date > - 4 digits for the year > - 2 digits for the month (including leading 0) > - 2 digits for the day (including leading 0) > > OR > > - a function? You may want to check out checkdate

Re: [PHP] PHP Time

2012-07-02 Thread Daniel Brown
On Mon, Jul 2, 2012 at 4:00 PM, Rob Weissenburger wrote: > Hello everyone, > > I know php time() gives the current unix time which you can format out to > a normal date and time. Is there a way to format a specific date and time > back to unix time? Yup. Look at strtotime() and mktime():

Re: [PHP] Session Checking

2012-07-09 Thread Daniel Brown
On Mon, Jul 9, 2012 at 2:40 PM, Floyd Resler wrote: > I want to have an alert pop up to let the user know their session is about to > expire. Would the best approach be to do a timer in Javascript or check it > in PHP. I'm storing session data in a MySQL database so I can know when a > sessio

Re: [PHP] Quem esta por dentro de PSR?

2012-07-10 Thread Daniel Brown
2012/7/10 Volmar Machado : > Nao sei se sabem, mas tem uma galera implemantendo PSR-X, que sao > padroes para desenvolvimento em PHP. Gostaria de saber o que pensam > disso :) Eu não sei, mas não é realmente uma questão de PHP, e isso é realmente apenas uma lista de discussão Inglês. -- Ne

Re: [PHP] Quem esta por dentro de PSR?

2012-07-10 Thread Daniel Brown
2012/7/10 Volmar Machado : > Sorry, I sent to wrong list :/ No apologies necessary. -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simplepie characters not showing

2012-07-16 Thread Daniel Brown
On Mon, Jul 16, 2012 at 9:18 AM, muad shibani wrote: > Hi all > > I used SimplePie to collect news feed from 100 Arabic websistes everything > is fine > but when I transfer the website into a new server some feed titles and > descriptons show only numbers or special characters if there are some

Re: [PHP] difference PEAR PECL

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 12:18 PM, Mihamina Rakotomandimby wrote: > Hi all, > Wondering about the difference between PECL and PEAR, I found: > http://board.phpbuilder.com/showthread.php?10339238-Pecl-vs-Pear > > Is it a suitable answer? It's close. PECL (sometimes pronounced "pickle") sta

Re: [PHP] What do you call the end-user?

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 1:26 PM, Tedd Sperling wrote: > > What do you call the people who ultimately use your code? If they're using the *code*, then "user" or "developer." If they're using the finished product (site, application, or results thereof), then "end-user," "customer," "visitor,"

Re: [PHP] Creating drop-down menus

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 1:25 PM, Tedd Sperling wrote: > > As for the discussion re jQuery and such, there's no need -- it was not used > in this demo. IOW, no jQuery was harmed. I am not against jQuery, on the > contrary I think it's great, but it's not always needed for client-side > functiona

Re: [PHP] The Cat Signal

2012-07-19 Thread Daniel Brown
Forwarding to php-webmas...@lists.php.net, as it's not a "general user" issue where it pertains to php.net. On Thu, Jul 19, 2012 at 2:02 PM, Kris Craig wrote: > Hey guys, > > I just became aware of this: > > http://internetdefenseleague.org/ > > > It's a site setup by Mozilla, Reddit, and oth

Re: [PHP] difference PEAR PECL

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 2:26 PM, Matijn Woudt wrote: > > Is this really the recommended way on distros' which package the pecl > packages? > It seems to me it would be better to use the distros' version, so it > has the required patches (if any) for them to work correctly on the > distro, and the

Re: [PHP] Creating drop-down menus

2012-07-20 Thread Daniel Brown
On Fri, Jul 20, 2012 at 10:21 AM, tamouse mailing lists wrote: > On Jul 20, 2012 9:20 AM, "tamouse mailing lists" > wrote: >> On Jul 19, 2012 8:31 PM, "Tedd Sperling" wrote: >> > On Jul 19, 2012, at 1:50 PM, Daniel Brown wrote: >> > > >

Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP

2012-07-27 Thread Daniel Fenn
macs, I'm not too sure on that one, all I know that you can get php on it. I know that this won't be much help but just sharing my experience with getting php installed. Regards, Daniel Fenn On Sat, Jul 28, 2012 at 5:56 AM, JeffPGMT wrote: > Please correct me if I'm

Re: [PHP] get_browser error

2012-08-03 Thread Daniel Brown
On Fri, Aug 3, 2012 at 9:42 AM, admin wrote: > Anyone using > > Get_browser() notice that IE 9 is reporting as IE 7? > > I am aware of compatibility mode in IE 9 but that should not change the > version information sent will it? My guess is that it would, in fact, because it would send its

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread Daniel Brown
On Mon, Aug 6, 2012 at 1:15 PM, shiplu wrote: >> Where *do* come up with those names :) >> > > Sorry I couldn't understand the meaning of your sentence. May be this is > due to cultural difference. > > Anyway, Solr is a search engine. Nutch is a crawler. Both can be > integrated. Then one can sen

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread Daniel Brown
On Mon, Aug 6, 2012 at 1:42 PM, shiplu wrote: > > Thanks Daniel for clearing. I am pretty bad in English. :( Don't sell yourself short. Your English seems fine to me --- better than many native-speakers. -- Network Infrastructure Manager http://www.php.net/ -- PHP General M

Re: [PHP] PHP session variables

2012-08-08 Thread Daniel Brown
On Wed, Aug 8, 2012 at 11:24 AM, Ansry User 01 wrote: > I am setting the _SESSION variables in one of my file, but whenever I leave > the php page session variables are not accessible. Not sure what I need to do > additionally other then defining _SESSION[]. > Any pointer. If you're not tel

Re: [PHP] Too many open files

2012-08-10 Thread Daniel Brown
On Fri, Aug 10, 2012 at 10:22 AM, Robert Cummings wrote: > On 12-08-09 08:01 PM, Al wrote: >> I can't find a way to see what files could be open or what the limit is. >> >> Site is on a shared server, cPanel. > >^ > THIS is probably your problem. Too many open files ind

[PHP] Re: [PHP-WEBMASTER] php error

2012-08-13 Thread Daniel Brown
On Mon, Aug 13, 2012 at 2:32 PM, tomas lagro wrote: > > Hello, my name is tomas, i'm having a problem and i've checked a lot of times > the script and it is not that, because in my local xampp server it works > correctly, the issue is that i have a form on my webpage and when you submitt > it,

Re: [PHP] about unlink

2012-08-14 Thread Daniel Brown
On Tue, Aug 14, 2012 at 4:22 AM, Tolga wrote: > hi, i have a very annoying problem with unlink() > i use win7 and wamp server (apache 2.2.22 & php 5.4.3) > when i try to use unlink: > > SCREAM: Error suppression ignored for > Warning: unlink(aaa/bbb.ccc): Permission denied in C:\wamp\www\ddd\index

Re: [PHP] PHP APC 3.1.11

2012-08-14 Thread Daniel Brown
On Tue, Aug 14, 2012 at 7:14 AM, Vedran Rodic wrote: > Hi, > > PHP APC 3.1.11 is marked beta, however it seems to contain important bugfixes. > > Is it safe to deploy on production (we're currently using 3.1.9)? Or > it is better to wait for 'stable' release. When is next 'stable' > expected?

Re: [PHP] Need to have form protection techniques

2012-08-17 Thread Daniel Brown
On Fri, Aug 17, 2012 at 12:05 AM, Ansry User 01 wrote: > I need to know the forms validity techniques for Php. This will probably take a while to absorb, so you may need to revisit this page several times: http://oidk.net/php/know-the-forms-validity-techniques-for.php -- Network I

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Daniel Brown
On Fri, Aug 17, 2012 at 3:35 PM, Tristan wrote: > So, I need to change from somedomain.com to somenewdomain.com > > I was thinking of doing this > > 1) create an alias to the site somenewdomain.com to point to current server > 2) run permanent 301 redirect from somedomain.com to somenewdomain.com

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Daniel Brown
On Fri, Aug 17, 2012 at 4:30 PM, Tristan wrote: > > My colleague is saying > > "but I still think we should change all the references to someolddomain.com > to some newdomain, especially in the code base, database etc..." > > I don't want to introduce more problems if a find/replace doesn't go rig

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-18 Thread Daniel Brown
On Aug 18, 2012 4:49 PM, "Paul M Foster" wrote: > > I can comment on part of this based on what I was recently told by an > SEO company. Let's assume you've got a bunch of SEO "goodness" > (recognition, Google search placement, etc.) going for you on site1.com. > If you a permanent redirect (301)

[PHP] Re: [PHP-DB] echo into variable or the like

2012-08-21 Thread Daniel Brown
On Tue, Aug 21, 2012 at 12:01 AM, wrote: > Hi, this is my first post so forgive me if I missed a rule and do something > wrong. > > I have this code, > > echo $_SERVER['PHP_SELF']."?"; > foreach ($_GET as $urlvar=>$urlval) > echo $urlvar."=".$urlval."&"; > > It works by it’s self. > I want to in

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Daniel Brown
On Sat, Aug 25, 2012 at 6:54 PM, Ashley Sheridan wrote: > I've just inherited some (pretty awful code) that I have to make some > edits to, and came across a bit of a problem. A lot of the code breaks > in and out of PHP and into HTML code: > > while(condition) > { > ?> > some html here > } > ?

Re: [PHP] The end of "mysql"

2012-09-08 Thread Daniel Brown
On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner wrote: > So with the announced end of the mysql functions (and switching to a > different extension), one would think that my isp/hoster would be a bit more > interested in my dilemma. I tried today to create my first mysqli-based > test script and found

Re: [PHP] a little trickery

2012-09-08 Thread Daniel Brown
On Sat, Sep 8, 2012 at 10:49 AM, Stuart Dallas wrote: > > Is there just one image in the folder that starts with the 9 digit number? In > that case it's dead simple (untested code): > >function completeImageFilename($prefix) > { > $matches = glob('images/property_pics/'.$prefix.'*'); >

Re: [PHP] The end of "mysql"

2012-09-08 Thread Daniel Brown
On Sat, Sep 8, 2012 at 11:40 AM, Paul M Foster wrote: > > Please excuse my ignorance. I feel like I just stepped into the middle > of a conversation. What's this about "announced end of the mysql > functions"? Who exactly announced what, and is there a link to whatever > announcement somewhere?

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Daniel Brown
On Wed, Sep 12, 2012 at 10:18 AM, Tonix (Antonio Nati) wrote: > > Is PHP able to 'force' binding IP? I hoped there was an external directive I > did not see, but probably this is a PHP lack. Not at all. Essentially, PHP is an interface to underlying software, OS commands, and APIs. You'd ha

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Daniel Brown
On Wed, Sep 12, 2012 at 11:38 AM, Tonix (Antonio Nati) wrote: > > So, the answer is no, PHP is not able to do that. > There is an (heavy) BASEDIR directive for disk, but nothing equivalent (and > simpler) for IP. That's correct. However, that doesn't mean you can't put in a feature request a

Re: [PHP] bucle while for to msqyl

2012-09-16 Thread Daniel Brown
On Sep 16, 2012 4:33 PM, "El Ale..." wrote: > > hi! im new in this forum, i not speak very good english, apologise im > spanish. > I have a problem, need one infinit bucle to mysql only "true" if "false" > break this, for example: Que paso, Alex? La lista de PHP en espanol es aqui:

Re: [PHP] Re: How to limit source IP in PHP

2012-09-18 Thread Daniel Brown
On Tue, Sep 18, 2012 at 9:15 AM, Ian wrote: > > Hi Curtis, > > I am suffering from sleep deprivation due to a new family addition and I > fail to see how your code will prevent a malicious user from binding to > an IP that I do not want him to. It appears to be an example of how to > bind to an I

[PHP] Vulnerability Announced in phpMyAdmin

2012-09-25 Thread Daniel Brown
Afternoon, folks; Just a three-list cross-post to bring it to everyone's attention at once, in case you weren't already aware. It was announced today that a compromised SourceForge mirror was distributing a malicious file with the phpMyAdmin package that allows an attacker to arbitrarily

Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-25 Thread Daniel Fenn
Thank you for the heads up. On 9/26/12, tamouse mailing lists wrote: > On Tue, Sep 25, 2012 at 3:20 PM, Daniel Brown wrote: >> Just a three-list cross-post to bring it to everyone's attention >> at once, in case you weren't already aware. It was announced to

Re: [PHP] PHP as Application Server

2012-09-26 Thread Daniel Brown
On Wed, Sep 26, 2012 at 5:58 AM, Maciej Liżewski wrote: > > Why there is no possibility to run PHP in "application server" way among > other SAPI modules and other possibilities to run PHP? PHP would encounter > great performance boost and became more "enterprise" :) Just look at Ruby > which is s

Re: [PHP] Responding to an XML data post

2012-09-27 Thread Daniel Brown
On Thu, Sep 27, 2012 at 1:48 PM, Bastien Koert wrote: > Hi All, > > I am stuck in something where a 3rd party app pushes an XML post to my > site. They need me to respond to that push with a synchronous XML post > back confirming that the data was received / had issues etc. Those > XMLs are define

Re: [PHP] Round help needed

2012-09-27 Thread Daniel Brown
On Thu, Sep 27, 2012 at 11:05 PM, Chris Payne wrote: > Hi everyone, > > I'm having one of those nights where nothing is working, please help > > What I have is this: > > $rounded_number = round($test, -3); > > Here's the problem i'm having, I need it to increment to the nearest 1000 > but it seems

[PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Daniel Brown
About five-and-a-half years ago, we had a brainteasers thread going on[1]. Last year it was briefly resurrected[2], and both times got some good content and dialogue going. So I'd like to reprise the thread in 2012, as well. Those of you connected to me on Facebook (parasane) or Twitter (@oi

Re: [PHP] Re: Reaching the PHP mailing list owners

2012-10-12 Thread Daniel Brown
What is it you're trying to achieve with the below, Helmut? On Fri, Oct 12, 2012 at 1:53 PM, Helmut Tessarek wrote: > Well, this is useful. > > First I get a a message that the owner of the list is available at > internals-ow...@lists.php.net and then I get another automated reply. > > On 12

Re: [PHP] Re: Reaching the PHP mailing list owners

2012-10-12 Thread Daniel Brown
On Fri, Oct 12, 2012 at 2:19 PM, Helmut Tessarek wrote: > Hello Daniel, > > I wanted to get an answer to my question (which you would have seen, if you > actually had read the mail). I briefly glanced, and no more, because anyone with any idea of Internet etiquette knows not t

Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Daniel Brown
On Sun, Oct 14, 2012 at 11:48 AM, Jim Giner wrote: >> > Sounds like a good idea, but as for me - if I was a newbie I'd have a > problem with their very first instructions. It says right off the start to > type in the following: > php -5 localhost:8000 That should be a capital S, not a five.

Re: [PHP] Beneficial site spamming framework

2012-10-15 Thread Daniel Brown
On Sat, Oct 13, 2012 at 5:10 PM, Ashley Sheridan wrote: > > It was only your replies coming through so often, so I doubt its my end. > Also, the newsgroup is the same thing as the mailing list I believe, in this > instance. Hmm I only got each reply once as well, so I'm not entirely con

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Daniel Brown
On Tue, Oct 16, 2012 at 4:19 PM, Richard S. Crawford wrote: > > Thanks for the suggestion. Unfortunately the problem seems to be that PHP > thinks the America/Los_Angeles timezone is the same as EDT. I'm not sure > how to approach this issue. Per list rules, just a gentle reminder: please don

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Daniel Brown
On Oct 16, 2012 5:24 PM, "Richard S. Crawford" wrote: > > Sorry about that. I was getting very frustrated with the issue, and I forgot. I'll be sure to keep it in mind. No worries. >> >> With regard to debugging your issue, it's extremely unlikely that >> it's PHP's fault, since no one e

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Daniel Brown
On Wed, Oct 17, 2012 at 2:28 PM, Richard S. Crawford wrote: > > You can see the current output of the above code here: > > http://projectbench.extensiondlc.net > > I've confirmed that the server is set to PDT. The value of date.timezone in > php.ini is "America/Los_Angeles", which should be (curre

Re: [PHP] Missing email

2012-10-20 Thread Daniel Brown
On Sat, Oct 20, 2012 at 5:00 AM, Karl DeSaulniers wrote: > @Moderator > Any reason why my emails do not post or at least dont post for hours later? There is no moderator on this list. I'm probably about as close as it comes. Can you explain more about the problems you're experiencing so tha

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner wrote: > I have a php script that has been triggered by my hoster's cron process(?) > to run once a day since last March. It's been running fine - and I've made > no changes to it. Suddenly in the last couple of days it is running twice > it seems. The

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 4:59 PM, Jim Giner wrote: >> > Yes - same msg same time If it wouldn't be a problem, can you provide the script here (or on a site like Pastebin), as well as the crontab time entry for this? While checking the crontab, make sure a duplicate entry for this wasn't someho

Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 5:00 PM, Steven Pogue wrote: > Has anyone been successful at using the above on a RHEL 6.2 environment? I > am able to use Postfix using the php.ini SENDMAIL_PATH but when I bring > down PostFix, start Apache James and switch the sendmail_path value to > point to the Apache

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: > > > Crontab is the daemon which runs cron jobs, and some distros have set up > special files called cron.daily (or daily.cron I don't recall), > cron.hourly, etc to make it easier to schedule jobs. Quick clarification and correction he

Re: [PHP] Date manipulation

2012-10-25 Thread Daniel Brown
On Thu, Oct 25, 2012 at 3:06 PM, Ron Piggott wrote: > > Is it possible for PHP to accept the following as a date: > > 04:11:22 Aug 21, 2011 PDT > > so I may output it as: > > gmdate(‘Y-m-d H:i:s’) > > - I want the time zone included Sure. -- Network Infrastructure Manager http://www.php.

Re: [PHP] select function

2012-10-25 Thread Daniel Brown
On Thu, Oct 25, 2012 at 5:35 PM, Jeff Burcher wrote: > Hi, > > > > I can't remember if this is the PHP list for RPG programmers or not, so > apologize if this is the wrong one. This is just a general PHP mailing list. Guessing you need the other one. -- Network Infrastructure Manager http

Re: [PHP] How to get a PHP bug fixed?

2012-11-17 Thread Daniel Brown
On Sat, Nov 17, 2012 at 1:51 AM, Enumag wrote: > Hi, there is a bug I'd like to be fixed and even a patch is available. But > there is still no reaction at all after 2 years. What else can I do to get > the bug fixed? > > https://bugs.php.net/bug.php?id=45351 - patch available from 2010-06-13 > ht

Re: [PHP] how to read emails with php

2012-12-04 Thread Daniel Brown
On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee wrote: > hi guys > i want to open an email content ( subject ,body , attachment ) with php > i use imap_php but its wont connect to host > what should i do? > thanx Start by finding out why it won't connect. Check the logs on the server if you ca

Re: [PHP] how to read emails with php

2012-12-04 Thread Daniel Brown
On Tue, Dec 4, 2012 at 1:44 PM, Farzan Dalaee wrote: > Same error > I think its need something else for opening service like ssl setting or > somthing like that > Or this host im using block imap or pop3 access Per list rules, please don't top-post. Some things to consider:

Re: [PHP] PHP site search broken?

2012-12-05 Thread Daniel Brown
On Tue, Dec 4, 2012 at 3:56 PM, Paul M Foster wrote: > Is it just me, or is the search feature on php.net broken? > > When I enter a full search term (known good function name) and then hit > the arrow, it brings me back to the generic search page. If I enter a > partial search term and then click

Re: [PHP] Session ?

2012-12-07 Thread Daniel Brown
On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner wrote: > Something new for me - working with scripts on two of my sub-domains. > > I want to call script 2 in my B domain from script 1 in my A domain. > > It appears that the session vars established in script 1 do not show up in > script 2. Is that beca

Re: [PHP] Session ?

2012-12-07 Thread Daniel Brown
On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner wrote: > On 12/7/2012 2:36 PM, Daniel Brown wrote: >> >> On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner >> wrote: >>> >>> Something new for me - working with scripts on two of my sub-domains. >>> >>> I

Re: [PHP] Session ?

2012-12-07 Thread Daniel Brown
On Fri, Dec 7, 2012 at 2:54 PM, Jim Giner wrote: > > What if my sub-domain names are not in the form of 'a.domain.com' and > 'b.domain.com'. A subdomain is a subdomain. Unless you've discovered a new magical form of subdomain that is not, you should be fine. And if you have, in fact, made t

Re: [PHP] Session ?

2012-12-07 Thread Daniel Brown
On Fri, Dec 7, 2012 at 3:04 PM, Jim Giner wrote: > > OK - now that I've messed us all up, help me to understand your proposed > solution. I added the ini-set line to my first script. Then I called my > second one and still had the same problem with a missing session var. Is > there a correspond

Re: [PHP] Session ?

2012-12-07 Thread Daniel Brown
On Fri, Dec 7, 2012 at 3:20 PM, Sebastian Krebs wrote: > > Would be better to put 'session.cookie_domain' into the php.ini. In both > cases: Clear cookies (at least for your site) completely and set > session.auto_start to 0. If it's configured on the server for overrides, sure, a local one.

Re: [PHP] Session ?

2012-12-08 Thread Daniel Brown
On Sat, Dec 8, 2012 at 10:52 AM, Jim Giner wrote: > Didn't work. > > Let me explain my domain names. My main domain is "albanyhandball.com". I > have two subs called "x.albanyhandball.com" and "y.albanyhandball.com". > Attached to each of these is what my isp calls an "add-on domain" name. > The

Re: [PHP] Re: form validation

2012-12-20 Thread Daniel Brown
On Thu, Dec 20, 2012 at 10:34 AM, Jim Giner wrote: > > If you are using > mysql for a db, then you should already be using mysql_real_escape_string in > place of addslashes. Actually, you should start moving toward MySQLi, as mysql_*() is deprecated. -- Network Infrastructure Manager http:

Re: [PHP] MySQLi

2012-12-20 Thread Daniel Brown
On Thu, Dec 20, 2012 at 12:18 PM, Stephen wrote: > I read about the subject in another thread. > > Where does PDO fit? > > That is what I have used for sometime. Am I good? Right as rain. PDO is a preferred abstraction layer in PHP and isn't going anywhere anytime soon. -- Network Infrast

Re: [PHP] Some date() oddities

2013-01-08 Thread Daniel Brown
On Tue, Jan 8, 2013 at 3:43 PM, Arno Kuhl wrote: > I've bumped into an odd result with the date() function that I can't make > sense of. > > Starting with a unix timestamp for 31 December 2012 13:12:12 (which is > 1356952332) I calculate a week number: > > $ux_date = 1356952332; > > $weeknumber =

[PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread Daniel Brown
On Fri, Jan 18, 2013 at 10:33 AM, KISE wrote: > Paul Dragoonis, > > Actually it wont work i did tried it before, if the dir end with / it will > list the directories inside the path you gave it and if it doesn't have any > directories it will return false since there is no directories to return. >

Re: [PHP] webDAV/CalDAV client class experience ?

2013-02-13 Thread Daniel Brown
On Tue, Feb 12, 2013 at 3:40 PM, B. Aerts wrote: > Hello, > > I'm working on this one for more than a year (personal project) - but I'm > turning pretty desperate here. > > I'm trying to connect to 2 Calendars through the CalDAV protocol. > The calendars are hosted by 2 webmail providers. > If I t

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Daniel Brown
On Thu, Feb 14, 2013 at 2:20 PM, Chris Bergstresser wrote: > Hi all -- > >I've got a cloud server on Rackspace. If I bring up a fresh Ubuntu > 12.10 machine image, and type "apt-get install php5" it seems to > install fine. But if I then type "php -version" I get "PHP Parse > error: syntax

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Daniel Brown
Remember to hit reply-all, Andy, so it goes to the list as well as the previous author. On Thu, Feb 14, 2013 at 2:49 PM, Andy McKenzie wrote: > On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown wrote: >> On Thu, Feb 14, 2013 at 2:20 PM, Chris Bergstresser >> wr

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Daniel Brown
On Thu, Feb 14, 2013 at 4:56 PM, Andy McKenzie wrote: > > Can I just mention, as so many others have, how much I hate the fact > that this list is configured to not reply to the list by default? I know. Actually, the only reason it's like this is because a lot of people will take the convers

Re: [PHP] stripped \n

2013-02-20 Thread Daniel Brown
On Wed, Feb 20, 2013 at 1:32 PM, Matijn Woudt wrote: > > An input with type=text is used for single lines, so yes, newlines get > stripped. > Either use a textarea with style="display: none", or store the data in a > session instead. Or at least . -- Network Infrastructure Manager http://w

Re: [PHP] Very Large File Splatter

2013-02-22 Thread Daniel Brown
On Fri, Feb 22, 2013 at 4:04 PM, Brian Smither wrote: > PHP 5.4.4-TS-VC9 on Windows XP SP3 NTFS non-system drive with 18GB free. > > I dare not try to replicate this. As such, I cannot firmly place the blame on > PHP. > > I have peppered a PHP application with a call to a function which > append

Re: [PHP] Stupid question

2013-02-26 Thread Daniel Brown
On Tue, Feb 26, 2013 at 4:27 PM, Curtis Maurand wrote: > I have the following: > > $dsn = "mysqli://$username:$password@$hostname2/$database"; > $options = array( > 'debug' => 3, > 'result_buffering' => false, > ); > $dbh =& MDB2::factory($dsn, $options); > if (PEAR::isError($m

Re: [PHP] Stupid question

2013-02-28 Thread Daniel Brown
On Wed, Feb 27, 2013 at 9:14 PM, Curtis Maurand wrote: > > Well that means the docs on the PEAR MDB2 website are incorrect and should > be fixed. Thanks for the lesson. If there's an issue with the docs, you're right, they should definitely be fixed. We'd appreciate it very much if you coul

Re: [PHP] Introduction ... !

2013-03-01 Thread Daniel Brown
On Fri, Mar 1, 2013 at 10:57 AM, Nick Whiting wrote: > Hello PHP'ers! > > Just thought I would introduce myself to the mailing list since I've worked > with PHP for almost 10 years now and yet haven't really been community > active ... > > I've developed quite a few open-source projects over the y

Re: [PHP] Introduction ... !

2013-03-01 Thread Daniel Brown
On Fri, Mar 1, 2013 at 12:54 PM, Jim Giner wrote: > > What gives you such optimism? I recently saw a list of languages in use and > PHP has dropped quite a bit over the last 5 or more years. > Being a relative newbie myself, I'm happy that PHP exists and is so readily > available to us hobbyists,

Re: [PHP] Surge 2013 CFP open

2013-03-20 Thread Daniel Brown
The below is a good example of why to trim your signature before sending an email to a public mailing list. Ignoring for a moment the irrelevance of the conference, a one-line email should not have a nineteen-line signature --- particularly when the "notice" is null and void when sent willingl

Re: [PHP] application level variable file

2013-03-22 Thread Daniel Brown
On Fri, Mar 22, 2013 at 10:22 AM, wrote: > I am very new to the PHP application and would like to create a new project. > I would like to have a file to save my application level variable and > functions. > > I would like to know does PHP have any default file name and file path for > this file l

Re: [PHP] magic_quotes_gpc stays on even when disabled in php.ini

2013-03-27 Thread Daniel Fenn
I think ";magic_quotes_gpc = Off" should be "magic_quotes_gpc = Off" Then restart apache/php or whatever it is your running Regards, Daniel Fenn On Thu, Mar 28, 2013 at 11:39 AM, Madan Thapa wrote: > Hi, > > I installed php 5.3.23 recently on a CentOS sever

Re: [PHP] htaccess question

2013-04-09 Thread Daniel Brown
On Tue, Apr 9, 2013 at 2:07 PM, Al wrote: > I know it's not a php question, but I can't readily find the answer > elsewhere. > > I want to make this directive universal. Put htaccess file on any host in > any folder. > > This works > RewriteEngine On > > RewriteCond %{SERVER_PORT} !=443 > > Rewrit

Re: [PHP] Commands which call exec() or shell_exec() ??

2013-04-09 Thread Daniel Brown
On Tue, Apr 9, 2013 at 3:11 PM, Ken Kixmoeller wrote: > Hi -- - > > Strange problem. One of my applications was just moved to a new server. The > new server has php configured to blacklist some functions (using > "disable_functions="). One of the "banned" functions is exec(). > > The error log is

Re: [PHP] PHP compiler - HipHop performance

2013-04-25 Thread Daniel Fenn
On Fri, Apr 26, 2013 at 1:56 PM, Norah Jones wrote: > Hi, > > I have downloaded HipHop for my website, I am going through various web > links which are suggesting that performance will improve 3-6 times. However > I don't know the Stability of the HipHop. > > Please provide your inputs so that I

Re: [PHP] FW:

2013-05-08 Thread Daniel Brown
If you're going to send hack attempts, at least adjust your clock so that it doesn't look like it took almost a month for your SPAM to get here. We're not the Pony Express. (And, no, PHP doesn't stand for Produced by Horses & Ponies.) On Thu, Apr 11, 2013 at 11:43 AM, Paul Novitski wrote: >

Re: [PHP]

2013-05-08 Thread Daniel Brown
On Wed, May 8, 2013 at 1:14 PM, Tedd Sperling wrote: > > PS: PHP + > "Produced by Horses & Ponies." ? You got too much time on your > hands Daniel. Sometimes I wish that were the case. Honestly, I think it's having a three-and-a-half-year-old daughter

Re: [PHP]

2013-05-08 Thread Daniel Brown
On Wed, May 8, 2013 at 1:26 PM, David OBrien wrote: > > That would be reverse acronymization :) You're absolutely correct. Deacronymize? -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP]

2013-05-08 Thread Daniel Brown
On Wed, May 8, 2013 at 3:13 PM, Steven Staples wrote: > > Why does this feel like a new function/feature for PHP now? > > Function acronymize($acronym) > { > // do stuff here now... :S > } -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.p

Re: [PHP] undef func

2013-05-10 Thread Daniel Brown
On Fri, May 10, 2013 at 6:15 AM, georg wrote: > Hello ! > > im increasingly frustrated on my effort to get PHP/ODBC going with Apache on > Linux (did it on MS XP, that was trixy but this is worse, nothing seem to be > correct; utilities missing, erroneous file-directory references, crapy > stri

Re: [PHP] undef func

2013-05-10 Thread Daniel Brown
On Fri, May 10, 2013 at 3:18 PM, tamouse mailing lists wrote: > > Aren't DLLs a Windows thing? Yeah, I misread the bit about "MS XP" and thought he was using XP for this install. I just realized the remainder of the discussion between us was off-list, so - for posterity - my response, when f

Re: [PHP] Source code of original PHP release.

2013-05-23 Thread Daniel Brown
On Thu, May 23, 2013 at 2:16 AM, chris wrote: > I'm currently writing a paper on the evolution of PHP and web > development/security as a whole. > One of the things I want to incorporate is snippets of source code to show > how things have grown and advanced since the 90's > > If anyone could help

Re: [PHP] Random

2013-05-23 Thread Daniel Brown
On Thu, May 23, 2013 at 4:51 PM, Last Hacker Always onpoint wrote: > Hey I need code for random number 1-30 for my site. You need to know that you've been removed from the list (but you'd still have to be subscribed to be able to read this). -- Network Infrastructure Manager http://www.php.

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Daniel Brown
On Wed, May 29, 2013 at 8:03 AM, Al wrote: > I'm having a webpage Persistence problem, it is intermittent. I suspect it > is caused by load-balancing. > > Specifically: > > Users are connected to a webpage form to complete. Generally, everything is > OK if they take a minute or even more to comp

Re: [PHP] URL Rewriting

2013-06-02 Thread Daniel Brown
Studying archaeology now, Tam? ;-P On Sat, Jun 1, 2013 at 8:22 PM, Tamara Temple wrote: > Silvio Siefke wrote: >> On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: >> > > Has someone a Link with Tutorials or other Information? >> > >> >

Re: [PHP] browser rendering

2013-06-02 Thread Daniel Pöllmann
ags even with a perfectly sized picture, otherwise the browser will be confused when the image can't be loaded Daniel Am 02.06.2013 15:12 schrieb "georg" : > Possibly this issue is for other fora, which you might direct me, anyways; > > I have been dablling making my own lit

<    14   15   16   17   18   19   20   21   22   23   >