php-windows Digest 6 Jan 2003 19:32:25 -0000 Issue 1522
Topics (messages 17665 through 17679):
Re: MYSQL & PHP + GRAPH
17665 by: toby z
Re: Subject: GD, UNICODE & RTL
17666 by: Neil Smith
17667 by: Neil Smith
PHP Editors
17668 by: Nilza Lafayette
17670 by: Luis Moreira
17674 by: Stephen Edmonds
17675 by: Christoph Grottolo
Re: Capturing Events
17669 by: Warren Vail
Extract Path from URL
17671 by: Herhuth, Ron
17672 by: Luis Moreira
17673 by: Ignatius Reilly
mail() function not working
17676 by: Rad Craig
17677 by: Stephen Edmonds
17678 by: Rad Craig
Have problem - can it be solved with php?
17679 by: Marlene Burckhalter
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 ---
hi
first u ll have to lookup gd and enable it in ur php.ini n u ll have
to get tiff and libjpeg on ur machine
n here r a few links to graph creation with php
http://php.resourceindex.com/Complete_Scripts/Images_and_Graphs/Graph_Creation/
http://www.szewo.com/php/graph/eng.phtml
http://www.aditus.nu/jpgraph/
http://www.boutell.com/gd/
http://www.actionscript.com/archives/00000077.html
http://www.webguys.com/pdavis/programs/html_graphs/
if ur still stuck ping .....
good luck
toby .....
--- [EMAIL PROTECTED] wrote: > Hi,
>
> I am using MySQL as my database backend server and PHP to poll the
> data. I
> am wondering if someone could guide in presenting this data by a
> GRAPH using
> PHP.
>
> I really appreciate ur reply
>
> R---- R--
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Mottaghi - you might be better advised to investigate CSS for this on the
browser :
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/css/reference/attributes.asp
Check the following sub-sections :
Text direction
"direction "
You can specify a class for right to left ("bidi == bi directional") :
"unicode-bidi "
You can specify "ruby" text which can have summarised pronounciation /
accent hints above the text
"ruby-align"
"ruby-overhang"
"ruby-position"
More info :
http://www.pms.informatik.uni-muenchen.de/lehre/seminar/internationalisation/02ss/reports-slides/topicH/Report.html
These techniques will work in most recent browsers - IE5, NN5, Moz, Opera6
etc. They will also allow some degree of indexing by search engines.
Hope that helps,
Regards,
Neil Smith.
At 06:47 06/01/2003 +0000, you wrote:
--- Mottaghi <[EMAIL PROTECTED]> wrote: > Hi all,
> I want to write a Right-to-Left (like Arabic languages) sentence in
> a bitmap
> by unicode.......but HOW???
>
> :) thanks, bye
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Oops - missed a bit :
Look here for mozilla information and examples on bi directional text:
http://www.langbox.com/bidimozilla/
Also check "text-kashida-space" and "writing-mode " here :
http://www.georgehernandez.com/xWebs/CSS/CSSAttributes.htm
regards,
Neil.
Date: Mon, 06 Jan 2003 10:42:09 +0000
To: [EMAIL PROTECTED]
From: Neil Smith <[EMAIL PROTECTED]>
Subject: Re: Subject: GD, UNICODE & RTL
Cc: [EMAIL PROTECTED]
Mottaghi - you might be better advised to investigate CSS for this on the
browser :
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/css/reference/attributes.asp
Check the following sub-sections :
Text direction
"direction "
You can specify a class for right to left ("bidi == bi directional") :
"unicode-bidi "
You can specify "ruby" text which can have summarised pronounciation /
accent hints above the text
"ruby-align"
"ruby-overhang"
"ruby-position"
More info :
http://www.pms.informatik.uni-muenchen.de/lehre/seminar/internationalisation/02ss/reports-slides/topicH/Report.html
These techniques will work in most recent browsers - IE5, NN5, Moz, Opera6
etc. They will also allow some degree of indexing by search engines.
Hope that helps,
Regards,
Neil Smith.
At 06:47 06/01/2003 +0000, you wrote:
--- Mottaghi <[EMAIL PROTECTED]> wrote: > Hi all,
> I want to write a Right-to-Left (like Arabic languages) sentence in
> a bitmap
> by unicode.......but HOW???
>
> :) thanks, bye
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I'm running Apache 2.0 as a service and PHP (like a
module) onto a Windows Advanced Server. I´m looking
for a good and free Editor to use with PHP (something
like Visual Interdev in Windows...). Can anyone guide
me?
> Thanks.
> Janine.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
Nina
Hi, for one, use PHPEdit
Try http://ozu.arecom-sa.com/~marms/phpedit.net/
Luis
----- Original Message -----
From: "Nilza Lafayette" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 11:49 AM
Subject: [PHP-WIN] PHP Editors
> I'm running Apache 2.0 as a service and PHP (like a
> module) onto a Windows Advanced Server. I´m looking
> for a good and free Editor to use with PHP (something
> like Visual Interdev in Windows...). Can anyone guide
> me?
>
> > Thanks.
> > Janine.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
You can find a large list of many of the PHP editors at
http://phpeditors.dancinghippo.com/
My personal favourite is Magnum Studio Light, its free and quite feature
packed... but then again everyone likes their own brand. See
http://www.maguma.com/products/studio/studio_overview.php for more details
about maguma.
Stephen
----- Original Message -----
From: "Luis Moreira" <[EMAIL PROTECTED]>
To: "Nilza Lafayette" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 12:59 PM
Subject: Re: [PHP-WIN] PHP Editors
Nina
Hi, for one, use PHPEdit
Try http://ozu.arecom-sa.com/~marms/phpedit.net/
Luis
----- Original Message -----
From: "Nilza Lafayette" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 11:49 AM
Subject: [PHP-WIN] PHP Editors
> I'm running Apache 2.0 as a service and PHP (like a
> module) onto a Windows Advanced Server. I´m looking
> for a good and free Editor to use with PHP (something
> like Visual Interdev in Windows...). Can anyone guide
> me?
>
> > Thanks.
> > Janine.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Nilza Lafayette wrote:
> I'm running Apache 2.0 as a service and PHP (like a
> module) onto a Windows Advanced Server. I´m looking
> for a good and free Editor to use with PHP (something
> like Visual Interdev in Windows...). Can anyone guide
> me?
>
To say something new:
It's still on the way but very promising:
http://phpeclipse.sourceforge.net/, a php plugin for eclipse.
Eclipse itself is a platform and language independent development platform,
open source, heavily sponsored by IBM and Sun.
Christoph
--- End Message ---
--- Begin Message ---
What you say is true but the key to your statement is "primarily". It is
possible to start a php application, for example, on a windows box with a
command like;
c:>/apache/php/php.exe /batch/somescript.php
and the command will run outside a web server (Equivalent available for
unix, even as a "&" detached process)
there is also a poorly supported project to link the GTK+ toolkit to php (so
buyer beware, not for the faint of heart). Check out
http://gtk.php.net/resources.php for a list of resources. This would
provide the following list of functions which should run in a distributed
environment thru X-windows (not a Bill Gates product) but probably lacks
enough security to use over the internet;
GTK+ Widgets and Objects
Windows & Dialogs
GtkWindow
GtkDialog
GtkColorSelectionDialog
GtkFileSelection
GtkFontSelectionDialog
GtkInputDialog
Containers
GtkHBox
GtkVBox
GtkTable
GtkToolbar
GtkHandleBox
GtkNotebook
GtkFrame
GtkAspectFrame
GtkFixed
GtkPacker
GtkLayout
GtkScrolledWindow
GtkViewport
GtkEventBox
GtkAlignment
GtkHButtonBox
GtkVButtonBox
GtkHPaned
GtkVPaned
Labels & Buttons
GtkLabel
GtkAccelLabel
GtkButton
GtkCheckButton
GtkToggleButton
GtkRadioButton
Data Entry Widgets
GtkEntry
GtkText
GtkSpinButton
GtkOptionMenu
GtkCombo
GtkHScale
GtkVScale
Lists & Trees
GtkCList
GtkCTree
GtkList
GtkListItem
GtkTree
GtkTreeItem
Tooltips
GtkTooltips
GtkTipsQuery
Menus & Menu Bars
GtkMenuBar
GtkMenu
GtkMenuItem
GtkCheckMenuItem
GtkRadioMenuItem
GtkTearoffMenuItem
Graphical Widgets
GtkDrawingArea
GtkImage
GtkPixmap
GtkPreview
GtkCurve
GtkGammaCurve
Misc. Widgets
GtkArrow
GtkCalendar
GtkProgressBar
GtkStatusbar
GtkHRuler
GtkVRuler
GtkHScrollbar
GtkVScrollbar
GtkHSeparator
GtkVSeparator
GtkColorSelection
GtkFontSelection
Abstract Base Classes
GtkWidget
GtkObject
GtkContainer
GtkBin
GtkBox
GtkButtonBox
GtkData
GtkEditable
GtkItem
GtkMenuShell
GtkMisc
GtkPaned
GtkProgress
GtkRange
GtkRuler
GtkScale
GtkScrollbar
GtkSeparator
Integrating with other X Applications
GtkPlug
GtkSocket
Misc. Objects
GtkAdjustment
GtkItemFactory
GtkInvisible
Warren Vail
[EMAIL PROTECTED]
-----Original Message-----
From: Luke Woollard [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 7:33 PM
To: [EMAIL PROTECTED]
Cc: Harvey Frey
Subject: RE: [PHP-WIN] Capturing Events
Dude -> PHP is a (primarily) a server side scripting language so capturing
events through functions like 'onMouseOver' etc aren't applicable..
http://www.php.net/manual/en/tutorial.php
Luke Woollard
-----Original Message-----
From: Harvey Frey [mailto:[EMAIL PROTECTED]]
Sent: Monday, 6 January 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Capturing Events
All:
Javascript has a multitude of functions to capture events, like onClick.
I haven't seen similar functions described in the manual for PHP.
Have I just missed them?
Or are those facilities not available in PHP?
If they are available, I'd appreciate being pointed to the documentation.
Thanks.
Harvey
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I'm having a tough time getting my head around regular expressions. Could somebody
show me how to extract the path (minus the file name) from this URL:
http://www.test.com/path1/thisdoc.html
I would like to extract this:
http://www.test.com/path1/
Thanks in advance,
Ron
--- End Message ---
--- Begin Message ---
Since you cannot predict the length of the string, the way I usually solve this kind o
f thing is by reading the damn thing BACKWARDS.
As soon as I get a slash, voilá ...
----- Original Message -----
From: "Herhuth, Ron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 2:51 PM
Subject: [PHP-WIN] Extract Path from URL
I'm having a tough time getting my head around regular expressions. Could somebody
show me how to extract the path (minus the file name) from this URL:
http://www.test.com/path1/thisdoc.html
I would like to extract this:
http://www.test.com/path1/
Thanks in advance,
Ron
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Don't use a regex:
Try:
$input = "http://www.test.com/path1/thisdoc.html" ;
// find last occurence of "/"
$pos = strrpos( $input, "/" ) ;
// extract until this position
$output = substr( $input, 0, $pos - strlen( $input ) + 1 ) ;
echo $output ;
HTH
Ignatius
____________________________________________
----- Original Message -----
From: "Herhuth, Ron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 3:51 PM
Subject: [PHP-WIN] Extract Path from URL
I'm having a tough time getting my head around regular expressions. Could
somebody show me how to extract the path (minus the file name) from this
URL:
http://www.test.com/path1/thisdoc.html
I would like to extract this:
http://www.test.com/path1/
Thanks in advance,
Ron
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have a new PHP install on Win2k. Everything has worked except the mail()
function. Nothing shows up in my event log.
I have a mail server installed on the same machine. I have the
SMTP=localhost set in my php.ini file. The mail server works fine, has been
for many months.
I have logging turned on in php.ini, but when I run phpinfo() it says it's
turned off. The path to the php.ini file returned from phpinfo() is the
same one I'm editing.
After any change to the .ini file I always restart IIS.
Can someone point me in the right direction PLEASE.
================================
Rad Craig
--- End Message ---
--- Begin Message ---
To fix your mail server:
You need to enable mail relaying on your mail server. HOWEVER, it is VERY
VERY important that ONLY the IP address of 127.0.0.1 is allowed to relay
mail. If any IP can use the mail relay service, then anyone can use your
mail server to send out spam annomously. Once that is done, you should be
able to send email without any problems. If you continue to have a problem,
check your mail server logs as that will show the connection from php
attempting to send the email.
As for your logging problem, have you set a file path for logging to? Look
for
'; Log errors to specified file.
; error_log = '
and put in a valid file name/directory where you want your logs made. (e.g.:
C:\Webserver\PHP\errors.txt - the full path is needed! ). Then, make sure
you have made the errors.txt file in the directory where the setting is
pointing. Remember also to remove the ; from infront of error_log =,
otherwise the line won't be processed!
Stephen
----- Original Message -----
From: "Rad Craig" <[EMAIL PROTECTED]>
To: "PHP Windows" <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 5:38 PM
Subject: [PHP-WIN] mail() function not working
> I have a new PHP install on Win2k. Everything has worked except the
mail()
> function. Nothing shows up in my event log.
>
> I have a mail server installed on the same machine. I have the
> SMTP=localhost set in my php.ini file. The mail server works fine, has
been
> for many months.
>
> I have logging turned on in php.ini, but when I run phpinfo() it says it's
> turned off. The path to the php.ini file returned from phpinfo() is the
> same one I'm editing.
>
> After any change to the .ini file I always restart IIS.
>
> Can someone point me in the right direction PLEASE.
> ================================
> Rad Craig
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I have relaying turned on, also SMTP Authentication. When I'm testing I
turn the Authentication off. I have no way in the ArgoSoft mail server of
specifying accepted ip's for relaying.
Email still does not work.
I have tried what you said about the logging. I can comment out the
error_log=syslog line, uncomment the line to write it to a file, restart
IIS, says logging is turned off, no file is created.
It's like IIS is caching this php.ini file, changes I make don't show up
when I do phpinfo().
Rad...
> -----Original Message-----
> From: Stephen Edmonds [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 12:22 PM
> To: [EMAIL PROTECTED]
> Cc: PHP Windows Helplist
> Subject: Re: [PHP-WIN] mail() function not working
>
>
> To fix your mail server:
>
> You need to enable mail relaying on your mail server. HOWEVER, it is VERY
> VERY important that ONLY the IP address of 127.0.0.1 is allowed to relay
> mail. If any IP can use the mail relay service, then anyone can use your
> mail server to send out spam annomously. Once that is done, you should be
> able to send email without any problems. If you continue to have
> a problem,
> check your mail server logs as that will show the connection from php
> attempting to send the email.
>
> As for your logging problem, have you set a file path for logging to? Look
> for
> '; Log errors to specified file.
> ; error_log = '
> and put in a valid file name/directory where you want your logs
> made. (e.g.:
> C:\Webserver\PHP\errors.txt - the full path is needed! ). Then, make sure
> you have made the errors.txt file in the directory where the setting is
> pointing. Remember also to remove the ; from infront of error_log =,
> otherwise the line won't be processed!
>
> Stephen
>
> ----- Original Message -----
> From: "Rad Craig" <[EMAIL PROTECTED]>
> To: "PHP Windows" <[EMAIL PROTECTED]>
> Sent: Monday, January 06, 2003 5:38 PM
> Subject: [PHP-WIN] mail() function not working
>
>
> > I have a new PHP install on Win2k. Everything has worked except the
> mail()
> > function. Nothing shows up in my event log.
> >
> > I have a mail server installed on the same machine. I have the
> > SMTP=localhost set in my php.ini file. The mail server works fine, has
> been
> > for many months.
> >
> > I have logging turned on in php.ini, but when I run phpinfo()
> it says it's
> > turned off. The path to the php.ini file returned from phpinfo() is the
> > same one I'm editing.
> >
> > After any change to the .ini file I always restart IIS.
> >
> > Can someone point me in the right direction PLEASE.
> > ================================
> > Rad Craig
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Help please.
Can this be done in PHP??? :
(MySQL 3.22.51-nt and PHP 4.2.1)
I have two tables from which I am SELECTing fields from. Both tables have an
identical field by which I am INNER JOINing the tables.
My problem is this: Some of the fields repeat themselves.
Yes, I used the word DISTINCT.
Since IN subSELECTs are not supported in version 3.22.51-nt, I cannot seem to get my
desired results.
More about my problem:
I need to display all classes for SP03. Since there are some class subjects that have
multiple classes in the semester, the class subject names are repeating themselves for
each class.
Is there a way in PHP to solve this problem without upgrading to MySQL 4.07?
Here is some of my coding on this problem (Don't laugh, I am a beginner):
$query="SELECT DISTINCT a.course_name, a.descr, b.course_number,
b.day, b.hour, b.location_id,
b.course_date,
b.instructor_id, b.price
FROM $course_master_tablename a
INNER JOIN $course_details_tablename b
ON a.course_name = b.course_name
WHERE semester_id = 'FA02' and
b.class_id = 'Taxes'
ORDER BY course_name";
$result = mysql_query($query);
if(!$result) error_message(sql_error());
while($query_data = mysql_fetch_array($result)) {
$headername = $query_data["course_name"];
$headerdescr = $query_data["descr"];
$coursenum = $query_data["course_number"];
$weekday = $query_data["day"];
$hourtime = $query_data["hour"];
$location = $query_data["location_id"];
$coursedate = $query_data["course_date"];
$instructor = $query_data["instructor_id"];
$priceof = $query_data["price"];
.THEN I DISPLAY THE FIELDS IN A FORM
}
--- End Message ---