Re: [PHP] FYI: Apache/PHP exploit

2013-10-31 Thread Camilo Sperberg
On 31 okt. 2013, at 01:55, Joshua Kehn wrote: > Summary for those on phones? > > Best, > > -Josh > ___ > http://byjakt.com > Currently mobile > >> On Oct 30, 2013, at 8:37 PM, Tamara Temple wrote: >> >> This info cruised by my screen from G+ today, thought I’d at le

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Camilo Sperberg
On Wed, Sep 25, 2013 at 11:48 PM, Camilo Sperberg wrote: > Another vote for PHPMailer, I have it working several years already > (authenticating against a Zimbra and Outlook SMTP server) without problems. > > Greetings. > > > On Wed, Sep 25, 2013 at 11:12 PM, Aziz Saleh wrot

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Camilo Sperberg
Another vote for PHPMailer, I have it working several years already (authenticating against a Zimbra and Outlook SMTP server) without problems. Greetings. On Wed, Sep 25, 2013 at 11:12 PM, Aziz Saleh wrote: > Usually if I am using a framework I would use the SMTP library associated > with it.

Re: [PHP] Friday's Question

2013-09-20 Thread Camilo Sperberg
usepad I currently use only my MBP's trackpad, and it is so customizable I ended up buying a magic trackpad for my Mac at work as well. But, back in the days of Windows I was using a mousepad, mainly because it just looks better than having nothing at all. Greetings. Met vriendelijke groet, Camilo Sperberg W: http://unreal4u.com T: http://twitter.com/unreal4u -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] high traffic websites

2013-09-18 Thread Camilo Sperberg
ve come > already enabled. > > Sent from iPhone > > > On Sep 18, 2013, at 2:20 AM, Camilo Sperberg wrote: > >> >> On Sep 18, 2013, at 09:38, Negin Nickparsa wrote: >> >>> Thank you Sebastian..actually I will already have one if qualifie

Re: [PHP] high traffic websites

2013-09-18 Thread Camilo Sperberg
On Sep 18, 2013, at 09:38, Negin Nickparsa wrote: > Thank you Sebastian..actually I will already have one if qualified for the > job. Yes, and I may fail to handle it that's why I asked for guidance. > I wanted some tidbits to start over. I have searched through yslow, > HTTtrack and others. > I

Re: [PHP] how old is this version of PHP?

2013-08-17 Thread Camilo Sperberg
pize: $ /usr/local/zend/bin/phpize Output should be similar to this: /Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519/ Greetings. Met vriendelijke groet, Camilo Sperberg W: http://unreal4u.com T: http://twitter

Re: [PHP] What the hell is Begacom?

2013-08-04 Thread Camilo Sperberg
On 4 aug. 2013, at 12:51, Ashley Sheridan wrote: > And why everytime I reply to the list am I getting an automated reply > from this email address > > Belgacom Webteam [no-reply] > > > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > So that's why I was getting those emails as well

Re: [PHP] Detect and Redirect Mobile Users

2013-06-14 Thread Camilo Sperberg
On Jun 13, 2013, at 15:31, Camille Hodoul wrote: > Hello, > > I stumbled upon this the other day : > http://mobiledetect.net/ > I haven't tried it yet, since I have my own small user agent parser when I > need it, but it may help you if it's a pure php solution you're looking for. > > Have a n

Re: [PHP] limit access to php page

2013-05-29 Thread Camilo Sperberg
On 30 mei 2013, at 05:05, Paul M Foster wrote: > On Wed, May 29, 2013 at 08:51:47PM -0400, Tedd Sperling wrote: > >> On May 29, 2013, at 7:11 PM, Tim Dunphy wrote: >> >>> Hello list, >>> >>> I've created an authentication page (index.php) that logs into an LDAP >>> server, then points you to

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
On Wed, May 29, 2013 at 8:09 PM, Jim Giner wrote: > 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

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/http

Re: [PHP] .htaccess and user file/folder access outside public_html

2013-05-25 Thread Camilo Sperberg
On May 25, 2013, at 13:38, Rafnews wrote: > Hi, > > i'm facing a problem and i don't know where to start and in fact, how to do > it. > > Situation: > Users of my website should be able to save their resume files + cover letters > on my webserver. > > problem: > how to make their file SECUR

Re: [PHP] mysql custom global defined variable

2013-03-13 Thread Camilo Sperberg
On Mar 13, 2013, at 10:35 AM, Kevin Peterson wrote: > In my database design, I tend to store some variable that is meant to be > acting as a ROLE or TYPE as SMALLINT. For example : > >CREATE TABLE `house` ( > `id` int(11) NOT NULL AUTO_INCREMENT, > `type` smallint(11) NOT NULL,

Fwd: [PHP] Where do I report bugs/feature requests for Image magick ext

2013-03-12 Thread Camilo Sperberg
Begin forwarded message: > From: Camilo Sperberg > Subject: Re: [PHP] Where do I report bugs/feature requests for Image magick > ext > Date: March 12, 2013 1:40:09 PM GMT+01:00 > To: Carsten Jensen > > > On Mar 12, 2013, at 1:13 PM, Carsten Jensen wrote: > >

Re: [PHP] APC opcode cache behavior

2013-02-14 Thread Camilo Sperberg
On 14 feb. 2013, at 20:32, Marco Behnke wrote: > Am 14.02.13 16:05, schrieb Camilo Sperberg: >> >> You can also write a little script that clears the APC cache, something in >> the line of: >> >> #!/usr/bin/php >> > apc_clear_cache(); >>

Re: [PHP] APC opcode cache behavior

2013-02-14 Thread Camilo Sperberg
On 14 feb. 2013, at 15:19, "ma...@behnke.biz" wrote: >> Aaron Holmes hat am 14. Februar 2013 um 03:53 >> geschrieben: >> Hello, >> I'm trying to find some information on APC opcode cache behavior. >> We noticed an issue where, when switching symlinks to different versions >> of sites, old code

Re: [PHP] Sorry bout that...

2012-12-21 Thread Camilo Sperberg
On 21 dec. 2012, at 14:22, "Steven Staples" wrote: > I would like to let everyone know that the world didn't end this morning > like it was supposed too. > > > > Sorry, carry on about your business. > > > > And HAPPY FRIDAY!!! > > > > Steven Staples > lol xD Latest news says it will

Re: [PHP] RAM Disk

2012-10-22 Thread Camilo Sperberg
On 22 okt. 2012, at 04:45, Alan Hoffmeister wrote: > Hello fellows. > Have anyone already tested PHP inside RAM disk with some Apache/nginx > accessing those files or even session files? > It's just for curiosity and performance analysis. > > Thanks. > > > -- > -- > Att, > Alan Hoffmeister

Re: [PHP] Expected behaviour or bug?

2012-09-17 Thread Camilo Sperberg
On 17 sep. 2012, at 10:55, Frank Arensmeier wrote: > 17 sep 2012 kl. 10.50 skrev Camilo Sperberg: > >> Hello list, I have a little question with PHP's internal working. I've >> managed to reduce the test to the following lines: >> >> $globalVariable

[PHP] Expected behaviour or bug?

2012-09-17 Thread Camilo Sperberg
Hello list, I have a little question with PHP's internal working. I've managed to reduce the test to the following lines: $globalVariable = 'i am a global variable'; function testFunction() { global $globalVariable; unset($globalVariable); } testFunction(); if(isset($globalVaria

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

2012-06-28 Thread Camilo Sperberg
According to what i can understand from that message is that you have line(s) starting with # in your php.ini file. A proper ini file should use ; as the beginning from a comment. Check the given file at the given line and change the first # symbol into a ; one. Greetings. Sent from my iPh

Re: [PHP] test

2012-06-07 Thread Camilo Sperberg
It seems so Sent from my iPhone 5 Beta [Confidential use only] On 7 jun. 2012, at 20:07, Sven Kowalski wrote: > does it work now? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Function size

2012-05-23 Thread Camilo Sperberg
I use a lot of switches but they are always small in size because they look mostly like this: switch($action) { case 'hello': $someObject->executeAction(); break; case 'world': $someOtherObject->executeOtherAction(); break; default: $this->anotherAction(); break; }

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Camilo Sperberg
Sent from my iPhone 5 Beta [Confidential use only] On 11 mei 2012, at 07:09, "Lars Nielsen" wrote: > >> >> On 10 mei 2012, at 23:26, Lars Nielsen wrote: >> >>> Sent from my iPhone 5 Beta [Confidential use only] On 10 mei 2012, at 17:40, Matijn Woudt wrote:

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Camilo Sperberg
On 10 mei 2012, at 23:26, Lars Nielsen wrote: > >> >> >> Sent from my iPhone 5 Beta [Confidential use only] >> >> On 10 mei 2012, at 17:40, Matijn Woudt wrote: >> >>> On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: Hi there, I have apache-2.22/php 5.3.10 set up on a de

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Camilo Sperberg
Sent from my iPhone 5 Beta [Confidential use only] On 10 mei 2012, at 17:40, Matijn Woudt wrote: > On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: >> Hi there, >> >> I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a >> strange issue. >> >> I have made a Drupal 7 s

Re: [PHP] code deployment through php

2012-05-01 Thread Camilo Sperberg
On 1 mei 2012, at 10:59, rene7705 wrote: > Hi folks. > > I was here a while ago, trying to figure out how to keep deployment > instances of my common code, running on more than 1 site, in sync with > eachother. > > I've looked at rsync which was recommended here, but didn't like it much, > nor

Re: [PHP] Randomly unable to read set variable from class

2012-03-13 Thread Camilo Sperberg
Sorry wasn't able to reproduce it on my test machine. Do you have any external modules loaded such as APC, memcached, xDebug maybe or other that can affect the output on that machine? Greetings On 13 Mar 2012, at 17:02, Adrian Basalic wrote: > I have an issue that occurs randomly on a machine

Re: [PHP] Test

2012-02-20 Thread Camilo Sperberg
It's alvvve!!! Sent from my iPhone 5 Beta [Confidential use only] On 20 feb. 2012, at 21:08, Jason Pruim wrote: > Someone finally got off their butt and got some work done? ;) > > And I have today off for Washingtons birthday! > > > > On Feb 20, 2012, at 2:59 PM, Jay Blanchard >

Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread Camilo Sperberg
You can export the bookmarks as a json or html and then read it easily with php but i suspect you want to read the firefox files directly, in which case you can read the sqlite file called places.sqlite More info here: http://support.mozilla.com/en-US/kb/Profiles Sent from my iPhone 5 Beta [Con

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Camilo Sperberg
I had the same problem the other day and it was because a certain index in an array didn't exist, this array was constructed from the db and later i was trying to access this array. So my best guess would be that if it happens only at production and db data is involved, i would definitly think

Re: [PHP] regex or 'tidy' script to fix broken

2011-08-10 Thread Camilo Sperberg
On 10-08-2011, at 16:54, Daevid Vincent wrote: >> -Original Message- >> From: Camilo Sperberg [mailto:unrea...@gmail.com] >> Sent: Tuesday, August 09, 2011 5:27 PM >> >> For the first one, it may be that zend studio does have an internal script >&

Re: [PHP] regex or 'tidy' script to fix broken

2011-08-09 Thread Camilo Sperberg
For the first one, it may be that zend studio does have an internal script to do the job. Check the general preferences tab, template stuff. Please note that wrote: > I've inherited a bunch of code and the previous developers have done two > things that are really bugging me and I want to clean

Re: [PHP] Help needed with php.ini

2011-06-05 Thread Camilo Sperberg
On 05-06-2011, at 10:31, Adam Tong wrote: > Hi, > > I can't set correctly the error display and reporting properties. I > don't know what i'm doing wrong. > > Here is the section that i modified in php.ini: > - > display_errors = On > ; Default Value: On > ; Development Value: On > ;

Re: [PHP] Gentle (Friday) Reminder

2011-05-06 Thread Camilo Sperberg
What do you mean by that? (irony lvl: 100%) Sent from my iPhone On 06-05-2011, at 22:58, Daniel Brown wrote: > >$posting = array('bottom','interspersed','top'); > >// Feel free to add on >$destinations = array('to hell','away','read the archives and see > why we don\'t like t

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Camilo Sperberg
El 03-04-11 14:41, Jason Pruim escribió: So the subject says it all... And yes I know this isn't related to PHP but it's the weekend and I trust the opinions on this list more then any other list I have seen. I've been doing alot of reading on XML and honestly it looks pretty cool... BUT the q

Re: [PHP] Correct file permissions for a website

2011-02-15 Thread Camilo Sperberg
On Tue, Feb 15, 2011 at 08:35, Ashim Kapoor wrote: > Dear All, > > The book PHP and MySQL bible says that the php directory should be world > executable ? I remember posting a different question earlier to this list > and one person suggesting this and another person replying that that was > inc

Re: [PHP] Cross-platform IDE

2011-01-26 Thread Camilo Sperberg
I like eclipse as well, you can combine it with svn which will be a great plus if you develop on several machines. Sent from my iPhone On 26-01-2011, at 10:06, Andy McKenzie wrote: > Hey folks, > >Hopefully this is enough on-topic not to annoy anyone. Up until > now I've mostly written s

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread Camilo Sperberg
Please take into account that lighttpd does have some random high cpu-consumption problems, it could be that also. Give nginx a try instead. Also: microtime by itself isn't enough, sum time() to it because if a script lasts more than 1 second you can end up with negative total time, microtime

Re: [PHP] projectpier

2011-01-12 Thread Camilo Sperberg
At least now we all know of the domainname change xD Sent from my iPhone On 12-01-2011, at 19:38, Peter Lind wrote: > 2011/1/12 Ashley Sheridan > >> On Wed, 2011-01-12 at 23:14 +0100, Peter Lind wrote: >> >> jeg har flyttet projectpier over paa fastaval.dk domaenet - >> det koerer nu under p

Re: [PHP] Could this be a bug?

2010-09-14 Thread Camilo Sperberg
On Tue, Sep 14, 2010 at 02:46, Thijs Lensselink wrote: > On 09/14/2010 08:33 AM, Thijs Lensselink wrote: > >> On 09/14/2010 12:16 AM, Camilo Sperberg wrote: >> >>> I have some really strange behaviour going on here, and I think it could >>> be >>>

Re: [PHP] Could this be a bug?

2010-09-13 Thread Camilo Sperberg
Well, after some more testing I'm almost sure it is some kind of strange minor bug... so I've submitted a bug report: http://bugs.php.net/bug.php?id=52833 Greetings ! On Tue, Sep 14, 2010 at 00:51, Camilo Sperberg wrote: > > On Mon, Sep 13, 2010 at 18:56, Tamara Temple wrote:

Re: [PHP] Could this be a bug?

2010-09-13 Thread Camilo Sperberg
On Mon, Sep 13, 2010 at 18:56, Tamara Temple wrote: > This isn't to answer your question, but... > > > On Sep 13, 2010, at 5:16 PM, Camilo Sperberg wrote: > >> function my_error_handler($errno = '0', $errstr = '[FATAL] General Error',

[PHP] Could this be a bug?

2010-09-13 Thread Camilo Sperberg
I have some really strange behaviour going on here, and I think it could be a (minor) PHP's bug. I am not really sure about what happens internally, but my best guess would be that after a memory exhaustion, when I try to execute a custom error handler with the register_shutdown_function (which is

Re: [PHP] Regular expressions, filter option1 OR option2

2010-08-18 Thread Camilo Sperberg
s a link that I used long back to help me with some RegEx > :http://www.gskinner.com/RegExr/ > > Regards, > Shreyas > > On Wed, Aug 18, 2010 at 11:31 PM, Camilo Sperberg > wrote: > > > Hello list :) > > > > Just a short question which I know it should be eas

[PHP] Regular expressions, filter option1 OR option2

2010-08-18 Thread Camilo Sperberg
Hello list :) Just a short question which I know it should be easy, but I'm no expert yet in regular expressions. I've got a nice little XML string, which is something like this but can be changed: http://tempuri.org/";>false The boolean value can be true or false, so what I want to do, is filt

Re: [PHP] In what scenario an extension of a class is useful?

2010-06-29 Thread Camilo Sperberg
On Wed, Jun 23, 2010 at 02:58, Rene Veerman wrote: > inheritance of this kind is useful if you have common descendants for > specific types of object > Nice thought. I imagine something like a DB wrapper, and implementing things such as multiqueries and others on an extension based on the basic

[PHP] In what scenario an extension of a class is useful?

2010-06-22 Thread Camilo Sperberg
Hello everybody :) I'm really intrigued on something... In what real-world applications could an extension of a class be really useful? Let's say I have this code: class foo { function hello_world($a) { echo 'foo hello world'; } function bye_world() { echo 'foo bye world'; } }

Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Camilo Sperberg
> > a certain string can contain the following information: >> >> $string = >> 'hi{value1;value2}bye{value1;value3}hi{value1;value4}hi{value1;value2}bye{value1;value2}'; >> >> What I want is to be able to get this result: >> >> $string = >> 'hi{value1;value2}bye{value1;value3}hi{value1;value4}bye{v

[PHP] strip out repeated ocurrence of a string

2010-01-25 Thread Camilo Sperberg
Hello list :) I have this problem, a certain string can contain the following information: $string = ' hi{value1;value2} bye{value1;value3} hi{value1;value4} hi{value1;value2} bye{value1;value2} '; What I want is to be able to get this result: $string = ' hi{value1;value2} bye{value1;value3} h

Re: [PHP] Php-cli, scripts freeze on exit

2010-01-25 Thread Camilo Sperberg
On Sun, Jan 24, 2010 at 16:16, David W. Allor wrote: > Hi! > > I'm using php-cli 5.3.1. > > When I run php from the command line, the script does not return me to > the command prompt when exited. The script always completes, but it has > to be killed to release it's resources. > > I've created a

Re: [PHP] MySQL ID -- what happens when you run out of range?

2010-01-25 Thread Camilo Sperberg
t any value above 127 it was automaticly truncated to 127). > It is correct also, that you cannot use negative numbers for the > autoincrement field. > > > Camilo Sperberg wrote: > > On Mon, Jan 25, 2010 at 17:15, Parham Doustdar > wrote: > > > > Hello th

Re: [PHP] MySQL ID -- what happens when you run out of range?

2010-01-25 Thread Camilo Sperberg
On Mon, Jan 25, 2010 at 17:15, Parham Doustdar wrote: > Hello there, > A friend called me today and was wondering what happens if the ID colomn of > an MYSQL database, set to autoinc reaches the int limit. Will it return and > begin choosing the ID's that have been deleted, or... what? > Thanks!

Re: [PHP] 304 Not Modified header not working within a class

2010-01-23 Thread Camilo Sperberg
Greetings, a lot of thanks to Richard for his code and Rene for his suggestion to take a look at Apache and good night :P (Despite being 7AM xD) On Wed, Jan 20, 2010 at 21:16, Camilo Sperberg wrote: > > > On Wed, Jan 20, 2010 at 04:34, richard gray wrote: > >> >&g

Re: [PHP] 304 Not Modified header not working within a class

2010-01-20 Thread Camilo Sperberg
On Wed, Jan 20, 2010 at 04:34, richard gray wrote: > > Camilo Sperberg wrote: > >> Hi list, my first message here :) >> >> To the point: I'm programming a class that takes several CSS files, >> parses, >> compresses and saves into a cache file. Howev

Re: [PHP] 304 Not Modified header not working within a class

2010-01-19 Thread Camilo Sperberg
On Wed, Jan 20, 2010 at 02:33, Rene Veerman wrote: > if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) AND > strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified) { > > > shouldn't that be > > strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $last_modified) > > ? > Now that I think about

[PHP] 304 Not Modified header not working within a class

2010-01-16 Thread Camilo Sperberg
Hi list, my first message here :) To the point: I'm programming a class that takes several CSS files, parses, compresses and saves into a cache file. However, I would like to go a step further and also use the browser cache, handling the 304 and 200 header types myself. Now, what is the problem?