Re: [PHP] Re: dynamic class loaders

2005-04-19 Thread Dan Rossi
Thanks this seemed to work except say you had a class Packagename_Classname its trying to load the file like that Packagename_Classname.php On 20/04/2005, at 4:23 PM, Markus Fischer wrote: [EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to

[PHP] Re: Thanks but problem again! Re: [PHP] PHP script problem (with MySQL)

2005-04-19 Thread Satyam
I think that in your database it is : substring(loc, 1, 3) as loc1 Anyway, the error is not where you are getting the message, the query failed and this you don't have a valid resource to ask the number of rows or do anything else. You should add an 'or die("message: " . mysql_error()) to you

Re: [PHP] dynamic class loaders

2005-04-19 Thread Petar Nedyalkov
On Wednesday 20 April 2005 06:28, [EMAIL PROTECTED] wrote: > Hi there i was wondering if there is such an extension available or > possbility to have a dynamicclass loader extension which would use the > request_uri as loading the class constructors ? I justthink building such a > thing in php whic

Re: [PHP] Thanks but problem again! Re: [PHP] PHP script problem (with MySQL)

2005-04-19 Thread Petar Nedyalkov
On Wednesday 20 April 2005 06:07, Sugimoto wrote: (B> Thank you, Richard, (B> (B> I simply change this part (B> (select * from openart_table) into (B> (select substring(loc1, 1, 3) as THREE_LETTER_CODE, * from openart_table) (B> but Ive got this error, whats wrong with it? (B> (B> Warning:

[PHP] Re: PHP script problem (with MySQL)

2005-04-19 Thread Satyam
May I sugest that you assemble the SQL statement in a different way? With such a big conditional, it will slow down the Sql server. if ($tit != '') $condition .= "and tit1 like '%$tit%'"; and so on for each search field ... $sql = "Select *, substring(loc1, 1, 3) as loc1 from openart_tabl

[PHP] Re: dynamic class loaders

2005-04-19 Thread Markus Fischer
[EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which is what i am doing too slow for each r

Re: [PHP] dynamic class loaders

2005-04-19 Thread Dan Rossi
On 20/04/2005, at 2:52 PM, Richard Lynch wrote: I don't quite see how: can be sped up much... The problem isn't in the require function, but in the Class source bloat... But maybe I'm just being stoopid. First thing first, I am sure you are not new to the list and so arent I but dont try and

Re: [PHP] Images - Converting TIFF Format?

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 12:39:54 AM, you wrote: TDJ> Is there a quick way to convert a TIFF format picture to a GIF quickly? I TDJ> can only find support for GIFs in PHP, but maybe I'm missing something. I TDJ> have a client running a photography business, and I have designed an image TDJ>

php-general@lists.php.net

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 7:45 pm, Roger B.A. Klorese said: > Richard Lynch wrote: > >>Why in the world should we be forced to follow your narrow-minded >>so-called "standard"? :-) >> >> > > Hint: smileys indicate that you're joking. If you're joking, I don't > get what's humorous -- please explain.

Re: [PHP] dynamic class loaders

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 8:28 pm, [EMAIL PROTECTED] said: > Hi there i was wondering if there is such an extension available or > possbility to have a dynamicclass loader extension which would use the > request_uri as loading the > class constructors ? I justthink building such a thing in php which i

Re: [PHP] php output fills apache buffer for clients with slow internet connections

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 2:13 am, Martin Mandl said: > Therefore (finally) here come the questions: > Is there a way to control the output speed of the php script according > to the actual download speed between the browser and the server? > Or is there a way to monitor the memory usage of the apache

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Prathaban Mookiah
substr_count() should be more easy, but limited in functionality. Prathap -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last visitors

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 5:57 am, Ryan A said: > On the profile page there should be "last 10 visitors", it will not > register > the guests, but if someone had logged in and visited your profile, it > should > show their usernameif there are 10 enteries in the db and when the > 11th > person com

Re: [PHP] explode a string

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 7:03 am, Jochem Maas said: > The 'other' guy mentioned that while() is faster than foreach, > is this true? Don't know ; Don't care. You should never loop through so many things in PHP that it matters in the first place :-) > I read a few days ago somewhere on php.net that

Re: [PHP] Images - Converting TIFF Format?

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 7:39 am, The Disguised Jedi said: > Is there a quick way to convert a TIFF format picture to a GIF quickly? I I'm reasonably certain you can get GD to read TIFF files, if you install TIFF on your server, and then the GD extension again... Start reading at http://php.net/gd

Re: [PHP] Sessions - going back in browser

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 9:26 am, Craig Donnelly said: > I had an issue that I needed to be able to go back in the browser while in > a > session without getting "page has expired", I was reading through the > manual > and came across a comment about adding the following to the sessions page > to > a

[PHP] dynamic class loaders

2005-04-19 Thread php
Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which is what i am doing too slow for each request and think itshould

Re: [PHP] set cookie function problem

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 2:20 pm, Ospinto said: > Can someone help me with this problem? > setcookie('myCookie',"blah"); > works fine. but when i try to set it with an expiry time, it doesn't. > setcookie('myCookie',"blah",time()+3600); > > I have cookies enabled on my browser of course. And the way

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 12:10 pm, Leif Gregory said: > I've been wrestling with this one for a bit and wanted to see if > anyone had a nice magic bullet (yeah right) to do this. Yes. > Now, I want to display all the courses and have the names instead of > id numbers show up, so I'd select from Cou

[PHP] Thanks but problem again! Re: [PHP] PHP script problem (with MySQL)

2005-04-19 Thread Sugimoto
Thank you, Richard, (B (BI simply change this part (B(select * from openart_table) into (B(select substring(loc1, 1, 3) as THREE_LETTER_CODE, * from openart_table) (Bbut Ive got this error, whats wrong with it? (B (BWarning: mysql_num_rows(): supplied argument is not a valid MySQL result (B

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 1:17 pm, QT said: > is it easy like this, I tried and works good. Shouldn't I need to handle > something inside mp3? just easy to put each file together in the another > file? Some players will play it, and some won't. Technically, it's an invalid MP3, but most players will

php-general@lists.php.net

2005-04-19 Thread Roger B.A. Klorese
Richard Lynch wrote: Why in the world should we be forced to follow your narrow-minded so-called "standard"? :-) Hint: smileys indicate that you're joking. If you're joking, I don't get what's humorous -- please explain. If you're making a serious point but trying to have the rhetorical equ

Re: [PHP] php and linux shell script

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 2:24 pm, Rory Browne said: >> http://gtk.php.net/ >> > > Can you elaborate on what gtk has to do with making command line dialog > boxes? Well, you run it from the command line. And it makes dialog boxes. Maybe not the kind of dialog boxes you wanted or whatever, but that

[PHP] Re: Sessions - going back in browser

2005-04-19 Thread Matthew Weier O'Phinney
* Craig Donnelly <[EMAIL PROTECTED]>: > I had an issue that I needed to be able to go back in the browser while in a > session without getting "page has expired", I was reading through the manual > and came across a comment about adding the following to the sessions page to > allow users to travers

php-general@lists.php.net

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 4:05 pm, Roger B.A. Klorese said: > On Wed, 20 Apr 2005, Tom Rogers wrote: >> You can set this with arg_separator.output in php.ini > > That doesn't really answer why the choice was made to default to what > not only shouldn't be the default, but should probably be illegal

[PHP] Re: post & redirect

2005-04-19 Thread Matthew Weier O'Phinney
* Jem777 <[EMAIL PROTECTED]>: > If I submit a post and then, serverside, I redirect the request to another > page, do the post variables still live in the new page? No. HTTP requests are stateless, meaning they have no memory of what requests happened before or after, or how those requests were ma

Re: [PHP] Last visitors

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 4:46 pm, Ryan A said: > Hey, > Thanks for replying, I tried using the test example of Petar Nedyalkov, > but > when i try to create the following: > > CREATE TABLE `profile_log` ( >`profile_id` int(10) default NULL, >`user_id` int(10) default NULL, >`last_login`

RE: [PHP] script

2005-04-19 Thread Rob Agar
here's the clue to the other half of the puzzle: you can do this kind of thing in php if (whatever) { include 'something.php'; } else { include 'something else.php'; } hth, Rob > -Original Message- > From: Stephen Johnson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 2

Re: [PHP] PHP script problem (with MySQL)

2005-04-19 Thread Richard Lynch
[Connective issues may make this a duplicate post. Sorry.] On Tue, April 19, 2005 6:25 pm, Sugimoto said: > What I do like to do is to get first 3 letters from "loc1" column from openart_table (MySQL). select substring(loc1, 1, 3) as THREE_LETTER_CODE, * from openart_table ... -- Like Music? h

Re: [PHP] PHP script problem (with MySQL)

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 6:25 pm, Sugimoto said: > What I do like to do is to get first 3 letters from "loc1" column from > openart_table (MySQL). select substring(loc1, 1, 3) as THREE_LETTER_CODE, * from openart_table ... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (

Re: [PHP] script

2005-04-19 Thread Stephen Johnson
http://php.net/time http://php.net/date http://php.net/mktime one or a combination of these functions will help you do what you want. HTH On Apr 19, 2005, at 6:37 PM, tommy wrote: I'm hoping someone on this list can help me with something I've been struggling with lately... I have a php based web

[PHP] script

2005-04-19 Thread tommy
I'm hoping someone on this list can help me with something I've been struggling with lately... I have a php based web page that I'd like to have load an include file only when it is Tuesday 11pm - Weds 1 am Eastern Standard time (USA). At other times I would like my page to load and alternate i

[PHP] PHP script problem (with MySQL)

2005-04-19 Thread Sugimoto
Hello, (BI need your help about PHP (ver 4.3.1) and MySQL (ver 3.23) database. (BI am struggling to customise a database (using left command etc), and am (Bstuck now. (BPlease have a brief look at my scripts below. (B (BWhat I do like to do is to get first 3 letters from "loc1" column from (

RE: [PHP] Date class

2005-04-19 Thread Rob Agar
Matthias wrote: > Have you looked at the PEAR Date class? > > http://pear.php.net/package/Date PEAR Date is good - I use it a lot - but watch out for this bug if you're running on Windows http://pear.php.net/bugs/bug.php?id=2344 basically, there's some getenv/putenv trickery in the Date_Timezone

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Matthew Fonda
Hello, http://us4.php.net/substr_count Regards, Matthew Fonda Russell P Jones wrote: Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Kim Briggs
Greetings, If you are still looking for "tips" and want to get complicated/fancy, I have seen columns used called sort_order more than a few times. This should not be too hard to maintain for things like a few buildings, etc., where the lookup table does not change much over time. You would th

[PHP] Re: Convert gif to jpg

2005-04-19 Thread scottkovach
This should work for you: $image_dimensions = @getimagesize($uploadedfilename); $src_image = @imagecreatefromgif($uploadedfilename); $resized_image = @imagecreatetruecolor($width,$height); // can be resized, or else set these vars to the same as the original if (($src_image) && ($resized_image))

[PHP] Re: Matching Number of Times a Word Occurs...

2005-04-19 Thread Al
Russell P Jones wrote: Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? Russ Jones No, there are hundreds of other ways; but, preg_match_all() is probably the easiest. $number= preg_match_all("%$word%sm", $string, $matches); -- PHP Gen

[PHP] Encoding help!

2005-04-19 Thread Brian Dunning
I know this is a common question but I have RTFM and STFW until I'm blue in the face - I really need some help here. :) I've got some forms into which users are going to enter text that frequently contains funny characters (pilcrows, foreign text, etc). So I need to encode it before writing i

php-general@lists.php.net

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 9:05:39 AM, you wrote: RBAK> On Wed, 20 Apr 2005, Tom Rogers wrote: >> You can set this with arg_separator.output in php.ini RBAK> That doesn't really answer why the choice was made to default to what RBAK> not only shouldn't be the default, but should probably be

[PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Russell P Jones
Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last visitors

2005-04-19 Thread Ryan A
Hey, Thanks for replying, I tried using the test example of Petar Nedyalkov, but when i try to create the following: CREATE TABLE `profile_log` ( `profile_id` int(10) default NULL, `user_id` int(10) default NULL, `last_login` timestamp NOT NULL ) ENGINE=MyISAM CHARSET=utf8 I get an err

php-general@lists.php.net

2005-04-19 Thread Jared Williams
> > For documents to conform to the XHTML recommendation, > ampersand characters much be encoded as &. The > documentation for PHP recognises this. The same applies to > HTML (with some exceptions that the session code will never > encounter), although the PHP documentation makes no mention of

php-general@lists.php.net

2005-04-19 Thread Roger B.A. Klorese
On Wed, 20 Apr 2005, Tom Rogers wrote: > You can set this with arg_separator.output in php.ini That doesn't really answer why the choice was made to default to what not only shouldn't be the default, but should probably be illegal altogether. -- PHP General Mailing List (http://www.php.net/)

php-general@lists.php.net

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 5:56:44 AM, you wrote: DD> For documents to conform to the XHTML recommendation, ampersand characters DD> much be encoded as &. The documentation for PHP recognises this. The DD> same applies to HTML (with some exceptions that the session code will never DD> encounte

Re: [PHP] set cookie function problem

2005-04-19 Thread Ospinto
Marek, you're right. Thanks. Solved the problem "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ospinto wrote: > > ok...what does that have to do with my problem? > > The time is send in GMT, and your computer is set to GMT -7. So the > cookie is set to expi

php-general@lists.php.net

2005-04-19 Thread David Dorward
For documents to conform to the XHTML recommendation, ampersand characters much be encoded as &. The documentation for PHP recognises this. The same applies to HTML (with some exceptions that the session code will never encounter), although the PHP documentation makes no mention of this. Given thi

Re: [PHP] Re: Session variables are not stored when set in implicitly calledconstructor!??

2005-04-19 Thread Jason Barnett
Adam wrote: > Hallo again, > thank You for Your response. > > >>>// singleton for request >>>class Request { >>>function __destructor() { >>>$_SESSION["variable"] = "hallo"; >> >>The __destructor() method is supposed to be about killing the class >>(Request). It's probably bad practice

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Rory Browne
Are you on Windoze or Linux. If you're on linux, I'm sure you could rig up something with mencoder. If you're on windoze, you might still be able to use mencoder, but I'm not sure, and you may find yourself with the need to explore other options. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] php and linux shell script

2005-04-19 Thread Rory Browne
> http://gtk.php.net/ > Can you elaborate on what gtk has to do with making command line dialog boxes? > -- > Like Music? > http://l-i-e.com/artists.htm > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing Li

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
thank you very much I will try "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > QT wrote: > > I found an exe file, can I run that ms-dos exe file on linux machine with > > php? > > > > I didn't try anything like this before > > First, check if it's really for ms-dos.

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Marek Kilimajer
QT wrote: I found an exe file, can I run that ms-dos exe file on linux machine with php? I didn't try anything like this before First, check if it's really for ms-dos. Command line does not mean ms-dos, it can be a WIN32 command line binary. If it's really ms-dos executable, use dosemu. If it's W

Re: [PHP] Re: Session variables are not stored when set in implicitly calledconstructor!??

2005-04-19 Thread Adam
Hallo again, thank You for Your response. > > > > // singleton for request > > class Request { > > function __destructor() { > > $_SESSION["variable"] = "hallo"; > > The __destructor() method is supposed to be about killing the class > (Request). It's probably bad practice to be chang

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
I found an exe file, can I run that ms-dos exe file on linux machine with php? I didn't try anything like this before "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > QT wrote: > > thank you very much > > > > it works with mp3 good. But when I try with amr, it doens

Re: [PHP] post & redirect

2005-04-19 Thread Marek Kilimajer
jem777 wrote: Thanks, but I need to know the php behaviour indipendently from my web server. It's independent. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variabl

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Marek Kilimajer
QT wrote: thank you very much it works with mp3 good. But when I try with amr, it doenst work. I think first amr files put some time limit and player stop at time limit. Now I am looking to find how can I convert mp3 to amr. Because I need to have amr file at the end The mp3 file is technicaly brok

RE: [PHP] mp3 convert to amr

2005-04-19 Thread Jay Blanchard
[snip] how can I convert mp3 to amr with php? any document source? [/snip] You cannot with PHP, you will need to search for AMR converters on google -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
thank you very much it works with mp3 good. But when I try with amr, it doenst work. I think first amr files put some time limit and player stop at time limit. Now I am looking to find how can I convert mp3 to amr. Because I need to have amr file at the end best regards "Jay Blanchard" <[EMAIL PR

[PHP] mp3 convert to amr

2005-04-19 Thread QT
dear sirs, how can I convert mp3 to amr with php? any document source? best regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
hi, is it easy like this, I tried and works good. Shouldn't I need to handle something inside mp3? just easy to put each file together in the another file? Best Regards "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] any idea how can I join two mp3 file with p

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jason Barnett
Dasmeet Singh wrote: > Jay Blanchard wrote: >> [snip] >> echo (" $row[1] Location- $row[4] >> Property Type- $ptypeMin Price- $row[9] "); >> >> it gives an error.. >> >> Parse error: parse error, unexpected T_CLASS in >> /home/real/public_html/functions.php on line 162 >> >> Any idea..why? Prob

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Marek Kilimajer wrote: Dasmeet Singh wrote: Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 >

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 > > Any idea..why? Probab

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 > > Any idea..why? Probably any stupid mistake .. :( > [

RE: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jay Blanchard
[snip] echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably any stupid mistake .. :( [/snip] Takes the parentheses out. ec

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! When i try to run the following line: echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); The above line is fine. Check the lines above. it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php

[PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Hi! When i try to run the following line: echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably any stupid mistake .. :( - Fre

RE: [PHP] can I join two mp3 files with php

2005-04-19 Thread Jay Blanchard
[snip] any idea how can I join two mp3 file with php [/snip] if(!function_exists('file_put_contents')) { function file_put_contents($filename, $data, $file_append = false) { $fp = fopen($filename, (!$file_append ? 'w+' : 'a+')); if(!$fp) { trigger_error('file_put_contents cannot write

[PHP] can I join two mp3 files with php

2005-04-19 Thread QT
dear sir, any idea how can I join two mp3 file with php best regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Jay Blanchard
[snip] I can do that, but is there a better way? How do you all handle dynamic sorting of normalized DBs? [/snip] Normalization has no effect on sort order where any DB is concerned. Sort order is determined in the sort clause in the query. So if you want to sort by location and you are using MySQ

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Chris Boget
> I can do that, but is there a better way? How do you all handle > dynamic sorting of normalized DBs? Firstly, what DB are you using? Secondly, just select and sort on the columns. An example query would be: SELECT course.name, location.name, instructor.name FROM course INNER JOIN locat

[PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Leif Gregory
Hello php-general, I've been wrestling with this one for a bit and wanted to see if anyone had a nice magic bullet (yeah right) to do this. Let's just keep it simple (my DB is a bit more complex). We have a DB called Courses with three tables. Instructors - id name Locations id name C

Re: [PHP] explode a string

2005-04-19 Thread Jochem Maas
Petar Nedyalkov wrote: On Tuesday 19 April 2005 17:03, Jochem Maas wrote: Richard Lynch wrote: On Mon, April 18, 2005 4:34 am, Sebastian said: $string = '4:gaming,5:hardware,3:software,8:security'; $idcats = explode(',', $string); while (list(, $idcat) = each($idcats)){ list($id, $cat) = explode('

Re: [PHP] set cookie function problem

2005-04-19 Thread Marek Kilimajer
Ospinto wrote: ok...what does that have to do with my problem? The time is send in GMT, and your computer is set to GMT -7. So the cookie is set to expire in the past. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Ospinto wrote: Hi, Can someone help me with

Re: [PHP] set cookie function problem

2005-04-19 Thread Stephen Johnson
Nothing -- However - try adding a path to your cookie statement. It may not be the problem - but it has corrected this issue for me in the past. I.e : setcookie('myCookie',"blah",time()+3600, "/"); http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) contin

Re: [PHP] set cookie function problem

2005-04-19 Thread Ospinto
ok...what does that have to do with my problem? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ospinto wrote: > > Hi, > > Can someone help me with this problem? > > setcookie('myCookie',"blah"); > > works fine. but when i try to set it with an expiry time,

Re: [PHP] set cookie function problem

2005-04-19 Thread Marek Kilimajer
Ospinto wrote: Hi, Can someone help me with this problem? setcookie('myCookie',"blah"); works fine. but when i try to set it with an expiry time, it doesn't. setcookie('myCookie',"blah",time()+3600); I have cookies enabled on my browser of course. And the way I know the second statement is not work

[PHP] set cookie function problem

2005-04-19 Thread Ospinto
Hi, Can someone help me with this problem? setcookie('myCookie',"blah"); works fine. but when i try to set it with an expiry time, it doesn't. setcookie('myCookie',"blah",time()+3600); I have cookies enabled on my browser of course. And the way I know the second statement is not working is cos I'm

RE: [PHP] post & redirect

2005-04-19 Thread Jay Blanchard
[snip] If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? [/snip] Nope. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Christopher Fulton
> I did, the problem is the client is on a box with mySql 3.23.x or 4.0.x, he > is deciding to upgrade to a dedicated box but then the host he is looking at > says they will charge him if they are to upgrade to mysql 4.1 (hence i cant > even use sub-selects) > (Sorry I didnt mention the MySql versi

Re: [PHP] post & redirect

2005-04-19 Thread jem777
Thanks, but I need to know the php behaviour indipendently from my web server. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > jem777 wrote: > > If I submit a post and then, serverside, I redirect the request to another > > page, do the post variables still live in the

Re: [PHP] post & redirect

2005-04-19 Thread John Nichel
jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? Thanks, Jem777 Try it. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] post & redirect

2005-04-19 Thread jem777
If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? Thanks, Jem777 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions - going back in browser

2005-04-19 Thread Greg Donald
On 4/19/05, Craig Donnelly <[EMAIL PROTECTED]> wrote: > I had an issue that I needed to be able to go back in the browser while in a > session without getting "page has expired", I was reading through the manual > and came across a comment about adding the following to the sessions page to > allow

[PHP] Re:^^

2005-04-19 Thread Craig Donnelly
So now the page "expires" Any help appreciated. "Craig Donnelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I had an issue that I needed to be able to go back in the browser while in a > session without getting "page has expired", I was reading through the manual >

[PHP] Sessions - going back in browser

2005-04-19 Thread Craig Donnelly
Hello, I had an issue that I needed to be able to go back in the browser while in a session without getting "page has expired", I was reading through the manual and came across a comment about adding the following to the sessions page to allow users to traverse back: header("Cache-control: privat

Re: [PHP] foreach sorting

2005-04-19 Thread Philip Hallstrom
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' => 'Games', '/news' => 'News'); foreach ($tabarray AS $loc => $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= ''.$item.' } else { $tabmenulist .=

[PHP] Re: mailing lists

2005-04-19 Thread pete M
check out hotscripts.com Clive Zagno wrote: Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] get_parent_class-certification

2005-04-19 Thread blackwater dev
Hello, Running this code in Zend studio returns string(3) "mom"; class grandparent{ }; class mom extends grandparent{ }; class son extends mom{ }; echo var_dump(get_parent_class("son")); However, the Zend certification book has a question like this and says it should return grandparent...which

[PHP] foreach sorting

2005-04-19 Thread Sebastian
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' => 'Games', '/news' => 'News'); foreach ($tabarray AS $loc => $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= ''.$item.' } else { $tabm

Re: [PHP] Re: mailing lists

2005-04-19 Thread Clive Zagno
Hi i should of added, that it shoud preferable be free and opensource. I found these guys http://www.webinsta.com seem to be what i want, unless anyones got some comments. clive Mike Hummel wrote: Sonic Mail Pro is very usable, and very easy to setup. I have some very non-technical clients using

Re: [PHP] Last visitors

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 17:42, Tom Crimmins wrote: > On Tuesday, April 19, 2005 09:09, John Nichel wrote: > > Petar Nedyalkov wrote: > > > > > >> You can store only 10 records for each user by using the following > >> logic: > >> > >> mysql> show create table profile_log\G > >> **

[PHP] Re: Images - Converting TIFF Format?

2005-04-19 Thread Mike Hummel
http://www.imagemagick.org/script/index.php The Disguised Jedi wrote: Is there a quick way to convert a TIFF format picture to a GIF quickly? I can only find support for GIFs in PHP, but maybe I'm missing something. I have a client running a photography business, and I have designed an image wat

[PHP] Re: mailing lists

2005-04-19 Thread Mike Hummel
Sonic Mail Pro is very usable, and very easy to setup. I have some very non-technical clients using it effectively. http://www.sensationdesigns.com/products/scripts/smpro/index.php Clive Zagno wrote: Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List (http://w

Re: [PHP] Last visitors

2005-04-19 Thread Tom Crimmins
On Tuesday, April 19, 2005 09:09, John Nichel wrote: > Petar Nedyalkov wrote: > >> You can store only 10 records for each user by using the following >> logic: >> >> mysql> show create table profile_log\G >> *** 1. row *** >> Table: profile

Re: [PHP] mailing lists

2005-04-19 Thread John Nichel
Clive Zagno wrote: Please turn of your request for read receipts when sending to a mailing list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Images - Converting TIFF Format?

2005-04-19 Thread The Disguised Jedi
Is there a quick way to convert a TIFF format picture to a GIF quickly? I can only find support for GIFs in PHP, but maybe I'm missing something. I have a client running a photography business, and I have designed an image watermark and resizing engine, and a server to check the request, serve t

[PHP] mailing lists

2005-04-19 Thread Clive Zagno
Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Ryan A
Hey, Thanks for replying. > Check my reply. I did, the problem is the client is on a box with mySql 3.23.x or 4.0.x, he is deciding to upgrade to a dedicated box but then the host he is looking at says they will charge him if they are to upgrade to mysql 4.1 (hence i cant even use sub-selects) (S

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Mike Hummel
just do a select limit 11 display up to 11... if less then 11, you might want to display them anyways. you should be able to deal with up to a million + records, so select will stay quick, esp if you make the right fields indexed. you can take care of purging via crons... you might find you want

  1   2   >