Re: [PHP] sorting mysql results

2005-01-10 Thread Leif Gregory
Hello Sebastian, Monday, January 10, 2005, 2:38:18 PM, you wrote: S> if the $row['type'] is music i want to output an and the S> results below it but below the files results.. makes sense? i S> thought i remember doing this once using a dummy var but cant S> remember how. i guess i could always r

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Richard Lynch
> On Jan 10, 2005, at 12:49 PM, Jason Morehouse wrote: > >> Hello. I'm not sure if this is an apache problem or php... but >> wondering if anyone has come across the same problem. >> >> -rw---1 root roottest.html >> -rw---1 root roottest.php >> >> Trying to

Re: [PHP] sorting mysql results

2005-01-10 Thread Leon Poon
Sort when querying from database: SELECT name, type FROM some_table ORDER BY type ASC, name ASC - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 11, 2005 5:38 AM Subject: [PHP] sorting mysql results I have a list of rows in the database and i would l

Re: [PHP] Unique, "hard" session timeout on a shared server

2005-01-10 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > I have researched a few ways to set a "hard" session timeout on a shared > server. Does anyone have comments on the advantages/disadvantages of each > approach? Are there other alternatives? > > 1. Override the php.ini settings in an .htaccess file: > > php_value session.

RE: [PHP] Comparison Operator

2005-01-10 Thread Richard Lynch
Chadwick, Russell wrote: > > The function this is from sometimes uses $_POST or $_GET input, so > sometimes its comparing 1337 with '1337' and === would break that. > > so I'll have to use something like: > > if (($value == $curval) && !(is_string ($curval) && ($value == 0))) > > unless there is a

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Rasmus Lerdorf
Jason Morehouse wrote: I still don't really get why apache hands parsing off to php when it knows it doesn't have read access to the file, but I'll save that for another list! It could check, I suppose, but it doesn't always know that just because it can't access the file the receiver won't be a

[PHP] test

2005-01-10 Thread shimuqiheb

Re: [PHP] Re: What program to use to make thumbnail images?

2005-01-10 Thread John Holmes
zerof wrote: John Holmes wrote: What do you guys recommend for making thumbnails from uploaded images? I know of the GD extension, Imagemagik and netpbm. Any other recommendations or opinions on which of the above work best with PHP? Thanks. -- Good choice, http://coppermine.sourceforge.net

Re: [PHP] Security - chmod 777 - PHP upload/write

2005-01-10 Thread Curt Zirzow
* Thus wrote SED: > Hi, > > Sometimes when I write a PHP-script and upload it to a ISP through password > protected FTP, the only way to write data to a folder is to run chmod 777 > for that folder, I want to write (or save) a data to (e.g. file-upload, > flat-file-database). However, if I do so,

Re: [PHP] Re: What program to use to make thumbnail images?

2005-01-10 Thread Curt Zirzow
* Thus wrote John Holmes: > zerof wrote: > >John Holmes wrote: > > > >>What do you guys recommend for making thumbnails from uploaded images? > >>I know of the GD extension, Imagemagik and netpbm. Any other > >>recommendations or opinions on which of the above work best with PHP? > >>Thanks. > >

Re: [PHP] Re: unable to load curl

2005-01-10 Thread Sagar C Nannapaneni
> Please respond to the newsgroup and not to my personal email. > > Is it a file access/ownership thing? > > This is possible. Have you checked permissions for PHP user? My > original question remains unanswered though and it is probably a better > place to start... > > > extension_dir = "C:\php

[PHP] Forms on PHP

2005-01-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I am new to this or any newsgroup in PHP, as well as PHP itself, so this question is probably rather elementary. I have a form which on clicking on the "Submit" button calls up a compiled program on the server that is executed and writes output to a file. This file is then read by the PHP sc

[PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-10 Thread Ranjan K. Baisak
I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as "UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not be found". The DLL file php_xm

[PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-10 Thread Ranjan K. Baisak
I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as "UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not be found". The DLL file php_xm

[PHP] Functions in replacement string of eregi_replace

2005-01-10 Thread Ville Mattila
Hi there! I'm looking for a workaround to carry out a feature similar to that I could use any PHP function inside the replacement string in eregi_replace (or ereg_replace). I have a set of HTML code with some -headers. Now I should convert all HTML headers to uppercase strings. As far as I know

[PHP] SOLVED: Global class instances mysteriously set to NULL

2005-01-10 Thread James \(IFMS\)
I *really* appreciate everybody's previous input. I may be a highly experienced programmer, but am relatively new to PHP. OK, I figured out what was going on. Google enough and read enough and the light goes on finally. The problem was not the "require_once" but a scoping problem. Specifically

<    1   2