php-general Digest 5 Jun 2005 02:54:48 -0000 Issue 3494

2005-06-04 Thread php-general-digest-help
php-general Digest 5 Jun 2005 02:54:48 - Issue 3494 Topics (messages 216370 through 216392): Re: autocomplete a field 216370 by: Burhan Khalid ampersands in href's 216371 by: Jack Jackson 216372 by: Rory Browne 216373 by: Jack Jackson 216374 by:

Re: [PHP] mozilla urlencode

2005-06-04 Thread John Taylor-Johnston
I sent this to Mozilla groups. I'm beginning to wonder if Mozilla supports a name=? I think re-asked my question clearer below. John i dont think having a + in an achor tag is standard.. but i could be wrong. I'm truly hoping this is a reported bug already. This URL does not work in most

RE: [PHP] mozilla urlencode

2005-06-04 Thread Pablo Gosse
snip echo a name=\.urlencode($mydata-district).\/a; a name=Montr%E9al+District+%234/a 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 a

[PHP] missing $_GET

2005-06-04 Thread Ric Manalac
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

[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 ? phpinfo(); ? 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

[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. htmlheadtitle/title/headbody a href=#test%20linkclick me/a br

[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] 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,

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 a name=\.urlencode($mydata-district).\/a; a name=Montr%E9al+District+%234/a http://foo.org/_private/directory.php#Montr%E9al+District+%234 works in IE6, but Mozilla will not accept it. Mozilla does not work.

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... script ... !-- JS_CODE_HERE() //-- /script Thanks, pancarne. -- 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

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

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

2005-06-04 Thread M Saleh EG
www.FCKEditor.net http://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:

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 noscript -- 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: a href='{$_SERVER['PHP_SELF']}?p={$p}c={$s}' ... etc etc 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

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: ?php $p = Tom Jerry; $s = Cat Mouse; printf(a href='{$_SERVER['PHP_SELF']}?p=%ss=%s, urlencode($p), urlencode($s)); ? On

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: ?php $p = Tom Jerry; $s = Cat Mouse; printf(a href='{$_SERVER['PHP_SELF']}?p=%ss=%s,

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: a href='{$_SERVER['PHP_SELF']}?p={$p}c={$s}' ... etc etc 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

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: ?php $p = Tom Jerry; $s = Cat

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: a href='{$_SERVER['PHP_SELF']}?p={$p}c={$s}' ... etc etc or must I escape the ampersand somehow? Depends very much on the document type of your page. Valid XHTML (transitional, at

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: a href='{$_SERVER['PHP_SELF']}?p={$p}c={$s}' ... etc etc or must I escape the ampersand somehow? Depends very much on the document type of your page. Valid

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: ?php $p = Tom Jerry;

[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

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

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,

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 -

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

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

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

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: ? $url = somepage.php?var1=.urlencode($var1).var2=.urlencode($var2); echo a href=\.htmlspecialchars($url).\; ? htmlspecialchars() changes characters '', '', ''', '', '' into the HTML equivilant. And yup, you

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 BODY

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

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

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

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 ?php phpninfo();? in it, and surf

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

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 a name=District+of+St.+Francis/a This does not: Montréal District #2 http://www.glquebec.org/tezt.php#Montr%E9al+District+%232 a name=Montr%E9al+District+%232/a I'm beginning to see the problem lies

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

[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

[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

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