Re: [PHP] How about a saveXHTML for the DOM?

2009-04-11 Thread Michael A. Peters
Michael A. Peters wrote: With respect to templating systems, I don't use them but if you have a DOMDocument orientated template system, I don't see why it couldn't do the same thing - As an experiment, I took one of my pages that was a little sluggish due to lots of database calls (sluggi

Re: [PHP] How about a saveXHTML for the DOM?

2009-04-11 Thread Michael A. Peters
Raymond Irving wrote: If I remove the \r from the file using preg_replace() then it shows up just fine. I was just wondering if there was a way to suppress the \r in the xml output. Another thing that I've observed while looking at your code is that it only works best for dynamic web pages.

[PHP] pear mdb2 and null

2009-04-11 Thread Michael A. Peters
I've run into a small issue with mdb2. I have a mysql database with a field set to longtext not null. inserting "" into that field works just dandy when using the mysql_ functions. However, when using mdb2 - it converts "" to NULL which is NOT what I want to have happen, and the result is th

Re: [PHP] Escape Data In/Out of db [solved]

2009-04-11 Thread Shawn McKenzie
Shawn McKenzie wrote: > tedd wrote: >>> I think you want to look for magic_quotes_gpc >>> >>> >>> -- >>> Thanks! >>> -Shawn >> >> -Shawn: >> >> You were right. >> >> I'll fix it. >> >> Thanks, >> >> tedd > > I normally have a prep4display() and prep4store() type function that do > all of the sens

Re: [PHP] How about a saveXHTML for the DOM?

2009-04-11 Thread Raymond Irving
If I remove the \r from the file using preg_replace() then it shows up just fine. I was just wondering if there was a way to suppress the \r in the xml output. Another thing that I've observed while looking at your code is that it only works best for dynamic web pages. It appears that it woul

Re: [PHP] $_GET

2009-04-11 Thread Mark Kelly
Hi. On Sunday 12 April 2009, Ron Piggott wrote: > At the very start of my index.php I have the following lines of code: > > foreach($_GET as $key => $val) { > $$key = $_GET[$val]; > echo $_GET[$val] . ""; > } Try: echo $_GET[$key] . ""; HTH Mark -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Escape Data In/Out of db [solved]

2009-04-11 Thread Shawn McKenzie
tedd wrote: >> I think you want to look for magic_quotes_gpc >> >> >> -- >> Thanks! >> -Shawn > > > -Shawn: > > You were right. > > I'll fix it. > > Thanks, > > tedd I normally have a prep4display() and prep4store() type function that do all of the sensitization/prep for either storing or display

Re: [PHP] Additional support for your family!

2009-04-11 Thread Daniel Brown
On Sat, Apr 11, 2009 at 19:29, 9el wrote: > > Ah! could you just pay in my paypal? bluh! For future reference, the general practice on the list is not even to acknowledge the email. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Of

Re: [PHP] Additional support for your family!

2009-04-11 Thread 9el
2009/4/12 Forest Bennett > Good day, Dear Mr. or Ms! > > Are you in need for money but you don't have the time and nerve for a > secondary job? Here is your chance to be part of a program that is taking > traditional marketing research in a brand new direction, with the ease of > the Internet tec

[PHP] $_GET

2009-04-11 Thread Ron Piggott
I am moving my web site to a new host this weekend. I am working towards making the code compatible to the structure of the new server. I am getting a weird response which I don't understand At the very start of my index.php I have the following lines of code: foreach($_GET as $key => $val) { $

[PHP] extract varying data from array with different formatting

2009-04-11 Thread PJ
foreach does a nice job if you want the results identical each time. What can you use to change the formatting of the results dependent on the number of results. Here's an example: foreach ( $authors[$bookID] AS $authorID => $authorData ) { # Display the echo "{$auth

Re: [PHP] Random php

2009-04-11 Thread 9el
On Sun, Apr 12, 2009 at 1:32 AM, Gary wrote: > I had been on that site before, but seems like it is a breeding ground for > spam and links to "free" commercial sites. Ran into a few bad or broken > links, several listings as different scripts only to take you to the same > "best price hosting" c

Re: [PHP] Random php

2009-04-11 Thread Gary
I had been on that site before, but seems like it is a breeding ground for spam and links to "free" commercial sites. Ran into a few bad or broken links, several listings as different scripts only to take you to the same "best price hosting" company with no scripts at all. Is this common, is

Re: [PHP] Sobre Login PHP

2009-04-11 Thread Daniel Brown
2009/4/11 Alejandro Esteban Galvez : > > Saludos colegas, los otros dias, estuve escribiendo acerca de esto, y bueno > ya tengo una parte ahora necesito que cuando se cierre el navegador, se > cierre la sesion de login tambien.  Saludos Saludos, Alejandro; Envíe por favor este mensaje a

[PHP] Sobre Login PHP

2009-04-11 Thread Alejandro Esteban Galvez
Saludos colegas, los otros dias, estuve escribiendo acerca de esto, y bueno ya tengo una parte ahora necesito que cuando se cierre el navegador, se cierre la sesion de login tambien. Saludos --- Alejandro Esteban Galvez Administrador de

Re: [PHP] Escape Data In/Out of db [solved]

2009-04-11 Thread Shawn McKenzie
tedd wrote: > At 9:12 PM -0700 4/9/09, Jim Lucas wrote: >> tedd wrote: >>> At 5:03 PM +0200 4/9/09, Jan G.B. wrote: You might want to use htmlspecialchars($str, ENT_QUOTES) >>> >>> OUT from db to html >>> >>> and >>> mysql_real_escape_string(stripslashes($_POST['yourself'])); >>> >>

Re: [PHP] Random php

2009-04-11 Thread Gary
Thanks much for your quick reply, I'll take a look (and maybe even find one that spell checks my posts first!). Gary "Phpster" wrote in message news:146a4da4-0114-474c-92f8-b8d3a5ecc...@gmail.com... > > > On Apr 11, 2009, at 10:12, "Gary" wrote: > >> Is there a way to have a php include call

Re: [PHP] Random php

2009-04-11 Thread Phpster
On Apr 11, 2009, at 10:12, "Gary" wrote: Is there a way to have a php include called ramdomly? For example, I have an area that I am using to show various quotes and I would like the quotes to be ramdom. Thanks for your help Gary -- PHP General Mailing List (http://www.php.net/) To

[PHP] Random php

2009-04-11 Thread Gary
Is there a way to have a php include called ramdomly? For example, I have an area that I am using to show various quotes and I would like the quotes to be ramdom. Thanks for your help Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Caching

2009-04-11 Thread Richard Heyes
> Hey! About  " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT" " > The problem is the files might change, lets say - every week. How can I use > " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"" to something like > > Header set Expires "today plus week" > > (or X seconds / y minutes / etc..

Re: [PHP] concat and join stuff

2009-04-11 Thread Martijn Korse
This is not really a PHP question, but a mysql question. Anyways, your query should work, as far as i can see. If you give the structure dumps and some relevant data dumps i don't mind to give it a try here. - http://devshed.excudo.net http://devshed.excudo.net -- View this message in con