Re: [PHP] php and java appletsf

2004-05-24 Thread Tom Playford
On Fri, May 21, 2004 at 08:16:30AM -0700, jon wrote: Nah... Maybe we're both confused. Is this a java app you wrote or one that you found somewhere? If you know how to control the camera from java and you know how to work in java, you could build yourself a quick and dirty command-line java

Re: [PHP] Re: php and java applets

2004-05-24 Thread Tom Playford
Am I? I thought that applets were allowed to connect to the same host they were loaded from. Which is what I'm trying to do. Nice site BTW, useful for a few other things I'm working on, thanks. Tom On Sat, May 22, 2004 at 07:46:21AM +0600, raditha dissanayake wrote: Tom Playford wrote:

[PHP] Re: DOM XML output whitespace

2004-05-24 Thread Martin Geisler
[EMAIL PROTECTED] (Dan Phiffer) writes: I'm using PHP 5 these days, so I guess I'm looking for some way to tell a DomDocument to prettify its save() output. I don't remember any more where I found this, but with ?php $dom = new DomDocument(); $dom-formatOutput = true; ? you get what you ask

[PHP] Re: Is there any good examples of PHPLIB?

2004-05-24 Thread Aidan Lister
Hi Dsx, If you're unable to use classes from PHPLIB, I suggest you learn PHP first. Using objects for the first time is very confusing, but there are some excellent guides on the internet. I suggest you spend a couple of days just experimenting, writing your own classes to do menial tasks, etc.

[PHP] best way to do this with arrays...

2004-05-24 Thread Edward Peloke
Hello, I have a table in a database that holds begin and end dates...I would like to select all the begin and end dates for a certain id, then add those dates, plus the dates between them to an array...example. Begin date 2004-07-04 End date 2004-07-09 I want the array to hold,

[PHP] Re: best way to do this with arrays...

2004-05-24 Thread Torsten Roehr
Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a table in a database that holds begin and end dates...I would like to select all the begin and end dates for a certain id, then add those dates, plus the dates between them to an array...example. Begin

Re: [PHP] Re: best way to do this with arrays...

2004-05-24 Thread Michal Migurski
$start = '2004-07-04'; $end = '2004-07-09'; $check = '2004-07-06'; // the date you want to check $timestampStart = mktime(0,0,0,substr($start,5,2),substr($start,8,2),substr($start,0,4)); $timestampEnd = mktime(0,0,0,substr($end,5,2),substr($end,8,2),substr($end,0,4)); $timestampCheck =

[PHP] Free zip code database

2004-05-24 Thread Brian Dunning
In case anyone cares, here is a site that gives away a free zip code database that's complete and current, and includes latitude and longitude so you can do distance calculations: http://www.zipwise.com/free-zip-database.php Hope it's useful to someone, - Brian -- PHP General Mailing List

[PHP] Re: Re robi: Re:[PHP] Is there any good examples of PHPLIB?

2004-05-24 Thread Justin Patrin
[EMAIL PROTECTED] wrote: Hi~robi! Thank you,troby,my friend! With your guidance I found first time that PEAR is a very good coding tool which I'd like to learn later.But my server provider do not have it;fortunately,I overcomed the difficultys of PHPLIB by debugging and

[PHP] xml - xslt - xsl:fo - pdf

2004-05-24 Thread juan vazquez
Hi, I am trying to transform a xsl:fo file to pdf. I generate xml files from mysql and I can convert them to xsl:fo using xslt but I can't find information for the last step (XSL:FO to PDF) I just know that a formatter is needed but all what I found where java, jade or .net based

[PHP] Quick encoding question:

2004-05-24 Thread Brian Dunning
I have a form and the people who submit are likely to include a bunch of ¶ characters. (That's a paragraph symbol in case it doesn't come through the list correctly.) However when I read it out of MySQL it comes back as ¶. What can I do about this? Thanks! - Brian -- PHP General Mailing List

Re: [PHP] Quick encoding question:

2004-05-24 Thread Michal Migurski
I have a form and the people who submit are likely to include a bunch of ¶ characters. (That's a paragraph symbol in case it doesn't come through the list correctly.) However when I read it out of MySQL it comes back as ¶. What can I do about this? Thanks! Looks like UTF-8. Make sure your

[PHP] Finding Pre-Made Solutions/Templates

2004-05-24 Thread Domains4Days
Can somebody tell me the best place to look for free or purchase pre-made solutions/templates in PHP/mySQL ... (that can be fully modified and editable)? I am looking for solutions/templates that do the following: - full robust shopping cart - membership database - various content galleries:

Re: [PHP] Finding Pre-Made Solutions/Templates

2004-05-24 Thread John Nichel
Domains4Days wrote: Can somebody tell me the best place to look for free or purchase pre-made solutions/templates in PHP/mySQL ... (that can be fully modified and editable)? I am looking for solutions/templates that do the following: - full robust shopping cart - membership database - various

RE: [PHP] Finding Pre-Made Solutions/Templates

2004-05-24 Thread Vail, Warren
I would recommend http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html Warren Vail -Original Message- From: Domains4Days [mailto:[EMAIL PROTECTED] Sent: Monday, May 24, 2004 11:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Finding Pre-Made Solutions/Templates Can somebody

[PHP] list explode and undefined references

2004-05-24 Thread Scot L. Harris
I came across an interesting problem today which I have found a work around but was wondering if anyone on the list had a better way to solve this problem. Been writing some php scripts on a Linux system using PHP 4.2.2. Basic script works just fine there and does what is needed. Moved this

Re: [PHP] list explode and undefined references

2004-05-24 Thread raditha dissanayake
Scot L. Harris wrote: I came across an interesting problem today which I have found a work around but was wondering if anyone on the list had a better way to solve this problem. Been writing some php scripts on a Linux system using PHP 4.2.2. Basic script works just fine there and does what is

Re: [PHP] xml - xslt - xsl:fo - pdf

2004-05-24 Thread Ray Hunter
On Mon, 2004-05-24 at 10:53, juan vazquez wrote: Hi, I am trying to transform a xsl:fo file to pdf. I generate xml files from mysql and I can convert them to xsl:fo using xslt but I can't find information for the last step (XSL:FO to PDF) I just know that a formatter is needed but all what I

Re: [PHP] list explode and undefined references

2004-05-24 Thread John W. Holmes
From: Scot L. Harris [EMAIL PROTECTED] I came across an interesting problem today which I have found a work around but was wondering if anyone on the list had a better way to solve this problem. Been writing some php scripts on a Linux system using PHP 4.2.2. Basic script works just fine

RE: [PHP] Re: best way to do this with arrays...

2004-05-24 Thread Edward Peloke
the tricky part is I could have fifteen rows in the db all with different start and end dates that I need to check each day against. -Original Message- From: Michal Migurski [mailto:[EMAIL PROTECTED] Sent: Monday, May 24, 2004 10:18 AM To: Torsten Roehr Cc: [EMAIL PROTECTED] Subject: Re:

[PHP] phpmyadmin

2004-05-24 Thread Chris W
I am using phpmyadmin to backup my mysql database. I have it setup to backup all databases and at the bottom there is this foot note . . . * Use __DB__ for database name, __TABLE__ for table name and any strftime http://www.php.net/manual/function.strftime.php options for time specification,

[PHP] imagettftext() question

2004-05-24 Thread Mike Rotondo
I've written a script that displays a graph of some data from a text file. Beneath each bar in the graph is a text label. I read the php.net documentation and it seemed that imagettftext() was the easiest function to get text in an image with, so I used that. Here is the text-display code (syntax

Re: [PHP] phpmyadmin

2004-05-24 Thread James E Hicks III
On Monday 24 May 2004 04:04 pm, Chris W wrote: It sounds like this is for adding the date and time to file name for the backup but I can't figure out how it works. Maybe an email to the phpMyAdmin list will get you an answer faster than in here? James -- PHP General Mailing List

[PHP] Multiple substring replacement

2004-05-24 Thread GodFoca
What's the best way of replacing every ocurrence of a substring in a LARGE string by another (longer) substring? Specifically, I have read the contents of a file into a tring with fread, and now I want to replace all \n with br Thanks in advance Nicolas Sanguinetti -- PHP General Mailing List

Re: [PHP] phpmyadmin

2004-05-24 Thread John W. Holmes
From: Chris W [EMAIL PROTECTED] I am using phpmyadmin to backup my mysql database. I have it setup to backup all databases and at the bottom there is this foot note . . . * Use __DB__ for database name, __TABLE__ for table name and any strftime

Re: [PHP] Multiple substring replacement

2004-05-24 Thread Brent Baisley
Normally, I would say str_replace(), but for converting \n to br, use the nl2br() function. On May 24, 2004, at 4:28 PM, GodFoca wrote: What's the best way of replacing every ocurrence of a substring in a LARGE string by another (longer) substring? Specifically, I have read the contents of a

Re: [PHP] Multiple substring replacement

2004-05-24 Thread Red Wingate
In this special case you would even use 'file' to read the content of the file into an array and use 'implode' to replace every \n with br $content = implode( br , file ( './my_file.txt' ) ); -- red Brent Baisley wrote: Normally, I would say str_replace(), but for converting \n to br, use the

RE: [PHP] Re: best way to do this with arrays...

2004-05-24 Thread Michal Migurski
the tricky part is I could have fifteen rows in the db all with different start and end dates that I need to check each day against. Then do the data comparison in the DB -- SELECT * FROM your_table WHERE {$check_time} = start_time AND {$check_time} = end_time;

[PHP] find out ip address [beginner]

2004-05-24 Thread Tobes
hi, i need some code to find out the ip address of a server. just a simple dns query. how do i do that? i'm a beginner, please help. thanks in advance tobes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding Pre-Made Solutions/Templates

2004-05-24 Thread Domains4Days
Thanks for the tips... Has anyone had any experience with: http://www.oscommerce.com/ - can you recommend anything better for php/mysql shopping cart solutions...? I want to end up with a modifiable Robust / PRO solution that can grow with my needs... -- Thanks - RevDave [EMAIL PROTECTED]

RE: [PHP] find out ip address [beginner]

2004-05-24 Thread Chris W. Parker
Tobes mailto:[EMAIL PROTECTED] on Monday, May 24, 2004 2:09 PM said: hi, i need some code to find out the ip address of a server. just a simple dns query. how do i do that? i'm a beginner, please help. are you saying you already have the FQDN (Fully Qualified Domain Name)? or are you

[PHP] Re: find out ip address [beginner]

2004-05-24 Thread Jonesy
On Mon, 24 May 2004 23:09:04 +0200, Tobes hath writ: hi, i need some code to find out the ip address of a server. just a simple dns query. WFM: |$ ping ibm.com |PING ibm.com (129.42.18.99) 56(84) bytes of data. : Jonesy -- | Marvin L Jones | jonz | W3DHJ | OS/2

[PHP] multi array wildcard

2004-05-24 Thread John Kaspar
Is there a shortcut way to turn an subelement in a multi-dimensioned array into a regular array. For example, here's my array: // print_r($users) Array ( [1] = Array ( [name] = John [email] = [EMAIL PROTECTED] ) [2] = Array (

RE: [PHP] Re: find out ip address [beginner]

2004-05-24 Thread Chris W. Parker
Jonesy mailto:[EMAIL PROTECTED] on Monday, May 24, 2004 2:21 PM said: WFM: |$ ping ibm.com |PING ibm.com (129.42.18.99) 56(84) bytes of data. : wow. that's the weirdest looking php i've ever seen. is that a beta or something? chris. -- PHP General Mailing List

RE: [PHP] find out ip address [beginner]

2004-05-24 Thread Rick Fletcher
hi, i need some code to find out the ip address of a server. just a simple dns query. how do i do that? i'm a beginner, please help. $ip = gethostbyname( www.php.net ); http://www.php.net/manual/en/function.gethostbyname.php --Rick -- PHP General Mailing List (http://www.php.net/) To

[PHP] Sessions simply do not work?

2004-05-24 Thread Michael R. Wayne
In my continuing efforts to actually get sessions to work, I upgraded to PHP 4.3.6 and apache 1.3.31. This did not make the slighest difference. So, does ANYone have ideas of how to debug this? Or is PHP simply broken and no longer able to maintain sessions? /\/\ \/\/ -- PHP General

[PHP] Re: multi array wildcard

2004-05-24 Thread John Kaspar
I went ahead and just wrote a quick function. If there is an easier way, please let me know. Thanks. function multi_pick($multi_array, $return_key) { $ret_array = array(); foreach ($multi_array as $key=$sub_array) { if (isset($sub_array[$return_key])) {

Re: [PHP] Re: sessions

2004-05-24 Thread Michael R. Wayne
On Sun, May 23, 2004 at 09:00:41PM +0200, Maarten Weyn wrote: It worked for 5 minutes after a reboot, but now i get the same problem what happens is that on every session_start(); a new sessid is created how comes it doesn't use the old one I am starting to believe that session support is

RE: [PHP] Re: find out ip address [beginner]

2004-05-24 Thread Daniel Clark
LOL :-) Jonesy mailto:[EMAIL PROTECTED] on Monday, May 24, 2004 2:21 PM said: WFM: |$ ping ibm.com |PING ibm.com (129.42.18.99) 56(84) bytes of data. : wow. that's the weirdest looking php i've ever seen. is that a beta or something? chris.

Re: [PHP] Re: find out ip address [beginner]

2004-05-24 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): Jonesy mailto:[EMAIL PROTECTED] on Monday, May 24, 2004 2:21 PM said: WFM: |$ ping ibm.com |PING ibm.com (129.42.18.99) 56(84) bytes of data. : wow. that's the weirdest looking php i've ever seen. is that a beta or

Re: [PHP] xml - xslt - xsl:fo - pdf

2004-05-24 Thread Yann Larrivee
You need the pear packadge XML_fo2PDF http://pear.php.net/package/XML_fo2pdf Yann On Mon, 2004-05-24 at 15:22, Ray Hunter wrote: On Mon, 2004-05-24 at 10:53, juan vazquez wrote: Hi, I am trying to transform a xsl:fo file to pdf. I generate xml files from mysql and I can convert them to

[PHP] other eyes

2004-05-24 Thread Bob Lockie
I can't see it. Maybe other eyes will help. :-) Why does search_username.1 show the data that was posted with the form but search_username.2 is empty? $search_usename = $_REQUEST[search_username]; echo search_username.1='$_REQUEST[search_username]'; echo

[PHP] Re: other eyes

2004-05-24 Thread John Kaspar
$search_usename $search_username you're missing an r On 5/24/2004 5:55 PM, Bob Lockie wrote: I can't see it. Maybe other eyes will help. :-) Why does search_username.1 show the data that was posted with the form but search_username.2 is empty? $search_usename =

Re: [PHP] other eyes

2004-05-24 Thread Brad Pauly
On Mon, 2004-05-24 at 16:55, Bob Lockie wrote: I can't see it. Maybe other eyes will help. :-) Why does search_username.1 show the data that was posted with the form but search_username.2 is empty? $search_usename = $_REQUEST[search_username]; --^ need an r

RE: [PHP] Re: find out ip address [beginner]

2004-05-24 Thread Chris W. Parker
Curt Zirzow mailto:[EMAIL PROTECTED] on Monday, May 24, 2004 3:55 PM said: wow. that's the weirdest looking php i've ever seen. is that a beta or something? what ya talking about? i was pointing out that the user explained he was a beginner and that he was looking for code. so for the

[PHP] Error building PHP with PostgreSQL support

2004-05-24 Thread Robert Fitzpatrick
I am getting the following problem with trying to install from source PHP 4.3.6 with PG support on FreeBSD 5.2.1. I have PostgreSQL 7.4.2 recently upgraded from 7.3.x and it is up and running fine. I also have Heimdal 0.6 installed and PostgreSQL was built with that support. Is the error below

Re: [PHP] other eyes

2004-05-24 Thread Bob Lockie
Thanks to all who responded. Doh to me. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple substring replacement

2004-05-24 Thread hitek
why not use nl2br() ? At 01:28 PM 5/24/2004, GodFoca wrote: What's the best way of replacing every ocurrence of a substring in a LARGE string by another (longer) substring? Specifically, I have read the contents of a file into a tring with fread, and now I want to replace all \n with br Thanks in

[PHP] meet problem while use imap_close

2004-05-24 Thread php maillist
hello everybody, I need help for using imap functions in php I refer the imap functions from the book Professional PHP4 it introduces the imap server from telnet it to writing a brief scripts it teach me that type telnet localhost 143 behind prompts and I got the right response from my imap

[PHP] [Newbie Guide] For the benefit of new members

2004-05-24 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP.  Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

[PHP] Php Alias instead of redirect

2004-05-24 Thread Jake Johnson
Hello, Is it possible to have an alias so that bots will index the page instead of a redirect. -- Thanks, Jake Johnson [EMAIL PROTECTED] __ Plutoid - http://www.plutoid.com - Shop Plutoid for the best prices on rings, earrings,

[PHP] [Newbie Guide] For the benefit of new members

2004-05-24 Thread Ma Siva Kumar
LINK TO THE LIST OF EDITORS CORRECTED === Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use