Re: [PHP] $date("l-m");

2005-06-04 Thread Sebastian
is it possible for $mydata->lastinsalled to have -MM-DD format? ie: 
2004-05-31


you can use strtotime to convert it to unix timestamp to 
compare...something like this:


$stamp = strtotime('2004-06-31'); // $mydata->lastinsalled

if($stamp >= strtotime('1 year ago'))
{
   echo 'less than 1 year';
}
else
{
   echo 'over 1 year';
}

otherwise its impossible to tell if it is over one year without knowing 
the day as well.. unless you guess and figure on the first of the month..


John Taylor-Johnston wrote:


$mydata->lastinsalled = "2004-05";

How can I determne if $mydata->lastinsalled is one year or more older 
than the current $date("l-m");


Anyting simple and over looked? I have been browsing the manual::
http://ca.php.net/manual/en/function.strtotime.php
http://ca.php.net/manual/en/function.date.php

John



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] $date("l-m");

2005-06-04 Thread John Taylor-Johnston

$mydata->lastinsalled = "2004-05";

How can I determne if $mydata->lastinsalled is one year or more older 
than the current $date("l-m");


Anyting simple and over looked? I have been browsing the manual::
http://ca.php.net/manual/en/function.strtotime.php
http://ca.php.net/manual/en/function.date.php

John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] extended charsets

2005-06-04 Thread Philip Washington
We have 2 different linux servers running apache and php. On one of the 
servers the information pulled from the data show degree symbols or 
greek lettering, which are supposed to be there.  On the other server 
the  places where these symbols are supposed to appear shows blank 
spaces.  One server is RHEL3 the other RHEL4.
I am not that familiar with charsets and how they interact with apache 
and php.  I'd appreciate any help in trying to figure out where this 
problem is or what I should be looking for.  Both systems pulling from 
the same database and displaying different information.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Deerpark (aka Firefox 1.1 alpha) URI's and PHP

2005-06-04 Thread Richard Lynch
On Sat, June 4, 2005 3:53 am, Chris Drozdowski said:
> Will PHP scripts that work properly with the current version (1.0.4) of
> Firefox need to be modified for the feature detailed below in Firefox
> 1.1?
>
> See:
> http://www.mozilla.org/projects/deerpark/new-web-dev-features.html
>
> "URIs always sent as UTF8
>
> URIs are now always sent to the server as UTF8, regardless of the
> linking page's encoding. This fixes images and links on sites with
> non-ASCII filenames."

AIUI, UTF-8 is a super-set of ASCII.

So if your filenames are all ASCII, you're fine.

If you've been using funky characters like umlauts and they've been
magically working, you could be in trouble...

At least, that's my best guess.

-- 
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



Re: [PHP] mozilla & urlencode

2005-06-04 Thread John Taylor-Johnston

This works: "District of St. Francis"

http://www.glquebec.org/tezt.php#District+of+St.+Francis


This does not: "Montréal District #2"

http://www.glquebec.org/tezt.php#Montr%E9al+District+%232


I'm beginning to see the problem lies with the French character "é". I 
don't see it being #. In any case, I cannot change existing fields. How 
can I get this working?


Pablo Gosse wrote:

I'm not sure, but I see two things that might be causing this. First, 
why are spaces, which should be translated as %20, being represented 
as a '+'?


Second, you have a # in the actual bookmark name, which I would assume 
is not valid since the # denotes the beginning of a bookmark. So 
perhaps IE compensates for this, but Mozilla reads the bookmark as 
looking for  because of the #4 at the end of the 
bookmark name.


I generate the link using urlencode.

   if ("" != $mydata->district){
   echo " - href=\"#".urlencode($mydata->district)."\">$mydata->district";

   }else{
   echo "";
   }

The link is named:

  echo "name=\"".urlencode($mydata->district)."\">$mydata->district\n"; 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] url by mail

2005-06-04 Thread Mark Cain
$lines = file('http://www.example.com/');

foreach ($lines as $line) {
   echo $line  . "\n";
}

This ought to do it.  Try it and see.

But be aware that if the "allow_url_fopen" was not enable at the compile
time, this won't work.

Mark Cain

- Original Message -
From: "vlad georgescu" <[EMAIL PROTECTED]>
To: "php-general" 
Sent: Saturday, June 04, 2005 1:54 PM
Subject: [PHP] url by mail


how can i send a webpage by mail ?
i'v tryed something like that
 $fd = fopen ($url, "r");
$contents = fread($fd, 102400);
print $contents;
fclose ($fd);
 mail($adr,$url,$contents);

 but the message is blank  :(

what's the problem ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] about PHP Graphic .

2005-06-04 Thread Richard Lynch
On Sat, June 4, 2005 3:47 am, NeginGostar.com :: Administrator said:
> I want know about PHP Graphic .
> I want use graphic in php but i cant setup GD library , in my server
> My Server is Windows 2003
> and i want install graphic in php

First, make a PHP file with  in it, and surf to it.

Then, find php.ini in that.

Then, if your php.ini file is not in that location, move it there.

Finally, uncomment the line with php_gd.dll (or similar) in it.

Oh, and re-start Apache to get php.ini re-read.

-- 
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



RE: [PHP] dynamic drop down

2005-06-04 Thread Danny Brow
On Wed, 2005-06-01 at 11:49 +0100, Mark Rees wrote:
> The dropdown list is on the client (browser). Javascript runs on the
> client. PHP runs on the server. 
> 
> You have 2 options 
> 
> - one is to do as Richard says and use javascript to change the contents
> of one select box when an option is selected in another. 
> - the other is to refresh the page when the option is selected and write
> different data into the second select box based on the option selected.
> This is a question of using echo and iterating through the data you wish
> to output.
> 
> 


So how do you refresh the page when the drop down is selected? 

Thanks,
Dan.

> -Original Message-
> From: Danny Brow [mailto:[EMAIL PROTECTED] 
> Sent: 01 June 2005 07:08
> To: PHP-Users
> Subject: Re: [PHP] dynamic drop down
> 
> 
> On Tue, 2005-05-31 at 22:08 -0700, Richard Lynch wrote:
> > On Tue, May 31, 2005 8:48 pm, Danny Brow said:
> > > Could someone point me to an example with code for dynamic drop 
> > > downs in PHP? I would like to be able to have drop downs like 
> > > "Select Country" and another drop down show the states/provinces 
> > > based on the selected country.
> > 
> > Well, the "dynamic" part of it isn't gonna be in PHP at all ; It's 
> > gonna be JavaScript.
> 
> I thought I'd have to use JS, but was hoping someone knew a way to do it
> with PHP.
> 
> 
> > You can Google for "JavaScript dynamic menus" to find what you want.  
> > Then you just need to use PHP to spew out the JavaScript you want to 
> > spew out, but that's no different than spewing out the HTML you want 
> > to spew out, really.
> 
> Tons on google, thanks,
> 
> Dan.
> 
> Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, 
> Cisco, Sun Microsystems, 3Com
> 
> GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND REGISTERED FOR 
> ISO 9001:2000 CERTIFICATION
> 
> **
> 
> CONFIDENTIALITY NOTICE:
> 
> This Email is confidential and may also be privileged. If you are not the
> intended recipient, please notify the sender IMMEDIATELY; you should not
> copy the email or use it for any purpose or disclose its contents to any
> other person.
> 
> GENERAL STATEMENT:
> 
> Any statements made, or intentions expressed in this communication may not
> necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no 
> content
> herein may be held binding upon Gamma Global (UK) Ltd or any associated 
> company
> unless confirmed by the issuance of a formal contractual document or
> Purchase Order,  subject to our Terms and Conditions available from 
> http://www.gammaglobal.com
> 
> E&OE
> 
> **
> **
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Marek Kilimajer

Ryan A wrote:

Hey,
Thanks for replying.



Since its a forum and she is not doing any advertising its important the


search engines index the site


properly or shes going to have a big forum with no visitors. Then I read


that the search engines dont like


frames muchso I was thinking of using iframes and then I read about


the "evils" of iframes...so I thought


I'll ask you guys for your opinions/suggestions as I'm dead outa ideas


and a bit confused...any alternate ideas


too would be appreciated.




As a compromise solution, you could greet visitors to the forum with a
welcoming 'splash' page that displays your flash animation etc (please,
please put a 'skip intro' link for the sake of repeat visitors) and then
pass to your forum page(s).



Hehe, not too many people here who like flash eh?
Have a look at the flash file and tell me what you think...it will be on the
top part of the page:
http://a2ztips.com/a2ztips/forum/test/test1.swf
as you can see I cant really make that as an intro file and then skip to the
forum




You could even put a static jpg at the top of
the forum of the final image (ie once all that funky animation has played
out) of your flash file, if you want to carry it over for a consistent
look / feel.



Thats a good idea, problem is the links for the navigation is on the flash
file
(http://a2ztips.com/a2ztips/forum/test/test1.swf  - not yet linked)


weird, I see only white screen.

certainly, iframe will not help you. iframe is loaded each time together 
with the main page, so the flash will play anyway.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] url by mail

2005-06-04 Thread vlad georgescu
how can i send a webpage by mail ?
i'v tryed something like that
 $fd = fopen ($url, "r");
$contents = fread($fd, 102400);
print $contents;
fclose ($fd);
 mail($adr,$url,$contents);
 
 but the message is blank  :(

what's the problem ?


Re: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread JamesBenson
You could write a script which uses a cookie to remember which users 
have seen the animation or not, I personally wouldnt use frames but 
thats just my opinion.






Ryan A wrote:

On 6/4/2005 5:30:14 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:


Ryan A wrote:


I had a real good flash header which she too liked, so I modified the


header


and she really liked it,
problem is, its around 230kb to load, so I thought


I'll put it in a frame


(top frame -> header,
bottom frame-> content and forum) so the flash part won't


reload on each


page request.


.swf files are not cached by the browsers? Seems they are, so you don't
need to care about frames. Simply output the html needed to load the
flash file each time, the flash will be downloaded only once.



Hey,
Thanks for replying.

Yep, but the animation and the intro music will play each time...which I am
guessing can
be quite irritating.

Cheers,
Ryan




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Mark Cain
perhaps you can change the swf to non-play state with a JavaScript on all of
the pages other than the first one.

in the swf OBJECT tag have the following "id" tag:
id="test1"

in the EMBED tag have the following "name" tag:
NAME="test1"

in the body of all pages other than the first



Somewhere in the HEAD place the following javascript function:



function getFlashMovieObject() {
   if (navigator.appName.indexOf("Microsoft Internet")!=-1)  {
 return window.test1;
   } else {
 return window.document.test1;
 }
}

function StopFlashMovie()
{
 var flashMovie=getFlashMovieObject();
 flashMovie.StopPlay();
}



Remember that if you change the name from "test1" to something else, it must
be change everywhere in the functions also.

HTH,

Mark Cain


- Original Message -
From: "Ryan A" <[EMAIL PROTECTED]>
To: "php" 
Sent: Saturday, June 04, 2005 11:19 AM
Subject: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A
rock and a hard place" etc) - - - -> (0T)


> Hey,
> The end of the world is at hand
> how do I know this? coz my mom wants her own site!
> My mom; the person who hated computers coz "those 'things' are too damn
> complicated"!
>
> Anyway, thought I'll do it for her to kind of repay a bit of carrying me
for
> whole 9 months,
> and tough delivery etc etc..dont know if its true coz I cant remember, but
> am taking her word
> for it...
> She wanted a small site with a forum on it, no problem there...I made it
for
> her using one of the
> free forums that members of this list suggested (thanks!) and now she has
> around 35 members
> so she wants a design to go with it instead of just going directly to the
> forum.
> Yesterday was her B'day so am doing it now :-p
>
> I had a real good flash header which she too liked, so I modified the
header
> and she really liked it,
> problem is, its around 230kb to load, so I thought I'll put it in a frame
> (top frame -> header,
> bottom frame-> content and forum) so the flash part won't reload on each
> page request.
>
> Since its a forum and she is not doing any advertising its important the
> search engines index the site
> properly or shes going to have a big forum with no visitors.
> Then I read that the search engines dont like frames muchso I was
> thinking of using iframes and
> then I read about the "evils" of iframes...so I thought I'll ask you guys
> for your opinions/suggestions
> as I'm dead outa ideas and a bit confused...any alternate ideas too would
be
> appreciated.
>
> Thanks and have a great weekend.
>
> Cheers,
> Ryan
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ampersands in href's

2005-06-04 Thread Leon Poon
The simplest way to make sure everything work well regardless of what the 
values are:


";
?>

htmlspecialchars() changes characters '&', '"', ''', '<', '>' into the HTML 
equivilant. And yup, you should do this for all *ML pages as long as the 
thing being printed is not part of the mark-up syntax.




Jack Jackson wrote:>

Rory Browne wrote:

On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:


Hi, Rory

Rory Browne wrote:


I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:




That's nice. To get more specific (because my code varies a bit from
yours and I don't wanna mess up the ) and ' and " s:
$p and $c are actually row ID numbers so up to 3 digits. So for example 
if


$p=1
$c=32

I was wanting to see a URL of

http://foo.com?r=1&c=32



In that case, you can simply echo them out, once you're sure that $r,
and $c are actually integers.


I forgot to mention that above I did $r = intval($_GET[r])

!



Thanks, everyone!


echo "whatever"

if not(sure they're integers, you could always
printf("http://foo.com?r=%d&c=%d\";>whatever", $r, $c);

Alternatively you could $r = (int)$r;

or echo "whatever";

There's more than one way to do it...


so was this the way to go?


//Make a thumbnail table of contents to display in the left sidebar

while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
   $sidebar_thumbnails[] = "";
  }

?

Thanks in advance!




On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:



Hi,

If I want to make a link to a URL which includes some GETs can I just 
do:


http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Ryan A
Hey,
Thanks for replying.

> > Since its a forum and she is not doing any advertising its important the
search engines index the site
> > properly or shes going to have a big forum with no visitors. Then I read
that the search engines dont like
> > frames muchso I was thinking of using iframes and then I read about
the "evils" of iframes...so I thought
> > I'll ask you guys for your opinions/suggestions as I'm dead outa ideas
and a bit confused...any alternate ideas
> > too would be appreciated.

> As a compromise solution, you could greet visitors to the forum with a
> welcoming 'splash' page that displays your flash animation etc (please,
> please put a 'skip intro' link for the sake of repeat visitors) and then
> pass to your forum page(s).

Hehe, not too many people here who like flash eh?
Have a look at the flash file and tell me what you think...it will be on the
top part of the page:
http://a2ztips.com/a2ztips/forum/test/test1.swf
as you can see I cant really make that as an intro file and then skip to the
forum


> You could even put a static jpg at the top of
> the forum of the final image (ie once all that funky animation has played
> out) of your flash file, if you want to carry it over for a consistent
> look / feel.

Thats a good idea, problem is the links for the navigation is on the flash
file
(http://a2ztips.com/a2ztips/forum/test/test1.swf  - not yet linked)

And if you are interested, heres the forum:
http://a2ztips.com/a2ztips/forum/

Thanks,
Ryan





-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Murray @ PlanetThoughtful
> Since its a forum and she is not doing any advertising its important the
> search engines index the site
> properly or shes going to have a big forum with no visitors.
> Then I read that the search engines dont like frames muchso I was
> thinking of using iframes and
> then I read about the "evils" of iframes...so I thought I'll ask you guys
> for your opinions/suggestions
> as I'm dead outa ideas and a bit confused...any alternate ideas too would
> be
> appreciated.

As a compromise solution, you could greet visitors to the forum with a
welcoming 'splash' page that displays your flash animation etc (please,
please put a 'skip intro' link for the sake of repeat visitors) and then
pass to your forum page(s). You could even put a static jpg at the top of
the forum of the final image (ie once all that funky animation has played
out) of your flash file, if you want to carry it over for a consistent look
/ feel.

Regards,

Murray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Ryan A
Hey,

> >>.swf files are not cached by the browsers? Seems they are, so you
> don't
> >>need to care about frames. Simply output the html needed to load the
> >>flash file each time, the flash will be downloaded only once.
..
> > Yep, but the animation and the intro music will play each time...which I
am
> > guessing can
> > be quite irritating.
..
> It's
> very irritating everytime, even the first time. And it might very
> well be the reason why it's also the last time.


:-) its for a womens sitemostly beauty tips, household tips and whatever
else they talk about,
so I dont think they will find it too irritating...the first time, but if it
keeps reloading I'm pretty
sure they will get p!ssedso back to the main qframes? iframes?
something else? what?

Thanks,
Ryan



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Marek Kilimajer

Ryan A wrote:

On 6/4/2005 5:30:14 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:


Ryan A wrote:


I had a real good flash header which she too liked, so I modified the


header


and she really liked it,
problem is, its around 230kb to load, so I thought


I'll put it in a frame


(top frame -> header,
bottom frame-> content and forum) so the flash part won't


reload on each


page request.


.swf files are not cached by the browsers? Seems they are, so you don't
need to care about frames. Simply output the html needed to load the
flash file each time, the flash will be downloaded only once.



Hey,
Thanks for replying.

Yep, but the animation and the intro music will play each time...which I am
guessing can
be quite irritating.


It's very irritating everytime, even the first time. And it might very 
well be the reason why it's also the last time.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Ryan A

On 6/4/2005 5:30:14 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
> Ryan A wrote:
> >
> > I had a real good flash header which she too liked, so I modified the
> header
> > and she really liked it,
> > problem is, its around 230kb to load, so I thought
> I'll put it in a frame
> > (top frame -> header,
> > bottom frame-> content and forum) so the flash part won't
> reload on each
> > page request.
>
> .swf files are not cached by the browsers? Seems they are, so you don't
> need to care about frames. Simply output the html needed to load the
> flash file each time, the flash will be downloaded only once.

Hey,
Thanks for replying.

Yep, but the animation and the intro music will play each time...which I am
guessing can
be quite irritating.

Cheers,
Ryan


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Marek Kilimajer

Ryan A wrote:


I had a real good flash header which she too liked, so I modified the header
and she really liked it,
problem is, its around 230kb to load, so I thought I'll put it in a frame
(top frame -> header,
bottom frame-> content and forum) so the flash part won't reload on each
page request.


.swf files are not cached by the browsers? Seems they are, so you don't 
need to care about frames. Simply output the html needed to load the 
flash file each time, the flash will be downloaded only once.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Frames or iframes? (Basically "The devil or deap sea" or "A rock and a hard place" etc) - - - -> (0T)

2005-06-04 Thread Ryan A
Hey,
The end of the world is at hand
how do I know this? coz my mom wants her own site!
My mom; the person who hated computers coz "those 'things' are too damn
complicated"!

Anyway, thought I'll do it for her to kind of repay a bit of carrying me for
whole 9 months,
and tough delivery etc etc..dont know if its true coz I cant remember, but
am taking her word
for it...
She wanted a small site with a forum on it, no problem there...I made it for
her using one of the
free forums that members of this list suggested (thanks!) and now she has
around 35 members
so she wants a design to go with it instead of just going directly to the
forum.
Yesterday was her B'day so am doing it now :-p

I had a real good flash header which she too liked, so I modified the header
and she really liked it,
problem is, its around 230kb to load, so I thought I'll put it in a frame
(top frame -> header,
bottom frame-> content and forum) so the flash part won't reload on each
page request.

Since its a forum and she is not doing any advertising its important the
search engines index the site
properly or shes going to have a big forum with no visitors.
Then I read that the search engines dont like frames muchso I was
thinking of using iframes and
then I read about the "evils" of iframes...so I thought I'll ask you guys
for your opinions/suggestions
as I'm dead outa ideas and a bit confused...any alternate ideas too would be
appreciated.

Thanks and have a great weekend.

Cheers,
Ryan




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 6/4/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ampersands in href's

2005-06-04 Thread Jack Jackson



Rory Browne wrote:

On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:


Hi, Rory

Rory Browne wrote:


I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:




That's nice. To get more specific (because my code varies a bit from
yours and I don't wanna mess up the ) and ' and " s:
$p and $c are actually row ID numbers so up to 3 digits. So for example if

$p=1
$c=32

I was wanting to see a URL of

http://foo.com?r=1&c=32



In that case, you can simply echo them out, once you're sure that $r,
and $c are actually integers.


I forgot to mention that above I did $r = intval($_GET[r])

!



Thanks, everyone!


echo "whatever"

if not(sure they're integers, you could always
printf("http://foo.com?r=%d&c=%d\";>whatever", $r, $c);

Alternatively you could $r = (int)$r;

or 


echo "whatever";

There's more than one way to do it...


so was this the way to go?


//Make a thumbnail table of contents to display in the left sidebar

while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
   $sidebar_thumbnails[] = "";
  }

?

Thanks in advance!




On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:



Hi,

If I want to make a link to a URL which includes some GETs can I just do:

http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ampersands in href's

2005-06-04 Thread Marek Kilimajer

Jack Jackson wrote:



Murray @ PlanetThoughtful wrote:

If I want to make a link to a URL which includes some GETs can I just 
do:






Depends very much on the document type of your page. Valid XHTML
(transitional, at least), for example, doesn't like single ampersands 
in 
href=> links. For XHTML, you need to replace "&"s with "&"s.

So the following link:

Something

...should be changed to:

Something



Thank you Murray. The page is in xhtml  1.0/transitional. That was 
precisely what I was worried about. The & will be converted as part 
of the URL right? I mean, the printed URL resulting from clicking on 
that link won't say & it'll just say & is this correct? Combined 
with Rory's post this is really, really useful stuff and I thank you !




You should use & for all document types, not only xhtml

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ampersands in href's

2005-06-04 Thread Jack Jackson



Murray @ PlanetThoughtful wrote:

If I want to make a link to a URL which includes some GETs can I just do:




Depends very much on the document type of your page. Valid XHTML
(transitional, at least), for example, doesn't like single ampersands in  links. For XHTML, you need to replace "&"s with "&"s.

So the following link:

Something

...should be changed to:

Something


Thank you Murray. The page is in xhtml  1.0/transitional. That was 
precisely what I was worried about. The & will be converted as part 
of the URL right? I mean, the printed URL resulting from clicking on 
that link won't say & it'll just say & is this correct? Combined 
with Rory's post this is really, really useful stuff and I thank you !


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ampersands in href's

2005-06-04 Thread Rory Browne
On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> Hi, Rory
> 
> Rory Browne wrote:
> > I think you have the idea. The &'s are used to seperate the various
> > variables. If you want to set $p to something like 'Tom & Jerry' then
> > personally I'd do something like:
> >
> >  >
> > $p = "Tom & Jerry";
> > $s = "Cat & Mouse";
> > printf(" > urlencode($s));
> >
> > ?>
> >
> 
> That's nice. To get more specific (because my code varies a bit from
> yours and I don't wanna mess up the ) and ' and " s:
> $p and $c are actually row ID numbers so up to 3 digits. So for example if
> 
> $p=1
> $c=32
> 
> I was wanting to see a URL of
> 
> http://foo.com?r=1&c=32
> 
In that case, you can simply echo them out, once you're sure that $r,
and $c are actually integers.
echo "whatever"

if not(sure they're integers, you could always
printf("http://foo.com?r=%d&c=%d\";>whatever", $r, $c);

Alternatively you could $r = (int)$r;

or 

echo "whatever";

There's more than one way to do it...
> so was this the way to go?
> 
> 
>  //Make a thumbnail table of contents to display in the left sidebar
> 
>  while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
> $sidebar_thumbnails[] = " href='{$_SERVER['PHP_SELF']}?p=%p&c={$sidebar['art_id']}, urlencode($p)'
> title=\"{$sidebar['art_title']}\"> src='{$image_dir}{$sidebar['art_thumbnail']}' width='50' height='60'
> border='0' alt=\"{$sidebar['art_title']}\" />";
>}
> 
> ?
> 
> Thanks in advance!
> 
> 
> > On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> >
> >>Hi,
> >>
> >>If I want to make a link to a URL which includes some GETs can I just do:
> >>
> >> >>
> >>or must I escape the ampersand somehow?
> >>
> >>TIA,
> >>--Jack
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] ampersands in href's

2005-06-04 Thread Murray @ PlanetThoughtful
> If I want to make a link to a URL which includes some GETs can I just do:
> 
>  
> or must I escape the ampersand somehow?

Depends very much on the document type of your page. Valid XHTML
(transitional, at least), for example, doesn't like single ampersands in  links. For XHTML, you need to replace "&"s with "&"s.

So the following link:

Something

...should be changed to:

Something

Regards,

Murray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ampersands in href's

2005-06-04 Thread Jack Jackson

Hi, Rory

Rory Browne wrote:

I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:
 


$p = "Tom & Jerry";
$s = "Cat & Mouse";
printf("



That's nice. To get more specific (because my code varies a bit from 
yours and I don't wanna mess up the ) and ' and " s:

$p and $c are actually row ID numbers so up to 3 digits. So for example if

$p=1
$c=32

I was wanting to see a URL of

http://foo.com?r=1&c=32

so was this the way to go?


//Make a thumbnail table of contents to display in the left sidebar

while ($sidebar = mysql_fetch_assoc($sidebar_result)) {
	$sidebar_thumbnails[] = "href='{$_SERVER['PHP_SELF']}?p=%p&c={$sidebar['art_id']}, urlencode($p)' 
title=\"{$sidebar['art_title']}\">src='{$image_dir}{$sidebar['art_thumbnail']}' width='50' height='60' 
border='0' alt=\"{$sidebar['art_title']}\" />";

  }

?

Thanks in advance!



On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:


Hi,

If I want to make a link to a URL which includes some GETs can I just do:

http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ampersands in href's

2005-06-04 Thread Rory Browne
I think you have the idea. The &'s are used to seperate the various
variables. If you want to set $p to something like 'Tom & Jerry' then
personally I'd do something like:



On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> If I want to make a link to a URL which includes some GETs can I just do:
> 
>  
> or must I escape the ampersand somehow?
> 
> TIA,
> --Jack
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ampersands in href's

2005-06-04 Thread Jack Jackson

Hi,

If I want to make a link to a URL which includes some GETs can I just do:

http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] autocomplete a field

2005-06-04 Thread Burhan Khalid

xfedex wrote:

Hi,

Anyone know if theres a way to disable this feature for user using old 
browsers or not suporting JS/XML?


Look up 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] htmlArea - a 'client editor'

2005-06-04 Thread M Saleh EG
www.FCKEditor.net 
FCKEditor is the best i've ever seen. 
Check it out.
 
 On 6/3/05, Rory Browne <[EMAIL PROTECTED]> wrote: 
> 
> htmlArea afaik only works on MSIE 5+. It doesn't work on 
> Mozilla/Firefox/etc.
> 
> On 6/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Ryan A:
> > Do you mean htmlArea?
> >
> > http://www.dynarch.com/projects/htmlarea/
> >
> > .. we used htmlArea in one of our projects and were quite happy with the 
> simple user interface. It had a couple of bugs ... but maybe the newer 
> release has squashed these? Check with the developer.
> >
> > Rob.
> > http://www.globalissa.com
> > _
> > Ryan A wrote:
> > Hey guys (and girl...as we have one on the list...(that i know of)),
> > snip
> > 2nd question
> > I will need a kind of "client editor" for when people write their 
> messages into the forum,
> > eg: make this bold and that italics and that centered and that with an 
> image
> > and so on I had actually seen a (dhtml, I think) form some time back 
> where you could
> > preview your message at the side as you made changes...somewhat like 
> what google has for
> > their ad-cents accounts where you can change the colors of your ad and 
> immediatly
> > it shows the changes at the side in a box.
> > I remember sometime back someone posting some WYSIWYG kind of editors 
> which
> > loads on the clients machine with just a textbox and the buttons to go 
> bold,
> > italics,centered etc unfortunatly looking into the archives i cant find 
> it.
> >
> > Thanks,
> > Ryan
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Exporting to MS Word or Excel

2005-06-04 Thread Rory Browne
On 6/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> To export it exactly as displayed (like when you print to a virtual printer 
> to generate a PDF) might be tricky, but you can definitely create Excel and I 
> believe Word files without even having Excel or Word installed.   If you DO 
> have Excel or Word installed on your server, then you can always use a COM 
> connection to handle this.
He's using LAMP, in which case the 'L' stands for Linux. Therefore he
can't have Word or Excel installed, nor can he use OLE or COM.

You might be able to rig up something with Uno/OOo(and if you do I'd
like to see your code), but I've absolutely no experience with Uno,
and very little with OOo.

Alternatively if  you can find a way to create RTF's, you can AFAIK
pass them off as word docs, by passing the correct header. you can
IIRC do something similar by creating csv's and passing an Excel
Header file.


> 
> First, maybe check out the Excel Writer PEAR package.  Here's a link to a 
> post I made about it a while ago with instructions on how to install it:
> 
> http://marc.theaimsgroup.com/?l=php-general&m=111409575703230&w=2
> 
> Excel Writer uses another PEAR package called OLE which is used to generate 
> older format MS Office files in general.  Both can be found at 
> http://pear.php.net
> 
> 
> Also, try searching the archives, I know this question has been asked many 
> times (even recently) and I'm sure you'll find some good stuff in there.
> 
> PHP-General archives:
> http://marc.theaimsgroup.com/?l=php-general
> 
> PHP-Windows archives:
> http://marc.theaimsgroup.com/?l=php-windows
> 
> PHP-Databases archives (never know eh?):
> http://marc.theaimsgroup.com/?l=php-db
> 
> And of course, the links to all these can be found on the PHP mailing lists 
> page:
> http://www.php.net/mailing-lists.php
> 
> 
> Good luck!
> 
> -TG
> 
> 
> = = = Original message = = =
> 
> Hi!!!
> 
> Are there any chances that I could export a dynamic created web page into MS
> Word or Excel?
> I know this can be done with PDF!!
> 
> I'm using LAMP!!
> 
> ---
> Miguel Guirao Aguilera
> Logistica R8 TELCEL
> Tel. (999) 960.7994
> Cel. 9931 600.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> ___
> Sent by ePrompter, the premier email notification software.
> Free download at http://www.ePrompter.com.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Returned mail: Data format error

2005-06-04 Thread Post Office
ALERT!

This e-mail, in its original form, contained one or more attached files that 
were infected with a virus, worm, or other type of security threat. This e-mail 
was sent from a Road Runner IP address. As part of our continuing initiative to 
stop the spread of malicious viruses, Road Runner scans all outbound e-mail 
attachments. If a virus, worm, or other security threat is found, Road Runner 
cleans or deletes the infected attachments as necessary, but continues to send 
the original message content to the recipient. Further information on this 
initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the 
e-mail as part of the scanning process. Road Runner recommends that if the 
sender is known to you, you contact them directly and advise them of their 
issue. If you do not know the sender, we advise you to forward this message in 
its entirety (including full headers) to the Road Runner Abuse Department, at 
[EMAIL PROTECTED]

The original message was received at Sat, 4 Jun 2005 08:27:41 -0400
from lists.php.net [147.254.1.112]

- The following addresses had permanent fatal errors -
php-general@lists.php.net

- Transcript of session follows -
... while talking to host 18.188.115.129:
>>> DATA
<<< 400-aturner; -RMS-E-CRE, ACP file create failed
<<< 400

file attachment: fjeqkvs.zip

This e-mail in its original form contained one or more attached files that were 
infected with the [EMAIL PROTECTED] virus or worm. They have been removed.
For more information on Road Runner's virus filtering initiative, visit our 
Help & Member Services pages at http://help.rr.com, or the virus filtering 
information page directly at http://help.rr.com/faqs/e_mgsp.html. 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] autocomplete a field

2005-06-04 Thread Rory Browne
On 6/4/05, xfedex <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Anyone know if theres a way to disable this feature for user using old
> browsers or not suporting JS/XML?
Put your JS Code in html comments, like as follows...







> 
> Thanks,
> pancarne.
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mozilla & urlencode

2005-06-04 Thread Marek Kilimajer

John Taylor-Johnston wrote:

I seem to have a problem with Mozilla or with IE?

echo "district)."\">";


http://foo.org/_private/directory.php#Montr%E9al+District+%234 works in 
IE6, but Mozilla will not accept it.


Mozilla does not work. Am I approaching this wrong? Should I create my 
HTML this way?


echo "district."\">";


If I do, Mozilla prferes this:

http://foo.org/_private/directory.php#Montr%E9al%20District%20#4
or
http://foo.org/_private/directory.php#Montr%E9al%20District%20%234

IE refuses it and prefers:

http://foo.org/_private/directory.php#Montr%E9al+District+%234

What's my work around? Complain to Mozilla? Same for Firefox BTW. I 
cannot change my field.




name attribute if type CDATA, so it should not be urlencoded, but 
htmlspecialchars used instead.


But this is not necessery because of other restrictions for name and id 
attributes:


http://www.w3.org/TR/REC-html40/types.html#type-cdata

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Deerpark (aka Firefox 1.1 alpha) URI's and PHP

2005-06-04 Thread Chris Drozdowski
Will PHP scripts that work properly with the current version (1.0.4) of 
Firefox need to be modified for the feature detailed below in Firefox 
1.1?


See:
http://www.mozilla.org/projects/deerpark/new-web-dev-features.html

"URIs always sent as UTF8

URIs are now always sent to the server as UTF8, regardless of the 
linking page's encoding. This fixes images and links on sites with 
non-ASCII filenames."


Thanks,

C Drozdowski

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] about PHP Graphic .

2005-06-04 Thread NeginGostar.com :: Administrator
Hello Dear
I want know about PHP Graphic .
I want use graphic in php but i cant setup GD library , in my server
My Server is Windows 2003
and i want install graphic in php

please help me,
thanks

[PHP] Re: mozilla & urlencode

2005-06-04 Thread JamesBenson


Your code is wrong, there is nothing wrong with Firefox's support for 
anchor tags (that im aware of) and IE dont do too badly with them 
either. Paste the following into a blank HTML file

Shoule work...does for me, no problem.






click me

/>/>/>


Ha, you clicked me, should work in Firefox 1.0.4 
(Linux)











Im sure its just the é
Above works but not with an é (dont have IE) which leads me to think you 
should use the equivalent of the é



HTH
James

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: missing $_GET

2005-06-04 Thread JamesBenson
Possibly the PHP version your using, try looking at the PHP manual and 
also getting your PHP version by placing 
into a file and running it in your browser, see this document for other 
methods:-


http://php.net/manual/en/reserved.variables.php#reserved.variables.get





Ric Manalac wrote:

Hello,

I've encountered a weird problem with using $_GET. I've recently moved
to a new hosting company and an old code suddenly stopped working
correctly.

From my index page, I pass a value through the querystring to another
PHP script. The querystring parameter goes like ?catid=500.

In the script that attempts to get the value, I have the following code:

if (isset($_GET["catid"]))
{
   $catid = $_GET["catid"];
}
else
{
   $catid = 1;
}

What used to happen was $catid is assigned the value of $_GET["catid"]
if the catid parameter is passed through the querystring. But what
happens now is $catid is always set to 1 because $_GET["catid"] seems
to be always blank now. I've already tried removing the "isset()
check" and went directly assigning the value as such:

$catid = $_GET["catid"];

... but it still returned a blank value. What's happening to my
$_GET values? 


I hope someone can help. Is this something that can be
fixed by changing some configuration on the server? Is there something
that I need to change with my code?

Thanks!

Ric


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php