Re: [PHP] multisession download

2006-02-08 Thread Shu Hung (Koala)
2006/2/4, Richard Lynch <[EMAIL PROTECTED]>: > Put the path of the file you want in the URL? Sorry, what do you mean by this? > And make *SURE* you do not let that turn into things like: > /etc/passwd I have control to that in my code to prevent this from happening ^^ More info here: > htt

Re: [PHP] define() or $variable for application settings?

2006-02-08 Thread Chris
Hi Matt, I use define's. With variables it's easy to forget to global'ise it when you go into a function, define's don't have this issue. Matt Arnilo S. Baluyos (Mailing Lists) wrote: Hello Everyone, I have a config.inc.php file which basically contains all the configuration info that the a

[PHP] define() or $variable for application settings?

2006-02-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello Everyone, I have a config.inc.php file which basically contains all the configuration info that the applications needs (directory/file locations, database credentials, etc). The information there is set using the define() function. However, I've seen some open-source projects which either u

Re: [PHP] how to show 6 randomly selected featured products?

2006-02-08 Thread Chris
Hi, Joins are fine to use, the problem here is you have them in the wrong order. SELECT p.prod_id, p.prod_name, p.prod_no, chp.cat_id, c.cat_name, c.cat_parent, pr.price FROM products as p LEFT JOIN categories_has_products as chp ON chp.prod_id = p.prod_id LEFT JOIN categories as c ON chp.cat_id

Re: [PHP] how to show 6 randomly selected featured products?

2006-02-08 Thread Curt Zirzow
On Wed, Feb 08, 2006 at 08:02:41PM -0500, Afan Pasalic wrote: > The result display is bad (at least on at email). Here is a snapshot: > http://afan.net/bhw/snapshot1.png That isn't good. I would suggest you seek help on a sql list like mysql's general list Curt. -- cat .signature: No such file

Re: [PHP] how to show 6 randomly selected featured products?

2006-02-08 Thread Chris
Oops, missed this one before I sent that other email. I think it's the order of your joins playing up. LEFT JOIN categories as c ON chp.cat_id = c.cat_id LEFT JOIN prices as pr ON pr.prod_id = p.prod_id That means it will join categories -> prices - not what you want. Try this query: SE

Re: [PHP] how to show 6 randomly selected featured products?

2006-02-08 Thread Chris
Can you post it how it comes back or copy/paste it to a webpage (.txt is fine) so we can see it formatted? Afan Pasalic wrote: Hm. Have no idea what does it means: table type possible_keys key key_len ref rows Extra p ALL NULL NULL NULL NULL 1268 Using where; Using

Re: [PHP] how to show 6 randomly selected featured products?

2006-02-08 Thread Afan Pasalic
The result display is bad (at least on at email). Here is a snapshot: http://afan.net/bhw/snapshot1.png -afan On Wed, 2006-02-08 at 19:39 -0500, Afan Pasalic wrote: > Hm. Have no idea what does it means: > > table > type > possible_keys > key > key_len > ref > rows > Extra > p

Re: [PHP] how to show 6 randomly selected featured products?

2006-02-08 Thread Afan Pasalic
Hm. Have no idea what does it means: table type possible_keys key key_len ref rows Extra p ALL NULL NULL NULL NULL 1268 Using where; Using temporary; Using filesort chp index NULL PRIMARY 8 NULL 1741 Using index c eq_ref PRIMARY PRIMARY 4 chp.cat_id

Re: [PHP] php.ini version changed, code broke

2006-02-08 Thread Gerry Danen
You should use $_POST... On 2/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello all from a newbie. We have a Nitix server (from Net Integration > Technologies, Inc.) that hosts various web site. Recently they released a > software upgrade, and in the release notes was this warning: > >

Re: [PHP] How to output multiple tables nicely(!) from PHP in Excel format?

2006-02-08 Thread Gerry Danen
Oli, Looks interesting enough to play with. The page mentions "look at the code" yet I cannot find the code. Is it available? Gerry On 2/8/06, Oli Howson <[EMAIL PROTECTED]> wrote: > The example given outputs to two tabs, "sheeta" and "sheetb" > > Quoting Olaf Greve <[EMAIL PROTECTED]>: > > > H

[PHP] Re: image location hiding techniques

2006-02-08 Thread Chuck Anderson
hbeaumont hbeaumont wrote: Hi, I have a site with images that I want people to download but not have the direct path to. ie. I do not want them to be able to just view the source, find the dir and then download everything or direct link to them. However I can see no way to do this other than k

Re: [PHP] how to show 6 randomly selected featured products?

2006-02-08 Thread Chris
Hi, Grab that query and run it through mysql with 'explain', so: explain SELECT p.prod_id, p.prod_name, p.prod_no, chp.cat_id, c.cat_name, c.cat_parent, pr.price FROM products as p LEFT JOIN categories_has_products as chp ON chp.prod_id = p.prod_id LEFT JOIN categories as c ON chp.cat_id = c.c

Re: [PHP] target?

2006-02-08 Thread Curt Zirzow
On Wed, Feb 08, 2006 at 09:02:10PM +0200, William Stokes wrote: > Hello > Is target="_parent" opposite to target="_blank"? http://www.w3.org/TR/html4/types.html#type-frame-target Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Sending error_log to screen

2006-02-08 Thread Curt Zirzow
On Wed, Feb 08, 2006 at 01:25:18PM -0500, Reuben D. Budiardja wrote: > > Hello, > For debugging purposes, I have "display_errors = On" in the /etc/php.ini on > my > development server. > > I'm trying to use the error_log() function to log errors, however, the string > message does not get sen

RE: [PHP] target?

2006-02-08 Thread afan
Let's say you did some change on your popup window (page2.php) if(isset($_POST['change'])) { # your "changes" code here # and, once you are finished you are going to execute the folloving html code ?>