Re: [PHP] unlink, symlink and caching

2005-12-22 Thread jgmtfia Mr
> Be sure to include the OS, filesystem type and the configure line > in the report, cause there seems to be something system dependent > causing it since the script you posted earlier worked fine on my > system. Thanks for your help. I appreciate it. -- PHP General Mailing List (http://www.php.

RE: [PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread Denis Gerasimov
Hello, Also the first query that is executed to MySQL server has to be: SET CHARACTER SET utf8 This will set the character set for current connection to UTF-8 (default is latin-1). HTH Have a great day, Denis S Gerasimov Web Developer Team Force LLC Web: www.team-force.org RU & Int'l: +

Re: [PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread Curt Zirzow
On Thu, Dec 22, 2005 at 07:01:07PM -0800, jonathan wrote: > I'm inserting some info into a mysql table which has the charset set > to utf-8. > > When I do a select via the command-line from mysql, it looks like this: > Clams and mussels with Dijon-cr�me fra�che-saffron sauce > > assuming this i

Re: [PHP] Connection: close Always?

2005-12-22 Thread Curt Zirzow
On Thu, Dec 22, 2005 at 05:23:51PM -0500, Michael B Allen wrote: >... > > # > # KeepAlive: Whether or not to allow persistent connections (more than > # one request per connection). Set to "Off" to deactivate. > # > KeepAlive Off > > Mmm, why does the Fedora 4 apache package ship with keep-alive

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread Curt Zirzow
On Thu, Dec 22, 2005 at 02:41:40PM -0700, jgmtfia Mr wrote: > > > 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) > >

Re: [PHP] Sessions...

2005-12-22 Thread Chris Shiflett
Greg Donald wrote: I've been using this database driven PHP sessions setup for years: http://dbsessions.destiney.com/ I offer a similar implementation: http://phpsecurity.org/code/ch08-2 A few notes about yours (if you don't mind the critique): 1. It doesn't use a separate database connecti

Re: [PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread Ligaya Turmelle
Have you read this article - http://www.phparch.com/sample.php?mid=57 . jonathan wrote: I'm inserting some info into a mysql table which has the charset set to utf-8. When I do a select via the command-line from mysql, it looks like this: Clams and mussels with Dijon-crème fraîche-saffron sa

Re[3]: [PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread Kenneth Andresen
Hello Jonathan, You probably don't have php5 compiled with mbstrings enabled, if you have complied php5 with iconv instead you can try iconv('utf-8' , 'html', $string); I don't know what to recommend if you don't have any of these complied into php5. Best regards, Kenneth -- jonathan wro

Re: [PHP] Sessions...

2005-12-22 Thread Greg Donald
On 12/22/05, Dan Parry <[EMAIL PROTECTED]> wrote: > I've decided to rock the boat and start using a custom handler (we need to > check who's online etc; the standard stuff) utilising our MySQL (v3.28) DB I've been using this database driven PHP sessions setup for years: http://dbsessions.destiney

Re: [PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread Kenneth Andresen
Hello, why not simply convert the text to html mb_convert_encoding($string, 'html', 'utf-8'); Best regards, Kenneth jonathan wrote: I'm inserting some info into a mysql table which has the charset set to utf-8. When I do a select via the command-line from mysql, it looks like this: Clam

[PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread jonathan
I'm inserting some info into a mysql table which has the charset set to utf-8. When I do a select via the command-line from mysql, it looks like this: Clams and mussels with Dijon-crème fraîche-saffron sauce assuming this is coming out in your email client ok, it should look good. On a web

[PHP] Problems getting the nodeName with DomDocument

2005-12-22 Thread Kenneth Andresen
I am having problems with the following functions where my return simply is "#text Joe #text Smith #text unknown", it should have read firstname Joe lastname Smith address unknown What am I doing wrong? $xmlstring = "JoeSmithunknown"; $domdoc = new DomDocument(); $domdoc->loadXML($xmlstring

Re: [PHP] PHP interference in frames

2005-12-22 Thread PHP Superman
I'm taking a wild guess here, maybe the browser insists on waiting for some content but it's maximum content wait time is 5 seconds, the browser could detect the connection to the server is still open and wait for 5 seconds or another time On 12/22/05, Ron Rudman <[EMAIL PROTECTED]> wrote: > > I'v

[PHP] PHP interference in frames

2005-12-22 Thread Ron Rudman
I've got this down to a bare bones test but am still stumped. Can anyone explain why I get the behavior I do? I have a frameset with 3 frames: testing test1.php and test2.php are both simply: test3.php is simply: When I invoke the main frameset, the output from tes

[PHP] Free Hosting?

2005-12-22 Thread Dan Uyemura
All - In my searches of a new host I have found this.. and in the spirit of the holidays I will kindly share with everyone here. http://www.365yearsfree.com I guess by finding the "hot host" everyday you get entered into a drawing to win a free year of hosti

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Mike Rondeau
I am still a newbie, but I am suprised that it effects browers at all, since it returns pure HTML to the browser, right? Something so simple as echoing a "hello world" shouldn't cause trouble in so popular a browser as Netscape I would think... Mike PHP Newbie - Original Message - F

Re: [PHP] Connection: close Always?

2005-12-22 Thread Michael B Allen
On Thu, 22 Dec 2005 17:16:03 -0500 Michael B Allen <[EMAIL PROTECTED]> wrote: > On Thu, 22 Dec 2005 09:42:08 +0100 > Jochem Maas <[EMAIL PROTECTED]> wrote: > > > 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

[PHP] Sessions...

2005-12-22 Thread Dan Parry
Hi I'm having some trouble with sessions and was wondering if anyone could give me some insight Background: We have experienced some difficulties previously with sessions which were fixed(ish) by using ini_set("session.save_handler", "files"); and manually dropping a cookie with the pro

Re: [PHP] Connection: close Always?

2005-12-22 Thread Michael B Allen
On Thu, 22 Dec 2005 09:42:08 +0100 Jochem Maas <[EMAIL PROTECTED]> wrote: > 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 sma

Re: [PHP] Re: insert to DB

2005-12-22 Thread PHP Superman
PHP might not be sending you an error, are warnings turned on in php.ini? if not turn the on and see if you get any errors On 12/18/05, David Hall <[EMAIL PROTECTED]> wrote: > > > > >if ($_POST["$submit"]) > >{ > > $Name = $_POST["Name"]; > >$Rating = $_POST["Rating"]; > > > >

Re: [PHP] how to calculate with dates?

2005-12-22 Thread Ray Hauge
John Nichel wrote: Marten Lehmann wrote: 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 http://us3.php.net/mktime You could also use the PEAR Date package. I have used it in a few pro

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread jgmtfia Mr
> > 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: >

Re: [PHP] how to calculate with dates?

2005-12-22 Thread John Nichel
Marten Lehmann wrote: 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 http://us3.php.net/mktime -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675

[PHP] how to calculate with dates?

2005-12-22 Thread Marten Lehmann
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread Curt Zirzow
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

[PHP] Re: PHP is OK in IE but not in Netscape

2005-12-22 Thread Al
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

[PHP] Re: Filtering URLs problem..

2005-12-22 Thread Al
I didn't fully test this; but it should get you started. $types= array('http', 'ftp', 'https', 'mms', 'irc'); $pattern= "%.+%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

Re: [PHP] unlink, symlink and caching

2005-12-22 Thread jgmtfia Mr
> 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 correctl

Re: [PHP] Help Desk software

2005-12-22 Thread Peppy
http://phptickets.org/ - Original Message - From: "Glenn Sieb" <[EMAIL PROTECTED]> To: 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 recomm

[PHP] Re: a quick one, self submitting jump menu

2005-12-22 Thread David Robley
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... > > > > option1 > option2 > > > > > > to self submit and use the submitted values in a if-else o

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread dave
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

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Jochem Maas
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 '

Re: [PHP] a quick one, self submitting jump menu

2005-12-22 Thread Jochem Maas
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

RE: [PHP] a quick one, self submitting jump menu

2005-12-22 Thread Albert
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 Editi

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread David Grant
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 sho

[PHP] a quick one, self submitting jump menu

2005-12-22 Thread Ross
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... option1 option2 to self submit and use the submitted values in a if-else or CASE statement. This is all on the same p

RE: [PHP] High load Forum?

2005-12-22 Thread Jared Williams
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 k

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Nanu Kalmanovitz
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: Sent: Thursday, December 22, 200

[PHP] GD/Freetype text problems with bold or size < 8 - Followup

2005-12-22 Thread Jason Young
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 o

[PHP] Re: High load Forum?

2005-12-22 Thread M. Sokolewicz
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 mult

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Zareef Ahmed
- Original Message - From: "Nanu Kalmanovitz" <[EMAIL PROTECTED]> To: 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

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Ruben Rubio Rey
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 probl

[PHP] High load Forum?

2005-12-22 Thread Ruben Rubio Rey
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 th

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread David Grant
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/ -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Nanu Kalmanovitz
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

Re: [PHP] Connection: close Always?

2005-12-22 Thread Jochem Maas
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?)

Re: [PHP] Filtering URLs problem..

2005-12-22 Thread Jochem Maas
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 alr