Jay Blanchard wrote:
if($string == 'test/contact.html')
it could be
if($string == "test/contact.html")
not to start a flame war or anything, but isn't the apostrophe version
quicker, as it doesn't ask the server to parse the string?
Kae
--
PHP General Mailing List (http://www.php.net/)
To unsu
ufff.. sorry guys, but I have to explain that better. I appreciate your
help, maybe I did not give enough info.
I am trying to redirect with apache modrewrite. To do this you have to use
regex (not if functions:-)
My problem is, that there are member accounts which look like that:
membername/con
"select * from 'news' where 'date' between '$date_begin' and '$date_last'";
i hope this code is ok?
my english is very poor !
- Original Message -
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 5:36 PM
Subject: [PHP] searching date
On 15 August 2003 12:02, 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$
Well, that's not going to work because the con
[snip]
> if($string = 'test/contact.html')
That's
if($string == 'test/contact.html')
of course... :)
[/snip]
it could be
if($string == "test/contact.html")
couldn't resist :)
Jay
P.S. John, nothing on that thing yet.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
John W. Holmes wrote:
Merlin wrote:
^\/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?
Are you making this too hard?
if($string = 'test/contact.html')
Merlin wrote:
^\/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?
*sigh*
^test\/contact.html$
Kae
--
PHP General Mailing List (http://www.php.net/)
To u
[snip]
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
[/snip]
http://us3.php.net/image
You could set the color index and the loop through (while incrementing)
each new i
Hi all!
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
Any help or suggestions would be really helpful.
Thanks
Adrian
[EMAIL PROTECTED]
[snip]
I have been trying to log some data to an xml file. Whta my problem is
now
is that the tag needs to be either replaced (overwritten) or i
need to
get the data in before EOF-1. I have spend some time on the manual, but
could not find out hoe exactly i should get the last row and then move
on
Hi,
> $found =3D 0;
> while ($mydata =3D mysql_fetch_object($news))
> {
> if ($mydata->StudentId =3D=3D $StudentId)
> {$found =3D 1; break;}
> }
>
> if ($found=3D=3D1){do this}else{do that}
Why not re-oganise your SQL statement s
Merlin wrote:
^\/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?
Are you making this too hard?
if($string = 'test/contact.html')
{ echo 'good'; } else {
Hi there.
I have been trying to log some data to an xml file. Whta my problem is now
is that the tag needs to be either replaced (overwritten) or i need to
get the data in before EOF-1. I have spend some time on the manual, but
could not find out hoe exactly i should get the last row and then mov
> ^\/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?
--
[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
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
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
[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
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
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
$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,
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
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]
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
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
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
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
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
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
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
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
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
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
*
*
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
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
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
Do you know any?
--- -
Thanks,
Louie Miranda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
101 - 139 of 139 matches
Mail list logo