Re: [PHP] Session variable not persisting

2013-03-18 Thread Éric Oliver Paquette
Le 2013-03-18 à 15:41, Éric Oliver Paquette a écrit : > > Le 2013-03-18 à 15:37, Matijn Woudt a écrit : > >> >> >> >> On Mon, Mar 18, 2013 at 8:35 PM, Éric Oliver Paquette >> wrote: >> >> Le 2013-03-18 à 15:24, Éric Oliver Paquette a

Re: [PHP] Session variable not persisting

2013-03-18 Thread Éric Oliver Paquette
Le 2013-03-18 à 15:37, Matijn Woudt a écrit : > > > > 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 : >> >>

Re: [PHP] Session variable not persisting

2013-03-18 Thread Éric Oliver Paquette
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 >> wrote: >> >>> >>> On Mon, Mar 18, 2013 at 7:46

Re: [PHP] Session variable not persisting

2013-03-18 Thread Éric Oliver Paquette
Le 2013-03-18 à 15:20, Matijn Woudt a écrit : > > > > 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 >> wrote: >> Hi all, >> >> I'll be swift in

Re: [PHP] Session variable not persisting

2013-03-18 Thread Éric Oliver Paquette
> > 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 see

[PHP] Session variable not persisting

2013-03-18 Thread Éric Oliver Paquette
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 stored. = First things first, about installation :

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-03 Thread oliver gondža
n http://www.php.net/manual/en/functions.arguments.php. I just wanted to be sure this is haw it is supposed to be used. * DibiColumnInfo::__construct(IDibiReflector $reflector = NULL, array $info) in https://github.com/dg/dibi/blob/master/dibi/libs/DibiDatabaseInfo.php#L458 -- Oliver --

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-02 Thread oliver gondža
On Sat, 02 Jun 2012 17:13:55 +0200, Matijn Woudt wrote: Hi Oliver, I think the example at [1] demonstrates that it is possible, but it also notes that it is pretty useless. Why are you interested in this? - Matijn [1] http://www.php.net/manual/en/functions.arguments.php#example-153 Hi

RE: [PHP] Blooging Portal

2007-07-31 Thread Oliver Clarke
ft. :) Regards, Oliver Skype: OliverC999 Mobile: 07985 144636 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date Calculation Help

2007-06-30 Thread Oliver Jato
revDAVE wrote: > I have segmented a year into four quarters (3 months each) > > nowdate = the month of the chosen date (ex: 5-30-07 = month 5) > > Q: What is the best way to calculate which quarter (1-2-3 or 4) the > chosen date falls on? > > Result - Ex: 5-30-07 = month 5 and should fall in q

Re: [PHP] mime type over http post?

2007-05-16 Thread Oliver Block
Hello Ray, 1. create the xml markup (dom) 2. open a connection to the 3rd party server (fsockopen) 3. send the header (fputs) 4. send the body (fputs) 5. close the connection Additional Questions? Best Regards, Oliver P.S: I just know better where to look for information:-) - original

Re: [PHP] SESSION LOST!

2007-05-10 Thread Oliver Block
Am Donnerstag, 10. Mai 2007 08:59 schrieb Sascha Braun: > but after a little > time, the session is just lost. That doesn't say anything to me. Could you be more verbose on what you mean by "the sessin is lost"? Regards, Oliver -- PHP General Mailing List (http://www.php

Re: [PHP] mail() only working with php-cli

2007-05-05 Thread Oliver Block
Hello Andy, did you take a look into the apache log files? Regards, Oliver Am Samstag, 5. Mai 2007 22:53 schrieb Andy B.: > Is there any way to debug the mail() function within PHP4 or PHP5? > > The following code is not working when called from a browser, but it does > work from

Re: [PHP] Using timezones

2007-05-04 Thread Oliver Block
data is builtin by default, so you would not need to install anything else. Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing GET via include

2007-05-04 Thread Oliver Block
er.php-- - Will be the same as ---dont_like_inclusions.php--- --- Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Bounce composition

2007-05-02 Thread Oliver Block
$part0; $bounce_msg = imap_mail_compose($env, $body); Not you should get rid of the 'Received-' headers. I did not test it. If something goes wrong, please post again. Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Oliver Block
Am Mittwoch, 2. Mai 2007 14:36 schrieb Oliver Block: > --with-socket=shared Actually it should be --enable-sockets=shared Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Oliver Block
ommand line use only? --enable-cli Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP & MySQL -> Field Title

2007-04-30 Thread Oliver Block
ollowing SQL Syntax: INSERT INTO new_table SET key0=value0, key2=value2, ..., Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Explicit Stream Flush with fsockopen()

2006-12-06 Thread Oliver John V. Tibi
. :) O.J. Richard Lynch wrote: http://php.net/fflush On Sun, June 4, 2006 9:51 pm, Oliver John V. Tibi wrote: Hi Guys, I know this may sound fundamental to some of you, but do you know any way of explicitly flushing out stream buffers off to the socket using fsockopen()/fputs() combos? Hope to

Re: [PHP] How to check value in multidimensional array

2006-11-18 Thread Oliver Block
Am Samstag, 18. November 2006 22:08 schrieb Erik Gyepes: > Oliver Block wrote: > > Am Samstag, 18. November 2006 19:46 schrieb Erik Gyepes: > > > > What exactly do you need to do? You should read the manual too, at > > I would like to check if the value is really in the

Re: [PHP] Sessions

2006-06-06 Thread Oliver Block
Am Dienstag, 6. Juni 2006 20:51 schrieb Jay Blanchard: > Yes. http://www.php.net/session session_set_cookie_params() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions

2006-06-06 Thread Oliver Block
Hi, is there any easy way to use differnt sessions on the same domain? I didn't really dig for a solution, but if anybody has one ready? Best Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Explicit Stream Flush with fsockopen()

2006-06-04 Thread Oliver John V. Tibi
other than http, so I don't know if ob_flush() and its family of functions will work. Thanks! :) -- Oliver John V. Tibi Software Programmer/Web Application Developer IAMD Software Solutions [EMAIL PROTECTED] "Live free() or die()." -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Development Environments/Automation

2006-05-16 Thread Peer Oliver Schmidt
> connected to a MySQL database instead of the Access. Have a look at http://freshmeat.net/projects/limbas/ -- Best regards Peer Oliver Schmidt PGP Key ID: 0x83E1C2EA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Socket Functions in PHP

2006-05-07 Thread Oliver John V. Tibi
e as my app does. Please help. Comments, suggestions and thoughts through the group or private mail are deeply appreciated. Thanks! -- Oliver John V. Tibi Software Programmer/Web Application Developer IAMD Software Solutions [EMAIL PROTECTED] "Live free() or die()." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP multi-threading ?

2006-02-13 Thread Oliver Grätz
Eli schrieb: > Is PHP gonna support multi-threading (not multi-processing) capabilities > in the future? Not in the near future, sorry. Depending on what you are trying to implement: Ruby has multithreading. OLLi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Re: Window close.

2006-02-06 Thread Oliver Grätz
Just for the laugh: You could send a redirection to a page that causes the browser to crash ;-) No client side scripting involved *g*. OLLi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is this the most effient to do with php an mysql?

2006-02-06 Thread Oliver Grätz
Paul Goepfert schrieb: > Is there a more efficient way to do this using more PHP and less mysql? Anything that helps you inside SQL to get your solution doing just one statement should be faster than doing two queries with some PHP code inbetween for "reasonable complicated" tasks. This is because

[PHP] Re: Making Php Libraries

2006-02-06 Thread Oliver Grätz
All attempts at shutting of access to the code is bound to fail. PHP is an interpreted anguage. If the script on the other server can read your code then the programmer of that script can also read your sourcecode. So, what to do? You could use some of the encoders. Using these tools the other peo

[PHP] Re: I have stange problem

2006-01-15 Thread Oliver Grätz
Some other program blocking the port? Skype is known to cause trouble when the "port 80/443 as fallback" option is activated (which is the default). Of course, many other programs might cause such problems. OLLi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] No POST-Data available in Script when Handling ErrorDocument 404

2006-01-08 Thread Oliver Hofer
I wrote a scritpt for testing SOAP-Services. It generates and sends requests to other machines but also receives such requests from other machines in the net.As there are many 'senders' and muc more URL's they are sending their requests to, I intended to write a general SOAP-Request handler, th

[PHP] Re: what is better for performance?

2005-12-06 Thread Oliver Grätz
Karel Kozlik schrieb: > Hi, > I am just thinking about that what is better for storeing structured > variables in point of view of performance. > > Is better store structured variables in associative array, for example: > > $person['first_name'] = 'Karel'; > $person['last_name'] = 'Kozlik'; >

[PHP] Re: Lowest PHP version to work with MySQL 4.1.x

2005-11-30 Thread Oliver Grätz
AmirBehzad Eslami schrieb: > I have noted that some versions of PHP are unable to work with MySQL 4.1.x. Would be new to me but... > 1) Should I upgrade to PHP 5? Disregarding your question about databases: Yes you should. PHP5 is there since well over a year. The dev team WILL stop support for P

[PHP] Re: When to make a class

2005-11-26 Thread Oliver Grätz
Todd Cary schrieb: > My background is in Object Oriented Pascal (Delphi), however I am having > difficulty knowing when to make a class in PHP. For instance, in my > script file, functions.php, I have these functions among others: > >/* Input a field */ >function input_field($name, $v

[PHP] Re: Any performance experiences to offer?

2005-11-25 Thread Oliver Grätz
Tim Meader schrieb: > Was PHP5 faster than PHP4 for identical code? Thus making PHP5.1 even > faster? Or was it a case of PHP5 being a bit more bulky than PHP4, thus > PHP5.1 bringing it more inline with the old performance. I'm looking to > upgrade of PHP 4.4.1 installs, but I'm holding off on PHP

[PHP] Re: calling static methods of variable class names

2005-11-22 Thread Oliver Grätz
Ahmed Saad schrieb: > hi all, > > how can i call static methods of a class whose name is variable.. something > like > > I can do this with reflection by creating a ReflectionMethod object > then invoke()ing it, but is there a better way? > Thanks > > -ahmed For $args=array('para1','para2');

[PHP] Re: Deployment and maintenance of php software

2005-11-21 Thread Oliver Grätz
Andy Pieters schrieb: > Is there anyone that can provide a solution to this or suggest another > approach to the problem? First of all something about packages: PEAR is coming up with their own format ".phar" for this. These are tar archives that may contain an additional PHP script that is exec

[PHP] Re: php5 call by refference

2005-11-21 Thread Oliver Grätz
Georgi Ivanov schrieb: > Hi, > AFAIK, in PHP5 one can't call function with function parameters . > The error is that you only can pass variables by reference. > foo(strlen('aaa'),strlen('')); > > Is there some sort of workaround ? First of all, the problem with this arises if your function fo

[PHP] Re: echo

2005-11-19 Thread Oliver Grätz
Alex Alfonso schrieb: > echo ""; echo "space"; *g* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php5 / php4 - MySQL/SQLite

2005-11-09 Thread Oliver Grätz
Danny schrieb: > Let me open a discussion about php5 / php4 Fine. Let's keep it short ;-) > Why upgrade? Because you want support for proper OOP. Most of the other changes can be like SQLite can also be used with PHP4. > It worth? If you see the benefits of interfaces, object overloading, auto

[PHP] Re: php session variables limited to 1 character -- please help

2005-10-27 Thread Oliver Grätz
Zac Smith schrieb: > http://www.triptrivia.com/step2-debug.php?State=abc 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: moving website from windows to linux hosting

2005-10-26 Thread Oliver Grätz
pedro mpa schrieb: > (Like changing directory paths from \ to / ). Ahem... shouldn't you havee used "/" on the Windows machine, too? The "\" comes from the DOS era of the Windows OS, but the "/" is the world standard and Windows Servers perfectly work with "/". Even the Windows explorer is able t

[PHP] Re: How to read word document by php script

2005-10-25 Thread Oliver Grätz
Roman Duriancik schrieb: > How can I read data from word document (*.doc) use by php script ? > I konw only how to write and how to open word document. Convert the .doc to a .txt document before opening it with PHP. There are external tools available to do this but I won't do the searching for y

Re: [PHP] Abstract Classes?

2005-10-24 Thread Oliver Grätz
GamblerZG schrieb: >>But what benefit is there is having it as an explicitly "abstract" >>class? Why can't it just be a "normal" class definition which you >>inherit from? > > The idea is that a high-level language should prohobit you from doing > things that do not make sence. Why they implement

Re: [PHP] Re: file_exists()

2005-10-22 Thread Oliver Grätz
Robert Cummings schrieb: > You could try execing a shell command to give you the answer. I don't > know if it'll work, but worth a shot if you're in a bind. Yep, good idea. Use the native code of the OS ofr listing the file (dir, ls...) and parse the result. OLLi "Manche sagen, Compu

[PHP] Re: file_exists()

2005-10-22 Thread Oliver Grätz
Jonny Bergström schrieb: > Hi > > file_exists('字.gif') always returns false. > > Can anyone help me find out a way to make it work also for these kind of > filenames? > Unicode filenames can't be properly handled up to now for all I know. Perhaps waiting for PHP6 might be your only solution. OL

[PHP] Re: Classes or functions

2005-10-22 Thread Oliver Grätz
I'd say it depends on the size of your project and on any plans to reuse the code. Classes are better suited for building libraries of code you use in other projects. And any large project runs into problems with function names if the programmer doesn't use a rigorous naming system (like "function

Re: [PHP] How can I count the usage of mail function in scripts?

2005-10-22 Thread Oliver Grätz
Andy Pieters schrieb: > While it *is* possible to do what you ask for, it would be worthless. > > I can write from scratch a php script that > * looks up the mx record for a given email address > * connects to the mail server looked up > * send the message. > > Since the SMTP protocol is fairly

[PHP] Re: Recommended Reading?

2005-10-18 Thread Oliver Grätz
>From a practical view: *For big web projects:* Make a plan! Do not start to write code before you exactly know what you want to do. An important concept in the development of large web applications is the MVC princinple (Model View Controller) which basically urges you to seperate the data and th

Re: [PHP] Re: How can I count the usage of mail function in scripts?

2005-10-18 Thread Oliver Grätz
Greg Donald schrieb: > On 10/18/05, Oliver Grätz <[EMAIL PROTECTED]> wrote: > >>Usually customers pay a fix fee for >>some free traffic and then must pay for traffic exceeding those limits. >>What they do with that traffic is none of your business. > > >

[PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread Oliver Grätz
Shaun schrieb: > $qid = mysql_query('INSERT INTO MYTABLE ( > column1, > column2, >) VALUES ( > "'.$value1.'", > "'.$value2.'" >

[PHP] Re: asynchronous PHP to PHP call

2005-10-18 Thread Oliver Grätz
James schrieb: > I have a PHP script running on server 1. I want it to call another > script on server 2 to clean up some files. There may be tons of > files and I don't want to wait until the second script is finished. > > Is there a way to asynchronously call the second PHP script? > > Righ

[PHP] Re: No redirect with header()

2005-10-18 Thread Oliver Grätz
Snippets are bad ;-) Please post a full example that is _not_ working on your server. Perhaps this is no PHP problem at all. OLLi Byers: "What proof do you have?" Bond: "I got this!" Byers: "You're on the phone, Jimmy!" [Lone Gunmen 09] -- PHP General Mailing List (http://www.php.n

[PHP] Re: How can I count the usage of mail function in scripts?

2005-10-18 Thread Oliver Grätz
One more point: If I were your customer and you'd deploy such restrictions, I would leave you. Usually customers pay a fix fee for some free traffic and then must pay for traffic exceeding those limits. What they do with that traffic is none of your business. There are a lot of companies sending o

[PHP] Re: How can I count the usage of mail function in scripts?

2005-10-18 Thread Oliver Grätz
Cristea Adrian schrieb: > Hello peoples! > > short question: How can I count the usage of mail function in scripts? > > long description :D > > I have a webserver, and I want to limit the usage of mail function for > each host I have there.. Notice that i have a couple of hundrest of > virtual h

[PHP] Re: RegEx - Is this right?

2005-10-16 Thread Oliver Grätz
I don't know if these are equal. What about \r\n line endings? And what about \r line endings (from old Macs)? I guess file() handles all of these cases (didn't test it though) and your code doesn't (with \r you'll get a one line file!). AllOlli -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: include file to global scope

2005-10-14 Thread Oliver Grätz
Claudio schrieb: > I'm using PHP 5. I have a class operation that includes php files. > Is there a way to include this files to global scope? So that difined vars > and functions are global accesseble? I know this problem from my early PHP days. If your problem is that you want to include some c

[PHP] Re: test

2005-10-14 Thread Oliver Grätz
Ignored. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question about including files and server load

2005-10-14 Thread Oliver Grätz
Jay Paulson schrieb: > function xyz($abc) { return include(xyz_func.php); } > function abc($xyz) { return include(abc_func.php); } Oh. My. God. Is this ugly. OK, it works, but that's not the way how one should abuse include(). > I was wondering isn't this putting a bigger load on a server by inc

[PHP] Re: Obsession with BC

2005-10-13 Thread Oliver Grätz
GamblerZG schrieb: > Recently, I asked my hosting provider when they are going to switch to > PHP5. They replied that it will not happen any time soon, since they > will install PHP5 only on new servers. Their reasoning was simple: PHP5 > will inevitably break some old scripts, and it's just not

Re: [PHP] Obsession with BC, take 2

2005-10-12 Thread Oliver Grätz
exity is why people are not doing this. I read about patching the PHP5 sources so the internal names for the module do not collide with those for PHP4. Then it's possible for bothe modules to coexist in a single Apache instance. Why ist this not made standard behaviour? Oliver Zaa

[PHP] Re: Store a variable name in a database field.

2005-10-11 Thread Oliver Grätz
Yep, code sample, please. Your question is not describing your problem clearly enough. OLLi If at first you don't succeed, call it version 1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sequential multiple file download?

2005-10-11 Thread Oliver Grätz
This can't be easily done. The natural way of doing this would involve sending some HTTP headers but this is not possible once you've started sending data for the first file. The hard way of doing this is a 2-way approach where you have two connections: a data connection and a control connection.

Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Oliver Grätz
Dan Brow schrieb: > Thanks, figured that would be the case. Can't for life of me think why I > wanted to do that, must have had a brain infarction. I want to have an > expired session prompt so people can log back in with out having to > start at the login page. Would having the users login saved i

Re: [PHP] Re: Non-Javascript PHP Onsubmit function?

2005-10-08 Thread Oliver Grätz
Jasper Bryant-Greene schrieb: > I disagree. Best solution: Don't use a confirmation thing, provide the > ability to undo changes instead. That way you don't piss off the > advanced users who KNOW what they're doing, but you still allow the less > advanced users to undo changes they "accidentally

[PHP] Re: Dynamic sub directory listing without redirect

2005-10-07 Thread Oliver Grätz
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html AllOLLi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Non-Javascript PHP Onsubmit function?

2005-10-07 Thread Oliver Grätz
zzapper schrieb: > Hi, > I'd like to have a non-Javascript based general purpose "Are you quite Sure?" > PHP form submitter, > conventionally done using the Javascript Onsubmit Event. > > One way would be to store all the Form Variables in hidden fields generated > by a foreach $_POST > but any

[PHP] Re: Global unavailable?

2005-10-07 Thread Oliver Grätz
Problem not reproducable. Test case used: --- a.inc.php: test(); --- Command line: php t.php Output: 123 I used PHP-5.1 RC1. No problem whatsoever. Such problems shouldn't arise in new versions since they are touching very basic concepts

[PHP] Re: PHP5 OOP how do I get the list of all classes dynamically?

2005-10-05 Thread Oliver Grätz
You can get an array of all declared classes with http://de.php.net/manual/en/function.get-declared-classes.php If you need more context (e.g. only subclasses of X) you should definitely have a close look at the reflection api. AllOLLi "Being lectured by the President on fiscal res

Re: [PHP] PHP 5 Hosting

2005-10-02 Thread Oliver Grätz
Torgny Bjers schrieb: > I am assuming they're running PHP through CGI in this case, am I > correct, or are they hosting on Windows to achieve the multiple PHP > versions? If CGI, that rather affects performance of larger > applications, it especially impact render time of more complex templates > a

Re: [PHP] PHP 5 Hosting

2005-10-02 Thread Oliver Grätz
Sheesh! No week passing by without people complaining about hosters missiong out on PHP5. This is one point where we in Germany seem to be lucky. The two biggest german hosters 1&1 (about 4 million domains) and Strato (about 2.5 million domains) both offer SSH and the possibility to chosse the PHP

[PHP] Re: array_shift not working?

2005-10-01 Thread Oliver Grätz
Frank Keessen schrieb: > Can you please help me with the following > This is in the array($info[0]["bdnadvocaat"]) > Array ( [count] => 2 [0] => 210 [1] => 149 ) > This is the code: > $testje=array($info[0]["bdnadvocaat"]); > $test=array_shift($testje); > print_r($test); > This is the output >

[PHP] Re: RecursiveIteratorIterator för PHP 5.0 .5 Win32

2005-10-01 Thread Oliver Grätz
Erik Franzén schrieb: > Fatal error: CMAES_DomIterator cannot implement > RecursiveIteratorIterator - it is not an interface ... > > Does not PHP 5.0.5 support the RecursiveIteratorIterator Interface? No, it doesn't. Like it tells you: RecursiveItraorIterator is no an interface. It's a class. Yo

[PHP] Re: why does this not work?

2005-09-27 Thread Oliver Grätz
Ross schrieb: > $width = " document.write(screen.width); "; > //$ross= intval($width); Yes, this is and will always be zero, because you are evaluating a string to an integer value. > echo $width; > if ($width < 1064) { > echo "lower"; > $style= "style1.css"; > > } > else { > $style= "style2.cs

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-19 Thread Oliver Grätz
Rasmus Lerdorf schrieb: > [...] > What do we do with code like this? If you follow it through it is > essentially doing: > > 3 = "banana"; This is obviously totally wrong and has to be noted as wrong, hence E_NOTICE. Since it can be dealt with without rendering the script unexecutable raising

Re: [PHP] adding string...

2005-09-16 Thread Oliver Grätz
John Nichel schrieb: >>Is there any difference in performance in these two ways? >> [...] > The latter is less for you to type. ;) I had a prepared a similar answer but then I figured the question was explicitly focused on performance and dropped that note. But now I see that the question could be

[PHP] Re: PHP combined with JAVA

2005-09-15 Thread Oliver Grätz
If I read this correctly then your question is in no way JAVA-specific. You want to instantiate an object (which you suppose to be of large size and slow in instantiation) and save this object in the session during page requests. First of all, any data put in the session array will be serialized (

[PHP] Re: adding string...

2005-09-15 Thread Oliver Grätz
Gustav Wiberg schrieb: > Hi guys! > > Is there any difference in performance in these two ways? > > > $sql = $sql . > > OR > > $sql .= No difference. Even if there was any difference it would be totally negligible. AllOLLi Byers: "What proof do you have?" Bond: "I got this!" By

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Oliver Grätz
Pooly schrieb: > [x] I use a layer above PHP which is independant of whether it's PHP4 > or PHP 5, which is running Migration from 4.x to 5.0.3 was as > simple as changing a DNS record :-) > http://templeet.org/ A layer above PHP would mean this thing generates code specific to the underlying

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Oliver Grätz
Manuel Lemos schrieb: >>A reference where _I_ have to search is something like a non-answer... > > If you try searching the bug database for PHP 4 versus PHP 5 opened bug > reports you will get your answer. Same sentence still applies. But OK: PHP4 has 518 open bugs, PHP5 only 203. What does th

[PHP] Re: PDO for PHP 4 (was Re: Quick Poll: PHP 4 / 5)

2005-09-15 Thread Oliver Grätz
Manuel Lemos schrieb: > NEWSFLASH: PDO already exists for PHP 4: > > http://www.phpclasses.org/pdo One can't implement overloading of the Zend Engine 2 in PHP4 so this is not "the full package". And then, the most important feature of PDO is that it's NOT WRITTEN IN PHP like any other database a

Re: [PHP] php/mysql object id question..

2005-09-15 Thread Oliver Grätz
Jasper Bryant-Greene schrieb: > Oliver Grätz wrote: > >>3. Yes. One can abuse exceptions to return something in a constructor. >> Just another argument against exceptions ;-) OK, it's unorthodox, >> if you absolutely need to do that, do it and tell nobody *

Re: [PHP] php/mysql object id question..

2005-09-14 Thread Oliver Grätz
bruce schrieb: > but then, i'm starting to realize that there's probably a great deal of > 'opensource' code that's in use that hasn't been thoroughly vetted. 1. Constructors cannot explicitly return anything because they always return the new object. 2. OpenSource project and the code in them:

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Richard Lynch schrieb: > [...] > Some of my sites are on 5. > > Some are on 4. > > I can't tell a difference. That's what I am evangelising. People seem very concerned about backward compatibility issues that _almost_ never come up (hell, the problems of PHP 4.3.x -> 4.4 are more serious than 4-

[PHP] Re: Webservices and PHP - thanx!

2005-09-14 Thread Oliver Grätz
http://de.php.net/soap Short to "not there" questions provoke short answers AllOLLi "I let you borrow my eggs for a whole year!" [Susan on DH 106] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: >>>In theory those are the only changes. In practice, besides the >>>officially admitted changes, there are also the bugs that were not yet >>>discovered or fixed. >> >>Examples? Links? More information on this? The fact is that on > > http://bugs.php.net/ A reference wher

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: > In theory those are the only changes. In practice, besides the > officially admitted changes, there are also the bugs that were not yet > discovered or fixed. Examples? Links? More information on this? The fact is that on php.internals there are discussions to reduce the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: > In theory those are the only changes. In practice, besides the > officially admitted changes, there are also the bugs that were not yet > discovered or fixed. Examples? Links? More information on this? The fact is that on php.internals there are discussions to reduce the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
Ben schrieb: > [...] Hosting > providers, which account for the vast majority of hosted domains, are > pretty conservative. In Germany they're no that conservative. One of the biggest hosters in Germany (several million domains) allows to chosse between PHP 3, 4.0.6 4.3.x and 5.x via .htaccess

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
Always this stuff about breaking backward compatibility. People seem to think that the change from 4 to 5 means such a lot. In fact the changes from PHP4.0 to PHP4.4 are much more numerous. The backwarr incompatible changes between 4 and 5 fit on asingle page of screen: http://de.php.net/manual/

[PHP] Re: Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
I've changed to PHP5 and not experienced any problems with old code. In fact, the differences and incompatibilities are very minor and most projects should work without any changes. PHP5 features the new Zend Engine 2. It's not yet really faster than the one in PHP4 but has large potential. Withou

Re: [PHP] String format problem

2005-09-01 Thread Oliver Grätz
Please keep in mind you are speaking about microseconds of performance improvements. Optimising on this level is complete and utter nonsense. Using output buffering may give your application a much higher performance boost. And then you can still use a cache (opcode cache, page cache, ...) which gr

[PHP] Re: (Yet another) I'm blind ... post

2005-09-01 Thread Oliver Grätz
On a totally unrelated note: My god, is that ugly code! If I see this right there's only a single piece of real PHP in it: putting the variable in the action field. For the rest: Leave PHP an use pure HTML. Or use a decent form toolkit. like PEAR's HTML_Quickform. There's no point in tons of print

[PHP] Re: htpasswd-style password generation w/PHP

2005-09-01 Thread Oliver Grätz
http://www.thewebmasters.net/php/class.Htpasswd.phps Google "htpasswd php", first hit. Don't people use search engines any more? AllOLLi Mal: "How drunk was I last night?" Jayne: "I don't know. I passed out." [firefly 06] -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: htpasswd-style password generation w/PHP

2005-09-01 Thread Oliver Grätz
http://www.thewebmasters.net/php/class.Htpasswd.phps Google "htpasswd php", first hit. Don't people use search engines any more? AllOLLi Mal: "How drunk was I last night?" Jayne: "I don't know. I passed out." [firefly 06] -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: Computers name?

2005-09-01 Thread Oliver Grätz
Gustav Wiberg schrieb: > Hi there! > > Is it possible to get (retrieve) the computername of the client? I just want > the name for comparing... In PHP all you get from the client is in the predefines variables: http://de.php.net/manual/en/language.variables.predefined.php Perhaps these are of a

[PHP] Re: Computers name?

2005-09-01 Thread Oliver Grätz
Gustav Wiberg schrieb: > Hi there! > > Is it possible to get (retrieve) the computername of the client? I just want > the name for comparing... In PHP all you get from the client is in the predefines variables: http://de.php.net/manual/en/language.variables.predefined.php Perhaps these are of a

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Oliver Grätz
Wong HoWang schrieb: > but my server configure don't have bcmath enabled, is there any other way to > do so? Since the internal routines of PHP have limited precision, you these options: - Find a way to activate bcmath (not likely to happen on a shared hosting account) - Find an external progra

Re: [PHP] Maybe Newbie: PHP-scripts in sub-directories

2005-04-07 Thread Oliver Ekeis
Hi Richard, thanks for your reply. No, it was not a bug in PHP or something else. The misconfiguration was that the apache2 was configured by default to using .htaccess-files. That is why the htdocs- root-script could be run, but no script from any subdir. Thanks for your help anyway. Oliver

  1   2   3   >