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 enoug

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> ca

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

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> pass

Re[2]: [PHP] setting request variables

2004-03-03 Thread Tom Rogers
- Original Message - mo> From: "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 >>

Re[4]: [PHP] setting request variables

2004-03-04 Thread Tom Rogers
AND password = '".$_POST['password']."'"; mo> $result = mysql_query($sql); mo> if(!$mysql_num_rows($result) > 0){ mo> $error = 'Error: Invalid password'; mo> include('login.php'); mo> exit; mo>

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 the

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

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> About people 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> foreach($file as $value ) {

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

2004-03-07 Thread Tom Rogers
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" <[EMAIL PROTECTED]> L> To: "Labunski" <[EMAIL PROTECTED]> L> Cc: <[EMAIL PROT

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 in

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: http

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> http://masterstream.co

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 esca

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 dele

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

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] 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] Efficieny: Include vs Array vs Function

2004-03-15 Thread Tom Rogers
Hi, Tuesday, March 16, 2004, 3:23:35 PM, you wrote: RP> Pardon me if this subject has been discussed, but a search of the RP> archive didn't bring up much of anything. RP> Bear with me while I dish out some details. My question concerns the RP> efficiency of using multiple file includes versus

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 pa

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 th

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> $includeFileC

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

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 .ht

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 = "".$name.""; F> $table_2 = "".$message.""; F> etc... F> and included the page and used the variab

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 = "".$name.""; at this point $name does not exist. Try turning on E_ALL error reporting and it will tell you things like this. -- regards, Tom -- PHP Gene

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 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 retain

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

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> $test=array('test1'=>'a','test2

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 sysobje

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 to the browser forcing the headers to be sent. So make sure the first TR> line of your page has from TR> included pages as there may be blank lines following which are just as TR> bad. So the rule is, header() can go anywhere but before any output to

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 > to the browser forcing the headers to be sent. So make sure the first >> line of your page has from >> included pag

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_formatte

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>$the_array_cnt = count($

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 underscor

Re: [PHP] array_search does not find the first element

2004-03-31 Thread Tom Rogers
Hi, Wednesday, March 31, 2004, 10:20:06 PM, you wrote: M> Hi there, M> I am trying to find values inside an array. This array always starts with 0. M> unfortunatelly array_search start searching with the array element 1. M> So the first element is always overlooked. M> How could I "shift" this a

Re[2]: [PHP] Inserting string - need to trim comma

2004-04-01 Thread Tom Rogers
Hi, Friday, April 2, 2004, 5:10:29 AM, you wrote: MM> MM> function insert($table, $data) { MM> $sql = "INSERT INTO ".$table." SET "; MM> foreach ($data as $k=>$v) { MM> $sql.= $k." = '".$v."', "; MM> } MM> $sql.=";"; MM> $result = mysql_query($sql); MM> } MM> The only problem with the st

Re: [PHP] Displaying a money datatype from mssql

2004-04-01 Thread Tom Rogers
Hi, Friday, April 2, 2004, 2:55:41 AM, you wrote: AH> How do I correctly display a money datatype from a mssql db? AH> I've looked through the archives and come up empty, and google doesn't seem AH> to have anything worth mentioning. AH> My query is; AH> SELECT od.price, od.inventorycost, om.to

Re: [PHP] Intermittent problem with Session Variable and IE6

2004-04-04 Thread Tom Rogers
Hi, Sunday, April 4, 2004, 9:11:08 PM, you wrote: b> I have a php app that is in the final stages of testing and has been tested b> by over 30 separate users. b> One of the testers is having an intermittent problem which seems to be b> caused by a session variable not being read properly in about

Re: [PHP] Sorting array of objects

2004-04-04 Thread Tom Rogers
Hi, Monday, April 5, 2004, 1:03:17 PM, you wrote: RH> Hi there, RH> Supposed I have an array of objects, like: $this[$i]->>property1 $this[$i]->>property2 RH> is there any 'cheap' way to sort the array according to the values of RH> property1? RH> The only way I thought I would be able to acco

Re: [PHP] Problem with Regular expression

2004-10-27 Thread Tom Rogers
Hi, Wednesday, October 27, 2004, 9:04:14 PM, you wrote: k> Hi all. k> I have a problem: i want subs any characters from a string but i don't k> have fix the problem. k> The string that i want to manipulate is the value from a text field of a k> search engine. k> The characters that i want to try

Re: [PHP] Date Calculation

2004-10-28 Thread Tom Rogers
Hi, Friday, October 29, 2004, 4:51:20 AM, you wrote: MT> I have a shell script that inserts the unix date and time that the MT> script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT MT> 2004. I would like to have my web page do the math so that it displays MT> the time since the

Re[2]: [PHP] Date Calculation

2004-10-28 Thread Tom Rogers
Hi, Friday, October 29, 2004, 7:19:09 AM, you wrote: MT> Ok, so here is what I have. Please check to see if there is a better MT> way. There are a lot of database calls to me. MT> $database_name = "CETechnology"; MT> $host = "server"; MT> $login = "username"; MT> $password = "password"; MT> $e

Re: [PHP] postgres-embedded images via php. two issues...

2004-11-02 Thread Tom Rogers
Hi, Wednesday, November 3, 2004, 8:45:17 AM, you wrote: PG> i am storing images in a postgres database and i have set up a little PG> php file to retrieve them in such a way that i can do: PG> echo ""; PG> ...from another php file. PG> it's working great, BUT i've noticed two things that bothe

Re: [PHP] Getting the date of Monday from a week number and year

2004-11-03 Thread Tom Rogers
Hi, Wednesday, November 3, 2004, 8:29:27 PM, you wrote: S> Hi, S> is it possible to get php to calculate the date of the monday given a week S> number and the year? I have looked http://uk.php.net/strtotime here and can S> find refererence to everything but this! S> Thanks for your help, Th

Re: [PHP] PDFLIB error 2516

2004-11-05 Thread Tom Rogers
Hi, Friday, November 5, 2004, 8:18:16 PM, you wrote: JvZnc> Hi All, JvZnc> I upgraded my test system to 4.3.9 (from 4.3.4) and now run into problems JvZnc> with pdf creation. Scripts that ran fine before now return the following JvZnc> error: JvZnc> Fatal error: PDFlib error: [2516] PDF_findfont:

Re: [PHP] header variable ?

2004-11-10 Thread Tom Rogers
Hi, Thursday, November 11, 2004, 8:51:49 AM, you wrote: JS> What variable "header" use? If I send something in header, what GLOBAL JS> variable header use? If you are talking about redirection You have to use the GET method then look in $_GET or $_REQUEST $url = 'http://somewhere.com/test.ph

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Tom Rogers
Hi, Sunday, November 14, 2004, 2:00:08 AM, you wrote: AD> Hi, AD> I have a very annoying problem with pages that re-display using the >. On re-display the banner, which is set absolute position at 0px, AD> shifts down by about an inch. I've isolated the cause to the >. AD> Simplified code for b

Re: [PHP] displaying repetitive results

2004-11-13 Thread Tom Rogers
Hi, Thursday, November 11, 2004, 4:04:27 AM, you wrote: CL> Given a database query thats returns results from a linking (or xref) CL> table which includes repetition because of the joins: CL> ++--+--+ CL> | id | title| subject | CL> ++-

Re[2]: [PHP] How do you work this thing

2004-12-09 Thread Tom Rogers
Hi, Friday, December 10, 2004, 11:05:50 AM, you wrote: RC> No, no, no, we want to keep the earth clean... a dynamo and pedals ought RC> to give him an unlimited renewable energy source. Maybe he has one with pedals and that's what he can't get to work? -- regards, Tom -- PHP General Mailin

Re: [PHP] Not quite PHP, but related...

2004-12-10 Thread Tom Rogers
Hi, Saturday, December 11, 2004, 8:16:44 AM, you wrote: BBBM> Hi you all, BBBM> is that possible using .htaccess to redirect every request to a BBBM> specified script? BBBM> for example if you have: BBBM> http://www.yoursite.com/en/articles/blab.html BBBM> where there isn't a en dir., so it w

Re: [PHP] Sort by string length...

2004-12-21 Thread Tom Rogers
Hi, Wednesday, December 22, 2004, 7:18:52 AM, you wrote: RPJ> Any idea how to sort an array by string length? RPJ> Russ Jones With a user defined sorting function something like this -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] PHP form POST question

2005-01-09 Thread Tom Rogers
Hi, Monday, January 10, 2005, 12:04:28 PM, you wrote: JI> I just narrowed something down about forms and POST and would like JI> education. In the following scenarios, all work except #4. $_POST is JI> null. Why is that? JI> Setup: JI> 1) Running on localhost JI> 2) /foo/index.php has the follo

Re: [PHP] Help with encryption

2005-01-14 Thread Tom Rogers
Hi, Friday, January 14, 2005, 7:53:30 AM, you wrote: BD> Howdy all - BD> I have RTFM and STFW and I still can't get encryption to work. What I BD> finally ended up with from the PHP documentation is long, unwieldy, BD> confusing, and doesn't work. I give up. I threw my big mess away and BD> wo

Re: [PHP] Dummy question about knowing marked checkboes

2005-05-29 Thread Tom Rogers
Hi, Sunday, May 29, 2005, 5:50:13 PM, you wrote: MG> Hi, MG> First of all, my apologies to all list members for this dummy question. MG> I've made my home work before posting here, but the truth is that i MG> didn't found an answer for such a simple question. MG> Only examples of more sophisticat

Re: [PHP] Best way to use other objects within classes?

2005-06-02 Thread Tom Rogers
Hi, Friday, June 3, 2005, 5:16:19 AM, you wrote: MP> Hi All, MP> I'm using the MDB2 object to access my MySQL database. I have a number MP> of classes that perform page-building activities that need db access, MP> and I'm wondering what the best way to expose the MDB2 object to them is? MP> (Not

Re: [PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Tom Rogers
Hi, Friday, June 10, 2005, 12:05:48 AM, you wrote: LL> Hello all, LL> I hope this hasn’t been answered a zillion times already, I've tried LL> everything I know and nothing has worked. The following is the PHP statement LL> and the HTML rendering. The apostrophe is displayed as is and breaks the

Re[2]: [PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Tom Rogers
Hi, TR> What I do to overcome this is in PHP do: TR> $content = rawurlencode($content); TR> and in the html javascript: TR> unescape("$content"); I didn't do that very well, your code would look something like: "); document.form1.factor.value=unescape(""); document.form1.submit();

Re[2]: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-14 Thread Tom Rogers
Hi, Wednesday, June 15, 2005, 4:42:24 AM, you wrote: DC> On 6/14/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote: >> Dotan Cohen wrote: >> > Hi gurus. I'm having fun replacing the text within [ and ] to XML >> > format on 4000+ files on a windows XP machine. I installed php (and an >> > apache serv

Re: [PHP] form inside an email

2005-06-14 Thread Tom Rogers
Hi, Wednesday, June 15, 2005, 4:11:26 AM, you wrote: R> Hi, R> I would like to send a form to customers to get some information. R> The form will be a HTML email and collect a few bits of data...name. age R> etc. R> Can I put this inside an html email so customers do not have to open an R> exte

Re: [PHP] Problems with header()

2005-06-17 Thread Tom Rogers
Hi, Saturday, June 18, 2005, 7:55:10 AM, you wrote: MM> I have to send a PDF file after a submit on a form. The PDF is well created, MM> and I'm sending it to the client with this: MM> $fpdfName = "/tmp/" . session_id() . ".pdf"; MM> // Vamos a mandar el PDF MM> header('Content-type: application

Re: [PHP] possible jscript/php/frames question!!

2005-06-17 Thread Tom Rogers
Hi, Saturday, June 18, 2005, 8:47:58 AM, you wrote: b> hi... b> i've got a problem where i'm trying to play with imagemaps. i created a test b> image map, but when i select inside the image map, i 'see' the "?x,y" from b> the imagemap, appended to the url in the browser address bar... i get b> ht

Re[2]: [PHP] comparing two texts

2005-06-23 Thread Tom Rogers
Hi, Thursday, June 23, 2005, 9:42:34 PM, you wrote: . . . JM> whereas I'll happily spend an hour writing up and contemplating someone JM> else's problem - I don't have five minutes for people who are expecting to be JM> spoonfed (go learn ASP and get a support contract, thanks ;-). Perhaps I mi

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Tom Rogers
Hi, Friday, June 24, 2005, 12:42:33 AM, you wrote: JJ> Hi, JJ> I checked at JJ> http://www.php.net/manual/en/features.file-upload.php and JJ> all the user notes, and also the PEAR solution for uploading files and I JJ> still have a couple of questions. JJ> I need to create a form to allow users

Re[2]: [PHP] Best way to use other objects within classes?

2005-06-25 Thread Tom Rogers
Hi, Here it is for anyone that would like to try it. $info){ $class_name = strtolower($class); $name = $info['name']; $hash = mhash(MHASH_TIGER,serialize($info['vars'])); if(isset($GLOBALS['loaded_classes'][$class_name])){ $varcount = count($info['vars']

Re[3]: [PHP] Best way to use other objects within classes?

2005-06-25 Thread Tom Rogers
Hi, Sunday, June 26, 2005, 12:27:44 PM, you wrote: TR> Hi, TR> Here it is for anyone that would like to try it. TR> if(preg_match('/^win/i',PHP_OS)){ TR> define('OS_SEP','\\'); TR> define('OS_JOIN',';'); TR> }else{ TR> define('OS_SEP','/'); TR> define('OS_JOIN',':'); TR> } TR> class cl

Re: [PHP] Breaking up data efficiently

2005-06-27 Thread Tom Rogers
Hi, Tuesday, June 28, 2005, 9:34:28 AM, you wrote: WK> Hi All, WK> I'm working on an aircraft booking system and it has multiple WK> origin/destination data, concatenated into a single line: WK> /* BEGIN DATA */ WK> Melbourne, AU, 21-07-2005 14:00:00|Perth, AU, 21-07-2005 18:00:00|Pert

Re[2]: [PHP] Breaking up data efficiently

2005-06-27 Thread Tom Rogers
Hi, Tuesday, June 28, 2005, 10:26:12 AM, you wrote: TR> This ay work: TR> $str = 'Melbourne, AU, 21-07-2005 14:00:00|Perth, AU, TR> 21-07-2005 18:00:00|Perth, AU, 25-07-2005 14:00:00|Melbourne, AU, TR> 25-07-2005 18:00:00'; TR> preg_match_all('/(\w+),\s*(\w+),\s*([0-9-]+)\s([0-9:]+)(?=\|)/s',$s

Re: [PHP] getting a filename [with no extension] out of a url

2005-06-30 Thread Tom Rogers
Hi, Friday, July 1, 2005, 9:54:42 AM, you wrote: GA> if $_SERVER['SCRIPT_NAME'] give this GA> /folder/folder/Library/php/filename.php GA> what would be the proper way to strip the string until only 'filename' GA> is left GA> I'm a bit new at eregi stuff GA> any help would be appreciated GA>

Re: [PHP] Currency stored as cents

2005-07-02 Thread Tom Rogers
Hi, Saturday, July 2, 2005, 6:57:07 PM, you wrote: S> The lack of a specific type to store monetary values is something of a S> problem with commercial applications. Be it that you have value added tax S> or sales tax to add per-item to an invoice or any other calculation like S> commissions, dis

Re: [PHP] Find largest integer filename

2005-07-05 Thread Tom Rogers
Hi, Wednesday, July 6, 2005, 2:43:38 PM, you wrote: RL> Suppose I have a directory with a HUGE number of filenames, all of which RL> happen to look like integers: RL> ~/nntp/1 RL> ~/nntp/2 RL> ~/nntp/3 RL> . RL> . RL> . RL> ~/nntp/59874 RL> ~/nntp/59875 RL> ~/nntp/59876 RL> Now, in a PHP script,

Re: [PHP] Tracking a mobile phone

2005-07-19 Thread Tom Rogers
Hi, Tuesday, July 19, 2005, 5:15:10 AM, you wrote: T> Hi there, T> I was wondering if anybody has attempted to track a mobile phone through a T> country. I know that this is usually more a case for the FBI . a friend of T> mine is going on a 4 month bike tour and I would like to 'track' him fo

Re[2]: [PHP] Environment Variable contamination between vhosts - 1.3.33

2005-08-08 Thread Tom Rogers
Hi, Tuesday, August 9, 2005, 3:04:41 AM, you wrote: MP> Using -- MP> #!/usr/bin/perl MP> ## MP> ## printenv -- demo CGI program which just prints its environment MP> ## MP> print "Content-type: text/plain\n\n"; MP> foreach $var (sort(keys(%ENV))) { MP> $val = $ENV{$var}; MP> $val =~ s|

Re[2]: [PHP] mail()

2005-08-17 Thread Tom Rogers
Hi, Thursday, August 18, 2005, 3:02:40 AM, you wrote: GB> André Medeiros wrote: >> Do you have a mail server running? GB> No, how do I get a mail server running? And does it allow me to receive GB> e-mails, or only send? Try this, they have a free version which will do what you want. If you have

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-02 Thread Tom Rogers
Hi, Saturday, September 3, 2005, 9:19:11 AM, you wrote: MS> hello, MS> I'm writing a socket approach to send email directly via an SMTP server MS> (since some hosts block sendmail trough php due to abuse). Now, I have MS> the code, attached below: MS> I have cut it down slightly so it would still

Re[2]: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread Tom Rogers
Hi, Saturday, September 3, 2005, 6:49:54 PM, you wrote: MS> hello, MS> thank you for the help, but I've tried your code, and it returns the MS> exact same thing :( the error #11 temporarily unavailable. If I remove MS> non-blocking, or change the error to ignore to 11 (10035 in your code MS> exam

Re: [PHP] Template Security Advice (WASP - http://wasp.sourceforge.net)

2005-10-12 Thread Tom Rogers
Hi, Tuesday, October 11, 2005, 3:37:13 PM, you wrote: BF> I'm finishing up my WASP framework 1.0 release (http:// BF> wasp.sourceforge.net) and I'm trying to decide the best way to lay BF> out the template directories. BF> WASP uses HTML_Template_Flexy for its template system. The templates BF>

Re[2]: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Tom Rogers
Hi, Saturday, October 22, 2005, 6:26:57 AM, you wrote: JB> [snip] >> I just noticed that extension_dir in phpinfo is c:\php4 THAT AIN'T RIGHT! >> Why is PHP not loading the proper ini file? This is probably the source of >> my problems all along! ACK! >> JB> This is what happens when you go

Re: [PHP] regex and global vars problem

2005-10-27 Thread Tom Rogers
Hi, Thursday, October 27, 2005, 3:15:30 AM, you wrote: JG> I am having a problem with a couple of function I have written to check JG> for a type of string, attempt to fix it and pass it back to the main JG> function. Any help is appreciated. I would do it with a small class like this: is_valid

Re[2]: [PHP] regex and global vars problem

2005-10-28 Thread Tom Rogers
Hi, Friday, October 28, 2005, 7:20:58 PM, you wrote: RV> On 10/28/05, Tom Rogers <[EMAIL PROTECTED]> wrote: >> >> I would do it with a small class like this: RV> $mactest = new mac("there are a few gotchas for anyone using this"); print $mactest->>

Re[2]: [PHP] calling static method within class

2005-10-28 Thread Tom Rogers
Hi, Saturday, October 29, 2005, 5:42:15 AM, you wrote: CR> If you're expecting the statement CR> Echo Foo::getUs(); CR> To echo "me& me" it will not because you never returned $us from the CR> getUs() method. I'm assuming also that xxx is a variable to mean "some CR> class library" correct? C

Re: [PHP] manipulating constant name as string

2006-01-01 Thread Tom Rogers
Hi, Monday, January 2, 2006, 4:37:17 AM, you wrote: DG> Hello DG> I am trying to access the constant name as string and not the constant DG> contents. For example, DG> define('myconst', 'const text 1'); DG> $myArray = array() DG> myArray['myconst'] = "this is it" DG> etc. DG> $xmltext=""; DG>

Re: [PHP] Missing characters

2006-02-06 Thread Tom Rogers
Hi, Tuesday, February 7, 2006, 9:01:18 AM, you wrote: FA> I need a helping hand to solve this FA> Example FA> Page1.php FA> === FA> $name_pro = "VC++ V2.4" FA> print " href='page2.php?page=&value=$name_pro'> $name_pro "; FA>

Re: [PHP] REGEX query

2006-02-09 Thread Tom Rogers
Hi, Saturday, February 4, 2006, 2:53:32 PM, you wrote: p> Hi, p> I'm still trying to get to grips with REGEX and have hit a hurdle with p> the following: p> I have this bit of text: p> (\(EX\) RV-6 ) p> I want to remove the '\(EX\)' part of it p> so leaving just: ( RV-6 ) p> Any suggestions wo

Re: [PHP] Can't insert values into MySQL DB via PHP

2006-02-10 Thread Tom Rogers
Hi, Friday, February 10, 2006, 8:16:41 PM, you wrote: DT> Hi, DT> I'd like to say in advance that I am sorry about the silly and very newbie DT> question I'm asking. DT> I am having a problem with a shop system. I can't add values into the MySQL DT> DB via a PHP statement. The values are being t

<    4   5   6   7   8   9