php-general Digest 22 Dec 2005 20:56:45 -0000 Issue 3865
Topics (messages 227792 through 227814):
Re: Connection: close Always?
227792 by: Jochem Maas
PHP is OK in IE but not in Netscape
227793 by: Nanu Kalmanovitz
227794 by: David Grant
227796 by: Ruben Rubio Rey
227797 by: Zareef Ahmed
227800 by: Nanu Kalmanovitz
227802 by: David Grant
227806 by: Jochem Maas
227807 by: dave
227812 by: Al
High load Forum?
227795 by: Ruben Rubio Rey
227798 by: M. Sokolewicz
227801 by: Jared Williams
GD/Freetype text problems with bold or size < 8 - Followup
227799 by: Jason Young
a quick one, self submitting jump menu
227803 by: Ross
227804 by: Albert
227805 by: Jochem Maas
227808 by: David Robley
Re: Help Desk software
227809 by: Peppy
Re: unlink, symlink and caching
227810 by: jgmtfia Mr
227813 by: Curt Zirzow
Re: Filtering URLs problem..
227811 by: Al
how to calculate with dates?
227814 by: Marten Lehmann
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Michael B Allen wrote:
Why does PHP always close the connection with Connection: close? I'm
using PHP 4.3.11 w/ Firefox 1.0.4. Requests are HTTP/1.1 and Connection:
keep-alive is requested.
a very small sum of money says that this is due to your
webserver config and not php (check httpd.conf?).
oh and I recommend upgrading to at least php4.4.x in order to
be up2date with [security] fixes et al.
Mike
--- End Message ---
--- Begin Message ---
Hi
The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but
not in Netscape 7.0.
How can I fix it?
TIA
Nanu
--- End Message ---
--- Begin Message ---
Nanu,
Nanu Kalmanovitz wrote:
> The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but
> not in Netscape 7.0.
Looks fine to me. What is the contents of hello.php?
Cheers,
David
--
David Grant
http://www.grant.org.uk/
--- End Message ---
--- Begin Message ---
Nanu Kalmanovitz wrote:
Hi
The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but
not in Netscape 7.0.
How can I fix it?
TIA
Nanu
Forget Netscape 7.0. Its not supported anymore. You should be worried
with mozilla / firefox.
Anyway, im almost sure that is not a php problem. Have u check web
server (apache, i think) configuration?
Is the data in source code that netscape have download?
--- End Message ---
--- Begin Message ---
----- Original Message -----
From: "Nanu Kalmanovitz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, December 22, 2005 4:22 AM
Subject: [PHP] PHP is OK in IE but not in Netscape
> Hi
>
> The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but
> not in Netscape 7.0.
Strange... Can you post the code, Well I check it with firefox it fine
there.
>
> How can I fix it?
>
> TIA
>
> Nanu
====================================================
PHP Expert Consultancy in Development http://www.indiaphp.com
Yahoo! : consultant_php MSN : [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Thanks all!
Ok, I will forget Netscape, what other popular browsers beside M$-IE
works with M$-Windows?
TIA
Nanu
>>> "Zareef Ahmed" <[EMAIL PROTECTED]> 22/12/2005 11:30:21 >>>
----- Original Message -----
From: "Nanu Kalmanovitz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, December 22, 2005 4:22 AM
Subject: [PHP] PHP is OK in IE but not in Netscape
> Hi
>
> The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE
but
> not in Netscape 7.0.
Strange... Can you post the code, Well I check it with firefox it fine
there.
>
> How can I fix it?
>
> TIA
>
> Nanu
====================================================
PHP Expert Consultancy in Development http://www.indiaphp.com
Yahoo! : consultant_php MSN : [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Nanu,
Nanu Kalmanovitz wrote:
> Ok, I will forget Netscape, what other popular browsers beside M$-IE
> works with M$-Windows?
I wouldn't "forget" Netscape, because people still use it. Just make
sure your code validates to W3C standards and so long as it isn't too
cutting edge, must browsers should display it fine.
To answer your question, Opera is probably the third most popular
browser on Windows.
Cheers,
David
--
David Grant
http://www.grant.org.uk/
--- End Message ---
--- Begin Message ---
Nanu Kalmanovitz wrote:
Thanks all!
Ok, I will forget Netscape, what other popular browsers beside M$-IE
works with M$-Windows?
does it not occur to anyone that this sort of question
is better directed at a search engine? its called research.
another reason being that there is no 'php' in 'browser' - not
including the thing Wez Furlong built that allows you to run php
as a clientside scripting engine (which AFAIK is very experimental)
TIA
Nanu
"Zareef Ahmed" <[EMAIL PROTECTED]> 22/12/2005 11:30:21 >>>
----- Original Message -----
From: "Nanu Kalmanovitz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, December 22, 2005 4:22 AM
Subject: [PHP] PHP is OK in IE but not in Netscape
Hi
The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE
but
not in Netscape 7.0.
Strange... Can you post the code, Well I check it with firefox it fine
there.
How can I fix it?
TIA
Nanu
====================================================
PHP Expert Consultancy in Development http://www.indiaphp.com
Yahoo! : consultant_php MSN : [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
or maibe firefox
David Grant wrote:
> Nanu,
>
> Nanu Kalmanovitz wrote:
>
>>Ok, I will forget Netscape, what other popular browsers beside M$-IE
>>works with M$-Windows?
>
>
> I wouldn't "forget" Netscape, because people still use it. Just make
> sure your code validates to W3C standards and so long as it isn't too
> cutting edge, must browsers should display it fine.
>
> To answer your question, Opera is probably the third most popular
> browser on Windows.
>
> Cheers,
>
> David
--- End Message ---
--- Begin Message ---
You do not have a legitimate HTML page. Back to the books first.
Always validate here http://validator.w3.org/
If a page validates, it will run on about browser except NS4x and IE5x
Nanu Kalmanovitz wrote:
Hi
The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but
not in Netscape 7.0.
How can I fix it?
TIA
Nanu
--- End Message ---
--- Begin Message ---
Hi,
Im looking for a good forum thats supports high load. (Now between
300-2.000 active sessions, much more in next 2 years)
I have heard about vBulletin and PhpBB. At the moment I think vBulletin
is the best choice, because I know some very big places that uses it.
What do u think about this?
--- End Message ---
--- Begin Message ---
it all depends on the setup you're using. How well the code is written,
how much fluff it has (eg. a lof of bbcode parsing makes the forum a lot
slower), and a few more factors like that. If you're going to have a
very big / active forum, I would suggest not to use a package as
provided by multiple companies (vb, phpbb, xmb, ipb, etc) but to write
your own and try to minimize the amount of work it does (especially
heavy-duty work like regexp parsing, image-parsing,
database-connections/transactions, etc.). If you do it yourself, you'll
be sure you have optimized it as much as you can for your server
specifically. If you use a bigger package, it'll have lots of fluff you
don't need, and generally will use older (slower) language constructs to
be backwards compatible (back to php 4.2.0 in most cases, or even earlier).
- tul
Ruben Rubio Rey wrote:
Hi,
Im looking for a good forum thats supports high load. (Now between
300-2.000 active sessions, much more in next 2 years)
I have heard about vBulletin and PhpBB. At the moment I think vBulletin
is the best choice, because I know some very big places that uses it.
What do u think about this?
--- End Message ---
--- Begin Message ---
Take a look at
http://www.big-boards.com/
Jared
> Hi,
>
> Im looking for a good forum thats supports high load. (Now
> between 300-2.000 active sessions, much more in next 2 years)
>
> I have heard about vBulletin and PhpBB. At the moment I think
> vBulletin is the best choice, because I know some very big
> places that uses it.
>
> What do u think about this?
--- End Message ---
--- Begin Message ---
Just to followup on this,
I was able to install PHP 5.1.1 with its embedded GD library, and it
turns out that GD is definitely the cause of the issues.
So my question now is what changes to the source can be made to ensure
the highest-quality fonts in smaller sizes? As I've said, I've been on
hosts with very smooth rendering of smaller text (size < 8, assuming 96
pixel resolution), but my current build looks horrible.
http://card.mygamercard.net/mini/Morgon.jpg is what it looks like now -
all text is 6 point aside from the bold text at the top, which is 8.
This is the 5.0.4 install.
http://data.mygamercard.net/test.png is an image I created using a
built-but-not-installed version of PHP 5.1.1.
I changed the GD_RESOLUTION to 72 point font, so to compensate, these
are a font size of 9.
What I would like is for the fonts to look similar to what would really
be displayed, had this been standard system fonts in a browser or other
application.
If anyone has had experience with rendering text, I would really
appreciate some hints on how to tweak GD to make things look proper.
Thanks
Jason Young wrote:
Currently, I'm running PHP 5.0.4 (only because it's the only one I can
get to work on my FC4 x64 install!), but for some reason, using pixel
sizes under 8, or using bold fonts, makes the text look horrible.
My old host (1&1 in case anyone else has them..) had this working well,
but I have no idea what their settings were.
I've heard that editing the gd.h file to change the resolution from 96
to 72 helps, but I'm assuming I'd have to recompile something for that
to take effect, and I can't find a PHP-GD Source RPM for my arch.
What must I do to get everything smooth again?
Fedora Core 4, x64
PHP 5.0.4
PHP-GD module (separate RPM install)
Freetype 2.1
gd-2.0.33
Thank you.
--- End Message ---
--- Begin Message ---
How can I self submit a page whne registered globals are off. Is there a way
to use $_SERVER?
What I am ultimately trying to do is use values from a jump menu...
<form name="form2" id="form2" action=">">
<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
<option >option1</option>
<option >option2</option>
</select>
</form>
to self submit and use the submitted values in a if-else or CASE statement.
This is all on the same page.
Ross
--- End Message ---
--- Begin Message ---
Ross wrote:
> How can I self submit a page whne registered globals are off. Is there a
> way to use $_SERVER?
Try $_REQUEST.
If the values are send using POST then $_POST
If the values are send using GET then $_GET
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.3/209 - Release Date: 2005/12/21
--- End Message ---
--- Begin Message ---
Ross wrote:
How can I self submit a page whne registered globals are off. Is there a way
to use $_SERVER?
what do you think register_globals does?
hint: $_SERVER is a superglobal and has nothing to do with (and
is not affected by) the register_globals setting.
What I am ultimately trying to do is use values from a jump menu...
<form name="form2" id="form2" action=">">
if you leave the action attribute empty (or drop it altogether)
then your form will submit to the same URL as that which generated the
page that contains the form. if you set the action of the form to '>'
(as you have done in your example) then I have no idea what happens
(probably not much)
<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
<option >option1</option>
<option >option2</option>
</select>
</form>
to self submit and use the submitted values in a if-else or CASE statement.
This is all on the same page.
Ross
--- End Message ---
--- Begin Message ---
Ross wrote:
>
> How can I self submit a page whne registered globals are off. Is there a
> way to use $_SERVER?
>
> What I am ultimately trying to do is use values from a jump menu...
>
> <form name="form2" id="form2" action=">">
> <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
> <option >option1</option>
> <option >option2</option>
>
> </select>
> </form>
>
>
> to self submit and use the submitted values in a if-else or CASE
> statement. This is all on the same page.
You would need to add a VALUE property to each of the OPTION tags, and
depending on the METHOD property of the form, chech the $_POST or $_GET
array
Cheers
--
David Robley
Vote Democratic... It's easier than getting a job.
--- End Message ---
--- Begin Message ---
http://phptickets.org/
----- Original Message -----
From: "Glenn Sieb" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "Daniel Lahey" <[EMAIL PROTECTED]>
Sent: Tuesday, December 20, 2005 10:13 PM
Subject: Re: [PHP] Help Desk software
> Daniel Lahey said the following on 12/20/2005 10:28 PM:
> > Can anyone recommend some good Open-Source Help Desk software for
> > PHP? (I know this is a little off-topic, but I'm having a hard time
> > finding decent Open Source software.)
> IMHO the best is RT, which is Perl and Mason.
> (http://www.bestpractical.com/rt)
>
> There are some nice PHP ones out there, but I don't have any experience
> with them:
>
> ruQueue: http://freshmeat.net/projects/ruqueue/
> Hesk: http://www.phpjunkyard.com/free-helpdesk-software.php
> Help Desk Software: http://www.helpdeskreloaded.com/
>
> I'm sure there are more..
>
> Best,
> --Glenn
>
> --
> AIM: RainbearNJ YahooIM: rainbear_nj
>
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety."
> ~Benjamin Franklin, Historical Review of Pennsylvania, 1759
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
> Thank you for checking on this.
>
> I am using debain stable with a 2.6.14.3 kernel. The filesystem in
> question is ext2 on a 48 MB ramdisk.
>
> I also did the following on another machine using ext2 on a harddisk
> with command line php.
I just ran the test with php4 cli and it works correctly.
PHP 4.3.10-15 (cli) (built: May 9 2005 08:54:56)
But with php5 cli and apache2 module it does not:
PHP 5.1.0b3 (cli) (built: Oct 18 2005 16:13:19)
PHP 5.1.0 apache module
Is this not a bug?
--- End Message ---
--- Begin Message ---
On Thu, Dec 22, 2005 at 08:29:53AM -0700, jgmtfia Mr wrote:
> > Thank you for checking on this.
> >
> > I am using debain stable with a 2.6.14.3 kernel. The filesystem in
> > question is ext2 on a 48 MB ramdisk.
> >
> > I also did the following on another machine using ext2 on a harddisk
> > with command line php.
>
> I just ran the test with php4 cli and it works correctly.
> PHP 4.3.10-15 (cli) (built: May 9 2005 08:54:56)
>
> But with php5 cli and apache2 module it does not:
> PHP 5.1.0b3 (cli) (built: Oct 18 2005 16:13:19)
> PHP 5.1.0 apache module
The versions I ran the tests were on:
PHP 5.1.0RC5-dev (cli) (built: Nov 17 2005 10:02:23)
PHP 5.1.2-dev (cli) (built: Dec 19 2005 12:03:32)
> Is this not a bug?
If it still happens on your system with the latest snapshot it
sounds like it.
Curt.
--
cat .signature: No such file or directory
--- End Message ---
--- Begin Message ---
I didn't fully test this; but it should get you started.
$types= array('http', 'ftp', 'https', 'mms', 'irc');
$pattern= "%<a\040href\040*=['"]$types://((www.)*[\w/\.]+)['"]>.+</a>%i"; // the
"i" makes it non case sensitive
if(preg_match($pattern, $URL_str, $match)){
$URL= match[1];
}
else{
User did not enter a complete link; do the simple thing
}
Anders Norrbring wrote:
I'm writing a filter/parsing function for texts entered by users, and
I've run into a problem...
What I'm trying to do is to parse URLs of different sorts, ftp, http,
mms, irc etc and format them as links, that part was real easy..
The hard part is when a user has already entered a complete link..
In short:
http://www.server.tld/page.html
should be converted to:
<a
href='http://www.server.tld/page.html'>http://www.server.tld/page.html</a>
That part works fine, but if the user enters:
<a href='http://www.server.tld/page.html'>click here</a>
it all becomes a mess... Can somebody please make a suggestion on this?
--- End Message ---
--- Begin Message ---
Hello,
I'm used to work with Date::Calc in Perl. How can I calculate with dates
in PHP, like adding an hour or a year to a date?
Regards
Marten
--- End Message ---