Re: [PHP] How to display field after MySQL join.

2002-12-26 Thread Sean Burlington
Stephen of Blank Canvas wrote: Hi Everyone, I'm trying to display the content of two mysql tables on a single page, I have successfully joined them with the following statement. $query = SELECT serv.*, cat.* FROM site_services AS serv, site_servicescat AS cat WHERE serv.servicescat_id =

php-general Digest 26 Dec 2002 10:42:56 -0000 Issue 1785

2002-12-26 Thread php-general-digest-help
php-general Digest 26 Dec 2002 10:42:56 - Issue 1785 Topics (messages 129328 through 129346): Re: How To Get Last Item Of An Array? 129328 by: John W. Holmes 129329 by: Jason Wong 129330 by: Leon Mergen How to display field after MySQL join. 129331 by:

[PHP] Open HTTPS connection

2002-12-26 Thread John W. Holmes
What are the different ways to open an HTTPS connection from within a script and receive back the response into a variable? I know CURL can do it, and PHP 4.3 with OpenSSL can use fopen() to do it. Can sockets be used at all with PHP 4.2 to get the page or maybe a system call to a simple program

[PHP] language internationalisation

2002-12-26 Thread Denis L. Menezes
Hello friends, As the subject suggests I am looking for language capabilitie on my php webpages. Can someone please tell me which is a good way? I thought that I could have a database, but if so, can MySQL: handle multiple languages in the fields(like chinese language)? if this is possible,

[PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Denis L. Menezes
Hello friends, Can someone please tell me where I can find sample scripts for populating textboxes and listboxes on a form(when the form opens) using the data from fields in a table? Thanks Denis

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread Ben Edwards
Here is the code with suggestion added, message still gets truncated after comma. Ben ? include( common.inc ); $db = open_db(); html_header( Contact Us ); if(isset($doit)) { $errors=array(); check_email( $email, $errors ); if(!isset ($message) || $message == '') {

Re: [PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Rick Emery
Text box: print INPUT type=text name=myname value=\$data_value\\n; List box: print SELECT name=myselect\n; while($row = mysql_fetch_array($result)) { extract($row); print OPTION value=\$data_value\$data_title/OPTION\n; } print /SELECT\n; - Original Message - From: Denis L. Menezes

[PHP] PHP session logger

2002-12-26 Thread Francisco Vaucher
Hi to all, i'm trying to find a logger to watch the files in /tmp/session_xxx any help? Francisco M. Vaucher

Re: [PHP] PHP session logger

2002-12-26 Thread 1LT John W. Holmes
i'm trying to find a logger to watch the files in /tmp/session_xxx Watch them do what? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP session logger

2002-12-26 Thread Francisco Vaucher
You have all the /tmp/session_xxx files that contain info about the sessions variables... Well, I need a logger to watch them... nothing else Francisco M. Vaucher Departamento IT Tyco / ADT Security Services Buenos Aires - Argentina mailto:[EMAIL PROTECTED] -Mensaje original-

Re: [PHP] Beginner examples?

2002-12-26 Thread Rick Widmer
At 09:02 PM 12/23/02 -0800, Chris Rehm wrote: John W. Holmes wrote: http://www.google.com/search?sourceid=navclientie=UTF-8oe=UTF-8q=php+ mysql+tutorial ---John W. Holmes... The Internet is a wealth of resources, but some of them aren't as good as others. If people here have had great success

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread Ben Edwards
I have actually discovered the problem is in fact that the message gets truncated after a Carriage Return. The even wearder thing is that $msg = ereg_replace( \n, NL, $msg ); Douse put NL where the carriage return was but also seems to leave some kind on new line character. So when I

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread 1LT John W. Holmes
I have actually discovered the problem is in fact that the message gets truncated after a Carriage Return. The even wearder thing is that $msg = ereg_replace( \n, NL, $msg ); Douse put NL where the carriage return was but also seems to leave some kind on new line character. So

[PHP] Installing PHP on XP

2002-12-26 Thread Todd Cary
I have Apache running on Windows XP, however I am having problems installing PHP. My PHP directory is C:\Active_Php and the documents say that I should add the following lines to httpd.conf: LoadModule php4_module c:/Active_PhP/sapi/php4apache.dll AddModule mod_php4.c AddType

[PHP] Finding # of weekdays between 2 dates..

2002-12-26 Thread Chad Day
I found this function in the list archives while searching on how to find the number of a weekday (say, Tuesdays) between 2 dates.. function weekdaysBetween ($timestamp1, $timestamp2, $weekday) { return floor(intval(($timestamp2 - $timestamp1) / 86400) / 7) + ((date('w',

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread Ben Edwards
Sorted it out with $message = ereg_replace((\r\n|\n|\r), \n, trim( stripslashes( $message) ) ); trim and stripslashes not strictly speaking nessesery. Not 100% sure what happened here but guess \r\n or \r was causing problems. Ben At 11:11 26/12/2002 -0500, 1LT John W. Holmes wrote: I

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread Paul Roberts
what mailserver are you using and how is it called in php.ini? and what else is in the message causing the problem. Best Wishes Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - From: Ben Edwards [EMAIL PROTECTED] To: 1LT John W. Holmes [EMAIL

[PHP] OOP and object references, not copies - how to do?

2002-12-26 Thread Erik Franzén
Say the you are going to create a simple forum and you want to have a number of classes: Class Sql - handles the DB interface Class User - handles users Class Messages - handles messages When you are writing the code, you first creates a new sql object in order to read or write data from or to

[PHP] Unable to set permissions

2002-12-26 Thread Alberto Brea
When I upload php and other files and set the permissions on my ISP's (CPanel) file manager screen, sometimes the new permissions are set, other times they reset back to 644 without my knowing (so a visitor is unable to access the website, as the php scripts don't execute), and others the

Re: [PHP] Re: Mass Mailing

2002-12-26 Thread peter a
Hi. I have myself written a rather clumsy mass mailer in php which queues mail via the sendmail-command. I have found this to be rather slow and ineffective. You are talking about queueing mail directly to the mailqueue, and I wonder, how is that done with php? About making mails not rejected

Re: [PHP] Apache

2002-12-26 Thread John Nichel
http://httpd.apache.org/docs/misc/FAQ.html#set-servername Mantas Kriauciunas wrote: Hey! I'm using FreeBSD 4.5 as my server and I have loaded Apache 1.3.2 and PHP 4.x . hare goes the question, sorry it isn't about php but still maybe you can help me. When I type Http://www.example.com/~user the

[PHP] unpack() based on C struct

2002-12-26 Thread Tim Molendijk
Hi all, Assume we've got a binary data file 'profile' which stores the data of a C struct. The struct is as follows: struct s_profile { char id[32]; char vala:3; char valb:1; char valc:7; } Now I would like to read 'profile' using PHP's unpack(). So like this: $f =

[PHP] Flow diagrams.

2002-12-26 Thread Sridhar Moparthy
Hi Every one, Do you know how to prepare and display process flow diagrams dynamically based on some data from database. I have information about some processes in the database that tells different process dependencies. I need to display that information as a process flow diagram. I am using PHP

[PHP] Include Problems

2002-12-26 Thread Mike Bowers
Title: Message I have a file named header.php stored in the includes folder: Inside includes is anohter folder called editable. When I open my page for the first time (before it is cached) or after I edit my header file I get these errors: Warning: Failed opening 'editable/meta.php' for

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
Isnt this supposed to be a friendly place where people who are having problem with PHP can ask questions without people like u throwing insults? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:47 PM To: Mike Bowers Subject:

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
Post the include statements from your header.php file. Mike Bowers wrote: Isnt this supposed to be a friendly place where people who are having problem with PHP can ask questions without people like u throwing insults? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
A couple of items which will help you get a better / friendlier response here. Don't send mail to the list in HTML format, and don't request a return reciept. HTH Mike Bowers wrote: Isnt this supposed to be a friendly place where people who are having problem with PHP can ask questions

Re: [PHP] Include Problems

2002-12-26 Thread Chris Hewitt
Mike Bowers wrote: I have a file named header.php stored in the includes folder: Inside includes is anohter folder called editable. When I open my page for the first time (before it is cached) or after I edit my header file I get these errors: *Warning*: Failed opening 'editable/meta.php'

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
It's not permissions. The files to be read as well as folders are all CHMOD 777 as I thought it was this originally. Thanks for your suggestion though. -Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:11 PM To: Mike Bowers Cc: [EMAIL

[PHP] email

2002-12-26 Thread Anil Garg
hi i found a 'formmail' scripts from somewhere.. the problem isthe email which i get from this scripts has 'unprivilaged user' in the 'from' field. mail($form['recipient'], $form['sublect'],$mailbody, From:Web User); if i use this...in the from field..it says '[EMAIL PROTECTED]' I just need

Re: [PHP] Include Problems

2002-12-26 Thread John Nichel
You can try setting your include path in a .htaccess file in your web root, like this php_value include_path .:/path/to/include/directory Mike Bowers wrote: The includes are as follows: Include(editable/meta.php); Include(javascript.php); Include(editable/my_header.php); -Original

[PHP] e-mail

2002-12-26 Thread Anil Garg
hi i found a 'formmail' scripts from somewhere.. the problem isthe email which i get from this scripts has 'unprivilaged user' in the 'from' field. mail($form['recipient'], $form['sublect'],$mailbody, From:Web User); if i use this...in the from field..it says '[EMAIL PROTECTED]' I just need

Re: [PHP] Include Problems

2002-12-26 Thread Chris Wesley
On Thu, 26 Dec 2002, Mike Bowers wrote: I have a file named header.php stored in the includes folder: Inside includes is anohter folder called editable. When I open my page for the first time (before it is cached) or after I edit my header file I get these errors: Warning: Failed opening

RE: [PHP] Include Problems

2002-12-26 Thread Mike Bowers
This has worked. Thanks for your inout and help everybody. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:13 PM To: Mike Bowers; [EMAIL PROTECTED] Subject: Re: [PHP] Include Problems You can try setting your include path in a

Re: [PHP] e-mail

2002-12-26 Thread Paul Roberts
try this mail($form['recipient'], $form['sublect'],$mailbody, From:Web User [EMAIL PROTECTED]'); Best Wishes Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - From: Anil Garg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December

Re: [PHP] Flow diagrams.

2002-12-26 Thread Jimmy Brake
to my knowledge there is nothing in php that does that good luck On Thu, 2002-12-26 at 11:17, Sridhar Moparthy wrote: Hi Every one, Do you know how to prepare and display process flow diagrams dynamically based on some data from database. I have information about some processes in the

Re: [PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Gerald Timothy Quimpo
On Thursday 26 December 2002 06:59 am, Rick Emery wrote: Text box: print INPUT type=text name=myname value=\$data_value\\n; i prefer to use templates. i use my own template code, but there are good template systems online that you can use, e.g., http://smarty.php.net is powerful. in a

RE: [PHP] e-mail

2002-12-26 Thread James E Hicks III
Maybe you need to add the -f to your sendmail command? James -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:06 PM To: [EMAIL PROTECTED] Subject: [PHP] e-mail hi i found a 'formmail' scripts from somewhere.. the problem isthe email

Re: [PHP] Include Problems

2002-12-26 Thread Gerald Timothy Quimpo
On Thursday 26 December 2002 12:06 pm, Mike Bowers wrote: It's not permissions. The files to be read as well as folders are all CHMOD 777 as I thought it was this originally. don't use 777. that makes the scripts writeable for everyone. any other user who can run scripts on that server can

[PHP] Re: Flow diagrams.

2002-12-26 Thread Manuel Lemos
Hello, On 12/26/2002 05:18 PM, Sridhar Moparthy wrote: Do you know how to prepare and display process flow diagrams dynamically based on some data from database. I have information about some processes in the database that tells different process dependencies. I need to display that

[PHP] Selecting what's for deletion

2002-12-26 Thread Cesar Aracena
Hi all, I'm making the administration part of a site which handles categories, sub categories and products. Inside the Categories part, there's a List categories button which gives a list of the categories and sub categories when pressed. Along with each category, there's a Delete button that,

RE: [PHP] Selecting what's for deletion

2002-12-26 Thread John W. Holmes
I'm making the administration part of a site which handles categories, sub categories and products. Inside the Categories part, there's a List categories button which gives a list of the categories and sub categories when pressed. Along with each category, there's a Delete button that, when

[PHP] Nested Arrays

2002-12-26 Thread Beauford.2002
Hi, Is there anyway to do a nested array, I have looked at the various array functions and can't figure this out (if possible). I want to be able to put each field of a row into an array, and then put that entire row and into another array. so when I display it, I would have: row1 - col1

php-general Digest 26 Dec 2002 23:14:22 -0000 Issue 1786

2002-12-26 Thread php-general-digest-help
php-general Digest 26 Dec 2002 23:14:22 - Issue 1786 Topics (messages 129347 through 129387): Open HTTPS connection 129347 by: John W. Holmes language internationalisation 129348 by: Denis L. Menezes Populating textboxes and listboxes from a query result of a database

Re: [PHP] Open HTTPS connection

2002-12-26 Thread Sean Burlington
John W. Holmes wrote: What are the different ways to open an HTTPS connection from within a script and receive back the response into a variable? I know CURL can do it, and PHP 4.3 with OpenSSL can use fopen() to do it. Can sockets be used at all with PHP 4.2 to get the page or maybe a system

Re: [PHP] Nested Arrays

2002-12-26 Thread Weston Houghton
Sure... for the longwinded approach, just do this: $row1 = array(col1, col2, col3, ...); $row2 = array(col1, col2, col3, ...); $row3 = array(col1, col2, col3, ...); $row4 = array(col1, col2, col3, ...); $row5 = array(col1, col2, col3, ...); $main_array = array($row1, $row2, $row3, $row4,

Re: [PHP] Nested Arrays

2002-12-26 Thread Weston Houghton
Sure... for the longwinded approach, just do this: $row1 = array(col1, col2, col3, ...); $row2 = array(col1, col2, col3, ...); $row3 = array(col1, col2, col3, ...); $row4 = array(col1, col2, col3, ...); $row5 = array(col1, col2, col3, ...); $main_array = array($row1, $row2, $row3, $row4,

Re: [PHP] Nested Arrays

2002-12-26 Thread Wee Keat [Amorphosium]
Is there anyway to do a nested array, I have looked at the various array functions and can't figure this out (if possible). Try reading up on multidimensional array... http://www.onlamp.com/pub/a/php/2001/06/07/php_foundations.html

[PHP] php+gd 2.0.7 problems take 2

2002-12-26 Thread cj
Hi would any one know what the following error's are for/mean I am using gd 2.0.7 with gif support built in and php4.2.3 I am using the exact same gd version and php version as I used on another machine and it compiled with only minor problems, but these errors are different to the errors I got on

[PHP] str_replace

2002-12-26 Thread Weston Houghton
All, In using str_replace, I glanced at the manual and found that it can take arrays for it's arguments. Great! I thought that I could have a single search string, an array of replacement vars, and no subject. It would then replace each successive instance of the search string with the next

[PHP] Cheap Hosting

2002-12-26 Thread Stephen
Hello, I need a nice, reliable host for my new website. It needs to be fast, reliable, needs a good uptime, and some features. PHP and MySQL are the two I really need. Does anyone recomend one that's really cheap? So far I've found on, $5 a month, but it's slower then what'd I like. If

Re: [PHP] Nested Arrays

2002-12-26 Thread Beauford.2002
Thanks for the info, but maybe I didn't give enough info. I have a mysql database with up to 10 rows and 5 fields in each row.. I have been reading up on some of the array functions, but haven't been able to get anything to work. TIA - Original Message - From: Weston Houghton [EMAIL

RE: [PHP] str_replace

2002-12-26 Thread John W. Holmes
In using str_replace, I glanced at the manual and found that it can take arrays for it's arguments. Great! I thought that I could have a single search string, an array of replacement vars, and no subject. It would then replace each successive instance of the search string with the next

Re: [PHP] str_replace

2002-12-26 Thread Weston Houghton
okey dokey, here goes: this gets really complicated to explain without showing the code, which I really can't do (damned NDA's) and ultimately it's a bit big to post anyhow. But I'm going to try. I let the user specify a number of rows to input 2 pieces of data. I then replace a template

Re: [PHP] Cheap Hosting

2002-12-26 Thread Rick Emery
www.nomonthlyfees.com $200 first year, $70 per year thereafter. I put all my clients with this service. rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: Stephen To: PHP List Sent:

[PHP] Photos and logos in MySQL + PHP

2002-12-26 Thread Denis L. Menezes
Hello friends, I am making a website for our school. My requirement is that when any student searched for a particular club, the logo of the club abd the chairperson's phot should automatically be shown dynamically on the top of the page. For this to be done, I have three questions, if any of

Re: [PHP] Photos and logos in MySQL + PHP

2002-12-26 Thread Michael J. Pawlowsky
Well the datatype would be a blob. But personally I would just have pointer to the photos on the server. In other words... you have the id of the row for that club and you can name the photo photo_$id.jpg and the logo logo_$id.jpg Here's a snippet you can take a look at for uploading the

Re: [PHP] Photos and logos in MySQL + PHP

2002-12-26 Thread Rick Widmer
At 09:40 AM 12/27/02 +0800, Denis L. Menezes wrote: Hello friends, I am making a website for our school. My requirement is that when any student searched for a particular club, the logo of the club abd the chairperson's phot should automatically be shown dynamically on the top of the page.

Re: [PHP] Nested Arrays

2002-12-26 Thread Wee Keat [Amorphosium]
- Original Message - From: Beauford.2002 [EMAIL PROTECTED] To: Wee Keat [Amorphosium] [EMAIL PROTECTED] Sent: Friday, December 27, 2002 12:13 PM Subject: Re: [PHP] Nested Arrays Quote: I have looked at the various array functions and can't figure this out . Wow... You're

[PHP] include problem

2002-12-26 Thread Pag
Hi, i am trying to make my work a little easier when editing the appearance of a news site i am building. As it is, everytime i want to change the looks of how each news appears, i have to edit inside the print(' '); which is annoying, because of the backslash with problem thing(when i

Re: [PHP] include problem

2002-12-26 Thread Rasmus Lerdorf
Use a here-doc: echo EOB br[$data] br $titulo br($user)br $intro br $texto brbr (comentarios=$contador)brbrhr size=1 width=90%br EOB; -Rasmus On Fri, 27 Dec 2002, Pag wrote: Hi, i am trying to make my work a little easier when editing the appearance of a news site i am

Re: [PHP] Cheap Hosting

2002-12-26 Thread Kyle Gibson
Hello, I need a nice, reliable host for my new website. It needs to be fast, reliable, needs a good uptime, and some features. PHP and MySQL are the two I really need. Does anyone recomend one that's really cheap? So far I've found on, $5 a month, but it's slower then what'd I like. If

[PHP] odd results inquiry

2002-12-26 Thread Tony Tzankoff
Here is a strange one (for me, anyway)... The command is as follows: select * from xtable where client='name' order by r_date desc, r_time desc limit 0,10; The problem: It returns 20 records and when i execute this command...it returns 30 records select * from xtable where client='name' order

Re: [PHP] Cheap Hosting

2002-12-26 Thread Jason k Larson
I can personally recommend www.icdsoft.com as they are CHEAP! But offer everything you could hope for. Support has been awesome and service has been very reliable. Jason k Larson Stephen wrote: Hello, I need a nice, reliable host for my new website. It needs to be fast, reliable, needs a

Re: [PHP] odd results inquiry

2002-12-26 Thread Michael J. Pawlowsky
Well the second one I can help you with.. it should be LIMIT 11,10 if you only want 10 rows You are asking for 20. For the fun of it try 1,10 on the first one. *** REPLY SEPARATOR *** On 26/12/2002 at 10:23 PM Tony Tzankoff wrote: Here is a strange one (for me,

RE: [PHP] Cheap Hosting

2002-12-26 Thread Daniel Kushner
Hi Stephen, nyphp.org has a hosting service that you might find interesting. Take a look at: http://thehostingcompany.us Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Stephen [mailto:[EMAIL

Re: [PHP] odd results inquiry

2002-12-26 Thread Michael J. Pawlowsky
Actually I bet if you take a closer look at your code you will see that your are incrementing that value somewhere before the query is executed or something. Perhaps you are mixing up the order of the row limit and starting point. The 0 is right. I just quickly tried it in a mysql term SELECT

[PHP] How To Use The next() and prev() functions on multi-dimensional arrays

2002-12-26 Thread @ Nilaab
Hello Everyone, I have a multi-dimensional array called $cat_data, and I need to access certain elements in the array using the next() and prev() functions. I did consider using loops like for, foreach, and while...but for this particular application, I don't want to loop through the entire

Re: [PHP] Finding # of weekdays between 2 dates..

2002-12-26 Thread Marek Kilimajer
WFM: $nowdate = mktime(0, 0, 0, 4, 1, 2002); $futuredate = mktime(0, 0, 0, 5, 2, 2002); echo weekdaysBetween ($nowdate,$futuredate,2); I get 5 Chad Day wrote: I found this function in the list archives while searching on how to find the number of a weekday (say, Tuesdays) between 2 dates..

RE: [PHP] Nested Arrays

2002-12-26 Thread Paul Reed
I didn't see this approach in any other reply. A multidimensional array is just an array of single dimensional arrays... Basically $array[row#][col#]=$data; $array[0][0]= row0, col0; $array[0][1]= row0, col1; This also works with associative arrays... $cars[0]['make']=Ford;

Re: [PHP] Installing PHP on XP

2002-12-26 Thread Marek Kilimajer
I did 2 days ago - Apache 1.3.27 + PHP/4.2.3. Did you follow the other instructions too? What is the error saing? Todd Cary wrote: I have Apache running on Windows XP, however I am having problems installing PHP. My PHP directory is C:\Active_Php and the documents say that I should add the

Re: [PHP] Unable to set permissions

2002-12-26 Thread Marek Kilimajer
You should check the owner. However, this is not a php question, you should really ask your ISP. You did not even tell what kind of file manager it is. Alberto Brea wrote: When I upload php and other files and set the permissions on my ISP's (CPanel) file manager screen, sometimes the new