Re: [PHP] One last try at this!

2007-01-17 Thread Simon Forster
;2") == $result As this usually throws a fairly obvious error if you miss out the extra equals sign. Personally, I don't like this but I can see it helps one write more robust code the first time round. HTH Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Curious PHP cli output in context of bash completion ?

2010-01-27 Thread Alexandre Simon
Hello, I'm pretty "sure" (in realty I do not understand a lot about the problem... :( ) this is a distribution or a version problem but maybe some PHP/bash expert here could have some idea and tell me what I could try to solve the problem described here : http://ubuntuforums.org/showthread.ph

Re: [PHP] Curious PHP cli output in context of bash completion ?

2010-01-27 Thread Alexandre Simon
as newline ? > > On Wed, Jan 27, 2010 at 10:46 PM, Alexandre Simon wrote: >> Hello, >> >> I'm pretty "sure" (in realty I do not understand a lot about the problem... >> :( ) this is a distribution or a version problem but maybe some PHP/bash >

Re: [PHP] Curious PHP cli output in context of bash completion ?

2010-01-27 Thread Alexandre Simon
Le 28 janv. 2010 à 00:42, Ashley Sheridan a écrit : On Wed, 2010-01-27 at 23:27 +0100, Rene Veerman wrote: > My initial goal is to complete a PHP script, using the PHP script itselfs as function for bash completion. Mechanism that works perfectly on some other platforms (with different PHP AND b

[PHP] Re: Curious PHP cli output in context of bash completion ?

2010-01-28 Thread Alexandre SIMON
ill do not know what exactly differs and makes the problem appear. Maybe some PHP expert could orient me to the right direction (I'm not a Guru of compilation, especiallly for PHP ...) ? Thanks 2010/1/27 Alexandre Simon > Hello, > > I'm pretty "sure" (in r

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-03 Thread Alexandre Simon
Hello, multiple things: - escape your values: 1. if some of the user input contains '\'' for instance, your query is not well formed 2. if some evil user want to do anything with your DB, he can do it => See mysql_escape_string or PDO prepared statements - Use "else" part of the if statement

Re: [PHP] cache_control_limiter

2010-07-06 Thread Alexandre SIMON
control_limiter to public, but it seems to stay > in nocache. What can be wrong? Tried two servers. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- SIMON Alexandre

[PHP] ignore_repeated_errors has no effect

2010-11-07 Thread Simon Marchi
well as ignore_repeated_source. I checked that the settings is effective in phpinfo(). Does anybody have an idea why I still get these repeated errors ? Thanks ! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ignore_repeated_errors has no effect

2010-11-07 Thread Simon Marchi
Hi, Just a precision, I don't want to modify the user's code, I would like to configure my server properly so it does not happen again even if another user makes a similar mistake. Thanks, Simon On Sun, Nov 7, 2010 at 09:02, Andre Polykanine wrote: > Hello Simon, > > Ju

Re: [PHP] PHP: a fractal of bad design

2012-04-12 Thread Simon Schick
Anthony Ferrara: http://blog.ircmaxell.com/2012/04/php-sucks-but-i-like-it.html Bye Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best PHP Template System

2012-04-26 Thread Simon Schick
On Thu, Apr 26, 2012 at 12:07 AM, Yared Hufkens wrote: > > Why use an external engine which slows your scripts down to do something > which can easily be done by PHP itself? PHP is imho the best template engine > for PHP. > With PHP 5.4, it became even easier because somestuff()?> can be > used wi

Re: [PHP] Should I check imput for bad chars in this case?

2012-04-26 Thread Simon Schick
TTP_FORWARDED", "REMOTE_ADDR" ); foreach($params as $param) { if ($val = filter_input(INPUT_SERVER, $param, FILTER_VALIDATE_IP)) return $val; } return false; } This way you could

Re: [PHP] Should I check imput for bad chars in this case?

2012-04-26 Thread Simon Schick
On Thu, Apr 26, 2012 at 3:59 PM, mirrys.net wrote: > Thank you for your help Marco & Simon. No doubt, your code is much > cleaner and better. > > One more question, without any filter or something could be my > original code somehow compromised (mean some security bug)? Or r

Re: [PHP] function

2012-05-03 Thread Simon Schick
to call inside your first function) is not defined at that time but in a file that's included later on ... Bye Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IDE

2012-05-06 Thread Simon Schick
ian, PHP 5.3 and xdebug to debug my scripts and am perfectly fine with that. I can send you my whole xdebug-config if you want :) The stuff with javascript sounds like something automated to me ... But I don't think you're talking about auto-form-fill and stuff like that, are yo

Re: [PHP] IDE

2012-05-06 Thread Simon Schick
On Mon, May 7, 2012 at 3:10 AM, Ethan Rosenberg wrote: > > > === > Simon - > > Thanks. > > >> I don't think you're talking about auto-form-fill and stuff like >> that, are you? > > > No, I am not. > > Please send me your xdebug-

Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-21 Thread Simon Schick
nti-virus-program removed something here? Please don't see that as destructive critic, but as hints what I would do if I get to do with this code. Bye Simon On Mon, May 21, 2012 at 12:46 PM, rene7705 wrote: > Hi. > > I wasn't happy with the fact that Google Analytics doesn&#

Re: [PHP] [missing] images .htaccess

2012-05-21 Thread Simon Schick
imilar are pictures, bypass the cms and let apache ship the file or apaches 404-page if not available. But this has nothing to do with PHP itself but is an apache-configuration. Here's a beginner guide where I copied the line above: http://www.workingwith.me.uk/articles/scripting/mod_rewrite By

Re: [PHP] Which workstation????

2012-06-05 Thread Simon Schick
basic editor of windows. This is just about syntax-highlight, code-completion and other things helping you to develop your code. Hope that helps :) Bye Simon On Tue, Jun 5, 2012 at 2:10 PM, Farzan Dalaee wrote: > hi guys > i really confuse by choosing the best work station for php ( cakephp

Re: [PHP] Which workstation????

2012-06-11 Thread Simon Schick
Bye Simon On Tue, Jun 5, 2012 at 2:22 PM, Simon Schick wrote: > Hi, Farzan > > I do not really get your point of confusion ... > > What you've posted here are tools/frameworks that do not to the same stuff > at all, yes you could even use all without missing something ... >

Re: [PHP] Searching IDE.

2012-06-13 Thread Simon Schick
features but this is what I used the time I tested them. I personally would use PhpStorm if you have money - else Netbeans. Bye Simon On Wed, Jun 13, 2012 at 11:54 AM, Lester Caine wrote: > David Arroyo wrote: > >> I am searching an IDE for php and web development, my options are &

Re: [PHP] Searching IDE.

2012-06-13 Thread Simon Dániel
Hi, Although it's not an IDE, it is full of very useful developer tools: Kate 2012/6/13 David Arroyo > Hi Folks, > > I am searching an IDE for php and web development, my options are > Aptana or Eclipse+PDT. > What is your opinion? > > Thanks. > Regards. > > -- > > -- > PHP General Mailing Lis

Re: [PHP] reload page without use header

2012-06-17 Thread Simon Schick
d if I don't set it. May there are more ways to set redirects, but this are the one I know of. Bye Simon On Sun, Jun 17, 2012 at 10:06 AM, Farzan Dalaee wrote: > hi guys > is there any way to reload page without using header('location > :index.php'); and javascript? &

[PHP] [PHP-DEV] SQLite - Unwanted values using group-by

2012-07-07 Thread Simon Schick
roblem before ... what could it be? I thought it might a problem of the SQLite-lib but both, the LinuxArch and the OSX system, have the same SQLite version - and both, the windows and the LinuxArch version, have the same PHP-version. Even if the example just uses PDO, I've also tested this using the native SQLite3 lib and I got at least the same result on Windows. Haven't tested the other systems with the native SQLite3 lib. Bye Simon

Re: [PHP] [PHP-DEV] SQLite - Unwanted values using group-by

2012-07-10 Thread Simon Schick
/is-it-safe-to-include-extra-columns-in-the-select-list-of-a-sqlite-group-by-quer#answers Bye Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Entry point of an MVC framework

2012-07-12 Thread Simon Dániel
Hi, I have started to develop a simple MVC framework. I have a base controller class which is abstract and all of the controllers are inherited from that. Every controller contains actions represented by methods. (E. g. there is a controller for managing product items in a webshop, and there are

RE: [PHP] Entry point of an MVC framework

2012-07-12 Thread Simon Griffiths
. -Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: 12 July 2012 22:44 To: php-general@lists.php.net Subject: RE: [PHP] Entry point of an MVC framework > -Original Message- > From: Simon Dániel [mailto:simondan...@gmail.com] > Sent: Thursday, July 12, 201

Re: [PHP] Regex

2012-07-27 Thread Simon Dániel
#[0-9a-zA-Z,.]# 2012/7/27 Ethan Rosenberg > Dear list - > > I've tried everything and am still stuck. > > A regex that will accept numbers, letters, comma, period and no other > characters > > Thanks. > > Ethan Rosenberg > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscri

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-20 Thread Simon Schick
ome similar security-policy in other communities than this :) Bye Simon On Sun, Aug 19, 2012 at 11:39 PM, Michael Shadle wrote: > > If you are going to use something like joomla, use Drupal. Why bother. > Drupal is trending up and is used by large companies and governments. Joomla &

[PHP] [PHP-DEV] Separate apc-caches for each fpm-pool

2012-08-20 Thread Simon Schick
fpm-master that is controlling the pools. (http://groups.drupal.org/node/198168) Is this the way to go, or do you know of another way? Should this be added to the APC- or fpm-documentation or is it enough that you can find f.e. it using Google, if you need it? Bye Simon -- PHP General Mailing

Re: [PHP] Crash course

2012-08-20 Thread Simon Schick
anual/en/mysqli.quickstart.prepared-statements.php I got access to a server where the administrator had mixed it up that hard, that mysqli as PHP-extension was installed and worked quite well excepted by the prepared-statement :D Bye Simon On Mon, Aug 20, 2012 at 12:51 PM, Lester Caine wrote: &

Re: [PHP] Crash course

2012-08-20 Thread Simon Schick
are ...". Therefore I gave up because the developer won't fix those and I don't want to support my own fork of those extensions. Bye Simon On Mon, Aug 20, 2012 at 1:40 PM, Lester Caine wrote: > Simon Schick wrote: >> >> Just try to connect to your mysqlserver using

[PHP] Separate apc-caches for each fpm-pool

2012-08-28 Thread Simon Schick
fpm-master that is controlling the pools. (http://groups.drupal.org/node/198168) Is this the way to go, or do you know of another way? Should this be added to the APC- or fpm-documentation or is it enough that you can find f.e. it using Google, if you need it? Bye Simon -- PHP General Mailing

[PHP] Re: [PHP-DEV] Separate apc-caches for each fpm-pool

2012-08-28 Thread Simon Schick
Sorry, I first posted it with the wrong subject ([PHP-DEV] instead of [PHP]) http://news.php.net/php.general/318898 On Mon, Aug 20, 2012 at 11:44 AM, Simon Schick wrote: > Hi, all > > Not to get the bugfix https://bugs.php.net/bug.php?id=57825 too much > off-topic, I write this que

[PHP] Who is responsible for NFD or NFC formated UTF8 text? PHP, my application or the system-administrator?

2012-08-28 Thread Simon Schick
prevent it in the future? Who's responsible of taking care of that? I myself, Wordpress, the system I use, or I as the system-administrator moving the website? For example I don't know if Windows f.e. converts every filename to NFC, but MacOSX (using HFS+) forces filenames to be NFD c

Re: [PHP] templeting

2012-09-04 Thread Simon Schick
iki/Template-Engine#Template-Engines_f.C3.BCr_PHP http://en.wikipedia.org/wiki/Template_engine_%28web%29#Comparison What I used most is Twig. For the next project (if it has no template-engine build in in the system I choose) I'll give OPT a try. It looks promising ;) Bye Simon -

[PHP] Differentiate Line breaks and Paragraphs

2012-11-02 Thread Simon Dániel
Hi, Is there a way to make difference between line breaks and paragraphs, when I save a text to a database from a user input? The new line characters (\n, \r) are not too consequent to determine when did the user only one new line or more new lines. (Some clients make only \n or \r, some others ma

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

2013-03-01 Thread Simon Schick
erlin and pull out stuff like birthday-information at midnight. Please do also keep in mind here, that there are not only full-hour-timezones :) http://en.wikipedia.org/wiki/List_of_UTC_time_offsets But I can't come up with a problem that you wouldn't have with a local timezone inste

[PHP] PDO Transaction

2013-03-15 Thread Simon Dániel
Hi, I have a trouble with PDO transactions. I would like to start using transactions, but I am not familiar with it. I have got a 'There is no active transaction' exception, however, I am using beginTransaction method, and also I have set PDO::ATTR_AUTOCOMMIT to false right after connecting to th

Re: [PHP] PDO Transaction

2013-03-16 Thread Simon Dániel
2013/3/15 Lester Caine > Simon Dániel wrote: > >> Hi, >> >> I have a trouble with PDO transactions. >> >> I would like to start using transactions, but I am not familiar with it. I >> have got a 'There is no active transaction' exception, howe

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Simon Griffiths
Hello, Try something like: $oldDate = new DateTime(); $oldDate->sub(new DateInterval('P3M')); $old_records_to_delete = $oldDate->format('Y-m-d'); Hope this helps, Si Sent from my iPhone On 2 Aug 2013, at 11:58, Karl-Arne Gjersøyen wrote: > Hello again, folks! > I wish to delete records in

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Simon Schick
AL 3 MONTH" @Dusan, Btw: What is "DELECT"? I assume it should've been "DELETE", right? Bye Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
to the format defined in the constant DateTime::ATOM. Are both formats (with and without colon) valid for ISO8601, or is the documentation for the method date() wrong? Bye, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
27;-') HH [':' mm [':' ss [('.' | ',') SSS]]]) Is there a format, you know of, that makes this difference (colon or not) bullet-prove? Bye, Simon On Sat, Sep 7, 2013 at 5:29 PM, Alessandro Pellizzari wrote: > On Sat, 07 Sep 2013 14:47:00 +0200, Simon

[PHP] Static methods vs. plain functions

2013-09-19 Thread Simon Dániel
Hi, I am working on an OOP project, and cannot decide which way to follow when I have to write a simple function. For example, I want to write a function which generates a random string. In an OOP environtment, it is a matter of course to create a static class and a static method for that. But wh

Re: [PHP] php.ini

2013-10-09 Thread Simon Schick
changeable in those per-user ini-files. Read also the other pages in this chapter, they're good to keep in mind ;) If you're now calling the script from a webserver, you called by requesting a page on a subdomain or a top-level-domain, doesn't matter. Bye, Simon On Tue, Oct 8, 2013

[PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
new Foobar(); $obj->callBarStatic(); That means that the static call of bar() is executed in the context of Foobar. Is this behavior deliberate? If so, it would open a great way of object composition patterns. But only if it will be retained in future versions :) (i've tested with 5.3.5)

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
Richard, yes! at least my example works. i didn't test it any further; i doubt it is intended that way. Simon Hilz Am 22.05.2011 16:42, schrieb ad...@buskirkgraphics.com: Simon, So without extending foo you can run bar in another class? Richard L. Buskirk -Original Me

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
7, schrieb Mike Mackintosh: Simon, You may want to be careful with the way you declare your class methods. Example: public function bar() != static function bar(), even if you use pnysudsfksdljfasdjfsd (::) See the example below. class Foo{ static function barStatic() { echo

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
ourse I can call a method from it. Sorry Richard L. Buskirk -Original Message- From: Simon Hilz [mailto:simon.h...@gmx.de] Sent: Sunday, May 22, 2011 11:56 AM To: php-general@lists.php.net Subject: Re: [PHP] context when calling non static method of class in a static way Richard, yes!

Re: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread Simon Hilz
ump($this) always outputs the same object (as identified by id) but the "Behaviors" could only call the methods defined in Car if they are defined public. if they are protected or private they dont get called. no warning/error/whatever. just no call. attributes are not accessible too

Re: [PHP] context when calling non static method of class in a static way

2011-05-23 Thread Simon Hilz
ah i forgot e_all doesnt include e_strict. with error_reporting(-1 / E_ALL | E_STRICT) i see the errors. so i think i am right that the use of that special behavior of php is not a good idea. thank you guys! Am 23.05.2011 00:32, schrieb Richard Quadling: On 22 May 2011 22:44, Simon Hilz

[PHP] best practise accessing object's attributes from objects itself

2011-05-23 Thread Simon Hilz
if my practises are good. are there any discussions by really focused php programmers about that? Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-12 Thread Simon Schick
you can work with. I'd like to hear your feedback. Bye Simon 2012/2/12 Elbert F > I'm looking for constructive feedback on Swiftlet, a tiny MVC framework > that leverages the OO capabilities of PHP 5.3. It's intentionally > featureless and should familiar to those exper

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Simon Schick
makes code so personalized ;) *like-it* Bye Simon 2012/2/13 Benjamin Hawkes-Lewis > On Sun, Feb 12, 2012 at 11:36 PM, Paul M Foster > wrote: > > The more I've thought about it since then, the more I've considered it a > > Good Thing(tm). It makes troubleshooting e

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Simon Schick
I pretty much also like the no-config part. http://en.wikipedia.org/wiki/Convention_over_configuration Bye Simon 2012/2/12 Elbert F > Hi Simon, > > I think you're right that I may be abusing the constructor a bit. I'm > going to follow your suggestion and split it up into s

Re: [PHP] basic captcha

2012-02-16 Thread Simon Schick
aches a configured level, this form-submission will be rejected. http://typo3.org/extensions/repository/view/wt_spamshield/current/ Wordpress: http://antispambee.de/ Bye Simon 2012/2/17 Savetheinternet > On Fri, Feb 17, 2012 at 3:40 PM, Donovan Brooke wrote: > > Hello, > > > &

Re: [PHP] pathinfo or other

2012-02-17 Thread Simon Schick
That helped me a lot getting around this problems. Hope that this gives you more detailed information in what you need. Bye Simon 2012/2/17 Donovan Brooke > Elbert F wrote: > >> SCRIPT_NAME is a server side path, try REQUEST_URI. This includes the >> query >> string b

Re: [PHP] pathinfo or other

2012-02-17 Thread Simon Schick
Hi, Just to also add the discussion why mod_rewrite or PATH_INFO :) http://stackoverflow.com/questions/1565292/mod-rewrite-or-path-info-for-clean-urls Bye Simon 2012/2/17 Simon Schick > Hi, All > > I do not remember where I found the list of variables that are provided if > you lo

Re: [PHP] basic captcha

2012-02-17 Thread Simon Schick
it's just about filtering the 99% spam and get all user-mails through. Nothing is more annoying as when you (as user) get the feedback "*Go away! You're a bot.*" ;) Bye Simon 2012/2/17 Ashley Sheridan > > > Simon Schick wrote: > > >Hi, all > > > >Whe

Re: [PHP] SimpleXML and the Single String (SOLVED)

2012-02-21 Thread Simon Schick
Hi, Jay If you're not using the variable *$xmlCompany* somewhere else I'd try to skip the array and just do it with this single line: *$arrayLead[0]->Company = (string) $xml->SignonRq->SignonTransport->CustId->SPName;* The result should not differ from what you have n

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-29 Thread Simon Schick
v/s without changing the default configuration as there are several options that would dramatically slow down the system. But if you're configuring this properly I think you'll get the best information without changing the php-code itself. Bye Simon 2012/2/29 Tommy Pham > On Tue,

Re: [PHP] Website preview script

2012-02-29 Thread Simon Schick
Hi, Nibin I wonder what you'd call a ... Do you mean a screenshot or the HTML-response from the server, specially prepared (sounds like you want to create a proxy ;))? Bye Simon 2012/2/29 Nibin V M > No..what I am trying to write a "website preview" plugin attached to

Re: [PHP] Website preview script

2012-02-29 Thread Simon Schick
: http://www.phpgangsta.de/screenshots-von-webseiten-erstellen-mit-php Bye Simon 2012/2/29 Ashley Sheridan > ** > On Wed, 2012-02-29 at 19:54 +0100, Simon Schick wrote: > > > Hi, Nibin > > I wonder what you'd call a ... > Do you mean a screenshot or the HTML-respon

Re: [PHP] SESSION var and Objects problem

2012-03-02 Thread Simon Schick
xception thrown without a stack frame in Unknown on line 0* Here's the solution and description why: http://stackoverflow.com/questions/4624223/object-in-session-fatal-error-exception-thrown-without-a-stack-frame-in-unknow#answer-4624256 Bye Simon 2012/3/2 Jim Giner > "Stuart Dall

Re: [PHP] Function mktime() documentation question

2012-03-07 Thread Simon Schick
r to me as you don't have to worry about the 13th month, time-zones or other things that can be difficult to calculate yourself. Bye Simon 2012/3/8 shiplu : >> To get the number of days for a specific month, I use: >> >> // $current_month is the month under question >>

Re: [PHP] file url access funniness

2012-03-10 Thread Simon Schick
Hi, TR Shaw I would next try curl as php-extension. If that is working well, and you need it definitely with file() I'd use Wireshark to check which request is sent to the remote machine. Bye Simon 2012/3/10 TR Shaw > This is weird. This statement fails: > >$tld

Re: [PHP] Have little enough hair as it is ...

2012-03-10 Thread Simon Schick
... Bye Simon 2012/3/10 Lester Caine : > OK this has got to be some configuration problem! > I've two machines running fine Apache 2.2.15/PHP5.3.8 and two not with what > should be identical Apache/PHP setups. > All SUSE machines but 11.3, 11.4 and 12.1 with 11.3 and 11.4 machi

Re: [PHP] Have little enough hair as it is ...

2012-03-11 Thread Simon Schick
achines, while all of my other stuff is >> working fine. I started with Apache2.4.1 and PHP5.4.0 and moved back to >> what >> should be the same versions as the working machines but without success. > > > Simon Schick wrote: >> >> Can you give us some more infor

Re: [PHP] Have little enough hair as it is ...

2012-03-12 Thread Simon Schick
$gapName = $secondsGap[0]; > } [some-code] I'm quite unsure what you want to do here. If you'd update the first line as following it would always trigger the first condition: $secondsGap = array($gap[0] * 60, $gap[1] * 60); Bye Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bug zlib.output_compression not normal work in IIS7.5

2012-03-21 Thread Simon Schick
small php-test-script where you just output some text. Then you're sure that not other code is doing something strange. Another possible problem: Is the extension zlib enabled at all? The documentation says that it's disabled by default ... http://www.php.net/manual/en/zlib.installation.

Re: [PHP] foreach weirdness

2012-03-23 Thread Simon Schick
P are you using? Have you checked the online bug reports? > > Hi, Robert Does not seem like a bug to me ... http://schlueters.de/blog/archives/141-References-and-foreach.html What you should do to get the expected result: Unset the variable after you don't need this reference

Re: [PHP] foreach weirdness

2012-03-25 Thread Simon Schick
P 6.0) ... but I would rather request to add a notice or warning to the documentation of references to remind stuff like that. http://www.php.net/manual/en/language.references.php I think this is stuff more people will stumble over ... Bye Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Simon Schick
tion. If you're searching for something cheap for multi-domains, take a look at providers like DreamHost or something similar. Bye Simon 2012/3/26 Stuart Dallas : > REMOVE THAT SCRIPT FROM YOUR SERVER RIGHT NOW! > > See follow-up email direct to you for the reason! > >

Re: [PHP] Watch out for automatic type casting

2012-03-29 Thread Simon Schick
e the operators + and * in math. If you'd ask me, this is exactly what I would expect to happen. Bye Simon 2012/3/29 Arno Kuhl : > I found automatic typecasting can be a bit of a gotcha. > > > > $sText = "this.is.a.test.text"; > > if ( $pos = strpos($sText, "test&

Re: [PHP] Watch out for automatic type casting

2012-03-29 Thread Simon Schick
Hi, Arno FYI: I found a page in the php-manual that's exactly for that: http://www.php.net/manual/en/language.operators.precedence.php p.s. some of them were also new to me Thanks for getting me to read it. Bye Simon 2012/3/29 Simon Schick : > Hi, Arno > > I don't know

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-01 Thread Simon Schick
2012/4/1 Simon > > Another thing that's possible in .NET is the Singleton design pattern. > (Application variables are an implementation of this pattern) > > This makes it possible to instantiate a static class so that a single > instance of the object is available to a

[PHP] PHP Frameworks

2005-03-13 Thread Simon Reye
I'm moving away from Cold Fusion and am considering java or php. I've mucked around with Struts and Coccoon on the java side and think they are great. There does not however seem to be any well backed projects similar to these for php. Can anyone point me to a good php MVC framework? -- PHP G

Re: [PHP] PHP Frameworks

2005-03-13 Thread Simon Reye
Jeffery Fernandez wrote: Simon Reye wrote: I'm moving away from Cold Fusion and am considering java or php. I've mucked around with Struts and Coccoon on the java side and think they are great. There does not however seem to be any well backed projects similar to these for php.

[PHP] Reading posted form variables

2005-03-15 Thread Simon Allison
statement, however I am new to php and my attempts using addslashes and stripslashes have failed. I would be most grateful if anyone could help me. Cheers, Simon

[PHP] Seleting records

2005-03-16 Thread Simon Allison
an algorithm that would work, but I have had no luck yet? Thanks, Simon

[PHP] SimpleXML and xpath woes

2005-03-17 Thread Simon Turvey
, when: $query = '//ItemLookupResponse'; var_dump returns: array(0) { } Either a) I'm doing something terribly wrong (and I thought that I was attempting a pretty simple xpath query) or b) SimpleXML's broken. I'd prefer a) - it's easier to fix :) Thank

[PHP] Re: SimpleXML and xpath woes

2005-03-17 Thread Simon Turvey
CVS/snapshot builds and is scheduled for the 5.1 release. Cheers, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Repeat Accross, then down

2005-04-22 Thread Simon Allison
Say for a photo album with photo paths taken from a database (or anything from a database for that matter) how can you use PHP to repeat across for three photos and then add a new row with the next 3 photos and so on and so on?

RE: [PHP] php works in IE not Firefox?

2005-05-14 Thread Simon Allison
By the time a properly executed script(executed on the remote server) gets to your computer, regardless of the fact it was done in php(or any other server side language for that matter) it will just be plain html. Once it makes you computer the file/html will be the same as the same page written in

[PHP] Detect if a file is hidden or not (win32)

2004-05-21 Thread Simon Fredriksson
Is there any built-in function to find out if a file/directory is hidden in Win32? //Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Threading under win32

2004-06-18 Thread Simon Fredriksson
somewhat synced anyways. Ideas? //Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Importing Excel data using PHP

2004-07-20 Thread Simon Fredriksson
You could use ODBC to do it. //Simon C.F. Scheidecker Antunes wrote: Hello all, I need to have some excel capabilities for an automated script. Excel can save files in CSV which are very easy to read and parse with PHP as they are nothing more than text files. Pear has a module called

[PHP] Won't get $_SERVER['PHP_AUTH_USER']

2004-07-20 Thread Simon Fredriksson
_AUTH_PW. How come? It's called from this: header("WWW-Authenticate: Basic realm=\"My Site\""); //Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] returning an array from a function?

2007-10-26 Thread Simon Welsh
es of docs on php.net but the light didn't go on... Sincerely, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an opera

Re: [PHP] Help with OOPHP

2007-10-31 Thread Simon Welsh
ral Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will cra

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-04 Thread Simon Welsh
stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it&#

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-04 Thread Simon Welsh
k to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it'

Re: [PHP] Date math

2008-03-23 Thread Simon Welsh
factor = 86400; $difference = (($date1 - $date2) / $factor); Depending on what you want, wrap it in round() ceil() or floor() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is

Re: [PHP] convert a string to integer

2008-03-28 Thread Simon Welsh
optional decimal part and optional exponential part." --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will crash an hour. http://www.thinkgeek.com/bra

Re: [PHP] DateTime... What else ?

2008-04-17 Thread Simon Welsh
- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Simon Welsh Admin of http://simon.geek.nz/ Windows is a joke operating system. Hell, it's not even an operating system. NT is Not Tough enough for me either. 95 is how may times it will

Re: [PHP] OS X 10.5.2

2008-04-18 Thread Simon Welsh
libxml-dir=shared,/usr/local/php5' '--with-xsl=shared,/usr/local/php5' '--with-gettext=/usr/local/php5' '--with-curl=shared,/usr/local/php5' '--with-png-dir=/usr/local/php5' '--with-jpeg-dir=/usr/local/php5' '--enable-gd-native-ttf&#x

Fwd: [PHP] XHTML Validation problem

2008-05-02 Thread Simon Welsh
Forgot to reply all Begin forwarded message: From: Simon Welsh <[EMAIL PROTECTED]> Date: 3 May 2008 4:18:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] XHTML Validation problem On 3/05/2008, at 4:13, It Maq wrote: Hi, I have a page that displays data entered by the user. There

[PHP] SOAP: xsd:choice maxOccurs=unbounded, and element order

2007-05-22 Thread Simon Detheridge
schema/wsdl for what I'm *actually* trying to do is at http://www.widgit.com/cml/symgate.wsdl if that helps. Thanks, Simon -- Simon Detheridge SEN Developer, Widgit Software CONFIDENTIALITY NOTICE: This email and any attachments are for the exclusive and confidential use of the i

[PHP] config error

2006-12-18 Thread Simon Forster
let me know as I'm starting to run out of things to try. Many thanks Simon Forster ___ LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247 ___

<    1   2   3   4   5   6   >