php-general Digest 16 Jan 2005 22:48:32 -0000 Issue 3231

2005-01-16 Thread php-general-digest-help
php-general Digest 16 Jan 2005 22:48:32 - Issue 3231 Topics (messages 206465 through 206489): PHP date returns wrong value ?? 206465 by: Michael Gale 206479 by: Jason Wong Re: Adding up query results 206466 by: Chris which is best php editor? 206467 by: QT

[PHP] [ANN] Kwartz-php 0.3.2 - a template system for PHP, Ruby, and Java

2005-01-16 Thread Makoto Kuwata
Hi all, I'm pleased to announce the release of Kwartz-php 0.3.2. This is a bugfix release. http://www.kuwata-lab.com/kwartz-php Changes from 0.3.0: * [bug:1099306] KwartzAnalyzer#analyze() now analyzes BEGIN and END macro. * [bug:1098862] KwartzParser#parse_block_stmt() fratten the

[PHP] Re: Protected Mail System

2005-01-16 Thread allan
Protected Mail System Test. +++ Attachment: No Virus found +++ MC-Afee AntiVirus - www.mcafee.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] which is best php editor?

2005-01-16 Thread QT
dear Sirs, I try to use a couple of php editor, but I am not satisfied with them. Any suggestion for good php editor. best regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which is best php editor?

2005-01-16 Thread Ville Mattila
QT wrote: Any suggestion for good php editor. My favourite PHP editor is jEdit, one of the best applications ever created. =) http://www.jedit.org/ Ville -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SMTP Server

2005-01-16 Thread eriksson
Protected message is attached. +++ Attachment: No Virus found +++ Kaspersky AntiVirus - www.kaspersky.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: which is best php editor?

2005-01-16 Thread Michelle Konzack
Am 2005-01-16 11:29:50, schrieb QT: dear Sirs, I try to use a couple of php editor, but I am not satisfied with them. Any suggestion for good php editor. notepad.exe :-) But I prefer mc/mcedit. best regards Greetings Michelle -- Linux-User #280138 with the Linux Counter,

Re: [PHP] Search Engine Friendly URLs

2005-01-16 Thread Greg Donald
On Fri, 14 Jan 2005 13:46:54 -0500, Josh [EMAIL PROTECTED] wrote: I am converting a site to use includes instead of a Dreamweaver template. I want the URLs to look like this: www.my-site1234.com/contact instead of www.my-site1234.com/default.php?p=contact. I found some tutorials on editing

[PHP] PHP date returns wrong value ??

2005-01-16 Thread Michael Gale
Hello, I have a web page that loads php code from another file using include, the second file calls a function from a third file after doing a include on it. I am running php 4.3.7 Below is the snip of code that gets called to update the database. The problem is with the tentry_time value.

Re: [PHP] Adding up query results

2005-01-16 Thread Chris
You should be able to do this: select sum(quantity*price) from sale where dvd_id=1 Chris Nathan Mealey wrote: I hope someone can help with this frustratingly simple (I assume!) question I have. I run this mysql query: select sum(quantity)*price,price from sale where dvd_id=1 group by price; I

Re: [PHP] Re: which is best php editor?

2005-01-16 Thread trobi
Michelle Konzack wrote / napsal (a): Am 2005-01-16 11:29:50, schrieb QT: dear Sirs, I try to use a couple of php editor, but I am not satisfied with them. Any suggestion for good php editor. notepad.exe :-) But I prefer mc/mcedit. best regards Greetings Michelle kwrite or vi

[PHP] printer_open() command in redhatlinux 9, php 4.3.9

2005-01-16 Thread Muditha Fernando
Hi, Can printer_open() command be used in redhatlinux 9, php 4.3.9. It works fine under win2000. Pls help. Regards Muditha Fernando -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Any idea when 4.3.11 will be released?

2005-01-16 Thread Gal
Hello, I'm Working in organization which also using php on the Windows platform. Because of the security holes in the older version and a COM bug at PHP 4.3.10 (http://bugs.php.net/bug.php?id=31159) we are using a problematic version. Does anyone here knows - what is the status of the release

Re: [PHP] Any idea when 4.3.11 will be released?

2005-01-16 Thread Jeffery Fernandez
Gal wrote: Hello, I'm Working in organization which also using php on the Windows platform. Because of the security holes in the older version and a COM bug at PHP 4.3.10 (http://bugs.php.net/bug.php?id=31159) we are using a problematic version. Does anyone here knows - what is the status of

[PHP] Only variables can be passed by reference - Preg_match Fatal error

2005-01-16 Thread Chandana Bandara
hi When i try to compile this code it gives following error. bFatal error/b: Only variables can be passed by reference in b/var/www/html/hello/test.php/b on line b16/bbr / I have defined variable for to match some string patterns / symbols. when i execute that code for preg_match ,

Re: [PHP] Only variables can be passed by reference - Preg_match Fatal error

2005-01-16 Thread Adrian
check your preg_match() call... things like $pattern and $msg are the spawn of satan btw. there is ABSOLUTELY NO REASON to put variables in quotation marks except that php has to parse the string which is slower than php just seeing the variable. and when a functions expects a reference,

Re: [PHP] Any idea when 4.3.11 will be released?

2005-01-16 Thread Gal
Hi Jeffery, Thanks for the info. I'm happy to read that the problem has been fixed. but i don't intend to use a CVS version on a production machine. This is the reason i asked for info on the official 4.3.11 release date. Do you have any idea when it is planned ? Thanks, Gal Jeffery Fernandez

Re: [PHP] PHP date returns wrong value ??

2005-01-16 Thread Jason Wong
On Sunday 16 January 2005 15:22, Michael Gale wrote: Not a direct answer to your problem ... $query=INSERT INTO tentry_table SET ticket_id = ' . $ticket . ',; $query .= tentry_date = ' . date(Y-m-d) . ',; $query .= tentry_time = ' . date(H:j:s) . ',; 1) When doing something involving

Re: [PHP] which is best php editor?

2005-01-16 Thread QT
hi Ville, I just download jedit to my windows 2000. Wth my experience, jar contents are working slow on windows. Same jedit works much slower than editplus on my computer. Are you using jedit with windows? can I increase performance? Best regards Ville Mattila [EMAIL PROTECTED] wrote in

[PHP] Diff: Comman line vs. phpinfo()

2005-01-16 Thread Joseph E. Maxwell
Just upgraded to php 4.3.10 phpinfo() apparently stuck on PHP Version 4.3.5 System FreeBSD xxx.com 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Nov i386 Build Date Apr 11 2004 20:01:52 Command line == php -v PHP 4.3.10 (cli) (built: Jan 15 2005 12:54:11) Copyright (c) 1997-2004

[PHP] Problem with foreatch()

2005-01-16 Thread Ben Edwards (lists)
I have the following Code: foreatch( $_POST[mtype] as $akey = $avalue ) { echo $akey, $avaluebr; } When I run it I get: Parse error: parse error, unexpected T_AS in /var/www/mb/mb_estab_update.php on line 58 58 is the line with the foreatch on it. However if I replace it with:

[PHP] Re: Problem with foreatch()

2005-01-16 Thread DvDmanDT
Well, it's spelled foreach, not foreatch, that's why you get the error.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Ben Edwards [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Comman line vs. phpinfo()

2005-01-16 Thread DvDmanDT
My guess is that something went wrong when you upgraded your PHP installation.. Maybe you didn't recompile Apache with the new PHP version or something.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Joseph E. Maxwell [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL

Re: [PHP] Any idea when 4.3.11 will be released?

2005-01-16 Thread DvDmanDT
They aren't talking about it on internals.. Not much on QA neither.. So.. Don't expect a release tomorrow.. :p CVS version might be the best option if that bug is a problem..:p -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Gal [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL

Re: [PHP] Problem with foreatch()

2005-01-16 Thread James Kaufman
On Sun, Jan 16, 2005 at 03:20:26PM +, Ben Edwards (lists) wrote: I have the following Code: foreatch( $_POST[mtype] as $akey = $avalue ) { echo $akey, $avaluebr; } When I run it I get: Parse error: parse error, unexpected T_AS in /var/www/mb/mb_estab_update.php on

Re: [PHP] Diff: Comman line vs. phpinfo()

2005-01-16 Thread Marek Kilimajer
Joseph E. Maxwell wrote: Just upgraded to php 4.3.10 phpinfo() apparently stuck on PHP Version 4.3.5 System FreeBSD xxx.com 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Nov i386 Build Date Apr 11 2004 20:01:52 Command line == php -v PHP 4.3.10 (cli) (built: Jan 15 2005 12:54:11)

Re: [PHP] Re: Persistent PHP web application?

2005-01-16 Thread Zouari Fourat
but u dont need to reinitialise your variables every time the script loads, u need just to init them once and u get what you want wherever you want in your files On Sun, 16 Jan 2005 11:38:48 +0800, Xuefer Tinys [EMAIL PROTECTED] wrote: $_SESSION is same as it use serialize/unserialize, alghough

[PHP] socket_connect giving me weird error

2005-01-16 Thread Adam Hubscher
Warning: socket_connect() expects parameter 3 to be long, string given in testing.php on line 21 Couldn't Create Socket: Success It actually spits that across for every socket I'm trying to connect. I'm doing an online status for multiple servers, which I have tested to work when I simply do a

[PHP] Socket_Connect returning unusual error

2005-01-16 Thread Adam Hubscher
Warning: socket_connect() expects parameter 3 to be long, string given in testing.php on line 21 Couldn't Create Socket: Success It actually spits that across for every socket I'm trying to connect. I'm doing an online status for multiple servers, which I have tested to work when I simply do a

[PHP] cron job style php...

2005-01-16 Thread Russell P Jones
I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on a PHP prog? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Phonetic speller function

2005-01-16 Thread Dotan Cohen
Hi all, I am creating an app that will take any word and return an array with all the possible ways of spelling it. I wrote a function that replaces letter(s) with other letter(s) with similar sounds. For instance, 'pink' returns: Array ( [0] = pink [1] = pinc [2] = pynk [3] =

Re: [PHP] cron job style php...

2005-01-16 Thread Randy Johnson
Russel, Yes you can run a cron job on php You may have to add a line like this at the top, it has been awhile since I have done it] #! /usr/local/php/sapi/cli/php this line would be different for your system -Randy - Original Message - From: Russell P Jones [EMAIL PROTECTED] To:

RE: [PHP] cron job style php...

2005-01-16 Thread Hans Zaunere
I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on a PHP prog? It can, and run basically like any other shell script. The first line needs

Re: [PHP] cron job style php...

2005-01-16 Thread Bret Hughes
On Sun, 2005-01-16 at 17:00, Russell P Jones wrote: I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on a PHP prog? Russ Jones Never tried

Re: [PHP] Phonetic speller function

2005-01-16 Thread Greg Donald
On Mon, 17 Jan 2005 01:07:12 +0200, Dotan Cohen [EMAIL PROTECTED] wrote: I am creating an app that will take any word and return an array with all the possible ways of spelling it. PHP has soundex, which may greatly assist in what you are doing: php.net/soundex Lots of good examples in the

Re: [PHP] use php to determine user OS

2005-01-16 Thread Greg Donald
On Sat, 15 Jan 2005 18:30:02 -0800, Graham Anderson [EMAIL PROTECTED] wrote: is there a php function out there that can get the operating system of the user...Mac/PC/Linux $_SERVER[ 'HTTP_USER_AGENT' ] -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List

Re: [PHP] imagejpeg() output

2005-01-16 Thread Greg Donald
On Sat, 15 Jan 2005 08:39:16 -0800, Steven Simmons [EMAIL PROTECTED] wrote: I'm trying to write an object oriented system for saving my uploaded files to a blog. I am using php to resize the original photos and save a thumbnail . When I get all done, I want to do something like this:

[PHP] cancel 20050116225111.60153.qmail@lists.php.net

2005-01-16 Thread webmaster
This message was cancelled from within Mozilla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
I seem to have problems getting phpMyAdmin showing shift_jis properly, after upgrading to PHP5 on my FreeBSD box. mySQL is running version 4.1.8. My application works excellent, the problem only exist in phpmyadmin. Anyone ran into this problem before ? I've tried to google for it, but didnt

Re: [PHP] Phonetic speller function

2005-01-16 Thread Richard Lynch
Dotan Cohen wrote: kayak. Focusing only on the 'k's I get this array: kayak, cayac. But I need kayak, kayac, cayak, cayac. You may (or may not) be able to get something going with that extra optional last argument to str_replace which tells how many characters to replace. str_replace('k',

[PHP] socket_connect errors

2005-01-16 Thread Adam Hubscher
Ok, I had made a post earlier but bout 5min later I figured out the problem (I had spaces and returns that were in the array beside the ports). The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) 0){ print(Couldn't Create Socket: .

Re: [PHP] Socket_Connect returning unusual error

2005-01-16 Thread Richard Lynch
Adam Hubscher wrote: Warning: socket_connect() expects parameter 3 to be long, string given in testing.php on line 21 Couldn't Create Socket: Success PHP usually auto-converts data -- However it's possible that this EXPERIMENTAL function (?) doesn't have the magic code down in the guts of PHP.

Re: [PHP] Only variables can be passed by reference - Preg_match Fatal error

2005-01-16 Thread Richard Lynch
Adrian wrote: check your preg_match() call... things like $pattern and $msg are the spawn of satan btw. there is ABSOLUTELY NO REASON to put variables in quotation marks except that php has to parse the string which is slower than php just seeing the variable. You'd be hard-pressed to

Re: [PHP] Socket_Connect returning unusual error

2005-01-16 Thread Adam Hubscher
Richard Lynch wrote: Adam Hubscher wrote: Warning: socket_connect() expects parameter 3 to be long, string given in testing.php on line 21 Couldn't Create Socket: Success PHP usually auto-converts data -- However it's possible that this EXPERIMENTAL function (?) doesn't have the magic code down

Re: [PHP] Diff: Comman line vs. phpinfo()

2005-01-16 Thread Richard Lynch
Joseph E. Maxwell wrote: Just upgraded to php 4.3.10 phpinfo() apparently stuck on PHP Version 4.3.5 SystemFreeBSD xxx.com 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Nov i386 Build DateApr 11 2004 20:01:52 Command line == php -v PHP 4.3.10 (cli) (built: Jan 15

Re: [PHP] imagejpeg() output

2005-01-16 Thread Richard Lynch
Steven Simmons wrote: When I get all done, I want to do something like this: $tempImageData = imagejpeg( $imageResource, '', 75 ); $outputHandler - save ( $tempImageData ); Where the $outputHandler is an object that knows how/where to save the file. However, I've noticed

Re: [PHP] control REMOTE_ADDR header

2005-01-16 Thread Richard Lynch
Alawi Albaity wrote: how can I can send http request with my chosen REMOTE_ADDR is there a class to do that or method in php ? I'm not 100% certain, but I think REMOTE_ADDR comes from data embedded in the TCP/IP info... So, basically, you'd have to seriously hack things to forge your return

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
Just a quick note, this seems to be a bug in phpMyAdmin since 2.5.7-pl1 - I submitted a bug report on the sourceforge website and awaits them to handle it. / Lars -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Randy Johnson
I am just curious why you do not upgrade to the latest stable 2.6.0-pl3? Randy - Original Message - From: Lars B. Jensen [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, January 16, 2005 11:40 PM Subject: Re: [PHP] Encoding problems using phpMyAdmin Just a quick note, this

[PHP] Re: Any idea when 4.3.11 will be released?

2005-01-16 Thread Manuel Lemos
Hello, on 01/16/2005 10:17 AM Gal said the following: I'm Working in organization which also using php on the Windows platform. Because of the security holes in the older version and a COM bug at PHP 4.3.10 (http://bugs.php.net/bug.php?id=31159) we are using a problematic version. Does anyone

Re: [PHP] Encoding problems using phpMyAdmin

2005-01-16 Thread Lars B. Jensen
I am just curious why you do not upgrade to the latest stable 2.6.0-pl3? Because, any version in any patch level since 2.5.7-pl1 doesnt display shift-jis (japanese) properly - or anyway on my system. They seem to have broken the support for it, since that specific version. / Lars -- PHP

Re: [PHP] cron job style php...

2005-01-16 Thread Ligaya Turmelle
Check out here - http://www.htmlcenter.com/tutorials/tutorials.cfm/155/php/ and here - http://www.phpfreaks.com/tutorials/28/0.php and if you want to read about my learning with cron try here - http://www.khankennels.com/blog/index.php?p=103 Hope it all helps. Respectfully, Ligaya Turmelle Russell

[PHP] Persistance objects + importing

2005-01-16 Thread daniel
Hi list, I am needing some advise on the best way of importing classes and persistance, I am goingto supply some code, and would like to know if sessions or share memory is the best way for it.It currently serializes and unserializes the class from a session , i parse the directory and

Re: [PHP] Any idea when 4.3.11 will be released?

2005-01-16 Thread Rasmus Lerdorf
On Sun, 16 Jan 2005, Gal wrote: I'm Working in organization which also using php on the Windows platform. Because of the security holes in the older version and a COM bug at PHP 4.3.10 (http://bugs.php.net/bug.php?id=31159) we are using a problematic version. I'd just roll back to 4.3.9 and

Re: [PHP] imagejpeg() output

2005-01-16 Thread Rasmus Lerdorf
On Sat, 15 Jan 2005, Steven Simmons wrote: I'm trying to write an object oriented system for saving my uploaded files to a blog. I am using php to resize the original photos and save a thumbnail . When I get all done, I want to do something like this: $tempImageData = imagejpeg(