Re: [PHP] File Open Prompt?

2009-08-29 Thread Ralph Deffke
even the .tif is valid or not, the file should be downloaded Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1251530173.27899.135.ca...@localhost... On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote: are u shure, u dont send anything out before u send the headers? even one

[PHP] Re: PHP Crash in file_get_contents

2009-08-29 Thread Ralph Deffke
on a regulary base I read the docs even on functions I know, I just read about the funstion u use and the doc says this: Note: If you're opening a URI with special characters, such as spaces, you need to encode the URI with urlencode(). did u try to avoid the problem by using urlencode ? just a

[PHP] Re: windows 5.2.10 PHP not working with phpinfo

2009-08-30 Thread Ralph Deffke
use wamp 2 !! http://www.wampserver.com/ no easier way under windows ralph_def...@yahoo.de Fred Silsbee fredsils...@yahoo.com wrote in message news:43633.64942...@web59909.mail.ac4.yahoo.com... I got 5.3 working but found out there was no php_mssql.dll for it. Somebody (who didn;t know) said I

Re: [PHP] Reading remote files

2009-09-01 Thread Ralph Deffke
I think, this also depends on the oprating system. I would say that any development team would avoid loading file type data into fast memory. These problems are all over applications. From the PHP point of view, it could mean that file data have to be read into memory, but it could not mean that

[PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Ralph Deffke
Hi all, I'm a bit under stress, maybe somebody knows the regex on a snap. using PHP_EOL would be great. thanks ralph_def...@yahoo.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Ralph Deffke
ok preg_replace( /^\s*$/m, , $somestring) does not take empty lines out Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1252069539.24700.150.ca...@localhost... On Fri, 2009-09-04 at 14:58 +0200, Ralph Deffke wrote: Hi all, I'm a bit under stress, maybe somebody knows the regex

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Ralph Deffke
have Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1252071327.24700.152.ca...@localhost... On Fri, 2009-09-04 at 15:28 +0200, Ralph Deffke wrote: ok preg_replace( /^\s*$/m, , $somestring) does not take empty lines out Ashley Sheridan a...@ashleysheridan.co.uk wrote

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Ralph Deffke
I'm working on DTD's Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1252071932.24700.153.ca...@localhost... On Fri, 2009-09-04 at 15:37 +0200, Ralph Deffke wrote: the problem is some have got \t\n some are just \n\n\n using PHP_EOL is a must I thing must

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Ralph Deffke
this works $dtd = preg_replace( /\n+/, \n, $dtd); Martin Scotta martinsco...@gmail.com wrote in message news:6445d94e0909040653i44716f79m972f11055599...@mail.gmail.com... On Fri, Sep 4, 2009 at 10:37 AM, Ralph Deffke ralph_def...@yahoo.de wrote: the problem is some have got \t\n some

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Ralph Deffke
not reach prce as '\n' hehe Martin Scotta martinsco...@gmail.com wrote in message news:6445d94e0909040653i44716f79m972f11055599...@mail.gmail.com... On Fri, Sep 4, 2009 at 10:37 AM, Ralph Deffke ralph_def...@yahoo.de wrote: the problem is some have got \t\n some are just \n\n\n

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Ralph Deffke
give it a try with PDATA instead of CDATA and see what happns Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1252512252.2961.40.ca...@localhost... On Wed, 2009-09-09 at 16:51 +0100, Matthew Croud wrote: On 9 Sep 2009, at 16:37, Ashley Sheridan wrote: On Wed, 2009-09-09

Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread Ralph Deffke
I agree that this question could be just how to create an unique ID with leading letters like 'AAA'. At that point I want to mention that a timestamp does garanty a unique number at almost 100% formated with the given samples in the other posts will do the job. tedd tedd.sperl...@gmail.com wrote

Re: [PHP] get an object property

2009-09-12 Thread Ralph Deffke
echo a()['q']; // isn't? because this is simply not valid syntax for the INTERPRETER PHP while this echo o()-q; can be interpreted because of the design of the interpreter. I can live with that. ralph_def...@yahoo.de Tom Worster f...@thefsb.org wrote in message

[PHP] Re: file_put_contents problem

2009-09-14 Thread Ralph Deffke
it would be interesting on what os u are working as well. did u try to open the file? on windows often a file is reported as 0 bytes as of failing the refresh in explorer. ralph_def...@yahoo.de Andres Gonzalez and...@packetstorm.com wrote in message news:4aae510e.8030...@packetstorm.com... I

Re: [PHP] ie6 memory could not be read help!

2009-09-17 Thread Ralph Deffke
Yes, there is A LOT. to make u aware that this is the last version be able to run under windows 2000. windows 2000 however is the last professional version of windows made by microsoft. I don't know any bigger company using other os. All banks, stock traders (wall street etc.) are still using 2k.

[PHP] Re: PHP Header issue

2009-09-18 Thread Ralph Deffke
sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: ?php header(Location: advertise2.php); ? here u can do ur html not one! single char incl. space should be outputted before the header e.g. before the php open tag.

[PHP] Re: Does anyone here use TCPDF?

2009-09-19 Thread Ralph Deffke
have a look in the archive of this list. there is a topic writing japanese test in an excisting pdf its of 31. of August, this should helph u ralph_def...@yahoo.de Dave M G mar...@autotelic.com wrote in message news:4ab3ca5c.3050...@autotelic.com... PHP List, I posted this question on the

[PHP] Re: Creating file name with $variable

2009-09-20 Thread Ralph Deffke
Hi Haig, it would be better if u tell us what purpose u want to solf with this approuch. Its hard to understand for a prov why u want to create a filename .php .php files are scrips containing functions or classes, called/instantinated with parameters. why the hell u want to create a filename

[PHP] Re: Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Ralph Deffke
be aware if you do not have full control of your server setup, this type of parameter handling is not possible on most shared hostings. however url encoded it is never a problem. so be clear where yout page will be hosted. ralph_def...@yahoo.de Gaurav Kumar kumargauravjuke...@gmail.com wrote in

[PHP] Re: Touch screen programming help

2009-09-21 Thread Ralph Deffke
well, I would say a touch screen usualy is just another 'pointing device' like the mouse is. it depends on the operating system and the driver setup for it. then u simply can use any browser and just adjust the pointing receiving elements like buttons and links a bit bigger and with images rather

[PHP] Re: session.gc_maxlifetime

2009-09-22 Thread Ralph Deffke
Hi Tom, i did find this in the bug reports, its pretty new and should be an answer. http://news.php.net/php.doc.bugs/2653 ralph_def...@yahoo.de Tom Worster f...@thefsb.org wrote in message news:c6de9eee.12c8d%...@thefsb.org... i'm not 100% sure what the manual means when it says...

[PHP] Re: session.gc_maxlifetime

2009-09-22 Thread Ralph Deffke
I forgot to mention, that this doesn't mean, you can not read data after this timeout or that a session does ALWAYS die after this timeout. I would assume, that the server has to have a reason to run garbage clean up. If the server is not running a clean up, I would expect the session would excist

Re: [PHP] Re: session.gc_maxlifetime

2009-09-22 Thread Ralph Deffke
did investigate on this. ralph_def...@yahoo.de Tom Worster f...@thefsb.org wrote in message news:c6deae55.12cae%...@thefsb.org... thank you, Ralph! i'm going to be bold and assume that tom at punkave dot com is right despite that the report was discarded. i got a complaint from a client

[PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Ralph Deffke
using empty() is ´the right way to check a var for NULL or however, it also depends what MySQL has got as setuo definition for empty fields. on textfields u can define an epmty string as default. ralph_def...@yahoo.de Dan Shirah mrsqua...@gmail.com wrote in message

Re: [PHP] Re: session.gc_maxlifetime

2009-09-23 Thread Ralph Deffke
a custom handler instead? On 9/22/09 4:46 PM, Ralph Deffke ralph_def...@yahoo.de wrote: Hi Tom, in sometimes 2001 I did have incidences with those things, and as I remember over the past years there where some trouble with operating systems and stuff. This part is very deep inside the os

Re: [PHP] Re: Does anyone here use TCPDF?

2009-09-24 Thread Ralph Deffke
... Ralph, Paul, Thank you for responding. I don't use TCPDF; I use FPDF, but I imagine the drill is about the same I tried using FPDF, but it did not support UTF-8/Japanese. It claims some support in the documentation, but after much experimentation, I verified it does not. That is why I

Re: [PHP] Re: session.gc_maxlifetime

2009-09-24 Thread Ralph Deffke
php not but perhaps the client its not clear and commonly defined what clients do with cookies on reconnect and stuff or long idle times. I would expect as source the new browsers where more and more users use subwindows to have concurrent sessions, does anybody know how they handle ip changes?

[PHP] Re: turning off a E_STRICT or fix for a bad coding habit

2009-09-27 Thread Ralph Deffke
Hi Viraj, well from the viewpoint of the PHP developers, it depends if u allow to extend a class before it is been declared. If it is allowed that way, then yes you are right none of the sniped should create an error. If u study the bug report, u will see that the class is extended before it is

Re: [PHP] Where's my memory going?!

2009-09-30 Thread Ralph Deffke
the best way to clean up after yourself. And you really should use that on anything you have sitting around daemon like. Jeff Philip Thompson wrote: On Sep 28, 2009, at 4:27 PM, Ralph Deffke wrote: well this sound clearly to me like you are not freeing resultsets you

[PHP] Re: A really wacky design decision

2009-10-03 Thread Ralph Deffke
u increment after! asigning, so far so good, but for math reasons the interpreter has to keep in mind the 123 you want to assign before increment to the same var. this is absolutely correct what php does here. $num = ++$num; would print 124 the same like $num++; on the other hand this is just

Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Ralph Deffke
yes for using $num = $num++; yes !! Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1254577641.2385.7.ca...@localhost... On Sat, 2009-10-03 at 15:33 +0200, Ralph Deffke wrote: u increment after! asigning, so far so good, but for math reasons the interpreter has to keep

Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Ralph Deffke
this is a clear sign that somebody is on a sin TRAIL, I would not even spend the time on what sin collections this guy got Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1254577986.2385.8.ca...@localhost... On Sat, 2009-10-03 at 15:46 +0200, Ralph Deffke wrote: yes for using

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread Ralph Deffke
Ben, might be intersting to consider that in ur c axample u r working with a pure memory position, while php works with references. thry it with pointers it I'm pretty shure u get the same result as in PHP. I'm not shure, because I don't work in perl, but doesn't per work on references as well ?

<    1   2   3   4