[PHP] Re: force download in IE

2001-08-24 Thread Ralph Deffke
I went through the same problem. the simplest solution with browsers like IE 5.5 is to click with the right buttom on the link an choose "save this location". You could mention this on the your page in a "if you have trouble dwonloading" sentence. a very stable solution would be to make a se

[PHP] Re: force download in IE

2001-08-24 Thread Ralph Deffke
I went through the same problem. the simplest solution with browsers like IE 5.5 is to click with the right buttom on the link an choose "save this location". You could mention this on the your page in a "if you have trouble dwonloading" sentence. a very stable solution would be to make a se

[PHP] Re: PHP based authentification -----------

2001-08-24 Thread Ralph Deffke
send an 401 unauthorized header. see php manuall under function header() as an example Alex Sofronie schrieb: > Hi all! > > How can I "logout" from a PHP based auth (with PHP_AUTH_USER and PHP_AUTH_PW > and appropriate headers sent at the beginning)? > It seems like unset($PHP_AUTH_USER) does no

[PHP] how can i cache php scripts enterpretet

2001-08-24 Thread Ralph Deffke
I have developed a web portal for big compamies with a lot of traffic on their pages. main functions, like member authentication etc. are called on every page request. it would make sence to have them ready enterpretet to skip enterpretation on each request. i know that there are tools arround lik

[PHP] Re: IP security

2001-08-26 Thread Ralph Deffke
use the $REMOTE_ADDR variable for the remote address see php manual chapter 7 Variables - Variables from outside PHP Nafiseh Saberi schrieb: > hi. > how can I control the ip that with ID and password ,all of > user cant enter to site and if one person want to enetr should > have special IP tha

[PHP] Re: zlib1.1.3 and ob_gzhandler

2001-08-26 Thread Ralph Deffke
Are you shure u sending the right http header? your discription sound like the browser receives the wrong header information, respactively the wrong mime type. if you use the right mouse button and say show image, all browsers don't care about the mime type and try to evaluate the data content an

[PHP] Re: relative filename /home/www... in stead of /www/.....

2001-08-26 Thread Ralph Deffke
use $SCRIPT_FILENAME and extract the parts of the path as u need. or better $PATH_TRANSLATED see also php manual chapter 7 predefined variables. Chris Hayes schrieb: > dear group, > > I use the $DOCUMENT_ROOT to make a complete file name. > > $fpname=$DOCUMENT_ROOT.'/includes/blocks/dyn

[PHP] Re: show number of search results

2001-08-26 Thread Ralph Deffke
make a sql just with your where clause like this select count(*) from table where your where clause the relsulting result set will give u the number of records for your where clause [EMAIL PROTECTED] schrieb: > Good day, > > I'm trying to figure out how I can show the following on my search re

[PHP] Re: Program to check for cookies

2001-08-26 Thread Ralph Deffke
see php Manual chapter 18 cookies Sunil Jagarlamudi schrieb: > Is there a program which will check for cookies before > it allows access into the web site ? > > I want the user to enter the userid/password on a > secure web server and pass the cookie information to > the regular server. I don't

[PHP] Re: limit 1

2001-08-26 Thread Ralph Deffke
i would try this: $sql = "SELECT DISTINCT users.names FROM users, selection Where users.name = selection.name and selection.setting = 'on' "; because you joining two tables and you get as many results per users.name = selection.name as entries in bouth tables per us

[PHP] APC and WIN 32

2001-08-26 Thread Ralph Deffke
does anybody know a resource where i can get apc for windows? or does anybody have experienced how to compile APC under wimdows and include it i.e. in Merlin Desktop? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

[PHP] Re: Wide Image Scroller

2001-08-26 Thread Ralph Deffke
but the frameset could be done with php ! Eric Persson schrieb: > Craig Westerman wrote: > > > > I have a very wide panoramic image I want to display on a page. I don't want > > to side scroll the page, only the image. Is there a way to make a image side > > scrollable using PHP? > > This can no

[PHP] how to pass variable argument list in a childconstructor to parent constructor, ideas wanted

2009-08-02 Thread Ralph Deffke
problem: __ construct( $something ... variable argument list ){ parent::__construct( ??? ); } I tried with func_get_args, but the problem is that it gives an indexed array back. lets say the argument list is mixed like this: ( "string", "string", array) func_get_args will give this [0] => "

[PHP] Re: Character encoding

2009-08-05 Thread Ralph Deffke
I assume that the comments are collected by a browser form provided by you ! do u use the form attribute "accept-charset" ? I always do and I always use UTF-8 homogeniously throughout my application I never had that problem. "Sándor Tamás (HostWare Kft . )" wrote in message news:9ac01674e03a4

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ralph Deffke
sorry man, but a good data design keeps only data in a table u can not calculate. in ur case that would be only and time. refernces to user and project/tasks in other tables. ur time sheet is definately a job for a report. that type of design limits u to nothing. a user can start ans stop as ma

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ralph Deffke
off course, but this is a different subject, means a finished, not changing time sheet is to store. in that case I would prefere to use a single record for each sheet holding an id, possibly a date and then a medium text holding a simple xml notation of the sheet. the benetit of that concept is aga

[PHP] Re: dynamically naming PHP vars on the fly?

2009-08-05 Thread Ralph Deffke
u can "dynamical" chosse a variable name with a variable using a "douple" $ charachter eg. $a = "this is a": $b = "a"; echo $$b; outputs "this is a" this is an all open feature to u have fun ralph "Govinda" wrote in message news:a215e849-2602-4cb3-9da7-718ff047a...@gmail.com... > HI all > > O

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ralph Deffke
as I said, the job is to store a time sheet. u came up with: 1. One record for each 7 day week (year, week_num, d1, d2, d3, d4, d5, d6, d7) where the dX field holds the hours worked 2. One record for each day (date, hours) it seems that just the first record is fine. in a data design u dont hold

[PHP] Re: "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-05 Thread Ralph Deffke
why do u stick to php 6? i would recommend www.scribd.com and have a search on PHP. there are books on beginners for php5 and articles of the difference to php 6. a very usefull site by the way, made me stopping buying books. loads of material on IT stuff. ralph ralph_def...@yahoo.de wrote in

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ralph Deffke
as it comes to this point I can recomment an O'reilly book "High Performance Web Sites, essential knowledge for frontend engineers" if u read that book ur eyes will grow and u will not bother about php comments, ralph "Ashley Sheridan" wrote in message news:1249543712.3358.104.ca...@localhost.

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Ralph Deffke
hi there, u want help? break down ur question to the point, none is going to downlod unknown zips searching for the spot. its fun to help, but its for free, so make it easier for us to help u u r lucky that i'm sick at the moment and a bit bored, but anyway i'm not downloading a zip. however, t

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ralph Deffke
because this is to start with the baby figuring out about a family :-) ralph_def...@yahoo.de "Eddie Drapkin" wrote in message news:68de37340908060841x129a9096w6c0907f85614c...@mail.gmail.com... On Thu, Aug 6, 2009 at 11:32 AM, tedd wrote: > At 5:34 PM -0700 8/5/09, sono...@fannullone.us wrote: >

AW: [PHP] Displaying user data and picture

2009-08-06 Thread Ralph Deffke
u playing arround with the htaccess file 3. its easy in those and other cases 4. image directores are public, and apear in search engines Von: Michael A. Peters An: Ralph Deffke CC: php-general@lists.php.net Gesendet: Donnerstag, den 6. August 2009, 23:02:55

[PHP] Re: Pattern Matching

2009-08-06 Thread Ralph Deffke
this side for shure is for help, lets u play arround with regex http://gskinner.com/RegExr/ ralph ralph_def...@yahoo.de "Floyd Resler" wrote in message news:50fc5ab0-ee8b-4ac2-b982-9262a3977...@adex-intl.com... > I need some assistance in pattern matching. I want allow the admin > user to enter

[PHP] Re: "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-07 Thread Ralph Deffke
Hi Larry, nice to have a comment from the editor, and I want to say thanks for writing this book. however this discussion was initiated by a newbie asking what book he should use to learn php. ur book is important to the community of php freaks ! it saved my time to see where the path is going th

Re: [PHP] Re: Buffered Logging?

2009-08-07 Thread Ralph Deffke
I did some very complete logging for two major german companies on their intranet pages. an application with something like 23000 registered users and more then 5 hits a day. I did none of any kind of buffering, just raw table inserts. it never gave any problem on performance HOWEVER we did a D

[PHP] Re: str_replace

2009-08-08 Thread Ralph Deffke
looks good, u r searching for $bible_verse_ref in $text_message_template to be replaced by the string "bible_verse_ref". if that makes sence to u, yes its right. ralph ralph_def...@yahoo.de ""Ron Piggott"" wrote in message news:83745b9e385a4402888ba5924c296...@computera1afe9... Am I understandi

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
of course u can do this by sql. see this SELECT * FROM `sometable` LIMIT 0 , 30 gives u max 30 records if existstarting at record 0 on the next request u could say SELECT * FROM `sometable` LIMIT 30 , 30 giving u max 30 recotds starting at record 30 ralph ralph_def...@yahoo.de "Nisse Engströ

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
but then ur byond simple select, man, I do hate unions and try to avoid those. "Nisse Engström" wrote in message news:8b.50.40613.c518d...@pb1.pair.com... > On Sat, 8 Aug 2009 15:01:42 +0200, "Ralph Deffke" wrote: > > > of course u can do this by sql. > &

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Ralph Deffke
good question !! I think the word "framework" is modern fashion term in the first case. in former days we used to say "library" C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar things before, so I u

[PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
Hi all, I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier versions even if I install mySQL brand new creating all tables new. it seems to me that auto_increments handling has changed to older version. is somebody out there who can give me

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
pped every record and expected the auto_increment to > reset. > > Jerry Wilborn > jerrywilb...@gmail.com > > > On Sun, Aug 9, 2009 at 1:17 PM, Ralph Deffke wrote: > > > Hi all, > > > > I'm facing the fact that it seems that auto_increment fields in

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
MENT=1; > > It's likely that you dropped every record and expected the auto_increment > to > > reset. > > > > Jerry Wilborn > > jerrywilb...@gmail.com > > > > > > On Sun, Aug 9, 2009 at 1:17 PM, Ralph Deffke > wrote: > > > > > Hi

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
I would like to have a KNOWN status of my database after a NEW installation of the application, because the further installation relais on information stored in record 1 of each table. "tedd" wrote in message news:p06240801c6a4fe331...@[192.168.1.100]... > At 8:17 PM +0200 8/9/09,

[PHP] Re: MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
Nisse Engström" wrote in message news:91.f7.55947.dc74f...@pb1.pair.com... > On Sun, 9 Aug 2009 20:17:15 +0200, "Ralph Deffke" wrote: > > > I'm facing the fact that it seems that auto_increment fields in a table not > > start at 1 like it was in earlier

[PHP] Re: MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Ralph Deffke
I should mention that I use MyISAM as storage engine what makes it even more wiered. "Nisse Engström" wrote in message news:91.f7.55947.dc74f...@pb1.pair.com... > On Sun, 9 Aug 2009 20:17:15 +0200, "Ralph Deffke" wrote: > > > I'm facing the fact that it

Re: [PHP] reason for a "Notice:.." on one site but not another? (Same code.)

2009-08-10 Thread Ralph Deffke
this is not "intelligence" its just pure math. the '&&' says if BOTH expressions are true then the whole expression is true. so if the first one is false, the whole is false, why checking the next one in the underlaying C it would be something like this { if ( expression == false ) return false; i

AW: [PHP] reason for a "Notice:.." on one site but not another? (Same code.)

2009-08-10 Thread Ralph Deffke
he same story there are the == === and != !=== operators ____ Von: Martin Scotta An: Andrew Ballard CC: Ralph Deffke ; php-gene...@lists..php.net Gesendet: Montag, den 10. August 2009, 20:40:19 Uhr Betreff: Re: [PHP] reason for a "Notice:.." on one site bu

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

2009-08-10 Thread Ralph Deffke
with XOR try this $a = 0; echo $a ^ 1; $a = 1; echo $a ^ 1; hope that helps ralph ralph_def...@yahoo.de "John Butler" wrote in message news:52842d6f-dd45-44a6-ae06-2e58ef8f6...@gmail.com... > quick Q: > I have this inside a foreach{} that I want to alternate between on > and off so I can alte

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

2009-08-10 Thread Ralph Deffke
u... try echo ""; for( $i=0 ; $i<10; $i++){ echo "something " . (($a = $a^1) ? "red\n" : "green\n"); } echo ""; watchout the brackets ! cheers ralph_def...@yahoo.de "John Butler" wrote in message news:52842d6f-dd45-44a6-ae06-2e58ef8f6...@gmail.com... > quick Q: > I have this inside a fore

[PHP] Re: Synchronizing autonumber fields

2009-08-11 Thread Ralph Deffke
hi there, this is typical app for db repliction mechanism. it depnds of the size off your project. have a look here: http://dev.mysql.com/doc/refman/5.1/en/replication-howto.html if this is oversized for u do a dump of each table without the auto_increment fields. if u read in these tables the m

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

2009-08-11 Thread Ralph Deffke
seems they changing idears on the fly? could it be that the designer is a smal ugly person while u a a good looking ladykiller ? on that background I would design a function where u can change ti what ever u want on the fly something like this var $a; function alternate( $a, $_b=array( "red", "r

Re: [PHP] Is select_db necessary?

2009-08-12 Thread Ralph Deffke
here a basic background to this question. all databases are build from various module bases. one module is the database itself prosessing eg. the sql's another module is the database connectivity. e.g. mySQL has a ability to connect thru ADO, .NET and an server via IP. MySQL supports unlimited da

[PHP] Re: Is select_db necessary?

2009-08-12 Thread Ralph Deffke
I agree totally, are we not dicussing speed issues all the time? and then we recommend a code doing an unessesary job on every call? an ANSI selct db in the sql forces any database to run the internal select db because there would be no check if the databse is the current one. because, databasedev

Re: [PHP] Re: Is select_db necessary?

2009-08-12 Thread Ralph Deffke
ralph_def...@yahoo.de "Martin Scotta" wrote in message news:6445d94e0908120718g6c5bf368tacf8bbad127b5...@mail.gmail.com... > Wed, Aug 12, 2009 at 10:37 AM, Ralph Deffke wrote: > > > I agree totally, are we not dicussing speed issues all the time? and then > > we &

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,

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

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

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

[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

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, &

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

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

[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

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,

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

[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] Re: Using fopen on a site with popups

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

[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

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

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

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

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

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

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

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

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

[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

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

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

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.

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

[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

[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

  1   2   >