Re: [PHP] Architecture patterns in PHP

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 3:29 PM, Michael C. Yates wrote: > Nathan Nobbe wrote: > >> >> >> Hey, >>> >>> How do you structure your web applications? I am thinking in terms of >>> separating presentation and logic. How is that done in PHP? >

Re: [PHP] is_readable(http://.... text file) says not, but I can in browser

2008-12-28 Thread Nathan Nobbe
PT_RETURNTRANSFER, TRUE);* * $theDataLast = curl_exec($ch); echo ("The dataLast: ".$theDataLast."\n");* * curl_close($ch);* *} obviously, youll need the curl extension installed for this to work. i know the fopen wrappers will allow you to get a read-only handle to an http url, but im not sure what is_readable() will do w/ that, it may be limited to the local filesystem. -nathan

Re: [PHP] Problem with fetching values...

2008-12-28 Thread Nathan Nobbe
ith mysql_query() and pg_query(). OK. i would stop right there and ask yourself why.. there are tons of stable, working solutions out there that already do this, most notably for php5, PDO, http://us.php.net/manual/en/pdo.drivers.php which btw, is written in C ;) -nathan

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
oint dan, and just to add further clarification, thats b/c the function specifies $return_var is passed by reference in the formal parameter. when you include the & along w/ an actual parameter (during function invocation) thats referred to as call-time-pass-by-reference in php, and its typically frowned upon. in fact, i think its being removed from a future version of php. -nathan

Re: [PHP] turn shared hosting server to external image storage hosting

2008-12-28 Thread Nathan Nobbe
e you tried photobucket ? we have an api in php which is freely available and we use a CDN for caching all around the globe. in fact, id be interested to find out how it stacks up over there, in your neck of the woods. -nathan

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten wrote: > Nathan Nobbe wrote: > > good point dan, and just to add further clarification, thats b/c the > > function specifies $return_var is passed by reference in the formal > > parameter. when you include the & along w/ an

Re: [PHP] Re: Architecture patterns in PHP

2008-12-28 Thread Nathan Nobbe
nternet for my information. i find this list to me a most excellent supplement to these other resources, in fact in many ways its often times better. this topic is no less relevant than most ive seen since ive joined the list, which most likely is the reason for the several long, well thought responses. -nathan -nathan

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Nathan Nobbe
27; extension, ill probly check it out. you know some of us yougin's never really got too much pratical exposure to tools like that =/ im still ramping up on these low level utilities myself. -nathan

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Nathan Nobbe
On Tue, Dec 30, 2008 at 12:26 AM, Manuel Lemos wrote: > Hello, > > on 12/30/2008 05:07 AM Nathan Nobbe said the following: > >>>> How do you structure your web applications? I am thinking in terms of > >>>> separating presentation and logic. How i

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Nathan Nobbe
On Tue, Dec 30, 2008 at 1:05 AM, Nathan Nobbe wrote: > > plus did you see the part about 'cleaning up the include path'. moving to > require at the outer layer and as far in as possible, basically. thats a > really good idea, and it looks like this 'includes'

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Nathan Nobbe
On Tue, Dec 30, 2008 at 10:15 AM, Eric Butera wrote: > On Tue, Dec 30, 2008 at 2:07 AM, Nathan Nobbe > wrote: > >> on 12/30/2008 01:13 AM Sancar Saran said the following: > >> > and please read this why > >> > > >> > http://talks.php.net

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Nathan Nobbe
On Tue, Dec 30, 2008 at 11:07 AM, Robert Cummings wrote: > On Tue, 2008-12-30 at 12:53 -0500, Eric Butera wrote: > > On Tue, Dec 30, 2008 at 12:42 PM, Nathan Nobbe > > > > I was following the blog tutorial on cake and here's what I got from > > hitting the post/ind

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Nathan Nobbe
On Tue, Dec 30, 2008 at 11:24 AM, Eric Butera wrote: > On Tue, Dec 30, 2008 at 1:07 PM, Robert Cummings > wrote: > > On Tue, 2008-12-30 at 12:53 -0500, Eric Butera wrote: > >> On Tue, Dec 30, 2008 at 12:42 PM, Nathan Nobbe > >> > >> I was following the

[PHP] Re: Question about version control.. sorta..

2008-12-31 Thread Nathan Rixham
TG wrote: Ok.. so I know about CVS and SVN and unfortunately haven't had as much experience with them as I'd like. I've used them, but always in a really basic sense and always on systems that have already been set up. A friend recently mentioned GIT ( http://git.or.cz/ ) too. But here's my

Re: [PHP] When is an Exception not an Exception?

2008-12-31 Thread Nathan Nobbe
#x27;ve done anything particularly fancy/tricky with the class > hierarchy. > nobody said you did, but that has no bearing on the fact that the Soap extension throws exceptions. as i said you dont have to catch them, but the idea is they provide opportunities for your code to degrade gracefully in the event of a problem occurring. -nathan

Re: [PHP] When is an Exception not an Exception?

2008-12-31 Thread Nathan Nobbe
w what is happening, I'm feeling silly > for asking. i wouldnt worry about it; i dont think theres a spot in the xdebug docs where they discuss how it can screw up some things you might want to leave alone :D -nathan

Re: [PHP] system() Question

2008-12-31 Thread Nathan Nobbe
On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten wrote: > Nathan Nobbe wrote: > > > > > > On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten > <mailto:mi...@onshore.com>> wrote: > > > > Nathan Nobbe wrote: > > > good point dan,

Re: [PHP] Question about version control.. sorta..

2008-12-31 Thread Nathan Nobbe
:) im not sure how well git works on windows atm, but if youre interested in a dcvs that works on windows, ive heard good things about mercurial; its written in python. http://www.selenic.com/mercurial/wiki/ -nathan

Re: [PHP] system() Question

2009-01-01 Thread Nathan Nobbe
well, Mr. Lucas! And now that I am done with work (for > the most part), this is my official adieu to 2008. Thanks for the > memories. > merry new year to all you folks out there, wherever you hail from! -nathan

Re: [PHP] Quick question regarding debugging and PHP structure.

2009-01-01 Thread Nathan Rixham
Ashley Sheridan wrote: On Wed, 2008-12-31 at 20:41 +, Ólafur Waage wrote: Short: Is it possible to see the PHP code that is going to be processed in whole? Long: I love to see things visually, and while programming i create all kinds of debugging variables i keep on the side for each page/r

Re: SV: [PHP] Sending files via POST

2009-01-01 Thread Nathan Rixham
Anders Norrbring wrote: On Thu, Jan 1, 2009 at 02:35, Anders Norrbring wrote: I'm a bit stuck.. I'm using the PEAR http_Request to send files and data as HTTP POST, which is working fine if I in fact have the files on disk on the server. Just using the method addFile.. Okay But w

Re: [PHP] Question about version control.. sorta..

2009-01-01 Thread Nathan Nobbe
not to commit certain files to the repository out of practice. these can also be hidden from view, essentially by placing filenames / patterns via the svn:ignore property My web host supports rsync, but I don't think I've seen any version control > options for rsync. does your webhost support svn clients? you can do svn co then svn up, svn switch etc. -nathan

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Nathan Rixham
rob, are you suggesting that the solution to the problems in the middle east is to be found lurking somewhere on the php.net site? perhaps with a little code example to show us how it's done? lolol great Robert Cummings wrote: I find the PHP site to be one of the best resources around. Maybe

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Nathan Rixham
oooh oooh found it, there's a few solutions actually! array_merge($christianity,$islam); unset($religion); //loads more Nathan Rixham wrote: rob, are you suggesting that the solution to the problems in the middle east is to be found lurking somewhere on the php.net site? perhaps with a l

[PHP] Re: A beginner´s question

2009-01-04 Thread Nathan Rixham
Eduardo wrote: Hi, I am Eduardo, a new PHP programmer and an old Cobol veteran. I know that $tastes=$_POST["tastes"]; moves the content of "tastes" from to $tastes How do I move the content of $tastes to X of echo "\n"; ? Thanks, Eduardo echo "\n"; echo "this

[PHP] Re: Import files from directory

2009-01-06 Thread Nathan Rixham
Merlin Morgenstern wrote: Hi everybody, I am running a real estate portal and would like to allow users to upload their listing from their existing software. They do this with a XML file which they will upload on a ftp server that places this xml file into a seperate directory on the file sys

Re: [PHP] RSS Feed on my PHP site

2009-01-06 Thread Nathan Rixham
Richard Heyes wrote: i'm new to RSS Feeds, but how would it be possible to have a BBC News Feed added to my website? You can read and parse an RSS feed just like any other webpage. Magpie RSS will probably make life easier though. and http://rssphp.net will make it ultra simple :) -- PHP Ge

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Nathan Rixham
Richard Heyes wrote: Also I could be missing something, but I can't see the advantage in VARCHAR since space is not really a concern these days. char is fixed length and padded. If you don't fill up the space, the db does it for you (even though it seems it's internal only). http://dev.mysql.co

Re: [PHP] setting up FTP account names via PHP

2009-01-06 Thread Nathan Rixham
Ashley Sheridan wrote: On Mon, 2009-01-05 at 16:16 +0100, Merlin Morgenstern wrote: Is there a good FTP Daemon that can be recommended for this purpose? pure-ftpd seams out of development since 2006. Jason Pruim wrote: On Jan 5, 2009, at 9:55 AM, Merlin Morgenstern wrote: Yes, it would be

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Nathan Rixham
chris smith wrote: It may be worth mentioning that, IIRC, CHAR is faster due to the fixed length. If you can make your table use a fixed length row size (ie no variable length columns), it'll be faster. I'd be interested in seeing tests about this.. I doubt there's any difference. quote: http

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Nathan Rixham
Frank Stanovcak wrote: So what I'm taking away from this is that I can index a text column, but that is relatively new. Based on experience with technology I'm going to guess it's not a very efficient index or search function yet. CHAR seems to be well entrenched, and the favorite for any col

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Nathan Rixham
Frank Stanovcak wrote: I know! This ranks up there with redirecting people to www.ratemypoo.com when an intrusion attempt is detected as part of the security measures. ahh i redirect them to the endless sixapart atom stream seing as it's normally spiders/bots - slows them down a bit :p --

[PHP] Re: get file from object

2009-01-06 Thread Nathan Rixham
Jack Bates wrote: How do I get the file where a class is defined, from an instance of that class? you could hack around with exceptions or simply use Reflection.. it's all provided for you $testObject = new YourClass(); $class = new ReflectionClass( $testObject ); echo $class->getFileName(

[PHP] Re: get file from object

2009-01-06 Thread Nathan Rixham
Nathan Rixham wrote: Jack Bates wrote: How do I get the file where a class is defined, from an instance of that class? you could hack around with exceptions or simply use Reflection.. it's all provided for you $testObject = new YourClass(); $class = new ReflectionClass( get_

[PHP] Re: Testing a URL with regex

2009-01-07 Thread Nathan Rixham
Sn!per wrote: Let's say I have these URLs http://example.com/index.php?q=gallery http://example.com/index.php?q=gallery&g2_itemId=81 http://example.com/index.php?q=gallery&g2_itemId=100 I want to have a line of code that will extract just the "http://example.com/index.php?q=gallery"; part of t

[PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Nathan Rixham
Christoph Boget wrote: I'm running through a large dataset and am generating/manipulating XML documents for each record. What's happening is that after a while, I get a fatal error saying: Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 32650313 bytes) Each XML

Re: [PHP] php-gtk2, anyone?

2009-01-07 Thread Nathan Rixham
Zechim wrote: anyone who works with php-gtk2 and can tell me if I can make something like msn, skype, a little chat (is it possible to connect to a webserver and sabe in my local server using gtk2?) probably best off asking on the php gtk list ;) -- PHP General Mailing List (http://www.php.ne

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Nathan Rixham
Richard Heyes wrote: but, I'm more concern does client has to pay the changes/upgrade or it's still "my obligation"? Of course you charge him. Christ if I was expected to maintain stuff gratis that I wrote 7 years ago I'd be mullahed. concurred, personally I'd be tempted to offer to find or

Re: [PHP] php-gtk2, anyone?

2009-01-07 Thread Nathan Nobbe
gine you can do anything php cli can do in a php-gtk2 app. -nathan

Re: [PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Nathan Rixham
required (unset and no references to it?) because of the way we use domdocument often we have many variables referencing existing or created nodes within the document; as well as xpath and suchlike; thus it stands to reason that unless all of these are also unset the DOMDocument will not b

Re: [PHP] weird curl problem

2009-01-07 Thread Nathan Nobbe
t; Apache2 ofcourse. > > If you want to see any config files or logs please tell me.. have you tried to ping or traceroute your box from the shared hosting server since the os upgrade? -nathan

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Nathan Nobbe
we know which xml library you are using. i believe you said youre running php4 earlier, right? so which xml library have you settled on? btw; php4 has DOMXML as a native extension, but the api is a bit cumbersome. -nathan

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Nathan Nobbe
On Wed, Jan 7, 2009 at 1:42 PM, Merlin Morgenstern wrote: > Hello Nathan, > > I upgraded to PHP 5, so I am using nativ support. > > Best regards, Merlin > please keep replies on-list so others may benefit from the archives. OK, native support; so in php5 you can use DOM or S

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Nathan Rixham
Richard Heyes wrote: That's for a single table. I've not come across many databases where 20-50 tables have 10 million rows each. And with a table of that size, then I might be coerced into thinking about the storage requirements a little more. Maybe. Now add another 20 to 50 tables d

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
Carlos Medina wrote: Allan Arguelles schrieb: Yeah, I was reluctant to open the attachment, but then again I'm on gentoo :) I've forgotten about these "threats" eversince I switched over, didn't even notice the bounced email(to the sender) as an indication. -Allan Robert Cummings wrote: On

Re: [PHP] Because you guys/gals/girls/women/insert pc term hereare a smart lot

2009-01-08 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2009-01-08 at 10:51 +, Richard Heyes wrote: until you have to dump it, zip it, ssh it over to another box and then import it back in That's what fag breaks are for... :-) Well, that and smoking. So... when you're forgetful... have you ever had to bum a fag?

[PHP] sorry

2009-01-08 Thread Nathan Rixham
I keep hitting reply all in thunderbird and double posting; apologies for the additional noise (can't promise i won't keep doing it though :p) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: a weired query issue

2009-01-08 Thread Nathan Rixham
viraj wrote: i have this query.. $sql = "SELECT `id` FROM `modules_permissions` WHERE `id` = '" . $permissionId . "';"; when i pass the value 31 to permissionid, it returns me the 31st row of the table. and it's fine. but when i pass '31asasa' as the permissionid it returns me the same row! how

Re: [PHP] sorry

2009-01-08 Thread Nathan Rixham
tedd wrote: At 11:16 AM + 1/8/09, Nathan Rixham wrote: I keep hitting reply all in thunderbird and double posting; apologies for the additional noise (can't promise i won't keep doing it though :p) That's Okay. Usually what you have to say is important enough to read

[PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread Nathan Rixham
changing the title; but nobody else does it which leads to some great out of context discussions :) Terion Miller wrote: SOLVED: Thanks everyone I got it working it was the loop...took it out and now it works like a charm!! Is there a way to mark things solved? On Wed, Jan 7, 2009 at 1:46 PM,

[PHP] Re: First steps towards unix and php

2009-01-08 Thread Nathan Rixham
Frank Stanovcak wrote: I've been a microshaft punk for some time now, and am just getting ready to try to step over to unix on one of my own boxes. Does anyone have any suggestions on which flavor would be a good idea to start with? I'm looking mostly for compatibility with php, mysql, and ot

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
Daniel Brown wrote: On Thu, Jan 8, 2009 at 10:31, Skip Evans wrote: From my reading I get the impression that the above statement, "Linux is just as susceptible to viruses, worms, and other malware", is inaccurate. Unfortunately, Skip, it's 100% accurate. No operating system is completel

[PHP] Re: Cannot Install mysql extension

2009-01-08 Thread Nathan Rixham
Gary wrote: Just installed Apache 2.2 and PHP 5.2.8, am able to test, works fine. I am no able to get the mysql extensions to install. I have gone in to reinstall, the dialog box says that 0bytes to be installed. Have searched, several forums have suggested to remove the ; from in front of

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
Daniel Brown wrote: On Thu, Jan 8, 2009 at 13:34, Robert Cummings wrote: He didn't say it had no insecurities... he said it's hard to believe it's "JUST AS insecure". Please provide factual sources to indicate the validity of your statement. Counter: please provide factual sources that it

[PHP] Re: Cannot Install mysql extension

2009-01-08 Thread Nathan Rixham
Gary wrote: Ok, I C/P the code and uploaded a link http://www.paulgdesigns.com/phpini.html Any help would be appriciated. Gary uncomment ;extension=php_mysql.dll (remove the ;) in your php.ini then restart apache .so is for nix not windows :) -- PHP General Mailing List (http://www.php.

[PHP] Re: Cannot Install mysql extension

2009-01-08 Thread Nathan Rixham
Gary wrote: Thanks much, but I do not have a line that says extension=php_mysql.dll What I do have is a line that says extension=mysql.dll Should I add the php_? Thanks again Gary check in the php/ext/ directory, if you have a dll called mysql.dll then you're fine, if it's php_mysql.dll then

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
c...@l-i-e.com wrote: Fact is if you want to be secure just disconnect you're machine from the internet, remove cd/dvd/floppy drives and unplug the keyboard. You forgot to cut the internal USB cables. :-) when I was younger my friend got a virus on his mothers computer; his mother promptly

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2009-01-08 at 19:18 +, Nathan Rixham wrote: Daniel Brown wrote: On Thu, Jan 8, 2009 at 13:34, Robert Cummings wrote: He didn't say it had no insecurities... he said it's hard to believe it's "JUST AS insecure". Pleas

Re: [PHP] Holocoste against palestinians

2009-01-08 Thread Nathan Rixham
Ashley Sheridan wrote: On Thu, 2009-01-08 at 08:57 +0200, Paul Scott wrote: On Wed, 2009-01-07 at 22:51 -0800, It flance wrote: The message is to webhosting companies, This is not a web hosting company. Israel is killing palestinian children. Some sites are are showing the fotos of israel's

[PHP] Re: Cannot Install mysql extension

2009-01-08 Thread Nathan Rixham
Gary wrote: Nathan Thanks for all your help, but it is not working. The files were/are named php_mysql.dllso I replace them. I did the advanced install, choosing only those extensions I wanted, including mywsql and mysqli I have already reinstalled the php5.2.8 Again, thanks, but

Re: [PHP] Holocoste against palestinians

2009-01-08 Thread Nathan Rixham
Ashley Sheridan wrote: On Thu, 2009-01-08 at 19:53 +, Nathan Rixham wrote: Ashley Sheridan wrote: On Thu, 2009-01-08 at 08:57 +0200, Paul Scott wrote: On Wed, 2009-01-07 at 22:51 -0800, It flance wrote: The message is to webhosting companies, This is not a web hosting company. Israel

Re: [PHP] Holocoste against palestinians

2009-01-08 Thread Nathan Rixham
Ashley Sheridan wrote: On Thu, 2009-01-08 at 20:06 +, Nathan Rixham wrote: Ashley Sheridan wrote: On Thu, 2009-01-08 at 19:53 +, Nathan Rixham wrote: Ashley Sheridan wrote: On Thu, 2009-01-08 at 08:57 +0200, Paul Scott wrote: On Wed, 2009-01-07 at

Re: [PHP] Re: Cannot Install mysql extension

2009-01-08 Thread Nathan Rixham
Gary wrote: I like it...thanks for the suggestion It gives me 3 choices, the installer, the zip and the exe. The zip is 82 megs, the largest, is that the better choice? Thanks again for your help. Gary keep it simple for yourself and go with the installer -- PHP General Mailing List

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
2009/1/8 Robert Cummings > On Thu, 2009-01-08 at 19:46 +0000, Nathan Rixham wrote: > > Robert Cummings wrote: > > > On Thu, 2009-01-08 at 19:18 +, Nathan Rixham wrote: > > > > > >> Daniel Brown wrote: > > >> > > >>> On Thu, J

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
Skip Evans wrote: Nathan Rixham wrote: yup.. all OS's are equally insecure; each OS is as insecure as the next; no one OS is more insecure than any other Wrong, and there is experimental data to prove it. Read the first URL I posted that documents the creation of Linux viruses an

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
Ashley Sheridan wrote: On Thu, 2009-01-08 at 22:38 +, Nathan Rixham wrote: Skip Evans wrote: Nathan Rixham wrote: yup.. all OS's are equally insecure; each OS is as insecure as the next; no one OS is more insecure than any other Wrong, and there is experimental data to prove it.

Re: [PHP] Re: hello

2009-01-08 Thread Nathan Rixham
Skip Evans wrote: Ashley Sheridan wrote: think about it for a minute; an OS can either be secure (0 vulnerabilities) or insecure (1 or more vulnerabilities); as all OS's have 1 or more vulnerabilities they are all equally insecure; because they are all insecure. What you are saying, in rea

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Nathan Nobbe
On Thu, Jan 8, 2009 at 4:02 PM, Merlin Morgenstern wrote: > Hello nathan, > > I am unsing simplexml as it looks really simple :-) However, I could still > not figure out how to adress data inside tags with attributes. For example: > > >bla blub > > $xml->a

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Nathan Rixham
Nathan Nobbe wrote: On Thu, Jan 8, 2009 at 4:02 PM, Merlin Morgenstern wrote: Hello nathan, I am unsing simplexml as it looks really simple :-) However, I could still not figure out how to adress data inside tags with attributes. For example: bla blub $xml->anhang[intern][titelb

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Nathan Nobbe
On Thu, Jan 8, 2009 at 4:38 PM, Nathan Rixham wrote: > Nathan Nobbe wrote: > >> On Thu, Jan 8, 2009 at 4:02 PM, Merlin Morgenstern > >wrote: >> >> Hello nathan, >>> >>> I am unsing simplexml as it looks really simple :-) However, I could >&g

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Nathan Rixham
Nathan Nobbe wrote: On Thu, Jan 8, 2009 at 4:38 PM, Nathan Rixham <mailto:nrix...@gmail.com>> wrote: Nathan Nobbe wrote: On Thu, Jan 8, 2009 at 4:02 PM, Merlin Morgenstern mailto:merli...@fastmail.fm>>wrote: Hello nathan, I am u

Re: [PHP] Re: First steps towards unix and php

2009-01-08 Thread Nathan Rixham
John Corry wrote: I don't know about Geany, but you should definitely check out: PDT/Eclipse ^^my fav, but only when coupled with RSE (remote system explorer), php debugger for eclipse and subversive svn Zend Studio for Eclipse <- my favorite ^^ I liked but was a memory hog on my windows mach

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Nathan Rixham
Merlin Morgenstern wrote: ok... it seems that I am doing something fundamentally wrong. I get no output at all with this: $xmlStr = file_get_contents($filename); $xmlelement = new SimpleXMLElement($xmlStr); echo '$xmlelement->xpath("//anbieter/immobilie/anhaenge/anha...@location='INTERN' and

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Nathan Rixham
Merlin Morgenstern wrote: ok... it seems that I am doing something fundamentally wrong. I get no output at all with this: $xmlStr = file_get_contents($filename); $xmlelement = new SimpleXMLElement($xmlStr); echo '$xmlelement->xpath("//anbieter/immobilie/anhaenge/anha...@location='INTERN' and

Re: [PHP] Re: hello - thread on topic or not?

2009-01-09 Thread Nathan Rixham
Daniel Brown wrote: On Thu, Jan 8, 2009 at 19:21, Mattias Thorslund wrote: I thought this was the PHP list, not the OS vs. OS list? Is this type of discussion now considered OK here? I recall people getting flamed for borderline off-topic posts even, just a few years ago. You're right, M

[PHP] Re: Enabling tls negotiation in a socket

2009-01-09 Thread Nathan Rixham
Jehan Pagès wrote: Hi, I have a question about opening a normal socket, then negotiating a TLS layer in PHP (through another protocol, which is XMPP in my case, in plain text at the beginning). I am currently using a socket created by "socket_create ()". But there seems not to be any way of swit

[PHP] Re: Editing in a text area field

2009-01-09 Thread Nathan Rixham
Stephen wrote: I have a form to accept free text in a textarea field. The entry is stored in a database. If the user enters: abc def ghi I want it to finally display like that. If they enter abc def ghi I want it to display with the line gaps. I use CSS so in the first case I would stor

Re: [PHP] Re: hello

2009-01-09 Thread Nathan Rixham
tedd wrote: At 7:18 PM + 1/8/09, Nathan Rixham wrote: if it's a computer thats on, with an os, a keyboard and a network card connected to the internet it's insecure. It doesn't even have to be connected to the Internet to be insecure. Cheers, tedd hence the mention o

[PHP] Re: How can a script tell if there's a MySQL problem?

2009-01-09 Thread Nathan Rixham
Brian Dunning wrote: I have one server that's pretty busy and runs into "Too many connections" from MySQL from time to time, and needs to have MySQL restarted to clear it up. I've tried everything I can think of to have PHP take note of this error but continue executing with other stuff, but

[PHP] Re: Create image from HTML

2009-01-09 Thread Nathan Rixham
Christoph Boget wrote: Does anyone know if it's possible, using PHP, to take HTML (either as an input or from a URL) and generate an image (essentially, create a screenshot) of that HTML/page? I've looked around but was unable to find anything and I'm just not sure if it's that there really is n

Re: [PHP] Re: hello

2009-01-09 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Jan 9, 2009 at 11:17, Nathan Rixham wrote: tedd wrote: At 7:18 PM + 1/8/09, Nathan Rixham wrote: if it's a computer thats on, with an os, a keyboard and a network card connected to the internet it's insecure. It doesn't even have to be c

Re: [PHP] How can a script tell if there's a MySQL problem?

2009-01-09 Thread Nathan Rixham
Bastien Koert wrote: 1. Make sure you are freeing up all resources as soon as you can -> mysql_close(); little thing I've done for some time that's stuck with; (php5+ only) on all of my database connection classes, I have the db close function in the destructor just to make sure dbHandle))

Re: [PHP] Re: hello

2009-01-09 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Jan 9, 2009 at 11:56, Nathan Rixham wrote: a few years ago when I first met my rach (we met online), we'd have random conversations stretching several pages on various forums and social site profiles we had - i'd find it massively amusing to then go in

[PHP] Re: Adding extension to an existing PHP install

2009-01-09 Thread Nathan Rixham
Tim Donnelly wrote: Hello list, I have a PHP (5.2.1) installation on an openSUSE 10.1 server. PHP was initially compiled from source and I have the original config.nice file, so I know what options were used. l need to add an extension to this running installation, specifically I need to a

[PHP] Re: Couple of beginner questions

2009-01-09 Thread Nathan Rixham
Gary wrote: I've done a number of sites in html and am now venturing into php. Can I create a page in html and insert php code that will work? (for example, take an existing page and insert a date command) if it has the file extension .php then it will be passed through php and compiled; oth

Re: [PHP] Re: hello

2009-01-09 Thread Nathan Rixham
Andrew Ballard wrote: On Fri, Jan 9, 2009 at 12:35 PM, Daniel Brown wrote: On Fri, Jan 9, 2009 at 12:34, Andrew Ballard wrote: Now... you'd have really freaked out if that had actually worked! LOL Hey, good point, Andrew. Nate, you do know that was only pseudo-code, right? Don't run

Re: [PHP] Re: hello

2009-01-09 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Jan 9, 2009 at 12:43, Nathan Rixham wrote: actually i ran it in a debugger, in an ide, in a virtual machine :p in Siberia. scotland in winter; same thing really -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Been staring at the code for too long...

2009-01-09 Thread Nathan Rixham
Jason Pruim wrote: mysqli_stmt_prepare($stmt, "UPDATE database.table ( UPDATE database.table SET ( think that should fix it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Nathan Rixham
Gary wrote: Ok, not yet... If the file I want to test resides in My Documents\Sites\nameofsite, I set my "Test server folder" in DW to map to here...correct? Now down to URL prefix, I have tried http://localhost http://localhost/sitename C:/xampp/apache,( which btw is the Site Root as describ

Re: [PHP] Apache File Quesiton

2009-01-10 Thread Nathan Rixham
Gary wrote: Ok, I believe I have it workingmeaning when I click on Live Data View, I see the date appear in my datetest.php page But Im still confused... The succesful configuration (providing I am not suffering from premature exhuberation) is Testing server folder: c:\xampp\htdocs\barr

Re: [PHP] Editing in a text area field

2009-01-10 Thread Nathan Rixham
tedd wrote: At 11:43 AM -0800 1/9/09, VamVan wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Specifically, do NOT add tags in place of newlines. Store the newlines. 100% I agree. Thats called the act of defensive programming. We have no right over

Re: [PHP] Editing in a text area field

2009-01-10 Thread Nathan Rixham
tedd wrote: At 2:19 AM +1100 1/11/09, Ross McKay wrote: On Sat, 10 Jan 2009 09:58:24 -0500, tedd.sperling wrote: Never store any html whatsoever in a database. HTML is presentation and is NOT data. Except when HTML is data, e.g. CMS. And it's better to let people input that using something

Re: [PHP] Re: hello

2009-01-10 Thread Nathan Rixham
Robert Cummings wrote: On Sat, 2009-01-10 at 16:14 -0500, Daniel Brown wrote: On Sat, Jan 10, 2009 at 16:06, Robert Cummings wrote: Snowball hits sandcastle... promptly melts... washes sandcastle away. *throws another snowball at you* I've got LOTS more where they came from. *danbrown cast

Re: [PHP] Re: hello

2009-01-10 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Jan 10, 2009 at 16:21, Nathan Rixham wrote: are you three flirting? Are you jealous? *throws snowball too* "shut p" when in rome.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unique Object Instance ID..?

2009-01-10 Thread Nathan Rixham
Evening All, Not too often I ask a question here, but here goes; I'm making an "Object" class which all of my other classes extend, and I need each instance to have it's own unique id, seemed simple but it's harder than I thought (the difficulty is when it comes to deciding the syntax). so

[PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Nathan Rixham
Colin Guthrie wrote: 'Twas brillig, and Nathan Rixham at 10/01/09 23:31 did gyre and gimble: all I need is a completely unique id for each object instance that can never be repeated at any time, even in a multiserver environment (and without using any kind of incremented value from a db

Re: [PHP] Editing in a text area field

2009-01-10 Thread Nathan Rixham
Ross McKay wrote: Nathan Rixham wrote: HTML is a markup language used to describe the structure of a document; presentation of HTML is controlled by either a client, with optional instructions via attributes (bad) or css (good) I almost agree, except that there are attributes that

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Nathan Nobbe
On Sat, Jan 10, 2009 at 4:31 PM, Nathan Rixham wrote: > Evening All, > > Not too often I ask a question here, but here goes; > > I'm making an "Object" class which all of my other classes extend, and I > need each instance to have it's own unique id,

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2009-01-11 at 10:16 -0500, tedd wrote: At 3:02 PM + 1/11/09, Ashley Sheridan wrote: On Sun, 2009-01-11 at 09:46 -0500, tedd wrote: At 1:49 PM + 1/11/09, Ashley Sheridan wrote: > > >Unless it's something like this: > >echo "$whatever"; > >?> >

Re: [PHP] String variable

2009-01-11 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2009-01-11 at 14:36 +, Ashley Sheridan wrote: On Sun, 2009-01-11 at 08:59 -0500, MikeP wrote: Hello, I am trying yo get THIS: where ref_id = '1234' from this. $where="where ref_id="."'$Reference[$x][ref_id]'"; but i certainly have a quote problem. Any help?

<    1   2   3   4   5   6   7   8   9   10   >