Re: [PHP] one click - two actions?

2006-11-13 Thread Paul Novitski
At 11/13/2006 01:28 AM, Mel wrote: Could someone please help me figure out how to show some description (where applicable) at the same time as I show an image, when I click on a link, without repeating the entire query? The image and the description are both in the same table in my database. I n

Re: [PHP] problem with php[4,5] (horde 2/3)

2006-11-13 Thread Chris
Norbert Ehart wrote: hello, i have some problem with horde, after my isp have upgraded php on my vps! i only get some error massages. Notice: Only variable references should be returned by reference in /usr/share/horde3/lib/Horde/Perms.php on line 343 Notice: Only variable references shou

RE: [PHP] server side security

2006-11-13 Thread Ligaya A. Turmelle
Have you thought not having it available on the open web? Put it behind a firewall and make it so only local ips on the LAN can access it with strong passwords. MySQL - make sure you change the default root user password to something "hard" - and create only users with the minimum permissions ne

Re: [PHP] server side security

2006-11-13 Thread Chris
H. Dan Phillips wrote: Let me begin by saying I'm a newbie to PHP and open source. I setup a windows 2003 server with IIS6, PHP 5x and MYSQL5x for one of our developers to start building a new web based application. The developer will be using PHP myadmin for his purposes. The settings that wer

Re: [PHP] Problem with PHP 5.2.0

2006-11-13 Thread Kevin Waterson
This one time, at band camp, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi. I just installed PHP 5.2.0 and I'm running into some strange problems. xdebug Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." --

Re: [PHP] Mysql strategy

2006-11-13 Thread Larry Garfield
On Monday 13 November 2006 17:51, Chris wrote: > > It's not going to make a great deal of difference if you do the > > processing in the MySQL or the PHP, in this case it's basically the same > > operation in each. I suspect that efficiently recreating the LIKE > > functionality in PHP wouldn't b

Re: [PHP] Mysql strategy

2006-11-13 Thread Chris
David Tulloh wrote: Dotan Cohen wrote: If I have to perform 30 LIKE searches for different keywords in a varchar field, which strategy would be recommended: 1) 30 searches, one for each keyword 2) To select the varchar field from all the rows, and search through them with php's array functions?

RE: [PHP] one click - two actions?

2006-11-13 Thread Warren Vail
Mel, Not sure if I understand your question now or not, but here goes. In order to prepare your page you want to be able to click a link on the left and have the page on the right replaced with something in response. Technically when php prepares the page, it prepares both sides (unless you are

Re: [PHP] Compressing both php and linked css files with ob_gzhandler and htaccess

2006-11-13 Thread Graham Anderson
Unfortunately, I am on a shared server for this project :( Is there some way to enable mod_deflate without admin server privs? many thanks On Nov 13, 2006, at 1:59 PM, steve wrote: Why use php to compress at all? Use mod_deflate. On 11/13/06, Graham Anderson <[EMAIL PROTECTED]> wrote: Can I

Re: [PHP] Compressing both php and linked css files with ob_gzhandler and htaccess

2006-11-13 Thread Graham Anderson
yes :) I DID try that strangely, turning it off disables/kills the css file g On Nov 13, 2006, at 2:08 PM, Jochem Maas wrote: Graham Anderson wrote: Can I compress a php file AND its referenced css files at the same time ? Currently, I am using ob_gzhandler to compress my php files on

Re: [PHP] Compressing both php and linked css files with ob_gzhandler and htaccess

2006-11-13 Thread Jochem Maas
Graham Anderson wrote: > Can I compress a php file AND its referenced css files at the same time ? > > Currently, I am using ob_gzhandler to compress my php files only . > Works great:) > > > As I have found that you CAN NOT use ob_gz and zlib at the same time, > how do I amend the htaccess fi

[PHP] Compressing both php and linked css files with ob_gzhandler and htaccess

2006-11-13 Thread Graham Anderson
Can I compress a php file AND its referenced css files at the same time ? Currently, I am using ob_gzhandler to compress my php files only . Works great:) As I have found that you CAN NOT use ob_gz and zlib at the same time, how do I amend the htaccess file to use ob_gz, These files

Re: [PHP] Mysql strategy

2006-11-13 Thread Robert Cummings
On Tue, 2006-11-14 at 00:51 +1100, David Tulloh wrote: > Dotan Cohen wrote: > > If I have to perform 30 LIKE searches for different keywords in a > > varchar field, which strategy would be recommended: > > 1) 30 searches, one for each keyword > > 2) To select the varchar field from all the rows, an

Re: [PHP] one click - two actions?

2006-11-13 Thread Mel
Thank you for your reply. I think my question is really much more simple than what you are suggesting. If you have a quick look at http://www.squareinch.net/single_page.php?art=crp_logo.jpg you will see what I mean. I have a single page and both results load in the same page. When I click on a

Re: [PHP] Mysql strategy

2006-11-13 Thread David Tulloh
Dotan Cohen wrote: If I have to perform 30 LIKE searches for different keywords in a varchar field, which strategy would be recommended: 1) 30 searches, one for each keyword 2) To select the varchar field from all the rows, and search through them with php's array functions? It's not going to m

RE: [PHP] one click - two actions?

2006-11-13 Thread Warren Vail
Mel, that may have been a disguised hint. Your answer lies in javascript. The first php page needs to contain javascript to open a second page with the URL to the second php script when the first page loads. Keep a couple of things in mind, popup blockers will reek havoc if you can't get visito

[PHP] Problem with PHP 5.2.0

2006-11-13 Thread [EMAIL PROTECTED]
Hi. I just installed PHP 5.2.0 and I'm running into some strange problems. I have a rather large program which uses sockets, pcntl, posix, pdo (mysql), and is fully object oriented. The program is rather large and is about 75,000 lines of code. When I run the application with PHP 5.1.6, I can exe

Re: [PHP] one click - two actions?

2006-11-13 Thread Mel
I really don't know? My site is all php and ready to go live except for this little problem. I would really appreciate some help. On Nov 13, 2006, at 4:12 AM, John Meyer wrote: Not to be rude or anything, but if you want to do two things with one click, wouldn't the javascript list be the pla

Re: [PHP] Scrolling text

2006-11-13 Thread Robert Cummings
On Mon, 2006-11-13 at 20:22 +0100, Alain Roger wrote: > Hi, > > I would like to have a scrolling text (as banner) on our website. > I tried Marquee which work very well but since i use a table and allocate > 100% to marquee, if the content of a row ( content) is greater than 100% > or the width,

[PHP] Scrolling text

2006-11-13 Thread Alain Roger
Hi, I would like to have a scrolling text (as banner) on our website. I tried Marquee which work very well but since i use a table and allocate 100% to marquee, if the content of a row ( content) is greater than 100% or the width, internet explorer automatically write the message on several line

Re: [PHP] How do you do the ? mark after a filename

2006-11-13 Thread Norbert Ehart
Thomas Bonham schrieb: I keep seeing the ? mark after many file names index.php?id=234. So what I would like to know is how do you make them. I have heard that they can make a programs life sampler when doing somethings with a database. in my scripts, i do it with the switch-syntax === snip

RE: [PHP] Highjack?

2006-11-13 Thread bruce
rory.. thanks.. i had meant to say assuming globals is off... -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 10:12 AM To: PHP Subject: Fwd: [PHP] Highjack? -- Forwarded message -- From: Rory Browne <[EMAIL PROTECTED]> Date:

Fwd: [PHP] Highjack?

2006-11-13 Thread Rory Browne
-- Forwarded message -- From: Rory Browne <[EMAIL PROTECTED]> Date: Nov 13, 2006 7:12 PM Subject: Re: [PHP] Highjack? To: [EMAIL PROTECTED] On 11/13/06, bruce <[EMAIL PROTECTED]> wrote: eric... you say how embarrasing regaring the $path.'foo' i'm curious, why/how is this

Re: [PHP] Highjack?

2006-11-13 Thread Matt Carlson
With register_globals on, the globals super array ($_POST, $_GET, $_REQUEST) are automatically populated into variables. With that in mind www.example.com/index.php?path=remoteexplot.com/ would then yield include('remoteexplit.com/foo'); thus including ANY code they wish. - Original Me

RE: [PHP] Highjack?

2006-11-13 Thread bruce
eric... you say how embarrasing regaring the $path.'foo' i'm curious, why/how is this simple piece of code exploitable. assuming $path is not something that comes via the url vars (GET/POST/REQUEST) it shouldn't be able to be touched by external/client processes... similarly, the 'foo' would b

Re: [PHP] Highjack?

2006-11-13 Thread Eric Butera
On 11/13/06, tedd <[EMAIL PROTECTED]> wrote: Hi gang: While this is not an obvious php question, it does deal with security which is a concern. Just this morning had a couple of my sites "highjacked". What I found was someone had replaced my root level index.php with their own index.php. You ca

Re: [PHP] Mysql strategy

2006-11-13 Thread Dotan Cohen
On 13/11/06, David Tulloh <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > If I have to perform 30 LIKE searches for different keywords in a > varchar field, which strategy would be recommended: > 1) 30 searches, one for each keyword > 2) To select the varchar field from all the rows, and search t

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Paul Scott
On Mon, 2006-11-13 at 18:07 +0100, Alain Roger wrote: > And therefore how do you want to get the result set ? > nothing is solved now... i still need a fetchrow or fetchOne Have you read _any_ of the MDB2 docs?? As far as I can see you have decided not to even _try_ any of the solutions th

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Alain Roger
And therefore how do you want to get the result set ? nothing is solved now... i still need a fetchrow or fetchOne On 11/13/06, Paul Scott <[EMAIL PROTECTED]> wrote: On Mon, 2006-11-13 at 17:49 +0100, Alain Roger wrote: > Dear all, > > i still got the same error when i run this code : > ==

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Paul Scott
On Mon, 2006-11-13 at 17:49 +0100, Alain Roger wrote: > Dear all, > > i still got the same error when i run this code : > ==> Call to a member function fetchRow() on a non-object on line "while Then why not try something else? Try this: $db2 =& MDB2::connect($dsn, $options);

[PHP] MDB2 : never ending story

2006-11-13 Thread Alain Roger
Dear all, i still got the same error when i run this code : ==> Call to a member function fetchRow() on a non-object on line "while (( " so it seems that package MDB2_Driver_pgsql is not loaded or something is wrong... i'm really lost...4 days that i work on it without any solution...

[PHP] Re: problem with imagestring()

2006-11-13 Thread Piotr Sulecki
Ave! Forget it. It turned out that the culprit was Debian-specific patch of libgd2. Sorry for bothering you. Regards, Piotr Sulecki. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DOM Validation using PHP

2006-11-13 Thread Raphael Martins
Hi there! I´m building a form validator using PHP and JS. It´s working fine by now, but I want to make a little improvement. Here is how its working now: 1. The user fill the form. Every time he leaves the field, the JS code match the value against a regexp to validate. 2. When the us

Re: [PHP] Parsing brackets in text

2006-11-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-13 15:02:53 +0200: > >http://cz.php.net/manual/en/reference.pcre.pattern.syntax.php > > > >Skip the Differences From Perl section. > > That I have read at least three or four times. I still don't capture > all of it, but I try. You are correct, I should have r

[PHP] Highjack?

2006-11-13 Thread tedd
Hi gang: While this is not an obvious php question, it does deal with security which is a concern. Just this morning had a couple of my sites "highjacked". What I found was someone had replaced my root level index.php with their own index.php. You can see the result at: http://xn--u2g.com/

[PHP] server side security

2006-11-13 Thread H. Dan Phillips
Let me begin by saying I'm a newbie to PHP and open source. I setup a windows 2003 server with IIS6, PHP 5x and MYSQL5x for one of our developers to start building a new web based application. The developer will be using PHP myadmin for his purposes. The settings that were used were ones posted

Re: [PHP] How do you do the ? mark after a filename

2006-11-13 Thread Ivo F.A.C. Fokkema
On Sun, 12 Nov 2006 22:02:51 -0700, Thomas Bonham wrote: > Thank you for that, it was a big help. > > Can I also call function that way? > > Again thank you for your help. > > Thomas Do you mean: /index.php?action=search -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Parsing brackets in text

2006-11-13 Thread Dotan Cohen
On 13/11/06, Roman Neuhauser <[EMAIL PROTECTED]> wrote: # [EMAIL PROTECTED] / 2006-11-13 01:35:44 +0200: > On 13/11/06, Chris <[EMAIL PROTECTED]> wrote: > > > > >function makeLink($matches) { > >$returnString="" . $matches[1] . ""; > >return $returnString; > >} > > > >$articleText

Re: [PHP] Mysql strategy

2006-11-13 Thread Dotan Cohen
On 13/11/06, Chris <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > If I have to perform 30 LIKE searches for different keywords in a > varchar field, which strategy would be recommended: > 1) 30 searches, one for each keyword No. Horribly inefficient. > 2) To select the varchar field from all t

Re: [PHP] one click - two actions?

2006-11-13 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Not to be rude or anything, but if you want to do two things with one click, wouldn't the javascript list be the place you would want to go? Mel wrote: > Could someone please help me figure out how to show some description > (where applicable) at the s

Re: [PHP] Parsing brackets in text

2006-11-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-13 01:35:44 +0200: > On 13/11/06, Chris <[EMAIL PROTECTED]> wrote: > > > > >function makeLink($matches) { > >$returnString="" . $matches[1] . ""; > >return $returnString; > >} > > > >$articleText="This is a very [long] string."; > >$articleText=preg_rep

[PHP] one click - two actions?

2006-11-13 Thread Mel
Could someone please help me figure out how to show some description (where applicable) at the same time as I show an image, when I click on a link, without repeating the entire query? The image and the description are both in the same table in my database. I now show the image when I click o