[PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
it again. I am completely unfamiliar with Moodle, have no idea what it is or how it works with I18n stuff. But, if it works in one language and not the other, the problem probably isn't with curl, or necessarily with the php configuration, either. It doesn't work in Englis language either, just

[PHP] mcrypt_create_iv - why so slow?

2013-05-31 Thread Nathan Nobbe
Hi folks, This code: ?php $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_RANDOM); var_dump($iv); Takes just over a minute to run on my laptop and roughly 45 seconds on a capable server, any idea why? time php test-iv.php string(32) '???H??y?PJ?U

[PHP] Re: mcrypt_create_iv - why so slow?

2013-05-31 Thread Nathan Nobbe
? #morbidcuriosity -nathan On Fri, May 31, 2013 at 12:40 AM, Nathan Nobbe quickshif...@gmail.comwrote: Hi folks, This code: ?php $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_RANDOM); var_dump($iv); Takes just over a minute to run on my

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 11:57, Richard Quadling rquadl...@gmail.com wrote: Hi. Both ?php class Oddity{ public $var = 'a' . 'b'; } ? and ?php class Oddity{ const A_VAR = 'a' . 'b'; } ? produce ... PHP Parse error: syntax error, unexpected '.', expecting

Re: [PHP] Has this always been the case?

2013-05-31 Thread shiplu
Yes, this has been always the case. The property initializer in PHP can not have any expression. It should be constant value. If you want to use expression here use the constructor. class MyClass{ protected $nonStaticField; static protected $staticField; public function __construct

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
On 31 May 2013, at 12:08, shiplu shiplu@gmail.com wrote: The property initializer in PHP can not have any expression. It should be constant value. That is not entirely correct. It must be a literal value. The expression 'a'.'b' is a constant value. I may be being overly picky here

Re: [PHP] Has this always been the case?

2013-05-31 Thread shiplu
On Fri, May 31, 2013 at 5:12 PM, Stuart Dallas stu...@3ft9.com wrote: That is not entirely correct. It must be a literal value. The expression 'a'.'b' is a constant value. I may be being overly picky here, but I think it's an important distinction. I thought 'a'. 'b' is a constant expression

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
/Literal_(computer_programming) -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Has this always been the case?

2013-05-31 Thread Stuart Dallas
-- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-31 Thread Tamara Temple
. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limit access to php page

2013-05-31 Thread Tamara Temple
you can hit the page regardless of the login process on index.php. How can I limit redirect.php so that it can only be reached once you login via the index page? Thank you! Tim -- GPG me!! Try this: http://sperling.com/php/authorization/log-on.php I realize

Re: [PHP] Has this always been the case?

2013-05-31 Thread Tamara Temple
Richard Quadling rquadl...@gmail.com wrote: Hi. Both ?php class Oddity{ public $var = 'a' . 'b'; } ? From http://www.php.net/manual/en/language.oop5.properties.php: This declaration may include an initialization, but this initialization must be a constant value--that is, it must

[PHP] json_encode strange behavior

2013-05-31 Thread Bruno Hass de Andrade
Hi. I'm encoding some data with json_encode to use with jquery. All working fine, postgres query, my jquery, etc. But when I cast json_encode in my array, the result is an json object ordered by the array index, in my case the id of my clients. This is right? Is the intended behavior? Anyway, I

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-31 Thread dealTek
On May 30, 2013, at 7:30 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Sounds like the OP is asking for a pre-built CRUD interface that adapts to his tables and their relationships. It's a fair question, just one I don't have an answer to. There must be some kind of ORM for PHP

[PHP] Binding object instances to static closures

2013-05-31 Thread Nathaniel Higgins
Is it possible to bind an instance to a static closure, or to create a non-static closure inside of a static class method? This is what I mean... ?php class TestClass { public static function testMethod() { $testInstance = new TestClass(); $testClosure

[PHP] Re: mcrypt_create_iv - why so slow?

2013-05-31 Thread Matt Graham
/random of=/dev/null bs=16k count=5 and repeating the same command with /dev/urandom. 1.312 seconds vs. 0.019 seconds here. Not much to do with PHP, though, just the way the Linux kernel people did things. /dev/urandom is probably the way to go for most normal random data needs. -- Matt G / Dances

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread David Harkness
On Fri, May 31, 2013 at 10:54 AM, Nathaniel Higgins n...@nath.is wrote: Is it possible to bind an instance to a static closure, or to create a non-static closure inside of a static class method? PHP doesn't have a method to do this. In JavaScript you can use jQuery's var func = $.proxy

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread Nathaniel Higgins
I'm talking about PHP 5.4. `bindTo` is a Closure method in PHP 5.4, and allows you to set the `$this` variable inside of a Closure. However, apparently you can't use it on Closures created inside static methods. I knew that you could create another function which would return the Closure, however

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread Nick Whiting
This will not work. As stated in the PHP documentation Static closures cannot have any bound object A static Closure has no context of this just as with any other static object. A workaround is to pass in the Closure as a parameter to achieve a similar result. class TestClass { public

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread David Harkness
Thanks Nathaniel for the clarification about 5.4. We are still on 5.3 (and that only recently), so 5.4 is a ways off in our production systems. However, I'll read up on this since it may be useful in offline tools. On Fri, May 31, 2013 at 11:52 AM, Nick Whiting nwhit...@xstudiosinc.comwrote:

php-general Digest 31 May 2013 01:36:53 -0000 Issue 8253

2013-05-30 Thread php-general-digest-help
php-general Digest 31 May 2013 01:36:53 - Issue 8253 Topics (messages 321279 through 321284): Re: limit access to php page 321279 by: tamouse mailing lists 321280 by: Jim Giner 321282 by: Tedd Sperling 321283 by: Paul M Foster Re: need some regex help

Re: [PHP] limit access to php page

2013-05-30 Thread Camilo Sperberg
on index.php. How can I limit redirect.php so that it can only be reached once you login via the index page? Thank you! Tim -- GPG me!! Try this: http://sperling.com/php/authorization/log-on.php I realize this is example code. My question is, in a real application where

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-30 Thread Sebastian Krebs
if you want to convince someone. Just thinking about it, it makes sense as a true regular expression can only describe a regular language, and I think all the programming languages are not regular languages. But, We have PHP PCRE with extensions like Recursive patterns[1] and Back references[2

[PHP] Include/Require limit?

2013-05-30 Thread Julian Wanke
Hi, I use the pretty large Library PHP Image Workshop (http://phpimageworkshop.com/) at my project. It is about 75,5 KB. Everything works fine but if I try to include a 15 KB file with country codes, it fails. With the other files I easily get over 100 KB inclusion size, so my question

Re: [PHP] Include/Require limit?

2013-05-30 Thread Julian Wanke
Hi,it outputs a corrupt image (I think the function imagepng)Am 30.05.2013, 11:17 Uhr, schrieb Alex Pojarsky divine.ra...@gmail.com:Hey.Afaik - only in case if your PHP process instance exeeds allowed memory limit.Other then this - explain how does it fail exactly. Any error messages? Errorous

[PHP] Re: Include/Require limit?

2013-05-30 Thread David Robley
Julian Wanke wrote: Hi, I use the pretty large Library PHP Image Workshop (http://phpimageworkshop.com/) at my project. It is about 75,5 KB. Everything works fine but if I try to include a 15 KB file with country codes, it fails. With the other files I easily get over 100 KB inclusion

Re: [PHP] Re: limit access to php page

2013-05-30 Thread Jim Giner
this morning only to discover that I had never done quite that kind of Header redirect before. So - the include method still works, as would the single script 'controller' method. Within a php script any file is accessible (within your domain at least) and may therefore be included and executed

Re: [PHP] Re: limit access to php page

2013-05-30 Thread tamouse mailing lists
suggestion as Ashley has pointed out so correctly. Had to test it out this morning only to discover that I had never done quite that kind of Header redirect before. So - the include method still works, as would the single script 'controller' method. Within a php script any file is accessible (within

Re: [PHP] Re: limit access to php page

2013-05-30 Thread Jim Giner
On 5/30/2013 10:22 AM, tamouse mailing lists wrote: So - the include method still works, as would the single script 'controller' method. Within a php script any file is accessible (within your domain at least) and may therefore be included and execute. I want to throw in a caveat here

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-30 Thread David Harkness
On Wed, May 29, 2013 at 10:20 AM, Matijn Woudt tijn...@gmail.com wrote: It is possible to write a whole parser as a single regex, being it terribly long and complex. While regular expressions are often used in the lexer--the part that scans the input stream and breaks it up into meaningful

Re: [PHP] limit access to php page

2013-05-30 Thread Tedd Sperling
On May 29, 2013, at 11:05 PM, Paul M Foster pa...@quillandmouse.com wrote: http://sperling.com/php/authorization/log-on.php I realize this is example code. My question is, in a real application where that $_SESSION['auth'] token would be used subsequently to gain entry to other pages, what

Re: [PHP] limit access to php page

2013-05-30 Thread Paul M Foster
On Thu, May 30, 2013 at 12:06:02PM -0400, Tedd Sperling wrote: On May 29, 2013, at 11:05 PM, Paul M Foster pa...@quillandmouse.com wrote: http://sperling.com/php/authorization/log-on.php I realize this is example code. My question is, in a real application where that $_SESSION['auth

[PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread dealTek
for me if someone could recommend a good working standard model to start. Q: DOES ANYONE HAVE ANY OPINIONS ON THE ONES BELOW? - - - - - MySQLi https://github.com/ajillion/PHP-MySQLi-Database-Class http://www.phpclasses.org/package/2359-PHP-MySQL-database-wrapper-using-MySQLi-extension.html http

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread Stephen
database schema. You have to do that work; there is no way around it. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread tamouse mailing lists
an answer to. There must be some kind of ORM for PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread Bastien
interface that adapts to his tables and their relationships. It's a fair question, just one I don't have an answer to. There must be some kind of ORM for PHP? Propel? Eloquent? Doctrine? And others ... Bastien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

php-general Digest 29 May 2013 12:03:48 -0000 Issue 8250

2013-05-29 Thread php-general-digest-help
php-general Digest 29 May 2013 12:03:48 - Issue 8250 Topics (messages 321222 through 321226): Re: need some regex help to strip out // comments but not http:// urls 321222 by: David Harkness 321223 by: Daevid Vincent 321224 by: David Harkness 321225

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Andreas Perstinger
://www.php.net/manual/en/regexp.reference.assertions.php ). (?!http:)// will match // only if it isn't preceded by http:. Bye, Andreas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Webpage Persistence Load balancing

2013-05-29 Thread Al
, and I've seen it myself, the connection has been dropped by the server in a short time. They enter the data and Submit it to the server, and the page just reloads and their data is lost. I have the PHP ignore_user_abort(true); etc. Is there anything I can do to fix this or is it a server

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Andrew Ballard
to complete the form. However, sometimes they report to me, and I've seen it myself, the connection has been dropped by the server in a short time. They enter the data and Submit it to the server, and the page just reloads and their data is lost. I have the PHP ignore_user_abort(true); etc

[PHP] Re: Webpage Persistence Load balancing

2013-05-29 Thread Jim Giner
. However, sometimes they report to me, and I've seen it myself, the connection has been dropped by the server in a short time. They enter the data and Submit it to the server, and the page just reloads and their data is lost. I have the PHP ignore_user_abort(true); etc. Is there anything I can do to fix

[PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Jonesy
-forward, and understandable next year when I have to re-read what I've written: I'd change all :// to QqQ -- or any unlikely text string. Then I'd do whatever needs to be done to the // occurances. Finally, I'd change all QqQ back to ://. Jonesy -- PHP General Mailing List (http

Re: [PHP] Webpage Persistence Load balancing

2013-05-29 Thread Daniel Brown
more to complete the form. However, sometimes they report to me, and I've seen it myself, the connection has been dropped by the server in a short time. They enter the data and Submit it to the server, and the page just reloads and their data is lost. I have the PHP ignore_user_abort(true

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
. Do it right the first time. -- --Zootboy Sent from some sort of computing device. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
ARE A LITTLE HARD FOR ME TO UNDERSTAND PLEASE LET ME KNOW GUYS I WANT SOMEONE TO TEACH ME. 1) Shouting at us will not encourage a helpful attitude. 2) Neither will calling us your cool guyz. 3) What is a simply machine function script? If you want someone to teach you PHP you'll probably need

Re: [PHP] REQUEST

2013-05-29 Thread Tommy Pham
machine function script? 4) http://www.catb.org/esr/faqs/smart-questions.html If you want someone to teach you PHP you'll probably need to pony up some cash. If you want someone to help you while you're learning, show us that you're working on it and we'll be happy to help. -Stuart -- Stuart

Re: [PHP] REQUEST

2013-05-29 Thread Marc Guay
PLEASE LET ME KNOW GUYS I WANT SOMEONE TO TEACH ME. 1) Shouting at us will not encourage a helpful attitude. 2) Neither will calling us your cool guyz. 3) What is a simply machine function script? 4) http://www.catb.org/esr/faqs/smart-questions.html If you want someone to teach you PHP

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
MACHINE COMPANY BUT UNLIKE OTHER SCRIPTS IT HAS A DIFFERENT TYPE OF SCRIPTING. If you're having issues with forum software supplied by a company, please contact that company. AM STILL LEARNING PHP THOUGH BUT ASK ME A QUESTION SO I CAN PROVE MYSELF WORDY. COZ YOU SEEM TO SEE ME NOT WORDY

Re: [PHP] REQUEST

2013-05-29 Thread Bastien
is a simply machine function script? If you want someone to teach you PHP you'll probably need to pony up some cash. If you want someone to help you while you're learning, show us that you're working on it and we'll be happy to help. If I had to guess I think he means a simple state machine

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
FUNCTION, IS A FORUM SITE SCRIPT FROM THE SIMPLE MACHINE COMPANY BUT UNLIKE OTHER SCRIPTS IT HAS A DIFFERENT TYPE OF SCRIPTING. If you're having issues with forum software supplied by a company, please contact that company. AM STILL LEARNING PHP THOUGH BUT ASK ME A QUESTION SO I CAN PROVE MYSELF

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.comwrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our cache.class.php and am running into an edge case that is

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
not be deleted) // Do something } But most likely you wouldn't care about that.. - Matijn I would have to disagree. There are things that regex just can't at a fundamental level grok. Things like nested brackets (e.g. the standard blocking syntax of C, javascript, php, etc.). It's not a parser

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
And after all I said - a few minutes of searching tells me that the SMF forum software (according to the simplemachines.org site itself) is written in a very familiar language - PHP. WITH a very familiar (to me) MySQL DB behind it. So apparently our erstwhile hacker can't yet recognize PHP

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
nested brackets (e.g. the standard blocking syntax of C, javascript, php, etc.). It's not a parser, and despite all the little lookahead/behind tricks that enhanced regex can do, it can't at a fundamental level _interret_ the text it sees. This task involves interpreting what the text you're looking

[PHP] include() Error

2013-05-29 Thread Ron Piggott
Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be the reasoning behind the error I am

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
would more than likely break down but an interpreter should (I do say should) do The Right Thing. -- --Zootboy Sent from some sort of computing device. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() Error

2013-05-29 Thread Marc Guay
. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be the reasoning behind the error I am receiving. I created a function to generate a form submission key. - This created hidden variable

[PHP] Re: include() Error

2013-05-29 Thread Jim Giner
On 5/29/2013 1:39 PM, Ron Piggott wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may

[PHP] Re: WOT [PHP] REQUEST

2013-05-29 Thread Jay Blanchard
[snip]We're not your dudes/guyz/bros or anything like that. [/snip] Don't taze me bro'! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
, try: http://support.simplemachines.org/ -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REQUEST

2013-05-29 Thread Stuart Dallas
that company. AM STILL LEARNING PHP THOUGH BUT ASK ME A QUESTION SO I CAN PROVE MYSELF WORDY. COZ YOU SEEM TO SEE ME NOT WORDY At a rough guess you mean worthy, not wordy. Worthy of what? You have nothing to prove to me other than the ability to make sense and ask a question that can be answered

RE: [PHP] [SOLVED] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Daevid Vincent
-Original Message- From: Andreas Perstinger [mailto:andiper...@gmail.com] Sent: Tuesday, May 28, 2013 11:10 PM To: php-general@lists.php.net Subject: Re: [PHP] need some regex help to strip out // comments but not http:// urls On 28.05.2013 23:17, Daevid Vincent wrote: I want

Re: [PHP] [SOLVED] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
up right away. -- --Zootboy Sent from some sort of computing device. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sebastian Krebs
2013/5/29 Matijn Woudt tijn...@gmail.com On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.com wrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our

Re: [PHP] REQUEST

2013-05-29 Thread Tedd Sperling
not to rise to the bait from people who forgot to turn off their cap's key. _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
about it, it makes sense as a true regular expression can only describe a regular language, and I think all the programming languages are not regular languages. But, We have PHP PCRE with extensions like Recursive patterns[1] and Back references[2], which can describe much more than just a regular

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 5:45 PM, Tedd Sperling wrote: PS: I think it probably best not to rise to the bait from people who forgot to turn off their cap's key. You call it bait? I call it stupidity. Once no, more than once YES. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Ashley Sheridan
want to convince someone. Just thinking about it, it makes sense as a true regular expression can only describe a regular language, and I think all the programming languages are not regular languages. But, We have PHP PCRE with extensions like Recursive patterns[1] and Back references[2], which can

Re: [PHP] REQUEST

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 8:56 PM, Stuart Dallas stu...@3ft9.com wrote: [On which note it has to be said he clearly isn't since he couldn't get lasthacker@ and had to settle for lasthacker1@. Just sayin'.] -Stuart I'm surprised he didn't call himself la5T hax0R alwayZ 0nP01nT :)

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 5:53 PM, Matijn Woudt wrote: I'm surprised he didn't call himself la5T hax0R alwayZ 0nP01nT :) He apparently can't find the caps key - how would he ever type that string correctly on a consistent basis? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] REQUEST

2013-05-29 Thread John Meyer
Jim Giner wrote: On 5/29/2013 5:45 PM, Tedd Sperling wrote: PS: I think it probably best not to rise to the bait from people who forgot to turn off their cap's key. You call it bait? I call it stupidity. Once no, more than once YES. Why not both? Cue cute taco shell girl. -- PHP

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
You are most probable getting a fatal error, and the way PHP is configured now, doesn't show you that publicly. Enable that setting via php.ini or directly in the script (not recommended) or check out the webserver's error_log (assuming apache and a RedHat based distro this will be on /var/log

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
On Wed, May 29, 2013 at 8:09 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 5/29/2013 1:39 PM, Ron Piggott wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 5:53 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Sometimes when all you know is regex, everything looks like a nail... Thanks, Ash There are people who *know* regrex? Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP

[PHP] limit access to php page

2013-05-29 Thread Tim Dunphy
Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group (redirect.php). Everything works great so far, except if you pop the full URL of

Re: [PHP] limit access to php page

2013-05-29 Thread tamouse mailing lists
me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B Read through this page, and the other parts of the Session manual. Hopefully that will help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limit access to php page

2013-05-29 Thread Tedd Sperling
-- GPG me!! Try this: http://sperling.com/php/authorization/log-on.php Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: limit access to php page

2013-05-29 Thread Jim Giner
outside of the web-accessible tree. The user can never type that uri into his browser and have it work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: limit access to php page

2013-05-29 Thread Glob Design Info
the exact syntax of inclusion of such files. Say, for example if I put the login/redirect .php file 3-4 levels up from my webroot. -d -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
has to be able to hit it. There is, though, a form of application architecture where everything is run through the index page, and it pulls things in via include/require as directed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: limit access to php page

2013-05-29 Thread Jim Giner
() or include_once(). It would be nice to know the exact syntax of inclusion of such files. Say, for example if I put the login/redirect .php file 3-4 levels up from my webroot. -d simply a require statement pointing to the script. PHP can load anything, http can only see the web tree. I personally

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
to include that file using require_once() or include_once(). It would be nice to know the exact syntax of inclusion of such files. Say, for example if I put the login/redirect .php file 3-4 levels up from my webroot. Okay, first off, your application *has* to have some entry point

Re: [PHP] Re: limit access to php page

2013-05-29 Thread jomali
to include that file using require_once() or include_once(). It would be nice to know the exact syntax of inclusion of such files. Say, for example if I put the login/redirect .php file 3-4 levels up from my webroot. require_once('../../../redirect.php');

Re: [PHP] limit access to php page

2013-05-29 Thread Paul M Foster
only be reached once you login via the index page? Thank you! Tim -- GPG me!! Try this: http://sperling.com/php/authorization/log-on.php I realize this is example code. My question is, in a real application where that $_SESSION['auth'] token would be used subsequently to gain

php-general Digest 28 May 2013 21:17:21 -0000 Issue 8249

2013-05-28 Thread php-general-digest-help
php-general Digest 28 May 2013 21:17:21 - Issue 8249 Topics (messages 321217 through 321221): Re: iterate javascript verification 321217 by: Ken Robinson 321218 by: Tim Dunphy Header Keep-Alive 321219 by: Al 321220 by: Sebastian Krebs need some regex help

[PHP] need some regex help to strip out // comments but not http:// urls

2013-05-28 Thread Daevid Vincent
to be. This is close, but still matches //foo.com (omitting the : of course) \s*(?!:)//.*?$ (count it as '/m' multiline) This ultimately ends up in a PHP line of code like so: $sBlob = preg_replace(@\s*//.*?$@m,'',$sBlob); Here are some other links of stuff I've found and tried to experiment

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-28 Thread David Harkness
PHP solution and is probably tested by a lot more people than a home-grown version. You might want to check it out before going too far down this path. Good luck, David [1] http://www.ypass.net/software/php_jsmin/

RE: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-28 Thread Daevid Vincent
From: David Harkness [mailto:davi...@highgearmedia.com] We have been using a native jsmin extension [1] which does a lot more without any trouble for over two years now. It's much faster than the equivalent PHP solution and is probably tested by a lot more people than a home-grown version

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-28 Thread David Harkness
Hi Daevid, On Tue, May 28, 2013 at 2:40 PM, Daevid Vincent dae...@daevid.com wrote: I appreciate the pointer, but our files, like many people, is a mixture of HTML, PHP and JS in one file. This jsmin appears to only work on .js files right? Also, everything else works great in our minifing

php-general Digest 27 May 2013 16:52:48 -0000 Issue 8248

2013-05-27 Thread php-general-digest-help
php-general Digest 27 May 2013 16:52:48 - Issue 8248 Topics (messages 321215 through 321216): Re: Can javascript or php help with this 321215 by: dealTek Re: iterate javascript verification 321216 by: Tim Dunphy Administrivia: To subscribe to the digest, e-mail

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
page you get an initial error on all fields as they are all quite naturally empty when you first load the page. Here's the index.php page. All it is is HTML, no php: html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html; charset=utf-8

Re: [PHP] iterate javascript verification

2013-05-27 Thread Ken Robinson
When you do validation of the form in the same script that shows the form, the normal way to do this is ?php if (isset($_POST['submit'])) { // // validation here // } ? This won't work if you're getting to the page via another form, since the $_POST['submit'] is set. There two ways

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
Sounds good! Thanks Ken. Very clear now. Tim Sent from my iPhone On May 27, 2013, at 1:57 PM, Ken Robinson kenrb...@rbnsn.com wrote: When you do validation of the form in the same script that shows the form, the normal way to do this is ?php if (isset($_POST['submit

[PHP] Header Keep-Alive

2013-05-27 Thread Al
::VermontCamp2013_setupMode=58d7e534bec4ec57634c78caa59d8db2; expires=Sat, 23-Nov-2013 20:19:55 GMT; path=/Coach/; domain=.ridersite.org Transfer-Encoding chunked Content-Typetext/html; charset=utf-8 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
chunked Content-Typetext/html; charset=utf-8 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch

php-general Digest 26 May 2013 12:48:27 -0000 Issue 8247

2013-05-26 Thread php-general-digest-help
php-general Digest 26 May 2013 12:48:27 - Issue 8247 Topics (messages 321211 through 321214): Re: Can javascript or php help with this 321211 by: Jim Giner 321212 by: Jim Giner 321213 by: dealTek 321214 by: Jim Giner Administrivia: To subscribe

Re: [PHP] Re: Can javascript or php help with this

2013-05-26 Thread Jim Giner
of concatenated, but this is one way. And of course - you could try posting on a js site instead of a php one. Thanks so much Jim - I will check into this (and I did just join a javascript list) -- Thanks, Dave - DealTek deal...@gmail.com [db-3] HTH. BTW - I see a small typo in my concat statement

Re: [PHP] Can javascript or php help with this

2013-05-26 Thread dealTek
with this syntax to avoid the values being arithmetically added instead of concatenated, but this is one way. And of course - you could try posting on a js site instead of a php one. HTH. BTW - I see a small typo in my concat statement - 'Id', not 'ID'. -- AHA - at first

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
(13) Radek KrejĨa } PHP Version: 5.3.10-1ubuntu3.6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
: Which I now see was what the second part was about. Perhaps there is actually something in $decrypted_data that is not legal JSON data that doesn't appear when you echo it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    7   8   9   10   11   12   13   14   15   16   >