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 ?

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" wrote in message news:1254577986.2385.8.ca...@localhost... > On Sat, 2009-10-03 at 15:46 +0200, Ralph Deffke wrote: > > > yes for

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

2009-10-03 Thread Ralph Deffke
yes for using $num = $num++; yes !! "Ashley Sheridan" 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

[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 bu

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

2009-09-30 Thread Ralph Deffke
> >>>>> On Sep 28, 2009, at 4:40 PM, jeff brown wrote: > >>>>> > >>>>>> Yes, that's the best way to clean up after yourself. And you > >>>>>> really > >>>>>> should use that on anything you have sittin

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

2009-09-28 Thread Ralph Deffke
well this sound clearly to me like you are not freeing resultsets you are not going to use anymore. In long scripts you have to take care of this. on short scripts you can be a bit weak on that, because the resultsets are closed and freed on script ending. assumed u r using MySQL are u using my

[PHP] Re: WYSIWYG editor to change textarea

2009-09-28 Thread Ralph Deffke
I can recomment the YAHOO editor for that. seemed to me they are very conflictless with other js code http://developer.yahoo.com/yui/editor/ good luck ralph_def...@yahoo.de ""Angelo Zanetti"" wrote in message news:20090928203015.0512b99...@smtp1.vodamail.co.za... > Hi all, > > I have been look

[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 de

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? I'

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

2009-09-24 Thread Ralph Deffke
Hi Dave, if its the case u could do a good deal, why u don't climp urself into the pdf format? It is nothing else then a presentation format, not magic, complicated and huge yes, but at the end just a text file. I am not that pdf specialist, but I know at least for the older pdf formats the encond

Re: [PHP] Re: session.gc_maxlifetime

2009-09-23 Thread Ralph Deffke
axlifetime, > and you would only use a cookie-based solution for long session. did you > mean that you wouldn't trust php's cookie-based session handler? and you > would use a custom handler instead? > > > On 9/22/09 4:46 PM, "Ralph Deffke" wrote: > > >

[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" wrote in message news:a16da1ff0909230458o30d66186m75fc4fd0d19

Re: [PHP] Re: session.gc_maxlifetime

2009-09-22 Thread Ralph Deffke
t a complaint from a client about some users reporting being logged out > with rather short periods of inactivity. but session.gc_maxlifetime is set > to 6 hours so i don't think that's the source of the problem. > > > On 9/22/09 4:17 PM, "Ralph Deffke" wrote: >

[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

[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" wrote in message news:c6de9eee.12c8d%...@thefsb.org... > i'm not 100% sure what the manual means when it says... > > session.gc_maxlife

[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 t

[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" wrote in message news:87292e1709092

[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 with

[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" wrote in message news:4ab3ca5c.3050...@autotelic.com... > PHP List, > > > I posted this question on the TCPDF forum on

[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: 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. ralph_def...@yahoo.de ""Ernie Kemp"" wrote in message ne

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: 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" wrote in message news:4aae510e.8030...@packetstorm.com... > I have read in the cont

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" wrote in message news:c6d13522.12422%...@thefsb.org... >

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" wrote in message news:p062

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Ralph Deffke
give it a try with PDATA instead of CDATA and see what happns "Ashley Sheridan" 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 at 15:14 +0100, M

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

2009-09-04 Thread Ralph Deffke
stlated into 0x0D an \r into 0x0A so the pattern does not reach prce as '\n' hehe "Martin Scotta" wrote in message news:6445d94e0909040653i44716f79m972f11055599...@mail.gmail.com... > On Fri, Sep 4, 2009 at 10:37 AM, Ralph Deffke wrote: > > > the problem is some ha

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" wrote in message news:6445d94e0909040653i44716f79m972f11055599...@mail.gmail.com... > On Fri, Sep 4, 2009 at 10:37 AM, Ralph Deffke wrote: > > > the problem is some have got \t\n

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" 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 i

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

2009-09-04 Thread Ralph Deffke
verydays need u have "Ashley Sheridan" 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 em

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" 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 stre

[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] 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 th

[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" 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 had to return to 5.2

[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 t

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" 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

Re: [PHP] File Open Prompt?

2009-08-29 Thread Ralph Deffke
are u shure, u dont send anything out before u send the headers? even one space would be too much. ralph_def...@yahoo.de "Dan Shirah" wrote in message news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com... > > > > You will need to add some headers to the page to popup the prompt, at

[PHP] Re: parse_ini_file problem

2009-08-27 Thread Ralph Deffke
Is it that some code, creating this error u talking about, is reading the init file? I would guess so, to me it looks like if u open the file dirctly the scrupt is suppost to die. that seems like a little funny protection not no show the init parameters. if thats the case u got to send the code p

Re: [PHP] Re: unset() something that doesn't exist

2009-08-25 Thread Ralph Deffke
ir knowledge. "Tom Worster" wrote in message news:c6b93df9.114fa%...@thefsb.org... > On 8/25/09 5:00 AM, "Ralph Deffke" wrote: > > > of course its a syntax error, because unset() IS NOT A FUNCTION its a > > language construct > > that's hard to bel

Re: [PHP] Re: unset() something that doesn't exist

2009-08-25 Thread Ralph Deffke
et.php "Stuart" wrote in message news:a5f019de0908250344y17c96d5eqc5cedd944e1f7...@mail.gmail.com... > 2009/8/25 Ralph Deffke : > > of course its a syntax error, because unset() IS NOT A FUNCTION its a > > language construct > > FFS, stop talking out of your rear end and post line 42 of > testC

[PHP] Re: Directory Listing

2009-08-25 Thread Ralph Deffke
I would say foreach( $dirTree as $key => $value ){ echo $key .""; foreach( $value as $v){ echo $v ."; } } something like that ralph_def...@yahoo.de "Tom Chubb" wrote in message news:4577934f0908250241i195dc691x3f8c552e72791...@mail.gmail.com... Hi gang, I'm trying to create a

Re: [PHP] anchor inside form

2009-08-25 Thread Ralph Deffke
may be u can use this wrote in message news:25131146.p...@talk.nabble.com... > > > Why not just use another submit button? > > Because it's actually an entry in a tree-like menu. I need to send > parameters via get method, and code above is one way I can think of. > -- > View this message in con

Re: [PHP] Re: unset() something that doesn't exist

2009-08-25 Thread Ralph Deffke
of course its a syntax error, because unset() IS NOT A FUNCTION its a language construct ralph "Stuart" wrote in message news:a5f019de0908250201g14e4b61cn73c6cd67da6f...@mail.gmail.com... > 2009/8/25 Ralph Deffke : > > causes an error > > Parse error: parse error

[PHP] Re: unset() something that doesn't exist

2009-08-25 Thread Ralph Deffke
yes it does on my machine and it makes sence since it is not a function its a language construct. cheers ralph_def...@yahoo.de "Shawn McKenzie" wrote in message news:4a935c42.2010...@mckenzies.net... > Ralph Deffke wrote: > > causes an error > > Parse error: parse e

Re: [PHP] wierd behavior on parsing css with no php included

2009-08-25 Thread Ralph Deffke
e news:4a923946.3020...@cmsws.com... > Ralph Deffke wrote: > > Hi folks, i did post this also on the Wamp page but maybe someone out there > > had to solve that problem as well. > > > > systems involved > > > > Firefox 3.0.13 > > Firefox 3.5.2 > > IE

[PHP] Re: unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Ralph Deffke
I did start a new topic have a look there; ""Ralph Deffke"" wrote in message news:79.73.03363.43752...@pb1.pair.com... > but it should? shouldn't it how can I destroy a class instance invocing > __detruct() of the class ?!?!? > > > > > -- PHP

[PHP] __destruct() not called ! we shot us in the foot try the script

2009-08-24 Thread Ralph Deffke
well I would call this an error in the first view , and some of u where right! and the stuff with the refernce counter seems to be right as well. however I can't see a reason for it as 5.x works through refernces. so unsetting a REFERENCE to the object does not destroy it. How to destroy the obj

[PHP] Re: unset() something that doesn't exist

2009-08-24 Thread Ralph Deffke
causes an error Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in C:\wamp\www\TinyCreator\testCrapp6.php on line 42 "Tom Worster" wrote in message news:c6b87877.11463%...@thefsb.org... > is it the case that unset() does not trigger an error or throw an exception > if it's

Re: [PHP] php move_uploaded_file() filesize problem

2009-08-24 Thread Ralph Deffke
I would also be shure that u run into the srcipt time out time. of course there is one limit u can be a little bit under or a little bit above. measure the time with microtime() and compare it with the script time out settings and u will have the answer ralph_def...@yahoo.de ""Thomas Gabrielsen"

Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Ralph Deffke
truct. my objects affected are pretty much the sheme I send. however I'm doing some reflection stuff in my classes. may be thats the reason. I will do some further investigation about that. "Stuart" wrote in message news:a5f019de0908240749l8fa749s825cfa0e475f7...@mail.gmail.co

Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Ralph Deffke
I dont agree, and as u see in my snipped code it works fine. in an abstract class u can define an implementation to define some basic things a overwriting function in an extending class has to take care of as well. this includes specialy magic functions. thats what they are made for. may be you

Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Ralph Deffke
this is also not the full truth try this and it works what are the circumstances that is causing this problem then, yes I do have distributed references over my script and there are clearly references still set, however after running the snipped script I can not see what I do special in my script c

Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Ralph Deffke
typing error sorry forget my last post is there a was to destroy an object if there is hold a reference somewhere? "Stuart" wrote in message news:a5f019de0908240606x5fdca70bkb31dd32b072e5...@mail.gmail.com... > 2009/8/24 kranthi : > > unset($obj) always calls the __destruct() function of the cl

Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Ralph Deffke
that is correct and that is the problem, and even that is not all !!! try this "; } public function __detruct(){ echo "destructing"; } } class b extends a{ } $c = new b(); unset( $c ); ?> the constructor is inherited, the destructor not !! PHP 5.2.9-1 and PHP 5.3.0 behave the sam

Re: [PHP] wierd behavior on parsing css with no php included

2009-08-24 Thread Ralph Deffke
perfect, thats what I was looking for, great thanks ralph "Jim Lucas" wrote in message news:4a923946.3020...@cmsws.com... > Ralph Deffke wrote: > > Hi folks, i did post this also on the Wamp page but maybe someone out there > > had to solve that problem as well.

[PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Ralph Deffke
but it should? shouldn't it how can I destroy a class instance invocing __detruct() of the class ?!?!? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: wierd behavior on parsing css with no php included

2009-08-23 Thread Ralph Deffke
before you come up with how to send a header in php I'm TALKING ABOUT .CSS FILES NOT INCLUDING ANY PHP if you put this in httpconf AddType application/x-httpd-php .css the problem is caused ""Ralph Deffke"" wrote in message news:67.4f.03363.a1e21...@pb1.pair.com.

[PHP] Re: wierd behavior on parsing css with no php included

2009-08-23 Thread Ralph Deffke
Yes, pasring .css is the problem, is there a way to tell php to send different headers based on the file extention of the file parsed ? should be, it worked on linux. ralph_def...@yahoo.de ""Ralph Deffke"" wrote in message news:67.4f.03363.a1e21...@pb1.pair.com... > Hi

[PHP] wierd behavior on parsing css with no php included

2009-08-23 Thread Ralph Deffke
Hi folks, i did post this also on the Wamp page but maybe someone out there had to solve that problem as well. systems involved Firefox 3.0.13 Firefox 3.5.2 IE 6 Wamp: apache 2.2.11 PHP 5.2.9 & php 5.3 I do parse css files through php Problem: css files are loaded into the browsers but not int

[PHP] wierd behavior on parsing css with no php included

2009-08-23 Thread Ralph Deffke
Hi folks, i did post this also on the Wamp page but maybe someone out there had to solve that problem as well. systems involved Firefox 3.0.13 Firefox 3.5.2 IE 6 Wamp: apache 2.2.11 PHP 5.2.9 & php 5.3 I do parse css files through php Problem: css files are loaded into the browsers but not int

Re: [PHP] array() returns something weird

2009-08-22 Thread Ralph Deffke
well, when I saw ur post I got immediately the thought I would bed it has to do with some stuff of $this or self. I did play arround a bit with class creation the last days and yes, with using self parent and $this I did put the HTTPPD in unstable and sometimes it died without beeing able to send

[PHP] PHP 5.x magic mathods quick question

2009-08-21 Thread Ralph Deffke
do I understand the doc right, that magic methods do exist in any object? creating one (like __set() ) ovewrites the standard one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Form Spam

2009-08-20 Thread Ralph Deffke
may be a better afvice could be given if we would know more about the application. However u mentioend that these little amonut is HUMAN driven. then its very much dependent on the application itself and can not be done with putting some retrictions which would be against the internationality of th

Re: [PHP] Undefined Offset Error with Pagination and Sessions

2009-08-18 Thread Ralph Deffke
by having a quick look on it, u have to work on a session base? otherwise it could be done by the post data only. I'm trying to avoid to work on the session, because it makes live a bit easier. if u can try. I'm telling this, because as u metioned to unset the session stuff is wierd and I wouldn't

[PHP] Re: DB Question | A hotel reservation scenario

2009-08-18 Thread Ralph Deffke
to answer this is in fact not possible on the base of information u give. I dont think there is a general db outlay for hotels. it depends how the "booking" tables are designed. does the application excist or u are doing a new one? if it excist, have a look how the availability of a room is calc

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Ralph Deffke
I was reviewing ur post, and thinking u might talk about a pretty common application like in a sequence of order form u want first the billing data then the shipping data. for both u need just the same form u then process on script3. in such a case it doesn't matter if u use hidden fields or url p

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Ralph Deffke
If u need a solution to know where the request comes from on a certain secure level u can use cookies. u might also have run into pages on the web giving u hard readable images u have to put into a form field. toghether with cookies these design gives u 1000% from where the form data come. depend

Re: [PHP] Another date exercise

2009-08-16 Thread Ralph Deffke
i agree on date pickers and js is well use individual fields for day month and year, make month and year as drop down and u have no problem at all make live easier ralph "Paul M Foster" wrote in message news:20090816202217.gs2...@quillandmouse.com... > On Sun, Aug 16, 2009 at 08:36:17AM +

[PHP] brainstorm/samples on _autoload() needed

2009-08-16 Thread Ralph Deffke
anybody out there with a ultimate solution, speed optimzed? im going now for an ultimate solution, this repeating problem sucks ralph_def...@yahoo.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How do I extract link text from anchor tag as well as the URL from the "href" attribute

2009-08-16 Thread Ralph Deffke
t; to getting this link text, WHY can't the code find the URL in the HTML > snippet? > > On Sun, Aug 16, 2009 at 9:29 AM, chrysanhy wrote: > > > I pasted the code exactly as you have it, and I got the following: > > > > *Fatal error*: Call to undefined method D

Re: [PHP] Re: How do I extract link text from anchor tag as well as the URL from the "href" attribute

2009-08-16 Thread Ralph Deffke
in the HTML > snippet? > > On Sun, Aug 16, 2009 at 9:29 AM, chrysanhy wrote: > > > I pasted the code exactly as you have it, and I got the following: > > > > *Fatal error*: Call to undefined method DOMElement::getContent() > > > > I got the same thing with

Re: [PHP] Re: How do I extract link text from anchor tag as well as the URL from the "href" attribute

2009-08-16 Thread Ralph Deffke
uot;chrysanhy" wrote in message news:88827b190908160659jada3a61ke43035e27f9a5...@mail.gmail.com... > It did not work. Both gave me a "Call to undefined method" fatal error. > > On Sun, Aug 16, 2009 at 1:43 AM, Ralph Deffke wrote: > > > > > try > > >

[PHP] Re: How do I extract link text from anchor tag as well as the URL from the "href" attribute

2009-08-16 Thread Ralph Deffke
did u try it something like this foreach ($links as $link) { $int_url_list[$i]["href"] = $link->getAttribute( 'href' ); $int_url_list[$i++]["linkText"] = $link->getContent( ); // nodeValue(); } that should work send ur code then please ralph_def...@yahoo,de "chrysanhy" wrote in messag

Re: [PHP] Re: Issue with the huge import script

2009-08-16 Thread Ralph Deffke
n" wrote in message news:1250417781.2344.58.ca...@localhost... > On Sun, 2009-08-16 at 11:25 +0200, Ralph Deffke wrote: > > so then tell me tell me what my first sentence means > > > > "this sounds huge, and cries for a sql version of the import." > > > &

Re: [PHP] Re: Issue with the huge import script

2009-08-16 Thread Ralph Deffke
int to the prof solution I think thats what I did "Ashley Sheridan" wrote in message news:1250414284.2344.55.ca...@localhost... > On Sun, 2009-08-16 at 11:05 +0200, Ralph Deffke wrote: > > because I assume always that a requester got some intelligence, so in that > > cas

Re: [PHP] Re: Issue with the huge import script

2009-08-16 Thread Ralph Deffke
2009-08-16 at 04:06 +0200, Ralph Deffke wrote: > > Hi, > > > > this sounds huge, and cries for a sql version of the import. > > Are both databases the same? MySQL? > > > > I give u a draft for MySQL > > u export the data u have, then u got a textfile with

[PHP] Re: How do I extract link text from anchor tag as well as the URL from the "href" attribute

2009-08-16 Thread Ralph Deffke
try $link->nodeValue() or $link->getContent() im not shure which one works on an image link which is indeed a child of wrote in message news:88827b190908160033n226b370bqe2ab70732811...@mail.gmail.com... > I have the following code to extract the URLs from the anchor tags of an > HTML page: >

[PHP] Re: Issue with the huge import script

2009-08-15 Thread Ralph Deffke
Hi, this sounds huge, and cries for a sql version of the import. Are both databases the same? MySQL? I give u a draft for MySQL u export the data u have, then u got a textfile with 10+ sql statments in the php script u open the file and iterate over it by line (carefull it could be also ";"

[PHP] Re: File or directory?

2009-08-15 Thread Ralph Deffke
can u upload ur own files ? can u create a directory ? are u using a ftp client ? try ralph_def...@yahoo.de "Clancy" wrote in message news:kjhc85hpub7drihgappifphcboolt9u...@4ax.com... > I have just got access to a new server, and am playing with upload/download procedures. I > looked in the ro

[PHP] PHP Byte Code Compiler

2009-08-14 Thread Ralph Deffke
quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has anybody ever played arround with if? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Using fopen on a site with popups

2009-08-14 Thread Ralph Deffke
well included in a html

[PHP] Re: Using fopen on a site with popups

2009-08-14 Thread Ralph Deffke
have u tried? I did not, but as far as I understand u getting the stream including the html causing the browser to open an popup. so what is ur real problem then? "James Colannino" wrote in message news:4a851d14.2010...@colannino.org... > Hey everyone! I have a question. I know that you can u

Re: [PHP] session variables - help

2009-08-14 Thread Ralph Deffke
well thanks good they are far away then, but the problem is ur client, i didnt find anybody giving me the permission to beat his customers "Ashley Sheridan" wrote in message news:1250236989.2344.10.ca...@localhost... > On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote: > &g

Re: [PHP] session variables - help

2009-08-14 Thread Ralph Deffke
I'm realy sorry for u, but the reason for no answers is ur concept. may be some rules will help u and I recommend u to think to spend the time to rewrite the whole code. Im shure u will solve the problem then: first dont use the global arrays directly. pick the values u need and put them in reaso

Re: [PHP] design pattern

2009-08-13 Thread Ralph Deffke
13, 2009 at 4:04 PM, Ralph Deffke wrote: > > > so guys > > > > why u don't discuss Martins outcome? > > is there no advice, idears? > > isn't there a need for it? > > nobody want to use it? > > > > I WANT TO LEARN > > > > ral

Re: [PHP] design pattern

2009-08-13 Thread Ralph Deffke
e deserves that design pattern experts comment his work. ralph_def...@yahoo.de "Robert Cummings" wrote in message news:4a846ea7.5010...@interjinn.com... > Ralph Deffke wrote: > > so guys > > > > why u don't discuss Martins outcome? > > is there no advice,

[PHP] design pattern

2009-08-13 Thread Ralph Deffke
so guys why u don't discuss Martins outcome? is there no advice, idears? isn't there a need for it? nobody want to use it? I WANT TO LEARN ralph_def...@yahoo.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

AW: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
endless ralph_def...@yahoo.de Von: Jay Blanchard An: Ralph Deffke ; php-general@lists.php.net Gesendet: Donnerstag, den 13. August 2009, 20:15:31 Uhr Betreff: RE: [PHP] Re: Re: Re: Design Patterns [snip] u can not go smaler then an atom. [/snip] Neutrons, electrons

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
database, users, accessright implements HTML { } WHEN "Greg Beaver" wrote in message news:4a84460d.3080...@chiaraquartet.net... > Robert Cummings wrote: > > > > > > Martin Zvarík wrote: > >> Ralph Deffke napsal(a): > >>> NO NO NO > >>>

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
guys tell me on a design pattern frame work what requirements the server should fullfill that I can astimate if the customers situation will not put me out of business? "Robert Cummings" wrote in message news:4a84400a.9090...@interjinn.com... > > > Ralph Deffke wrote: > &

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
you think OOP isn't usefull for PHP? The PHP task is just to output a text file but the process might involve a lot of work: database access, communication with web services, etc. Do you think duplicate code is better than use more memory? What is your proposal? I'm very interested in mor

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
use a language independent tool. again this is chasing mice with an elephant ralph_def...@yahoo.de "Nathan Nobbe" wrote in message news:7dd2dc0b0908130809p456de5e7g35641de69af14...@mail.gmail.com... > On Thu, Aug 13, 2009 at 8:09 AM, Ralph Deffke wrote: > > > Thanks Jaime, &

[PHP] Re: literal strings vs variable strings

2009-08-13 Thread Ralph Deffke
I dont think so, because PHP is an interpreter, the string 'something' has to be extracted and then be put in memory after that the code will compare the two memory locations. doesnt give me any benefit. however, comparing strings with the '==' does involve case sensitivity and also leading or tra

[PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Ralph Deffke
Thanks Jaime, very nice, but I'm a programmer since 1982 and into OOP since 1988 with the outcome if IBM's C++ compiler on the OS2 platform. Don't u think it could be reasonable to ask if such an overhead IN PHP is necessary? does anybody agree that PHP might be the wrong language to accomplish

Re: [PHP] Re: Design Patterns

2009-08-12 Thread Ralph Deffke
o something for me. may I ask again what do u want to accomplish? ralph_def...@yahoo.de "Martin Scotta" wrote in message news:6445d94e0908121526r7280c680v22742e8418e6b...@mail.gmail.com... > On Wed, Aug 12, 2009 at 6:27 PM, Ralph Deffke wrote: > > > it would help if u wo

[PHP] Re: Design Patterns

2009-08-12 Thread Ralph Deffke
it would help if u would tell us what u want to accomplish with this ativity cheers ralph_def...@yahoo.de "Martin Scotta" wrote in message news:6445d94e0908121323x721254c4ja389978d67bc0...@mail.gmail.com... > Hi all! > > I've written a little Design Patterns Catalog in PHP. > The patterns where

Re: [PHP] Re: Form Validation

2009-08-12 Thread Ralph Deffke
may I ask what JS list u are using? ""Micheleh Davis"" wrote in message news:003901ca1b6b$dd103d00$9730b7...@com... > Yep, I'm sorry, sent to the wrong one. Thanks all! > > > -----Original Message- > From: Ralph Deffke [mailto:ralph_def...@yahoo.de]

[PHP] Re: Form Validation

2009-08-12 Thread Ralph Deffke
this is a PHP mailing list, may be u ask this on a js mailinglist ralph_def...@yahoo.de ""Micheleh Davis"" wrote in message news:002901ca1b68$fc6b0020$f54100...@com... > Please help. My form validation worked fine until I added the terms check > at the bottom. Any ideas? > > > > //form valida

Re: [PHP] Include Paths

2009-08-12 Thread Ralph Deffke
a rap song hihi haha best comment I've ever read on a mailing list. reminds me that live is fun thanks for making my day thanks sheridan for ur shakespear like abbilities thanks bastien for ur humor GREAT "Bastien Koert" wrote in message news:d7b6cab70908120909u593cbd6v692f34ae6ddea...@mail.g

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-12 Thread Ralph Deffke
thats why I decided years ago to write myself a little bunch of classes for the html tags which gives me the ability to have PHP only code, very nice, no errors and my outputs dont even need Tidy pure XHTML i find these idear of mixing html and php as spagetty, using divs for tables as something w

AW: [PHP] Re: Is select_db necessary?

2009-08-12 Thread Ralph Deffke
think then we are on the secure side. ralph_def...@yahoo.de ________ Von: Martin Scotta An: Ralph Deffke CC: php-general@lists.php.net Gesendet: Mittwoch, den 12. August 2009, 16:18:01 Uhr Betreff: Re: [PHP] Re: Is select_db necessary? Wed, Aug 12, 2009 at 10:37 AM,

  1   2   >