Re: [PHP] Friday's Question

2013-09-20 Thread Matijn Woudt
On Fri, Sep 20, 2013 at 6:51 PM, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mice first > came out (back when they had one ball). > > Now that mice are optical (no balls), Mousepads are not really needed -- > or so I'

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread Matijn Woudt
On Mon, Aug 26, 2013 at 9:48 PM, Ajay Garg wrote: > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### > $original_url = "/autologin.php"; > $username = "ajay"; > $password = "garg"

Re: [PHP] files and folders windows permission

2013-08-23 Thread Matijn Woudt
On Fri, Aug 23, 2013 at 4:03 PM, Emiliano Boragina < emiliano.borag...@gmail.com> wrote: > Hi everyone, sorry my ugly english. I did an upload file form. Works > very good. Upload the files in the right folder, with the right name. > I use chmod 0644, and for try I use 0777. But always the files a

Re: [PHP] Mysqli Extension

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 9:40 PM, Ashley Sheridan wrote: > > > Matijn Woudt wrote: > >On Mon, Aug 19, 2013 at 8:55 PM, Ashley Sheridan > >wrote: > > > >> > >> > >> Curtis Maurand wrote: > >> > > >> > > >> >

Re: [PHP] Mysqli Extension

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 8:55 PM, Ashley Sheridan wrote: > > > Curtis Maurand wrote: > > > > > >Ethan Rosenberg wrote: > >> Dear List - > >> > >> My > >mysqli extension seems to have gone away. > >> > >> $host = > >'localhost'; > >> $user = 'root'; > >> $password = 'SdR3908'; > >> echo "hello2"; >

Re: [PHP] Mysqli Extension

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 8:02 PM, Ethan Rosenberg < erosenb...@hygeiabiomedical.com> wrote: > Dear List - > > My mysqli extension seems to have gone away. > > $host = 'localhost'; > $user = 'root'; > $password = 'SdR3908'; > echo "hello2"; > var_dump(function_exists('**mysqli_connect'));// this ret

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 5:20 PM, Stuart Dallas wrote: > On 19 Aug 2013, at 15:56, Matijn Woudt wrote: > > > On Mon, Aug 19, 2013 at 11:54 AM, Stuart Dallas wrote: > >> On 19 Aug 2013, at 10:49, aesbovis wrote: >> >> > I know Javascript can solve it, but I

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Matijn Woudt
On Mon, Aug 19, 2013 at 11:54 AM, Stuart Dallas wrote: > On 19 Aug 2013, at 10:49, aesbovis wrote: > > > I know Javascript can solve it, but I don't want to use Js. > > Thank you all the same. > > I know you've had the right answer, but I think it's worth pointing out > that use of JSON in no wa

Re: [PHP] Finally....

2013-08-16 Thread Matijn Woudt
On Fri, Aug 16, 2013 at 5:23 PM, Daniel Brown wrote: > # ezmlm-list ~ezmlm/php-general | grep skynet > supp...@skynet.be > > # ezmlm-unsub ~ezmlm/php-general supp...@skynet.be > > # ezmlm-list ~ezmlm/php-general | grep skynet > # > > No more of those "Your e-mail concerning our products and >

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Matijn Woudt
d out i delete the row? So if user close the browser without > >logout how can i find user is online or not? > >>> > >>> Sent from my iPhone > >>> > >>> On Aug 4, 2013, at 14:44, Matijn Woudt wrote: > >>> > >>> > >

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Matijn Woudt
On Sun, Aug 4, 2013 at 11:02 AM, Farzan Dalaee wrote: > hi > i want to write online user module for my site and i want to check > $_SESSION['userID'] to find all users id who loged in > but when i echo this code its return only current user detail > how i can see all sessions? > > foreach($_SESSIO

Re: [PHP] Sending headers to server

2013-08-03 Thread Matijn Woudt
On Sat, Aug 3, 2013 at 11:46 AM, Karim Geiger wrote: > Am 02.08.13 18:03, schrieb Miguel Guedes: > > This is strange. I've just found out that the headers are sent > > correctly if I access the website outside of localhost. I don't > > understand why. > > I also don't. I've tried the exactly sam

Re: [PHP] Sending headers to server

2013-08-02 Thread Matijn Woudt
On Thu, Aug 1, 2013 at 4:04 PM, Miguel Guedes wrote: > Hello List, > > > I'm running PHP 5.4.9 as CGI (via apache 2.2.22) and can't seem to be > able to send headers to the server. > > Both, > > header('Status: 500 Internal Server Error'); > > and, > > header('HTTP/1.1 500 Internal Server Error',

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:59 PM, Richard Quadling wrote: > > > > On 24 July 2013 21:54, Matijn Woudt wrote: > >> >> >> >> On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling >> wrote: >> >>> PHP 5.5+ is (from news) >>> >&g

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling wrote: > PHP 5.5+ is (from news) > >- Windows XP and 2003 support dropped. > > Does that mean no longer executes (as is seemingly what I'm seeing) or just > no longer supported/developed? > > Just going to look into getting to the bottom of th

Re: [PHP] Re: What wrong am I doing now?

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:45 PM, Jim Giner wrote: > On 7/24/2013 8:19 AM, Karl-Arne Gjersøyen wrote: > >> mysql> SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE >> dato >= '2013-07-20' AND dato <= '2013-07-24' GROUP BY dato DESC; >> +-**--+ >> | DATE_F

Re: [PHP] What wrong am I doing now?

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:19 PM, Karl-Arne Gjersøyen wrote: > mysql> SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE > dato >= '2013-07-20' AND dato <= '2013-07-24' GROUP BY dato DESC; > +---+ > | DATE_FORMAT(dato, '%e-%c-%Y') | > +

Re: [PHP] /tmp/directory

2013-07-22 Thread Matijn Woudt
On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling wrote: > Hi gang: > > I should know this, but I don't. > > Where is the /tmp/ directory? > > You see, I have a client where his host has apparently changed the /tmp/ > directory permissions such that old php/mysql scripts cannot write to the > /tmp/

Re: [PHP] strip_tags

2013-07-21 Thread Matijn Woudt
Op 21 jul. 2013 02:53 schreef "Tedd Sperling" het volgende: > > > On Jul 20, 2013, at 5:34 PM, Frank Arensmeier wrote: > > > 20 jul 2013 kl. 18:25 skrev Tedd Sperling : > > > >> Hi gang: > >> > >> I've been using > >> > >> $str = strip_tags($str, $allowable) > >> > >> as it is described via the

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Matijn Woudt
On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg wrote: > Hi all. > > I have a requirement, wherein I need to allow vanilla uploads of files > to a HTTPD server. > > Any client can upload any number of files (one at a time). > Also, there is just one directory, where the files get stored > "finally" (t

Re: [PHP] mongo usage

2013-07-06 Thread Matijn Woudt
On Sat, Jul 6, 2013 at 9:16 PM, Tim Dunphy wrote: > | You commented out the setting of yhe addresses variable > > Those were both equivalent ways of stating the same thing. I tried > substituting the other statement but there was no change: > > $db = $connection->jfdb; > > //$collection =

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
e characters are just not visible (NUL, CR, LF, ..) > > On 7/5/2013 2:36 PM, Matijn Woudt wrote: > > > > > On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner wrote: > >> On 7/5/2013 1:32 PM, shiplu wrote: >> >>> On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner >&g

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner wrote: > On 7/5/2013 1:32 PM, shiplu wrote: > >> On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner >> **wrote: >> >> Mike Hall comes back as 10, not 9 >>> F.B. comes back as 5, not 4. >>> >>> >> Doesn't work for me. >> >> php > var_dump("Mike Hall", strlen("Mi

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Matijn Woudt
On Wed, Jun 26, 2013 at 7:35 PM, Tedd Sperling wrote: > On Jun 26, 2013, at 1:32 PM, Jim Giner > wrote: > > >> But more importantly - don't you need to figure out why it happened?? > As well as correcting any inserts with the bogus id? > > > Yes, I would like to know -- I'm open for suggestions.

Re: [PHP] A Strange Problem

2013-06-20 Thread Matijn Woudt
On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling wrote: > Hi gang: > > I have a very strange problem. > > I can use this statement in one folder: > > $fcontents = file('docs/admin-email.txt'); > > But in a different folder with an exact path having > 'docs/admin-email.txt', I get: > > Warni

Re: AW: [PHP] PHP is Zero

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 1:49 PM, BUSCHKE Daniel < daniel.busc...@nextiraone.eu> wrote: > To be more technical: > > If intval('8315e839da08e2a7afe6dd12ec58245d') would return NULL instead of > 8315 then PHP would be still weak-typed and the developer could know that > the conversion failed. Good id

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 3:20 PM, Matijn Woudt wrote: > > > > On Thu, Jun 13, 2013 at 3:17 AM, Paul M Foster wrote: > >> On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek wrote: >> >> > Hi all, >> > >> > I'm curious of a simple, common,

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 3:17 AM, Paul M Foster wrote: > On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek wrote: > > > Hi all, > > > > I'm curious of a simple, common, universal way to detect a mobile user > so I can redirect them to a mobile directory... > > > > What is best for this: Javascript

Re: [PHP] Enabling the chroot() function in PHP 5.4

2013-06-13 Thread Matijn Woudt
Hi Aaron, It's better if you ask this question on the PHP internals list, there's hardly anyone compiling it's own PHP here. - Matijn On Thu, Jun 13, 2013 at 9:55 AM, Aaron Stephens wrote: > Hi All, > > Does anybody know how to enable the chroot() function in PHP 5.4? It > was easy in PHP

Re: [PHP] htaccess to make html act as php suffixed files

2013-06-11 Thread Matijn Woudt
On Tue, Jun 11, 2013 at 7:17 PM, Stuart Dallas wrote: > On 11 Jun 2013, at 18:16, Tedd Sperling wrote: > > > Hi gang: > > > > To get html pages to use php scripts, I've used: > > > > RewriteEngine on > > # handler for phpsuexec. -- this makes these prefixes considered for php > > > > SetHandler

Re: [PHP] Seemingly incorrect strict standard.

2013-06-03 Thread Matijn Woudt
On Mon, Jun 3, 2013 at 7:24 PM, Richard Quadling wrote: > Hi. > > I've got an abstract class which requires one of the concrete descendants > to implement a static function. > > The base class will call it using static:: rather than self::. > > But I'm getting an error at runtime. > > Static funct

Re: [PHP] browser rendering

2013-06-02 Thread Matijn Woudt
On Sun, Jun 2, 2013 at 3:09 PM, georg wrote: > Possibly this issue is for other fora, which you might direct me, anyways; > > I have been dablling making my own little webpages, however having gotten > a nice > result jon fireforx, I realize picture sizes gets treated very differntly > on differe

Re: [PHP] REQUEST

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 8:56 PM, Stuart Dallas 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] 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 10:51 PM, Sebastian Krebs wrote: > > > > 2013/5/29 Matijn Woudt > >> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade > >wrote: >> >> > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: >> > > On Tue, 28 May 2013 14:17:0

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 7:27 PM, Sean Greenslade wrote: > > It is possible to write a whole parser as a single regex, being it > terribly > > long and complex. > > That said, there's no other simple syntax that would work, for example in > > javascript you could to the following: > > var http = 5;

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 wrote: > On Wed, May 29, 2013 at 9:57 AM, Jonesy 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 causing me grief. > >> >

Re: [PHP] json_decode mistery

2013-05-25 Thread Matijn Woudt
On Fri, May 24, 2013 at 9:06 AM, Radek Krejča wrote: > Hello, I am usin json regulary, but in one script I have mistery: > > echo($decrypted_data)."\n\n"; > var_dump(json_decode($decrypted_data, true)); > echo "\n"; > var_dump(json_decode('{"result_ok":true,"result_message":null,"client_name":"Rad

Re: [PHP] Simple objective which always seems to make me think I'm doing it wrong.

2013-05-23 Thread Matijn Woudt
On Thu, May 23, 2013 at 4:54 PM, Richard Quadling wrote: > Hi. > > I'm building an XML file. > > It is within an OOP structure and is pretty simple. > > The method is ... > > > Nothing particularly difficult to understand, but I just don't like having > the XML embedded this way. > > Ideally, I w

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
Op 21 mei 2013 03:59 schreef "David OBrien" het volgende: > > > On May 20, 2013 8:45 PM, "Matijn Woudt" wrote: > > > > > > On Mon, May 20, 2013 at 10:46 PM, David OBrien wrote: > >> > >> On Mon, May 20, 2013 at 4:14 PM, Tim Schof

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
eberpafrica.com > > Twitter: @TimSchofield2 > > Blog: http://weberpafrica.blogspot.co.uk > > On May 20, 2013 6:24 PM, "Matijn Woudt" wrote: > > > > > On Mon, May 20, 2013 at 5:33 AM, 孟远涛 wrote: > > > > > > > I find the Note in PH

Re: [PHP] pass parameter via URL

2013-05-20 Thread Matijn Woudt
On Mon, May 20, 2013 at 3:17 PM, iccsi wrote: > I would like to know how can I pass a parameter via URL using control > value on the form. > something like myPage.php?MyID=txtMyID.value > I can use myPage.php?MyID=1, but cannot use myPage.php?MyID=txtMyID.value. > > Your help and information is g

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
On Mon, May 20, 2013 at 5:33 AM, 孟远涛 wrote: > I find the Note in PHP document. > http://www.php.net/manual/en/function.session-id.php > > "Note: When using session cookies, specifying an id for session_id() will > always send a new cookie when session_start() is called, regardless if the > curren

Re: [PHP] Moving from mysql functions to mysqli or PDO - which is best?

2013-05-18 Thread Matijn Woudt
On Sat, May 18, 2013 at 8:09 PM, dealTek wrote: > Hi folks, > > [post newbie abilities] - I'm attempting to move away from PHP mysql > functions to something newer, either mysqli or PDO. > > I have read various things about them, but I'm curious at this point which > would be best to learn for th

Re: [PHP] Saving session to database

2013-05-17 Thread Matijn Woudt
On Fri, May 17, 2013 at 8:07 PM, Lester Caine wrote: > Matijn Woudt wrote: > >> >> It seems to me the session functions are failing, probably due to >> problems with >> the database. Have you checked that there actually is a ##session table >> in your >&g

Re: [PHP] Saving session to database

2013-05-17 Thread Matijn Woudt
On Thu, May 16, 2013 at 2:49 PM, Lester Caine wrote: > Matijn Woudt wrote: > >> >> >> >> On Thu, May 16, 2013 at 10:43 AM, Lester Caine > <mailto:les...@lsces.co.uk>> wrote: >> >> I'm having a problem with webtrees

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-17 Thread Matijn Woudt
On Fri, May 17, 2013 at 4:04 PM, Tedd Sperling wrote: > Stuart: > > You said: > > > An interface does what it says on the tin: it describes an interface > that a class can then tell the world it implements. > > > > An abstract class provides functionality as well as an interface > description. An

Re: [PHP] php extension about php_stream_fopen_tmpfile()

2013-05-16 Thread Matijn Woudt
On Fri, May 10, 2013 at 3:37 AM, Bleakwind wrote: > I write a php extension. > How can I user Zend API do that? > where can I find some doc about file_handle->handle ? > There's not really a place to ask questions for writing extensions, but most people here will not be able to answer your ques

Re: [PHP] Saving session to database

2013-05-16 Thread Matijn Woudt
On Thu, May 16, 2013 at 10:43 AM, Lester Caine wrote: > I'm having a problem with webtrees ... http://webtrees.net/ > My copy is running on http://webtrees.lsces.org.uk and you will see that > it is throwing an error relating to the session handling. > > Running Apache 2.2.22, PHP5.4.14, MySQL 5.

Re: [PHP] IE 10 bug?

2013-04-26 Thread Matijn Woudt
On Wed, Apr 24, 2013 at 6:01 PM, Jim Giner wrote: > I know - it sounds OT, but listen. > > I have a form that has a "sign in " button which attempts to sent the user > to a form in a password-protected folder. In order to get there the user > must provide credentials. Once there the receiving sc

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 12:51 AM, dealTek wrote: > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - > then coming back to the *same page1.php* with the XML data listed below..

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 10:36 AM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > No, that's for writing safe html output. > > If the user or password contains special chars, sending them through > htmlspecialchars would turn them into html entities. i doubt you want that. > > I'm at a l

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
rom mysql_error()) > > > On 4/19/13 1:47 PM, Matijn Woudt wrote: > >> On Fri, Apr 19, 2013 at 10:43 PM, Glob Design Info > >wrote: >> >> I know this has probably been answered already. >>> >>> When I pass a user name and password from a form to

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
On Fri, Apr 19, 2013 at 10:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact > same values into mysql_connect as

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 11:52 PM, Daevid Vincent wrote: > We do a lot with caching and storing in memecached as well as local copies > so as to not hit the cache pool over the network and we have found some > great tools to minimize our javascript and our css, and now we'd like to > compress our

Re: [PHP] Re: self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 11:30 PM, NaMarPi wrote: > I found that double quoted strings are more elegant in some situations > than single ones, and I like identical solutions for identical problems, > so that's why I asked this question. > > But finally found a reason why use single quoted strings

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 10:19 PM, Marco Behnke wrote: > Or use printf which is much more readable. > Are you serious about this? How would printf make things more readable? Given a string with some %s %d etc in it, and then at the end you're giving the stuff that replaces them. I fail to see how

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 7:47 PM, NaMarPi wrote: > I would like to use self and static operators inside a double quoted > string, > but do not find the way to accomplish that. Could you give me a right > direction? > > > http://3v4l.org/NDkdA > > > class Foo { > > public static $class_prop = '

Re: [PHP] Currency name before and after value

2013-04-14 Thread Matijn Woudt
>From wikipedia: "According to the European Union's Publication Office,[5] in English , Irish , Lat

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Matijn Woudt
On Fri, Apr 12, 2013 at 5:23 PM, Angela Barone wrote: > Does anyone know if there's a ready-made script that detects if > someone hits multiple web pages within seconds of each other and then can > temporarily ban them by IP from accessing our site? > > Looking through the logs, I

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

2013-04-09 Thread Matijn Woudt
On Tue, Apr 9, 2013 at 9: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-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 11:58 PM, Jose Nobile wrote: > But we have two process manager, in Apache with mod_fastcgi and PHP-FPM? > > > Saludos, > José Nobile > > > I'm not that familiar with PHP-FPM, but how would that be different from your Apache 2.2 setup?

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile wrote: > How? > > If is required set the website path to PHP-FPM, from Apache Wiki: > > ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1 > > > > > Saludos, > José Nobile > > > with mod_proxy_fcgi you indeed need this line in each vhost. If

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile wrote: > Hi, > > In Apache 2.2 forward all request that > point to phisical .php file to PHP-FPM is as follow: > > LoadModule fastcgi_module modules/mod_fastcgi.so > >

Re: [PHP] OAuth test server and help my slow brain understand what I'm doing.

2013-04-04 Thread Matijn Woudt
Hi, Have you tried Google? https://code.google.com/p/oauth-php/wiki/ConsumerHowTo http://developer.yahoo.com/blogs/ydn/two-legged-oauth-client-server-example-7922.html Seems both do the trick. - Matijn On Thu, Apr 4, 2013 at 3:49 PM, Richard Quadling wrote: > Hi. > > I've been tasked to inte

Re: [PHP] Set process custom identifier

2013-04-02 Thread Matijn Woudt
Hi, pcntl_fork will return the pid of the fork, what is wrong with using that pid to identify the process? - Matijn On Tue, Apr 2, 2013 at 3:38 PM, Sorin Badea wrote: > Hi guys, > I'm trying to find a solution to identify a php process that is spawned > with pnctl_fork. I've tried to set a cu

Re: [PHP] Re: target question

2013-03-26 Thread Matijn Woudt
On Tue, Mar 26, 2013 at 4:19 PM, Jim Giner wrote: > On 3/26/2013 10:35 AM, Matijn Woudt wrote: > >> On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner >> **wrote: >> >> >>>> Appreciate the attempt to help, but as I posted earlier I went around >>>>

Re: [PHP] Re: target question

2013-03-26 Thread Matijn Woudt
On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner wrote: > On 3/25/2013 5:45 PM, Tommy Pham wrote: > >> >> What about >> >> onclick='window.open("http://**domain.com/path/to/generated/**pdf", >> "_blank")' >> >> ? >> >> Regards, >> Tommy >> >> Appreciate the atte

Re: [PHP] target question

2013-03-25 Thread Matijn Woudt
On Mon, Mar 25, 2013 at 7:11 PM, Lester Caine wrote: > Jim Giner wrote: > >> Thanks for the pointer - but not what I'm looking to do. Trying to make >> it >> effortless for the user so having to go and open a pdf would be another >> pia. >> > > Actually it IS worth pointing out that how the brow

Re: [PHP] Session variable not persisting

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 8:35 PM, Éric Oliver Paquette wrote: > > Le 2013-03-18 à 15:24, Éric Oliver Paquette a écrit : > > > Le 2013-03-18 à 15:20, Matijn Woudt a écrit : > > > > > On Mon, Mar 18, 2013 at 8:13 PM, Éric Oliver Paquette < > eopaque...@gmail.c

Re: [PHP] Session variable not persisting

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 8:13 PM, Éric Oliver Paquette wrote: > > > On Mon, Mar 18, 2013 at 7:46 PM, Éric Oliver Paquette < > eopaque...@gmail.com> wrote: > > Hi all, > > > I'll be swift in my explanation as I can't find in any way the source of > the problem; it seems to be installation-related. >

Re: [PHP] Session variable not persisting

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 7:46 PM, Éric Oliver Paquette wrote: > Hi all, > > I'll be swift in my explanation as I can't find in any way the source of > the problem; it seems to be installation-related. > > At execution, sometimes (randomly it seems at first), variable session > aren't properly store

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 4:20 PM, Stuart Dallas wrote: > On 18 Mar 2013, at 15:08, Matijn Woudt wrote: > > > On Mon, Mar 18, 2013 at 2:19 PM, Sebastian Krebs >wrote: > > > >> 2013/3/18 Ken Robinson > >> > >>> > >>> > >&

Re: [PHP] Re: [PHP-DEV] feature request : easy shared memory

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 3:46 AM, Larry Garfield wrote: > On 03/14/2013 01:21 PM, Bob Weinand wrote: > >> Sharing active memory between processes goes against the "shared nothing" >>> design of PHP. The lack of the feature you're describing is itself a >>> feature. :-) >>> >>> If you had real shar

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 2:19 PM, Sebastian Krebs wrote: > 2013/3/18 Ken Robinson > > > > > > > On 18.03.2013 09:10, Norah Jones wrote: > > > >> I am having an string which was have few ' (single quote) and few " > >> (double quotes) and was not able to insert into the mysql database. I > >> have

Re: [PHP] variable type - conversion/checking

2013-03-17 Thread Matijn Woudt
On Sun, Mar 17, 2013 at 10:20 PM, Maciek Sokolewicz < maciek.sokolew...@gmail.com> wrote: > On 16-3-2013 19:20, Matijn Woudt wrote: > >> On Sat, Mar 16, 2013 at 6:52 PM, Maciek Sokolewicz < >> maciek.sokolew...@gmail.com> wrote: >> >> Hi, >>>

Re: [PHP] variable type - conversion/checking

2013-03-16 Thread Matijn Woudt
On Sat, Mar 16, 2013 at 6:52 PM, Maciek Sokolewicz < maciek.sokolew...@gmail.com> wrote: > Hi, >> >> I have tried to find a way to check if a character string is possible to >> test whether it is convertible to an intger ! >> >> any suggestion ? >> >> BR georg >> > > All responses in this thread h

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Matijn Woudt
On Sat, Mar 16, 2013 at 2:54 AM, Sebastian Krebs wrote: > 2013/3/16 Andrew Ballard > > > I suppose one could try something like this: > > > > if (is_string($val) && $val === (string)(int)$val) > > > > If $val is an integer masquerading as a string, it should be identical to > > the original

Re: [PHP] variable type - conversion/checking

2013-03-14 Thread Matijn Woudt
egant) way. >> >> >> On Thu, Mar 14, 2013 at 3:09 PM, Matijn Woudt wrote: >> >> On Thu, Mar 14, 2013 at 7:02 PM, georg >>> wrote: >>> >>> Hi, >>>> >>>> I have tried to find a way to check if a character string is possib

Re: [PHP] variable type - conversion/checking

2013-03-14 Thread Matijn Woudt
On Thu, Mar 14, 2013 at 7:02 PM, georg wrote: > Hi, > > I have tried to find a way to check if a character string is possible to > test whether it is convertible to an intger ! > > any suggestion ? > > BR georg You could use is_numeric for that, though it also accepts floats. - Matijn

Re: [PHP] Mystery foreach error

2013-03-13 Thread Matijn Woudt
On Thu, Mar 14, 2013 at 12:18 AM, Angela Barone wrote: > On Mar 13, 2013, at 9:07 AM, Jim Giner wrote: > > Why not just check if the $state exists as a key of the array $states > before doing this? > > Jim, > > Are you thinking about the in_array function? > > Angela That wouldn't work,

Re: [PHP] Mystery foreach error

2013-03-13 Thread Matijn Woudt
On Wed, Mar 13, 2013 at 5:07 PM, Jim Giner wrote: > On 3/12/2013 9:04 PM, Angela Barone wrote: > >> On Mar 12, 2013, at 5:16 PM, David Robley wrote: >> >>> Presumably there is a fixed list of State - those are US states? - >>> >> >> so why not provide a drop down list of the possible choices? >>>

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Matijn Woudt
On Wed, Mar 6, 2013 at 1:34 AM, Tedd Sperling wrote: > > On Mar 5, 2013, at 7:18 PM, Matijn Woudt wrote: > On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling wrote: > > On Mar 4, 2013, at 3:10 PM, Allison Garcia > wrote: > > -snip- > > What are you offering? >

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Matijn Woudt
On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling wrote: > > On Mar 4, 2013, at 3:10 PM, Allison Garcia > wrote: > > > *SMALL WORLD LABS is looking for a PHP WEB DEVELOPER * > > > > Small World Labs is looking for a PHP Web Developer to be a part of our > > team. The position is focused on managing,

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Matijn Woudt
On Mon, Mar 4, 2013 at 6:10 PM, John Taylor-Johnston < john.taylor-johns...@cegepsherbrooke.qc.ca> wrote: > > You could echo HTML code e.g. >> >> Which is still purely HTML and has nothing whatsoever to do with PHP. >> >> > >> > >> > Number: >> > Submit<**/button> >> > >

Re: [PHP] Holding "datetimes" in a DB.

2013-03-01 Thread Matijn Woudt
On Fri, Mar 1, 2013 at 11:49 AM, Richard Quadling wrote: > Hi. > > My heads trying to remember something I may or may not have known to start > with. > > If I hold datetimes in a DB in UTC and can represent a date to a user > based upon a user preference Timezone (not an offset, but a real > timez

Re: [PHP] stripped \n

2013-02-20 Thread Matijn Woudt
On Wed, Feb 20, 2013 at 7:16 PM, John Taylor-Johnston < john.taylor-johns...@cegepsherbrooke.qc.ca> wrote: > Hi, > I have a when submitted creates a new form with the textarea > data in a hidden field: > > > > But when this new form gets resubmitted, the \n get stripped? > > > > I don't get it.

Re: [PHP] Undefined Variables

2013-02-14 Thread Matijn Woudt
On Thu, Feb 14, 2013 at 7:04 PM, Roman Gelfand wrote: > Is there a performance hit when a variable is undefined? or, perhaps, > aside from the obvious uncontrolled conditions, are there other > impacts? > > Thanks in advance There might be a little performance hit because the error is getting l

Re: [PHP] Tokyo Cabinet or Kyoto Cabinet support

2013-02-12 Thread Matijn Woudt
On Tue, Feb 12, 2013 at 7:06 PM, Chris MacPherson wrote: > Hi, > > Just wondering if anyone can tell me if Kyoto Cabinet support will be added > to the DBM extension in the near future at all. > > I noticed this thread ( > > http://grokbase.com/t/php/php-internals/119yvjcjwr/tokyo-kyoto-cabinet-in

Re: [PHP] Random 404 screens

2013-02-10 Thread Matijn Woudt
On Sun, Feb 10, 2013 at 6:53 PM, Jim Giner wrote: > On 2/10/2013 12:45 PM, Andy McKenzie wrote: > >> On Sat, Feb 9, 2013 at 11:51 AM, Geoff Shang >> wrote: >> >>> On Sat, 9 Feb 2013, Jim Giner wrote: >>> >>> Lately, my web pages are giving me some problems. Once a day or so one or mor

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sun, Feb 10, 2013 at 12:19 AM, Stephen wrote: > On 13-02-09 04:11 PM, Matijn Woudt wrote: > >> On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling wrote: >> >> >> Jonathan: >> >> No offense to your routine, but you may want to review this: >> >&

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 10:08 PM, Jonathan Eagle wrote: > My 'display_errors' is "ON" and my 'error_reporting' is "22517". I'm > not sure what that means but it looks as if I should be getting error > messages somewhere. > > Jonathan > > Most likely they end up in the logs instead of the screen. T

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling wrote: > On Feb 9, 2013, at 2:00 PM, Jonathan Eagle wrote: > > > I'm having a problem with a very straightforward routine; > > > Jonathan: > > No offense to your routine, but you may want to review this: > > http://sperling.com/php/authorization/log-

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 8:00 PM, Jonathan Eagle wrote: > > > I'm having a problem with a very straightforward routine; one that works > in one PHP installation but not on the other. The only difference that I > can see between the working version and the non-working version is that > the one that

Re: [PHP] Patch: Specify temp directory

2013-01-18 Thread Matijn Woudt
On Fri, Jan 18, 2013 at 12:03 PM, ALeX wrote: > Hi, > > some time ago I created a small patch to make it possible to specify > the temp dir by the php.ini. > > It can be found here: > https://bugs.php.net/bug.php?id=60524 > (my latest patch (against 5.4.3) also works for 5.4.11 and 5.5.0a3) > > N

Re: [PHP] how to build multilingual e-commerce website

2012-12-28 Thread Matijn Woudt
Op 28 dec. 2012 12:20 schreef "Sachin Raut" het volgende: > > Dear Friends, > > I have to develop multilingual e-commerce (clothing) website. Could anyone > who has developed these kind of sites before guide me on how to start the > development or recommend any tutorial / book for developing these

Re: [PHP] Nested loopa

2012-12-27 Thread Matijn Woudt
On Thu, Dec 27, 2012 at 4:42 PM, Tedd Sperling wrote: > On Dec 26, 2012, at 10:09 AM, Jim Giner > wrote: > > > While I fully understand the purpose of the do...while construct, I just > never get used to seeing it used. (in other langs I had to deal with a > 'repeat...until construct and dis-lik

Re: [PHP] Serial Comm problem

2012-12-26 Thread Matijn Woudt
On Tue, Dec 25, 2012 at 8:36 PM, Ken Arck wrote: > I'm pretty much a php newbie but have been programming for years in other > languages > > Anyway... > > Using /dev/ttyS0. I need to set the serial port to 9600, send one command > to an embedded processor board, then change the baud rate to 57600

Re: [PHP] Noobie starting to learn OOP for databases needs help

2012-12-16 Thread Matijn Woudt
On Sun, Dec 16, 2012 at 4:38 PM, dealTek wrote: > Hi all, > > Noobie starting to learn oop for databases from here: > > > https://github.com/JeffreyWay/PHP-MySQL-Database-Class/blob/master/MysqlDb.php > > I've got lots working but have a few issues: > > 1 - after an insert I'd like to get the id

Re: [PHP] storing & searching docs

2012-12-13 Thread Matijn Woudt
On Thu, Dec 13, 2012 at 5:13 PM, Jim Giner wrote: > On 12/13/2012 10:56 AM, Bastien wrote: > >> >> >> Bastien Koert >> >> On 2012-12-13, at 9:10 AM, Jim Giner >> wrote: >> >> Thanks for the input gentlemen. Two opposing viewpoints! >>> >>> I understand the concept of using files for the docs an

Re: [PHP] storing & searching docs

2012-12-13 Thread Matijn Woudt
On Thu, Dec 13, 2012 at 3:32 PM, Jim Giner wrote: > On 12/13/2012 9:19 AM, Matijn Woudt wrote: > >> On Thu, Dec 13, 2012 at 3:10 PM, Jim Giner >> **wrote: >> >> >>> >>> I'm not sure if there's much difference between large text fields

  1   2   3   4   >