RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Martin Towell
What about (just a slight change...)? $found = 0; while ($mydata = mysql_fetch_object($news)) { if ($mydata->StudentId == $StudentId) {$found = 1; break;} } if ($found==1){do this}else{do that} at least this way you

Re: [PHP] host name

2003-08-15 Thread viraj
echo $HTTP_HOST; did the job perfectly thanks Justin Viraj Quoting Justin French <[EMAIL PROTECTED]>: > > > > > Have a look at the output, find the variable you need, then manipulate > it if needed. > > Justin French > > On Friday, August 15, 2003, at 01:32 PM, [EMAIL PROTECTED] w

[PHP] php, search engine that index via local filesystem?

2003-08-15 Thread Louie Miranda
Do you know any? --- - Thanks, Louie Miranda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
How can I get the last day for the current month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php, search engine that index via local filesystem?

2003-08-15 Thread [EMAIL PROTECTED]
Hi, Do you want to provide a web interface to your local file system? well the easiest would then be to just exec locate, which will make use of the slocate db. Alternatively you can try to exec find. These can be done painlessly and you don't have to install any software. If you need a more s

RE: [PHP] php, search engine that index via local filesystem?

2003-08-15 Thread Ralph Guzman
Might want to take a look at: http://www.htdig.org/ Using the PHP wrapper class: http://sourceforge.net/projects/htphp/ -Original Message- From: Louie Miranda [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 12:42 AM To: [EMAIL PROTECTED] Subject: [PHP] php, search engine that i

[PHP] Turck MMCache Feedback, Please

2003-08-15 Thread aka MacGuru
Hi, I am going to use Turck MMCache with Encoder. Anyone on the list have used it on Linux, MacOS X, Windows? Any caveats and/or side effect? Your feedback will be greatly appreciated. Thanks in advance. * * Best Regards --- Andrei Verovski * *

Re: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
rgds. Quoting Ralph Guzman <[EMAIL PROTECTED]>: > How can I get the last day for the current month? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- Sign Up for f

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
wow. I missed that one in the manual. I guess it's time for me to call it a night. Thanks. -Original Message- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List Subject: Re: [PHP] LAST DAY OF MONTH rgds. Quotin

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
I just noticed, this will give me total days for current month. But let's say I want to look up the total days for another month? -Original Message- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List Subject: Re: [PHP

[PHP] Directory Size

2003-08-15 Thread Chris Blake
Greetings learned PHP(eople); Is there a way to calculate the size of directory in PHP ? I searched php.net and only found ways of opening directories and reading file sizes One suggestion on there was to do the following : $mstrng = shell_exec('du -sc /backup/'); echo '' . $mstrng . ''; W

Re: [PHP] How to Select

2003-08-15 Thread Kae Verens
John Taylor-Johnston wrote: Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to check in StudentId. If it exists, ... Anyone good humoured who would help me fill in the blank. Like I should know this, but haven't even thought of coding SQL in a while :) $myconnec

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
play with mktime to get the months that you want. the code snippet below is for July 2003: --- start code --- "; print "and that WAS on ".date("D",$xMonths); ?> --- end code --- rgds. Quoting Ralph Guzman <[EMAIL PROTECTED]>: > wow. I missed that one in the manual. I guess it's time for me to

[PHP] saving mail attachment to another server

2003-08-15 Thread Sn!per
i am using Horde's IMP. i am playing with the idea of saving mail attachment(s) into another server. the mail server is like mail.example.com on server-A and the 2nd server is like photos.example.com on server-B. is this _normally_ done with cURL and/or snoopy ? appreciate some guidelines. rgd

Re: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Justin French
I *think* if you feed it the unix timestamp for the 1st day of the month, it will give you the last day, *untested* though. Justin On Friday, August 15, 2003, at 06:40 PM, Ralph Guzman wrote: I just noticed, this will give me total days for current month. But let's say I want to look up the t

[PHP] images with gd for printing?

2003-08-15 Thread Merlin
Hi there, I want to create images with GD and freetype ttf which are good enough for printing .. about 150 dpi. Does anybody know how to output the jpg with a higher resolution and a determined output size? Thanx in advance, merlin -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] How to get data from database with a click

2003-08-15 Thread Subodh Gupta
Dear Friends, When we click a combo box, in a perticular file, the output from the database should display in the same screen, in a text box or a combo box (We want this to happen without pressing the submit button). Any clue please Subodh -Original Message- From: [EMAIL PROTECTED]

Re: [PHP] Directory Size

2003-08-15 Thread Marek Kilimajer
Are you sure it hangs? It might take a long time to get occupied size. This also depends on the filesystem used, I heard reserfs is best at this. Chris Blake wrote: Greetings learned PHP(eople); Is there a way to calculate the size of directory in PHP ? I searched php.net and only found ways of

Re: [PHP] How to Select

2003-08-15 Thread Marek Kilimajer
$news = mysql_query("select StudentId FROM $table"); if($mydata=mysql_fetch_object($news)) { //got it } else { // no such StudentId } John Taylor-Johnston wrote: Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to check in StudentId. If it exists,

Re: [PHP] Directory Size

2003-08-15 Thread Chris Blake
On Fri, 2003-08-15 at 12:36, Marek Kilimajer wrote: > Are you sure it hangs? It might take a long time to get occupied size. > This also depends on the filesystem used, I heard reserfs is best at this. > Well, I thought it was hanging cuz 15 mins went past without any return...then I figured it h

[PHP] regex problem

2003-08-15 Thread Merlin
Hi there, I have a regex problem. Basicly I do not want to match: /dir/test/contact.html But I do want to match: /test/contact.html I tryed this one: ^[!dir]/(.*)/contact(.*).html$ but it does not work and I tryed thousands of other ways plus read tutorials. Can anybody please help? Thanx i

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Jay Blanchard
[snip] $found = 0; while ($mydata = mysql_fetch_object($news)) { if ($mydata->StudentId == $StudentId) {$found = 1; break;} } if ($found==1){do this}else{do that} [/snip] Why two if's? Isn't if the student is found i

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: Hi there, I have a regex problem. Basicly I do not want to match: /dir/test/contact.html But I do want to match: /test/contact.html I tryed this one: ^[!dir]/(.*)/contact(.*).html$ but it does not work and I tryed thousands of other ways plus read tutorials. Can anybody please hel

[PHP] Re: images with gd for printing?

2003-08-15 Thread Kae Verens
Merlin wrote: Hi there, I want to create images with GD and freetype ttf which are good enough for printing .. about 150 dpi. Does anybody know how to output the jpg with a higher resolution and a determined output size? Thanx in advance, merlin output an image with dimensions, say, 320x200, but

RE: [PHP] How to get data from database with a click

2003-08-15 Thread Jay Blanchard
[snip] When we click a combo box, in a perticular file, the output from the database should display in the same screen, in a text box or a combo box (We want this to happen without pressing the submit button). Any clue please [/snip] You appear to be looking for something called Javascript. P

[PHP] Re: regex problem

2003-08-15 Thread Merlin
> ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? --