Re: [PHP] mysql_fetch_array

2004-03-26 Thread Tom Rogers
Hi, Saturday, March 27, 2004, 4:50:27 AM, you wrote: CM I have this query to select the date from my table... CM SELECT DATE_FORMAT(date1, '%W %M %Y') FROM table CM How do I know what name mysql_fetch_array assigned to the date_format ? SELECT DATE_FORMAT(date1, '%W %M %Y') AS date_formatted

Re: [PHP] performance with looping and count()ing

2004-03-26 Thread Tom Rogers
Hi, Saturday, March 27, 2004, 4:45:38 AM, you wrote: CWP hi. CWP ok, so i've always been under the impression that count()ing during the CWP expression of a loop was much inefficient when compared to count()ing CWP just before the loop expression. CWP GOOD: CWP ?php CWP $the_array_cnt =

Re: [PHP] sprintf troubles

2004-03-26 Thread Tom Rogers
Hi, Saturday, March 27, 2004, 1:31:33 AM, you wrote: CT Hey, CT Im trying to use sprintf to format a number and left pad it with spaces, but CT it doesnt want to add the spaces CT I can pad it with anyother char using sprintf(%'_8.2f, $val) which will CT left-pad the number with underscores

Re: [PHP] question about M. Lemos's HTML forms generation and validation

2004-03-25 Thread Tom Rogers
Hi, Friday, March 26, 2004, 11:19:51 AM, you wrote: dz Hello, dz I'm creating registration service with this great form script for dz creating forms within Smarty. dz Question is how can I validate 'username' against allready registered dz users in MySQL so that someone cannot register him

Re[2]: [PHP] Problem with header

2004-03-25 Thread Tom Rogers
Hi, Friday, March 26, 2004, 2:36:18 PM, you wrote: pen On 25 Mar 2004 at 14:10, Tom Rogers wrote: Any whitespace in any file before the ?php will cause data to be sent to the browser forcing the headers to be sent. So make sure the first line of your page has ?php and it is a good idea

Re: [PHP] problem with the function mssql_list_tables()

2004-03-24 Thread Tom Rogers
Hi, Thursday, March 25, 2004, 8:12:41 AM, you wrote: G Hello, it wanted to know how as profit to supplant the function G mysql_list_tables() for SQL server server or like the tables of one G db of SQL server in php... G thank you very much This may be it: USE dbname SELECT Name FROM sysobjects

Re: [PHP] Problem with header

2004-03-24 Thread Tom Rogers
Hi, Thursday, March 25, 2004, 9:17:31 AM, you wrote: PM Hello to all - just joined this list to see if I can enhance PM my pretty slim knowledge of PHP. PM I have a little script I cobbled together than I modified to use as a guestbook for a PM client's site. I am trying to get the script to

Re[2]: [PHP] Problem with header

2004-03-24 Thread Tom Rogers
Hi, TR Any whitespace in any file before the ?php will cause data to be sent TR to the browser forcing the headers to be sent. So make sure the first TR line of your page has ?php and it is a good idea to drop the ? from TR included pages as there may be blank lines following which are just as TR

Re: [PHP] syntax for printing multi-dimensional arrays

2004-03-23 Thread Tom Rogers
Hi, Tuesday, March 23, 2004, 8:03:05 PM, you wrote: BP Hi all BP I am having problems printing members of an array that has two BP dimensions and am wondering if someone can help me with the syntax BP required to do this. BP If i have the follwing code: BP ?php BP

Re: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 12:44:40 AM, you wrote: F I would be very interested in a solution to this problem because I have a similar one. F I stored tables on a page. F examp: F $table_1 = tabletrtd.$name./td/tr/table; F $table_2 = tabletrtd.$message./td/tr/table; F etc... F and included

Re[2]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 1:11:52 AM, you wrote: F Doesn't $name = blah blah; define it enough? Not if it comes after $table_1 = tabletrtd.$name./td/tr/table; at this point $name does not exist. Try turning on E_ALL error reporting and it will tell you things like this. -- regards,

Re[4]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 2:26:06 AM, you wrote: F Tom Rogers [EMAIL PROTECTED] wrote in message F news:[EMAIL PROTECTED] F Cool, it works! F include (the file where the tables are stored) after the the F variables are defined, and it works. F I took 3 semesters of C and C++ programming. I

Re: [PHP] Retain form values...

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 6:01:00 AM, you wrote: JV I want to be able to submit the page to another page vs PHP_SELF. On JV that page I want to be able to validate the form, and if it fails, JV return the user to the previous page. Now that's easy, but the catch is JV that I want to

Re[4]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 2:57:57 PM, you wrote: JM No prob. I'm still working on a fix for my problem. I know I don't have a JM javascript error, if I copy and paste to another file it works fine. Just JM not in the php file. I'll mess with including it with the script tags, but JM it's not

Re: [PHP] Javascript Mouseover Help

2004-03-17 Thread Tom Rogers
Hi, Thursday, March 18, 2004, 1:08:27 PM, you wrote: JM Hi everyone, JM How can I get around my problem? I have a couple pages that I JM would like to have buttons where the button and background changes JM when the javascript mouseover event happens. My code works fine if JM the page is .html,

Re: [PHP] session problem (i think)

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 9:43:51 AM, you wrote: NR I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 NR I have a drupal site set up, http://rout.dyndns.org/cagc NR Since some time on Sunday i have had the following error appear at the NR bottom of the page:

Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 11:28:04 AM, you wrote: tcc On 16 Mar 2004 [EMAIL PROTECTED] wrote: tcc I have had questions about this for a while. What is it about closing tcc and reopening the browser that PHP notices and that invalidates the tcc old session? tcc Also a comment ... I think

Re: [PHP] output buffering display handlers....

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 11:36:02 AM, you wrote: P Hi Folks, P I am trying to use outbuffering techniques P ob_start(myCallBack) P . P ob_end_flush() P function myCallBack($inBuffer) P { P //process P ob_start(); P include aPHPFile.php; P $includeFileContents =

Re[2]: [PHP] session problem (i think)

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 12:24:27 PM, you wrote: NR Thanks, it is set right, but I see some other things are not. NR these other bits are set in a .htaccess file in the root of this NR applications htdocs tree. When I execute a test.php file in the same NR directory as the .htaccess file I

Re: [PHP] dbg extension...

2004-03-15 Thread Tom Rogers
Hi, Tuesday, March 16, 2004, 9:51:46 AM, you wrote: LM hey guys, i have a question on dbg extension, i want to get debug details LM using the functions from php, ie. dbg_get_profiler_results, but they return LM nothing... i am developing on windows using apache and php 4.3, any LM suggestions?

Re: [PHP] Anyway to access a class variable without using a return function?

2004-03-14 Thread Tom Rogers
Hi, Monday, March 8, 2004, 3:42:30 PM, you wrote: T Hi List, T I have a class with a constructor that sets the variables and I currently T use functions to return each one. When using alot of variables in the T constructor i tend to have many return functions. Is there a way to access T the

Re: [PHP] How to mesure response time of php pages

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 11:05:08 AM, you wrote: M Hi there, M can anybody recommend tools to messure page loading time of php pages. M I am working on a new site and it apears to me that the old one loads M much faster. Are there any tools around to break this down to hard numbers? M

Re: [PHP] magic_quotes_sybase - Windows MSSQL

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 3:23:20 AM, you wrote: J My ISP has the following settings in their php.ini file: J magic_quotes_gpc = ON J magic_quotes_sybase = OFF J I am using a Windows Server and a SQL Server database. J I need to set magic_quotes_sybase to ON so that quotes will be escaped

Re: [PHP] Scripts creating files and folders into un/grp Nobody on Apache

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 5:20:04 PM, you wrote: J Hi. J I have a script that creates a folder and a bunch of jpegs... however J instead of creating them into the user/group I'm in (let's call it J myGroup) it creates them into Nobody. The problem becomes that when I J ftp in to delete the

Re[2]: [PHP] Scripts creating files and folders into un/grp Nobody on Apache

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 5:52:08 PM, you wrote: Use the php ftp functions to create directories and move uploaded files would be one way. -- regards, Tom J Move the uploaded files? You mean create the directory in the wrong spot and J then move it to the right spot? and the same with

Re: [PHP] hello world == 0 ?

2004-03-09 Thread Tom Rogers
Hi, Wednesday, March 10, 2004, 12:22:08 AM, you wrote: t why is var_dump( 0 == 'hello world') TRUE and not FALSE? because 0 is integer and the integer value of 'hello world' is 0 so they are equal. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Single button click to call PHP logout scripts in 2 Frames

2004-03-09 Thread Tom Rogers
Hi, Wednesday, March 10, 2004, 1:49:14 AM, you wrote: PS Hello alll, PS I am using three frames on my site. The left and the main frame have PS all the dynamic content in it. My login module is embedded in the PS leftFrame. To check out the site please look here PS

Re: [PHP] Re: Mail Function

2004-03-08 Thread Tom Rogers
Hi, Tuesday, March 9, 2004, 12:05:22 AM, you wrote: W Please help me with this. Can someone give me an example of their W php.ini on the settings of the mail function. W ~WILL~ A wild guess but try it with \r\n as line endings, I don't run the server under windows so can't help with the ini

Re[2]: [PHP] How to write this correctly?

2004-03-07 Thread Tom Rogers
; // as you can see, it is important to L put whole output of the function to this variable ($content). L The browser debugs: L Warning: Missing argument 1 for output() in C:\www\RKV\start.php on line L 64 L Sorry for my bad english, L Roman L - Original Message - L From: Tom Rogers

Re: [PHP] How to write this correctly?

2004-03-06 Thread Tom Rogers
Hi, Saturday, March 6, 2004, 11:50:04 PM, you wrote: L // or example I have some link: L a href='index.php?action=people'About people/a L // so this function will output the content of people.txt file: L if ($action==people){ L function output() { L $file = file(data/people.txt); L

Re: [PHP] UK Bank Holidays 2

2004-03-05 Thread Tom Rogers
Hi, Saturday, March 6, 2004, 10:39:13 AM, you wrote: S Hi, S How can PHP recognise dates that are UK Bank Holidays? S Thanks for your help Well first question is: What are the rules for a bank holiday in the UK is it the first monday of a month, after christmas day , new year etc.. If there

Re[2]: [PHP] UK Bank Holidays 2

2004-03-05 Thread Tom Rogers
Hi, Saturday, March 6, 2004, 12:03:15 PM, you wrote: TR Hi, TR Saturday, March 6, 2004, 10:39:13 AM, you wrote: S Hi, S How can PHP recognise dates that are UK Bank Holidays? S Thanks for your help TR Well first question is: TR What are the rules for a bank holiday in the UK TR is it the

Re[4]: [PHP] setting request variables

2004-03-04 Thread Tom Rogers
echo 'Welcome '.$_POST['username'].'br'; mo }else{ mo //first pass and $error is still empty mo include('login.php'); mo } mo - Original Message - mo From: Tom Rogers [EMAIL PROTECTED] mo To: matthew oatham [EMAIL PROTECTED] mo Cc: [EMAIL PROTECTED] mo Sent: Thursday, March 04, 2004

Re: [PHP] setting request variables

2004-03-03 Thread Tom Rogers
Hi, Thursday, March 4, 2004, 9:08:19 AM, you wrote: mo Hi, mo I have created a small login system for my website. However mo if a user logs in incorrectly I want to display a error message mo currently I use the code mo echo You could not be logged in! Either the username and mo password

Re[2]: [PHP] setting request variables

2004-03-03 Thread Tom Rogers
: Tom Rogers [EMAIL PROTECTED] mo To: matthew oatham [EMAIL PROTECTED] mo Cc: [EMAIL PROTECTED] mo Sent: Thursday, March 04, 2004 12:24 AM mo Subject: Re: [PHP] setting request variables Hi, Thursday, March 4, 2004, 9:08:19 AM, you wrote: mo Hi, mo I have created a small login system for my

Re: [PHP] PHP Sessions

2004-02-29 Thread Tom Rogers
Hi, Monday, March 1, 2004, 3:04:13 AM, you wrote: PH Hello everyone, PH I'm beginning to experiment with PHP sessions. I was wondering if it is PH possible to place objects into the session? PH Thanks, PH Paul PH _ PH Take off

Re: [PHP] fscanf and memory

2004-02-26 Thread Tom Rogers
Hi, Friday, February 27, 2004, 4:48:20 AM, you wrote: SG Hi, SG I don't know if it's a bug in php but if I do SG $fp=fopen(some_file,r); SG while (!feof($fp)) SG { SG fscanf($fp, %d %d,$var1,$var2); SG // some treatment SG } SG fclose($fp); SG and the file is big enough, php eat up

Re: [PHP] Paginate Queries

2004-02-26 Thread Tom Rogers
Hi, Friday, February 27, 2004, 8:31:32 AM, you wrote: S Hi, S Using the following function I can present any query in a table. However S some of the results are very large and I would like to limit all results to S 1000 rows. So I am trying to paginate the results. However the page that S calls

Re: [PHP] Multiple Socket Read and Writes?

2004-02-24 Thread Tom Rogers
Hi, Wednesday, February 25, 2004, 2:19:26 AM, you wrote: D Hello all, D I am having a problem with getting multiple socket reads working in a D simple socket server! D The writes appear to be working but the reads seam to only allow one read? D I know i am missing something. Could even be my

Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Tom Rogers
Hi, Tuesday, February 24, 2004, 3:21:11 AM, you wrote: N Is there a PHP alternative to an IFRAME? Here's what I mean. N Is there a way to include a file in my php document that will be positioned N where I want it, like an IFRAME? I want to have it aligned right with text N wrapping around it

Re: [PHP] Self Submitting Form

2004-02-20 Thread Tom Rogers
Hi, Saturday, February 21, 2004, 8:00:43 AM, you wrote: SM My apologies if this post is somewhat OT. I am having some trouble SM figuring something out, and I am hoping you can help. SM I have a PHP web form on which a user can enter a number of different SM things SM into both text and

Re[2]: [PHP] date

2004-02-19 Thread Tom Rogers
Hi, Friday, February 20, 2004, 6:32:27 AM, you wrote: JB [snip] JB hi there JB how do i make php give me yesterday's date? JB i tried JB date(Y-m-d)-1 JB but if today would be the 1st of july (2004-07-01), yesterday would be JB 00. JB july (2004-07-00) according to that calculator. JB is

Re: [PHP] error : session_start

2004-02-15 Thread Tom Rogers
Hi, Monday, February 16, 2004, 2:27:21 PM, you wrote: a hi! a i have a login page that after validating the login and passwords does something a like a // initiate a session a session_start(); a // register some session variables a

Re: [PHP] Imagejpeg and image size question

2004-02-12 Thread Tom Rogers
Hi, Tuesday, February 10, 2004, 9:50:20 PM, you wrote: J Hi, J I am new to manipulating JPGs using PHP. But i managed to create an J application that displays an JPG image in the browser (see below). J I have boiled the code down to the most nesesary. J My problem is that when i load the file

Re: [PHP] datetime control

2004-02-09 Thread Tom Rogers
Hi, Monday, February 9, 2004, 10:42:24 PM, you wrote: AZ is there a date picker object or control that i can use on an HTML page, AZ instead of making lots of dropdown lists for the various date fields? AZ thanx in advance AZ angelo AZ

Re: [PHP] Sort multidimensional array - ARGH!

2004-02-05 Thread Tom Rogers
Hi, Thursday, February 5, 2004, 11:35:34 PM, you wrote: KS I have been messing around now for some hours and Im going mad! KS Im pulling some heavy data from mySQL with count and grouping, KS after this I have to calculate som values and then sort the outcome. KS Therefore Im not able to let

Re: [PHP] re: multilingual website

2004-02-05 Thread Tom Rogers
Hi, Friday, February 6, 2004, 7:44:15 AM, you wrote: EG For some great information on how to internationalize a PHP EG application, I would suggest checking out: EGhttp://us3.php.net/manual/en/ref.gettext.php My template class (yes another one) has the ability to use gettext for

Re[2]: [PHP] Am I missing Something

2004-01-30 Thread Tom Rogers
Hi, Saturday, January 31, 2004, 9:22:41 AM, you wrote: CWP Stuart mailto:[EMAIL PROTECTED] CWP on Friday, January 30, 2004 2:56 PM said: print 'pre'; print_r($somearray); print '/pre'; CWP not to steal your glory stuart but you can make it easier on yourself by CWP doing the following:

Re: [PHP] exec won't pass arg with spaces

2004-01-29 Thread Tom Rogers
Hi, Friday, January 30, 2004, 11:42:14 AM, you wrote: RM I'm trying to execute /usr/bin/convert passing the image size and the RM file name, the problem is that the file name contains lots of spaces, so RM I try to pass filename with lots of spaces, and nothing works. RM I've read something

Re: [PHP] preg_match_all : not all regular expressions ?

2004-01-26 Thread Tom Rogers
Hi, Saturday, January 24, 2004, 1:00:10 AM, you wrote: JJM [newbie, please help] JJM I'm trying to extract all URLs mentionning sound files from blocks of texts. JJM I first tried with ereg and the following code works fine : JJM $texte='TEST FINDbr\net voici un fichier son JJM

Re: [PHP] Stupid newbie question = Why don't I need a ; after this line?

2004-01-26 Thread Tom Rogers
Hi, Tuesday, January 27, 2004, 4:18:03 PM, you wrote: P Thanks for any advice. P Can anyone tell me why I do not get any errors with ( no ; after _id'] ) P ?php echo $row_otherlawyer['lawyer_id']? P ?php echo NO ERROR;? From the manual (which is given away free:) The closing tag for the

Re: [PHP] Mail Transaction Failed

2004-01-26 Thread Tom Rogers
Hi, Tuesday, January 27, 2004, 4:32:46 PM, you wrote: cho The message contains Unicode characters and has been sent as a binary attachment. Be careful this crap is a virus -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem: Failed to write session data (lack of resources?)

2004-01-25 Thread Tom Rogers
Hi, Monday, January 26, 2004, 10:21:59 AM, you wrote: LM [Mon Jan 26 07:42:56 2004] [error] PHP Warning: Failed to write session LM data (files). Please verify that the current setting of session.save_path is LM correct (/tmp) in Unknown on line 0 LM [Mon Jan 26 07:43:25 2004] [error] PHP

Re: [PHP] mycrypt on local doesn't decode but does on web server?

2004-01-24 Thread Tom Rogers
Hi, Saturday, January 24, 2004, 11:02:23 PM, you wrote: W Hello, I am hoping that some body might be able to point outwhat is going wrong. W   W Basically I am running apache2 etc (sokkit) on a local MS W XPmachine. I downloaded libmcrypt.dll from W http://ftp.emini.dk/pub/php/win32/mcrypt/as

Re: [PHP] Html forms on windows servers

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 12:24:24 AM, you wrote: CSA Hi CSA This is my first experience with php... and I'm already having trouble... CSA I´m working on an html form for a website which uses php to create an CSA e-mail. My 'Submit' button has a php document as action. It works great on CSA

Re: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 2:17:07 PM, you wrote: KW In a recent discussion about the MS terra server it was mentioned KW this could not be done with PHP because the terraserver KW has special front-end code that allows images to be passed by reference, KW so the image data goes directly

Re[2]: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 3:18:06 PM, you wrote: KW This one time, at band camp, Tom Rogers [EMAIL PROTECTED] wrote: php can output the stream without having to save it to a file first if that is what is worrying you. KW That was sorta my concern, but not so much as a file, does it copy

Re: [PHP] mcrypt win32 install problem ?

2004-01-21 Thread Tom Rogers
Hi, Wednesday, January 21, 2004, 9:09:40 PM, you wrote: VD Hi, VD I want to use the mcrypt module and I followed the VD instructions to install the dll for Win32 users : VD I copied the libmcrypt.dll file under c:\winnt\system32 VD I uncommented the extension=php_mcrypt.dll in the php.ini VD I

Re[2]: [PHP] mcrypt win32 install problem ?

2004-01-21 Thread Tom Rogers
Hi, Thursday, January 22, 2004, 2:16:22 AM, you wrote: scb Hi Tom, Vincent, list, scb Tom, your response caused some confusion here. I have mcrypt running on win32 scb (Win98, Apache 1.3.29 2.0.48, PHP 4.3.4 PHP 5beta3) and am in fact using scb mcrypt_generic_deinit() succesfully to

Re: [PHP] Odd Code Error.

2004-01-20 Thread Tom Rogers
Hi, Wednesday, January 21, 2004, 8:55:01 AM, you wrote: JP I am so frustrated at the moment with coding. I had an odd error with JP some PHP coding. And in the process I came across this error. JP Please try this out!! Because for me on my machine it does the first JP part of the if statement.

Re: [PHP] how to check the form filled all

2004-01-19 Thread Tom Rogers
Hi, Thursday, January 15, 2004, 7:33:29 PM, you wrote: SH HI, i want to check if the user filled the all inputs in the form. So, I SH checked NULL and with this function in the post receiving script. SH --- SH function is_filled_out() SH { SH // test that each

Re: [PHP] connecting PHP to MS Access

2004-01-19 Thread Tom Rogers
Hi, Tuesday, January 20, 2004, 1:24:46 PM, you wrote: TT Hi, TT Ok, I know I've already spoken blasphemy ... but hear me out. I have a TT client who wants to move her real estate site from a local ISP to a TT somewhat decent service. Currently her site is all in Access/ASP - since I TT know not

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Tom Rogers
Hi, Thursday, January 15, 2004, 3:07:02 AM, you wrote: RS Hello, RS This question may border on OT... RS I have a web form where visitors must enter large amounts of text at one RS time (text area). Once submitted, the large amount of text is stored as RS a CLOB in an Oracle database. RS Some

Re[2]: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Tom Rogers
Hi, Thursday, January 15, 2004, 10:41:57 AM, you wrote: TR Hi, TR Thursday, January 15, 2004, 3:07:02 AM, you wrote: RS Hello, RS This question may border on OT... RS I have a web form where visitors must enter large amounts of text at one RS time (text area). Once submitted, the large amount

Re: [PHP] Week calculating

2004-01-13 Thread Tom Rogers
Hi, Tuesday, January 13, 2004, 11:07:05 PM, you wrote: n Greetings; n I need a help here ... I want to make function that return the dates of n Tuesdays in a given year n Example:: n Calc_Tuesdays (2004); n //and it should return or echo n 2004-01-06 n 2004-01-13 n 2004-01-20 n 2004-01-27 n

Re: [PHP] Empty reference parameter

2004-01-13 Thread Tom Rogers
Hi, Wednesday, January 14, 2004, 1:10:53 AM, you wrote: SO Hi, SO I´m trying to give an empty reference as a parameter of a function. Or SO rather, make a parameter that is a reference optional. SO I have a function that should react differently if it is given an object SO or not. It works, but

Re: [PHP] how to display a font with two words???

2004-01-13 Thread Tom Rogers
Hi, Wednesday, January 14, 2004, 10:59:50 AM, you wrote: MH Howdy, MH I'm trying to specify font face=Monotype Corsiva in my php document... but MH can't b/c it's two words... if it was html I could just put , but since I MH can't do that in php, does anyone know what to do? MH prob. a stupid

Re: [PHP] Can php select which ini file to use?

2004-01-13 Thread Tom Rogers
Hi, Wednesday, January 14, 2004, 11:37:40 AM, you wrote: RD Hi all, RD I've been playing around installing PHP5 (b3) tonight. I managed to RD get it running on my Windows XP Pro box as a Module, bar one thing. RD I have Zend Studio 3 installed which uses the Debugger and Profiler RD which adds

Re: [PHP] Changing the Time Zone in php.ini

2004-01-08 Thread Tom Rogers
Hi, Thursday, January 8, 2004, 6:33:45 PM, you wrote: AH Hello, AH I have a requirement to run two different sites that are in different time AH zones on the same machine. Does anyone know if this is possible to do by AH running two instances of php and making a change in the php.ini? Or do you

Re: [PHP] Re: web-based and command line mcrypting and back again

2004-01-07 Thread Tom Rogers
Hi, Wednesday, January 7, 2004, 8:54:16 AM, you wrote: GCN Tom, GCN I appreciate the suggestion, but even after setting the iv to zero GCN within the php code and including the --noiv option within the command GCN line; it still does not produce the same base64 encoded string under GCN both

Re: [PHP] web-based and command line mcrypting and back again

2004-01-06 Thread Tom Rogers
Hi, Tuesday, January 6, 2004, 8:48:17 PM, you wrote: GCN I am trying to figure out how to encrypt data using the web-based php GCN mcrypt function and then decrypt it using the command line (cli) mcrypt GCN binary, and vica-versa. GCN I cannot seem to get the same encrypted output for the same

Re: [PHP] Getting results from Select Multiple HTML tag

2004-01-05 Thread Tom Rogers
Hi, Tuesday, January 6, 2004, 2:05:47 PM, you wrote: TL Hi, TL http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple TL I read that. Doesn't work in php since the whole register_globals TL thing. Now, when I get the results from a form, they're all in a TL $_POST[] array.

Re[4]: [PHP] End slash, small problem.

2004-01-03 Thread Tom Rogers
Hi, Saturday, January 3, 2004, 4:50:44 PM, you wrote: C You forgot to double slash the windows slash like: '\\' C I would write that same functionality as follows: C $sep = (PHP_OS == 'Windows')? '\\':'/'; C if(substr($template_path,-1) == $sep)) $template_path .= $sep; Not in single quotes I

Re: [PHP] Sort a while loop ?

2004-01-02 Thread Tom Rogers
Hi, Saturday, January 3, 2004, 1:12:49 AM, you wrote: DC Hi List, DC How can I sort a while loop or do something before it to achieve the DC following? DC I have a MySql result fetching something like this: DC Id Name Number DC 1 Bob 34567 DC 2 Ben 234 DC 3 Jeff 4567 DC 4 Dave 2345 DC

Re[2]: [PHP] End slash, small problem.

2004-01-02 Thread Tom Rogers
Hi, Saturday, January 3, 2004, 11:23:00 AM, you wrote: RA Hi, RA Thanks for replying. RA Basically after that path I am adding a file ryanFile.php so I need that RA ending slash to always be in the path RA My question was exactly that...how do I grab the last character? RA Thanks, RA -Ryan I

Re[3]: [PHP] Having problems with a while loop

2004-01-01 Thread Tom Rogers
Hi, Friday, January 2, 2004, 3:56:35 AM, you wrote: RK Ok I changed it to look this way but it still is not working RK $filenum=test; RK $fpHt = fopen($filenum, r); RK while(feof($fpHt)) { RK $fpLine = fgets($fpHt,512); RK $fpLine = trim($fpLine); RK $fpData = explode(:, $fpLine); RK $fpData[0]

Re: [PHP] urlencoding.

2003-12-31 Thread Tom Rogers
Hi, Tuesday, December 30, 2003, 3:02:24 AM, you wrote: CW Let me give a quick background. I am a very experienced programmer but CW I haven't done much php and only a little web development in perl. I am CW now creating a web site with Apache, php and MySQL. CW I am having the user fill out a

Re: [PHP] PHP forms that are valid XHTML

2003-12-30 Thread Tom Rogers
Hi, Wednesday, December 31, 2003, 11:45:37 AM, you wrote: TB Hello, TB I'm *very* new to PHP. I am working through the 'Professional PHP TB Programming' book by Worx. TB In their forms they use the name attribute (ie. name=example) instead of TB XHTML's id attribute (ie. id=example). TB If I

Re: [PHP] Can somebody convert this short Perl Script to PHP?

2003-12-29 Thread Tom Rogers
Hi, Tuesday, December 30, 2003, 2:50:17 AM, you wrote: DM Hi, I am trying to make a log rotator and found a great perl script to do it DM but, would really like it in PHP (one less langauge to maintain). DM I know the system has things in place to do this but, I don't have access DM to the

Re: [PHP] mcrypt and PHP to encrypt values to be passed to differend server

2003-12-28 Thread Tom Rogers
Hi, Monday, December 29, 2003, 9:30:11 AM, you wrote: MW Hello! MW I'm trying to use mcrypt to encrypt some values (login and password) I have MW to pass from one website to another. You will need to pass the $iv which kinda defeats the object of it, or use a null one. Here is a class I use

Re: [PHP] apache chroot + mail()

2003-12-23 Thread Tom Rogers
Hi, Wednesday, December 24, 2003, 3:02:33 AM, you wrote: RV Hi, RV I am having a problem using the mail() command inside a chrooted RV apache/php installation on linux with qmail. RV Nothing apears in the logs, nothing in apache error logs , neither in RV php error logs.. RV And.. no mail gets

Re: [PHP] Setting the environment PATH

2003-12-19 Thread Tom Rogers
Hi, Saturday, December 20, 2003, 2:36:40 AM, you wrote: M Hi, I need to add /usr/local/bin to the PATH used by my PHP web M application. How? M Br, M Morten with getenv() and putenv() on a page by page basis $newpath ='/usr/local/bin'; $current_path = getenv('PATH'); $newpath =

Re: [PHP] Help with where clause

2003-12-16 Thread Tom Rogers
Hi, Tuesday, December 16, 2003, 6:30:22 PM, you wrote: RK I need to know how I can do a where clause in a select statement for mysql RK where RK one of the fields can have two solutions. In the example below RK field3 needs to equal all with a and also all with b. Can this be done and RK if so

Re: [PHP] saving resource objects

2003-12-16 Thread Tom Rogers
Hi, Wednesday, December 17, 2003, 12:15:24 PM, you wrote: ML I posted this on the PHP-DB list and then realized it was a more general ML question about PHP than DB so I am posting it here also hoping someone can ML help. ML I have a fairly common problem that I have not been able to find the ML

Re[2]: [PHP] saving resource objects

2003-12-16 Thread Tom Rogers
Hi, Wednesday, December 17, 2003, 12:32:25 PM, you wrote: ML Thanks for the info, Tom. That explains it. I can't really run the query ML again because of time and the size of the database. There is currently over ML 200,000,000 records in some of the tables. The subsets I get are generally ML

Re: [PHP] problem with INSERT query

2003-12-09 Thread Tom Rogers
Hi, Tuesday, December 9, 2003, 4:58:30 PM, you wrote: ijc Hi all, ijc I am trying to do a simple INSERT data into the database using the following ijc php script but the problem here is that whenever I click submit, the script ijc only insert a NULL value into the columns into the datadase

Re: [PHP] treu type fonts

2003-12-09 Thread Tom Rogers
Hi, Wednesday, December 10, 2003, 11:53:27 AM, you wrote: c G'day all c I was wandering I have php installed with GD with freetype fonts compiled in c I ran this php script c ?php c header(Content-type: image/gif); c $im = imagecreate(400,30); c $white = imagecolorallocate($im,

Re: [PHP] getimagesize() MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Tom Rogers
Hi, Sunday, December 7, 2003, 6:38:13 PM, you wrote: G I'm using a MySQL database to store images as BLOBs. I know how to G handle all the MySQL stuff, it's easy, and really makes keeping track G of files nice an clean. No permissions, no risk of getting things out G of sync, finding stuff is

Re: [PHP] forms and mysql

2003-12-02 Thread Tom Rogers
Hi, Tuesday, December 2, 2003, 9:54:33 PM, you wrote: B Hi i am very new to PHP so need some help ! B i have a form which allows the user to put in 2 team names and then displays B them, at the moment it displays them side by side but i need to insert V B (versus) in the middle--how can i do

Re: [PHP] header(Location: page.php) not redirecting

2003-12-01 Thread Tom Rogers
Hi, Tuesday, December 2, 2003, 7:17:58 AM, you wrote: r Hi all, r I have this in a template: r $redirect = viewclient.php?id={$_REQUEST['id']}foo=bar; r header(Location: $redirect); r Only, nothing happens when this code is executed. Nothing. It gets r completely ignored. r I even tried: r

Re: [PHP] Telling GD2 Where Fonts Are

2003-11-27 Thread Tom Rogers
Hi, Friday, November 28, 2003, 12:12:57 PM, you wrote: son Working on a Macintosh G3 PowerBook running OS 10.2 and PHP 4.3.0 with GD2 son ... son I'm having trouble telling GD2 where the font I'm using in a PHP exercise son (Chapter 19 of the 2nd edition of the Welling/Thomson book), arial.ttf,

Re: [PHP] need help with gettext i18n

2003-11-24 Thread Tom Rogers
Hi, Tuesday, November 25, 2003, 2:25:33 AM, you wrote: M Hi there, M I am trying to get I18n support working on my site. To do this I have M isntalled gettext. M Somehow the translation does not work. I did everything the examples M explained, but I do stillg get en text. M Here is what I

Re: [PHP] fighting with functions

2003-11-21 Thread Tom Rogers
Hi, Friday, November 21, 2003, 7:56:34 PM, you wrote: SD I could use a little help. click on the link to see my php code for a SD project that creates an array with a list or items and their cost and SD calculates tax by using a function called getTax() and also creates a SD balance by adding

Re[2]: [PHP] echo or print

2003-11-21 Thread Tom Rogers
Hi, Saturday, November 22, 2003, 4:55:05 AM, you wrote: WvV David T-G wrote: WvV Guys, Jay asked a serious question (I think). Anyways, let's take this one WvV step further to something that I've really been wondering about. WvV (.. long bunch of HTML ..) WvV Jay asked ?=$Question?, then Tom

Re[2]: [PHP] passthru gives error in httpd/error_log

2003-11-21 Thread Tom Rogers
Hi, Saturday, November 22, 2003, 1:23:36 AM, you wrote: JH Tom Rogers [EMAIL PROTECTED] wrote in message JH news:[EMAIL PROTECTED] JH No, I've tried that along with all other obvious path stuff. JH /Jesper Then there must be some kind of restriction on the server, Is it running in chrooot

Re: [PHP] echo or print

2003-11-20 Thread Tom Rogers
Hi, Friday, November 21, 2003, 12:37:50 AM, you wrote: JF when should i use echo ' '; vs. print ' '; JF JF Jay Fitzgerald, Design Director JF - Certified Professional Webmaster (CPW-A) JF - Certified Professional Web Designer (CPWDS-A) JF -

Re: [PHP] passthru gives error in httpd/error_log

2003-11-20 Thread Tom Rogers
Hi, Friday, November 21, 2003, 10:53:08 AM, you wrote: JH I'm trying to run a super simple command through passthru. JH Here's my test.php file: JH htmlbody JH ? passthru('ls -l'); ? JH /body/html JH It works if run directly with php test.php. JH When this is run from the browser, there is no

Re: [PHP] Creating a line break between letter groupings

2003-11-19 Thread Tom Rogers
Hi, Thursday, November 20, 2003, 11:03:22 AM, you wrote: DP I'm reading a list of stores from a database and ordering them DP alphabetically. How would I place a line break in between each letter DP grouping? For example, DP Applebee's DP Aaron's Place DP Aardvark Store DP Bumblebee's DP

Re[2]: [PHP] Creating a line break between letter groupings

2003-11-19 Thread Tom Rogers
Hi, Thursday, November 20, 2003, 11:12:55 AM, you wrote: TR Hi, TR Keep track of the first letter and if it changes echo a br TR $key = '' TR //loop through results TR while($result = mysql..){ TR $char = strtoupper(substr($row['name'],0,1)); TR if(empty($key){ TR $key =

Re: [PHP] Problem Understanding Code in 2nd edition Welling/Thomson PHP?MySQL Web Development Book

2003-11-08 Thread Tom Rogers
Hi, Sunday, November 9, 2003, 12:48:17 AM, you wrote: ST Sorry for the long post--and the cross-posting to a MySQL list, for ST those of you seeing this a second time--but I'm using with difficulty ST the 2nd edition of Welling/Thomson's PHP and MySQL Web Development as a ST textbook for

<    1   2   3   4   5   6   7   8   9   >