Re: [PHP] Looking for complete entered URL

2013-04-20 Thread Tom Rogers
Hello Angela, Sunday, April 21, 2013, 4:51:37 AM, you wrote: > I've written a script that logs all visits to a web site, > complete with referrer and IP address. It also logs all 4xx errors. > What I'd like to add to this is, if someone adds extra code after > the page_name.php, to be ab

Re: [PHP] PHP 5.4 Help

2013-03-06 Thread Tom Rogers
Hello LLC, Thursday, March 7, 2013, 2:41:43 AM, you wrote: > I need help from someone knowledgeable about PHP and I hope I am > seeking it in the right place.  I beg your forgiveness if this is not the > right place. >   > I purchased a software (1-2-3 Music) a few years ago and have used > pa

Re: [PHP] SNMP via PHP

2012-10-15 Thread Tom Rogers
Hello Lester, Monday, October 15, 2012, 9:09:13 PM, you wrote: > OK I've spent the last two hours going through pages of crap generated by > google, and that includes google crap created by searches on sites like > http://www.phpbuilder.com - cause mainly of cause by php pages on sites > supporti

Re: [PHP] Variables via url

2012-05-12 Thread Tom Rogers
Hello Ashley, Saturday, May 12, 2012, 9:15:23 AM, you wrote: > Can someone point me at examples or directions on how I can pass a > variable via a URL in the following way: > http://server.domain.com//script///variable/ > I will only be passing one single /variable/. And I want

Re: [PHP] Mysql search query ignoring dots

2011-01-24 Thread Tom Rogers
Hi, Monday, January 24, 2011, 10:50:41 PM, you wrote: BP> Hi all, BP> I have to perform a mysql query in a table with millions of records. BP> I've full-text indexed my search field and I'm searching with MATCH AGAINST. BP> But there is a problem. In this field there are company names that BP> c

Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-09 Thread Tom Rogers
gt; to function `getpwuid_r' SVCD> /users/0/php-5.3.3/ext/posix/posix.c:1184: warning: assignment makes SVCD> integer from pointer without a cast SVCD> gmake: *** [ext/posix/posix.lo] Error 1 SVCD> Do I need to add the -D_POSIX_PTHREAD_SEMANTICS in the makefile or SVCD> config

Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-08 Thread Tom Rogers
Hi, Thursday, September 9, 2010, 11:31:06 AM, you wrote: TR> Hi, TR> Thursday, September 9, 2010, 2:07:50 AM, you wrote: SVCD>> I am trying to build php-5.3.3 and getting the following error: SVCD>> /users/0/php-5.3.3/TSRM -I/users/0/php-5.3.3/Zend SVCD>> -I/usr/local/include -g -O2 -DZ

Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-08 Thread Tom Rogers
Hi, Thursday, September 9, 2010, 2:07:50 AM, you wrote: SVCD> I am trying to build php-5.3.3 and getting the following error: SVCD> /users/0/php-5.3.3/TSRM -I/users/0/php-5.3.3/Zend SVCD> -I/usr/local/include -g -O2 -DZTS -c SVCD> /users/0/php-5.3.3/ext/standard/filestat.c -o SVCD>

Re: [PHP] PHP5 SOAP...

2009-06-16 Thread Tom Rogers
Hi, Wednesday, June 17, 2009, 1:21:47 AM, you wrote: RJ> I'm working on a project using SOAP and WS-Security in which I am failing RJ> miserably. RJ> Is there a way to inspect the actual XML, header, etc. that is actually RJ> being sent. I feel like I am constructing the call correctly, and I kno

Re: [PHP] ! and !=

2009-04-22 Thread Tom Rogers
Hi, Thursday, April 23, 2009, 8:30:34 AM, you wrote: GL> Hi all. Maybe I'm just getting confused by all the GL> languages I'm trying to work with! But, isn't: GL> if(!$var1 == $var2){ GL> the same thing as GL> if($var1 != $var2){ GL> #1 doesn't work, #2 does. GL> Thanks

Re: [PHP] upgrade php 5.2.6 -> 5.2.8 mysql problems!

2009-01-13 Thread Tom Rogers
Hi, Tuesday, January 13, 2009, 9:25:57 AM, you wrote: MM> Hello everybody, MM> I am trying to update php 5.2.6 to 5.2.8 on a test system. Somehow it MM> can not find the working mysql installation. With 5.2.6 I everything is MM> fine. MM> Here is the configure command that is pretty much the sa

Re: [PHP] Thread Safety

2008-02-19 Thread Tom Rogers
Hi, Wednesday, February 20, 2008, 3:00:28 AM, you wrote: TP> Not quite sure if this is the right list, but here I am... TP> TP> I'm trying to use zend platform and it requires the Thread Safety option set TP> to off. TP> TP> I just compiled php and I can't find what argument to build php that

Re: [PHP] running cmd via php

2007-12-11 Thread Tom Rogers
Hi, Thursday, November 29, 2007, 2:17:15 AM, you wrote: a> Hello! a> I'm trying a lot to find how I can run the cmd (command line of windows) and a> send to the cmd commands? a> Thanks. Here is one way to do it, its from a function to check php syntax. it opens up php then sends it the text to

Re[2]: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-10 Thread Tom Rogers
Hi, Tuesday, December 11, 2007, 10:01:38 AM, you wrote: RF> On 10-Dec-07, at 4:42 PM, Tom Rogers wrote: >> >> Put a usleep(1000) in the listen while() loop and give the cpu a >> break. RF> Good advice, but I've already been doing that. The thing is, when the RF>

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-10 Thread Tom Rogers
Hi, Tuesday, December 11, 2007, 6:42:18 AM, you wrote: RF> Hello, RF> I have a command-line PHP script--called Listener--that is designed RF> to run indefinitely with a predictable CPU usage and memory RF> footprint. In a nutshell, it's a multi-client socket server that RF> waits for incomi

Re[2]: [PHP] adding "Back to Search results" link

2007-08-16 Thread Tom Rogers
Hi, Thursday, August 16, 2007, 6:44:46 AM, you wrote: D> Jim and Brad. D> Thanks for the feedback. I was thinking it was something simple like a back D> button. But the problem that arises when I use this method is on Form 3. D> If I go through the steps, and make a change to an item on Form 3.

Re: [PHP] Previous and Next Month and Year

2007-06-17 Thread Tom Rogers
Hi, Sunday, June 17, 2007, 3:54:01 PM, you wrote: KS> Hi, KS> RE: Previous and Next Month and Year KS> This is my code: KS> $next_month = date('F Y', time()+$month); KS> $prev_month = date('F Y', time()-$month); KS> echo "$prev_month \n"; #Result "June 2007" KS> echo "$next_mont

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Tom Rogers
Hi, Friday, June 1, 2007, 6:16:34 PM, you wrote: b> May be a stupid question but can I link to images with doscument root b> $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; b> echo ""; b> I am certain the path is correct, b> If not what are my alternatives? b> R. You don't need

Re: [PHP] convert numerical day of week

2007-05-22 Thread Tom Rogers
Hi, Wednesday, May 23, 2007, 2:46:38 AM, you wrote: BD> How can I convert the numerical day of week to the string version? BD> Example, if the day of the week is 1 I would like to print out 'Sunday'. BD> BD> Thanks, BD> Dave http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re[2]: [PHP] Confused about handling bytes

2007-05-21 Thread Tom Rogers
Hi, Monday, May 21, 2007, 3:57:56 PM, you wrote: TR> Hi, TR> Monday, May 21, 2007, 10:50:27 AM, you wrote: JV>> While I'm sure this is a stupid question and the solution will be JV>> obvious to everyone here, this is confusing me. JV>> I'm trying to control a device over a serial port using a P

Re: [PHP] Confused about handling bytes

2007-05-20 Thread Tom Rogers
Hi, Monday, May 21, 2007, 10:50:27 AM, you wrote: JV> While I'm sure this is a stupid question and the solution will be JV> obvious to everyone here, this is confusing me. JV> I'm trying to control a device over a serial port using a PHP script, JV> and one of the things I need to do is read a

Re[2]: [PHP] [EMAIL PROTECTED]

2007-05-10 Thread Tom Rogers
Hi, Could be stray carriage returns in your include files, good idea to remove any '?>>" in the include files as they are not needed. Perhaps I should have said: remove any '?>' at the END of the include file as they are not needed, of course any escaping to html in the middle will still be nee

Re: [PHP] [EMAIL PROTECTED]

2007-05-10 Thread Tom Rogers
Hi, Wednesday, May 9, 2007, 11:13:50 PM, you wrote: FJ> Hello, FJ> To me this seems to be a very strange problem. FJ> I have a static html page (index.html) that shows correctly on both FF2 & FJ> IE7. FJ> I splitted the website up into different sections: (header, footer, ...). To FJ> do this I

Re: [PHP] copy file from server to shared network folder

2007-04-19 Thread Tom Rogers
Hi, Friday, April 20, 2007, 2:04:14 PM, you wrote: HH> Hi everyone, HH> I can't seem to be able to copy a txt file from the server over to a network HH> drive. HH> Server is apache on winxp and the remote PC is also running XP. HH> Remote folder is shared with all read/write rights enabled. HH> I

Re[2]: [PHP] Bind IP with fsockopen

2007-04-07 Thread Tom Rogers
Hi, TR> You will have to do it using the socket api something like this but TR> with error checking: TR> $sourceip = '192.168.1.1'; // ip you want to bind to TR> $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); TR> socket_bind($sock, $sourceip); TR> socket_connect($sock, 'example.com', 2043

Re: [PHP] Bind IP with fsockopen

2007-04-07 Thread Tom Rogers
Hi, Sunday, April 8, 2007, 6:51:46 AM, you wrote: cac> Hi is it possible to socket_bind with fsockopen? im using this with all my scripts... cac> $fs = fsockopen('example.com', 2043, $errno, $errstr, 60); cac> if (!$fs) { cac> fclose($fs); cac> and I need the remote conection to see me as one o

Re[2]: [PHP] symlink

2006-09-23 Thread Tom Rogers
Hi, Saturday, September 23, 2006, 10:37:20 AM, you wrote: RL> On Mon, September 18, 2006 4:53 pm, Ross wrote: >> Can someone explain how and why you would use a symlink in php? RL> A symlink is the Un*x version of a Windows "shortcut" or the Mac's RL> "alias" RL> The difference being that a syml

Re: [PHP] Image submit with mouse over

2006-07-14 Thread Tom Rogers
Hi, Saturday, July 15, 2006, 9:13:04 AM, you wrote: SE> Hi all, SE> Brand new to the list, so here's my question. I am SE> implementing a bunch of Dreamweaver templates a SE> designer has built into a PHP app, and one thing SE> she did is create a submit button (image) that SE> uses mouse o

Re[2]: [PHP] GET, POST, REQUEST

2006-06-18 Thread Tom Rogers
Hi, Sunday, June 18, 2006, 5:19:20 PM, you wrote: S> - Original Message - S> From: "Rory Browne" <[EMAIL PROTECTED]> >> >> Good code won't be vulnerable to register_globals either, but having >> register_globals on is a security problem because there are security flaws >> that can only b

Re[2]: [PHP] Passing an indefinite number of parameters by reference

2006-05-08 Thread Tom Rogers
Hi, Monday, May 8, 2006, 8:46:38 PM, you wrote: CJ> Tom Rogers wrote: >> Here is a cutdown version of a class loader I use, It works for php4 and >> php5 and with references. It should be easy to modify. CJ> [...] CJ> Sorry, this does not work with references as func_get

Re: [PHP] Passing an indefinite number of parameters by reference

2006-05-07 Thread Tom Rogers
Hi, Monday, May 8, 2006, 4:20:11 AM, you wrote: CJ> Hi, CJ> Currently I have a function which accepts a limited number of parameters: CJ> call_function($function_name, &$var_1, &$var_2); CJ> I wish to modify the function to accept an indefinite number of CJ> parameters, which may or may not be

Re[2]: [PHP] Problems creating images

2006-04-06 Thread Tom Rogers
Hi, Friday, April 7, 2006, 6:20:41 AM, you wrote: AB> Tom Rogers wrote: AB> There isn't. I've got the suspicion it's got to do with the UTF-8 AB> character encoding because of the characters '', I've seen this AB> before with HTML pages. Because o

Re: [PHP] Problems creating images

2006-04-05 Thread Tom Rogers
Hi, Thursday, April 6, 2006, 5:42:05 AM, you wrote: AB> Hi, AB> I added image confirmation to a guestbook and even though it works AB> greate for most people, some people have problem and I can't seem to AB> figure out why this happens. Note that I'm not talking about the same AB> guestbook on

Re: [PHP] Multidimentional array problems

2006-04-03 Thread Tom Rogers
Hi, Tuesday, April 4, 2006, 8:37:18 AM, you wrote: ME> Hi, ME> I am trying to read form a database and place everything in a ME> multi-dimentional array ME> This is what I am doing and the output (for testing) seems correct ME> while($row=mysql_fetch_array($result)) ME> { ME> $banner= array(

Re: [PHP] Formatting a Time field

2006-03-23 Thread Tom Rogers
Hi, Friday, March 24, 2006, 9:51:48 AM, you wrote: TC> I have a field, Start_Time, in a MySQL DB. Since it is not a TC> TimeStamp, I believe I cannot use date(), correct? TC> I would like to format 09:00:00 to 9:00 AM. TC> If I convert the 09:00:00 with the strtotime(), I get a couple of TC>

Re: [PHP] mysql help..

2006-02-24 Thread Tom Rogers
Hi, Saturday, February 25, 2006, 5:53:23 AM, you wrote: gu> Hi all, gu> I installed a opensource php project, and now is working fine for me. gu> Now that project has some 40-50 MySQL tables.. gu> now I want to change something in that but the I am not able to get the DB gu> flow.. gu> Is any bo

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

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] 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] 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[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[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: [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] 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] 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] 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] 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] 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[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: [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: [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] 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] 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[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] 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[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[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: [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] 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] 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: [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] 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[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[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: [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: [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] 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[2]: [PHP] problem with multiple fields

2005-05-19 Thread Tom Rogers
True V> so i need to keep the informations of the reference too V> 2005/5/19, Tom Rogers <[EMAIL PROTECTED]>: In that case use the reference as the key to the item id name hs 22055 sdram256 true 22056 sdram512 true then the item list table would be pc id 1 22055 1 22056 -- rega

Re: [PHP] problem with multiple fields

2005-05-19 Thread Tom Rogers
Hi, Thursday, May 19, 2005, 6:07:53 PM, you wrote: V> sorry for my poor english, i'll try to be understood V> so i want to represent an informatic parc but have a problem V> for example a pc can have 2 or more memory slot filled how to stock V> the different id in a list in my database and how e

Re: [PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Tom Rogers
Hi, Wednesday, May 18, 2005, 4:27:34 PM, you wrote: MS> Hi All, MS> the below code generates this error, MS> Unknown column 'peterspeters' in 'where clause' MS> mysql_select_db("status", $db); MS> $username = $_POST["username"]; MS> $password = $_POST["password"]; MS> $result = mysql_query("SEL

Re: [PHP] Seeking decent domain registrar

2005-05-12 Thread Tom Rogers
Hi, Thursday, May 12, 2005, 8:40:26 PM, you wrote: MB> Somewhat OT - I've had almost entirely poor experiences with domain MB> registrars, so I'm looking for recommendations. I need: MB> .com, .net, .org domains (easy enough!) MB> .co.uk support MB> Multilingual domain support e.g. café.com MB> O

Re: [PHP] number format?

2005-05-10 Thread Tom Rogers
Hi, Wednesday, May 11, 2005, 1:34:10 AM, you wrote: DW> I have a number like -56.98 DW> I need to convert it to -5698. I tried DW> --- DW> Outgoing mail is certified Virus Free. DW> Checked by AVG anti-virus system (http://www.grisoft.com). DW> Version: 6.0.859 / Virus Database: 585 - Release

Re: [PHP] yet another php templating question

2005-05-10 Thread Tom Rogers
Hi Ryan, Tuesday, May 10, 2005, 11:48:39 PM, you wrote: RA> Hey, RA> Since we are caught up in the templating season, I think its time for this RA> one; RA> We have just finished designing the software blueprint for a new PHP RA> product, RA> we usually used the "include() method" :-) to "templat

Re: [PHP] Count totals (might be 0T)

2005-04-21 Thread Tom Rogers
Hi, Friday, April 22, 2005, 8:03:06 AM, you wrote: RA> Hi again, RA> Am faced with a new problem (either that or working straight 10 hours is RA> catching up!) RA> Heres my table (easy to figure out so i wont waste your time explaining the RA> fields): RA> cno, RA> date_added, RA> pic_name, RA> p

Re[2]: [PHP] Images - Converting TIFF Format?

2005-04-20 Thread Tom Rogers
Hi, Thursday, April 21, 2005, 3:15:31 AM, you wrote: TDJ> I searched through my server's system (I'm not running it, it's my ISP) and TDJ> finally found that TIFF isn't compiled into GD. I can get them to do it, but TDJ> I need to know what functions to use! Are they under a different file type?

Re: [PHP] Images - Converting TIFF Format?

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 12:39:54 AM, you wrote: TDJ> Is there a quick way to convert a TIFF format picture to a GIF quickly? I TDJ> can only find support for GIFs in PHP, but maybe I'm missing something. I TDJ> have a client running a photography business, and I have designed an image TDJ>

php-general@lists.php.net

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 9:05:39 AM, you wrote: RBAK> On Wed, 20 Apr 2005, Tom Rogers wrote: >> You can set this with arg_separator.output in php.ini RBAK> That doesn't really answer why the choice was made to default to what RBAK> not only shouldn't be the defaul

php-general@lists.php.net

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 5:56:44 AM, you wrote: DD> For documents to conform to the XHTML recommendation, ampersand characters DD> much be encoded as &. The documentation for PHP recognises this. The DD> same applies to HTML (with some exceptions that the session code will never DD> encounte

Re: [PHP] RegEx help

2005-04-14 Thread Tom Rogers
Hi, Thursday, April 14, 2005, 11:47:13 PM, you wrote: BD> I wanted to create a regex that force a PHP form text field to meet the BD> following requirements: BD> a. Must contain an 1 uppercase letter. [A-Z] BD> b. Must contain 1 digit. [0-9] BD> c. Must be a minimum of 7 characters in length. {

Re: [PHP] Re: Limiting Cpu usage

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 8:20:46 AM, you wrote: z> Yeahh! i have made it z> i can slow down a php script , as i edited the zend engine source to usleep z> every 1000 low-level instructions z> now, is there a way to determine to check my cpu load and adjust it by that z> so if nothing

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 6:04:05 AM, you wrote: MH> I get the following error when I try your suggestion: MH> Unknown error type: [8] Undefined variable: iv MH> Code: $key = md5($this->>_cypherkey); MH> $key = substr($key, 0, mcrypt_enc_get_key_size($this->td)); MH> $iv_size = mcrypt_enc

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 5:14:25 AM, you wrote: MH> Do you do this on the encryption or the decryption section or both? I do it on both, here is a class I use that may help: class encryptClass{ var $secret; function encryptClass(){ $this->secret = 'put secret here'; } Function

Re: [PHP] Creating INSERT INTO statement from dbf file

2005-04-11 Thread Tom Rogers
Hi, Tuesday, April 5, 2005, 6:33:31 AM, you wrote: RSJ> Ave, RSJ> I¹ve written a code that is able to extract the Column names and Records RSJ> from a simple dbf (foxpro) file and create an INSERT INTO sql statement RSJ> which can be used to insert all those records with their corresponding fie

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-08 Thread Tom Rogers
Hi, Saturday, April 9, 2005, 3:35:21 AM, you wrote: MH> I have an odd php issue with mcrypt. MH> I'm getting a lot of this type of error, but only sometimes: MH> mcrypt_generic_init(): Iv size incorrect; supplied length: 0, needed: 32 MH> (note, the "supplied length: 0" is not always the same.

Re: [PHP] Multiple Select Field

2005-04-03 Thread Tom Rogers
Hi, Monday, April 4, 2005, 2:58:36 AM, you wrote: RK> Please excuse the length and complexity of this post. I am facing a RK> complicated problem and need to find a solution. Also, I have posted this RK> on both PHP and MySQL boards so please overlook the possibly slightly RK> off-topic subject.

Re: [PHP] Session in two servers

2005-04-01 Thread Tom Rogers
Hi, Friday, April 1, 2005, 10:59:13 PM, you wrote: SS> Hi, SS> I am using sessions in my web application which is installed in two SS> pawns. So the request is randomly picked by one of the two servers. I SS> am using files in php session but not database. My problem is, if the SS> first request

Re: [PHP] text editor

2005-03-28 Thread Tom Rogers
Hi, Tuesday, March 29, 2005, 9:17:42 AM, you wrote: TT> Hi all, TT> ok, I have created my own php text editor that allows a user to edit TT> files from local(server) disk. TT> I use a basic html textarea to show the contents of the file, and let TT> them edit it, and then save it to disk. TT> I

Re: [PHP] OR statement

2005-03-24 Thread Tom Rogers
Hi, Friday, March 25, 2005, 11:27:30 AM, you wrote: MD> Hello, MD> I would like to first thank everyone for their help with the last few MD> questions I have had. I really appreciate it. MD> Here is my question: MD> if ($audio == "Cool"){ MD> Do this MD> }else{ MD> Do that MD> } MD> This

Re: [PHP] image problem

2005-03-24 Thread Tom Rogers
Hi, Friday, March 25, 2005, 3:27:41 AM, you wrote: WS> Hello, WS> I really can't figure this out. Can someone help please. I've wasted hours WS> already with this one. WS> I'm trying to print image to a web page using fpassthru. Here's the code: WS> $name = path/to/the/image/folder/img1.jpeg; W

Re: [PHP] Listing directory, return none if only one file

2005-03-24 Thread Tom Rogers
Hi, Thursday, March 24, 2005, 8:15:11 PM, you wrote: AM> I have a script that lists the files in a directory, but when i have AM> only ONE file , it won't display it ( here is the code : AM> http://www.pastebin.com/262050 ) After you sort the $filename array its index changes from 1 to 0 so you

Re: [PHP] SQL statement - please help

2005-03-24 Thread Tom Rogers
Hi, Thursday, March 24, 2005, 6:50:38 PM, you wrote: J> Dear all J> Please, I realy need your help. I am trying to extract only those records J> that were entered during the past hour from my MySQL database. The J> following SQL statement extracts all the records. As soon as I change the J> INT

Re: [PHP] GIF instead of JPG..

2005-03-23 Thread Tom Rogers
Hi, Wednesday, March 23, 2005, 11:30:53 PM, you wrote: RA> Hi, RA> I found this beautiful piece of code on the php site which make a RA> proportional thumbnail, problem is its only working with JPEG files...and RA> not with GIFs, can someone please help me convert it to GIF too? RA> I tried but g

Re[2]: [PHP] incrementing a number from a text file

2005-03-11 Thread Tom Rogers
Hi, Friday, March 11, 2005, 6:30:52 PM, you wrote: KM> -Original Message- KM> From: Richard Lynch [mailto:[EMAIL PROTECTED] KM> Sent: Thursday, March 10, 2005 10:14 PM KM> To: Ross Hulford KM> Cc: php-general@lists.php.net KM> Subject: Re: [PHP] incrementing a number from a text file >>

Re[2]: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Tom Rogers
Hi, Tuesday, March 8, 2005, 12:03:54 AM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 11:20:04 PM, you wrote: T>> I do this for security as I have things in include that I don't T>> want to be avaiable directly to the browser Also you don't need a T>> path for include files you can just d

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 3:57:50 PM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 10:00:17 PM, you wrote: TR>> Ok I see where is is going wrong, try this: LG> Oh, very close. Although you have it at $document_root and all LG> that needs to be added is '/include' like below: LG> $i

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 1:08:27 PM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 6:18:54 PM, you wrote: TR>> and let me see what it prints LG> Still not quite there. LG> Site root LG> ** LG> File name: C:\Sambar\docs\test\test.php LG> Script: /test.php LG> Document root:

Re: [PHP] error from 4.3.10: The specified procedure could not be found.

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 4:55:01 AM, you wrote: JM> Forgive me if this has been answered before, but all I was able to find JM> was a "bogus" bug report on this issue that did not contain any useful JM> information. When installing php 4.3.10 on a Win2k3 machine I'm getting JM> the "The specifi

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi Leif, Monday, March 7, 2005, 10:03:48 AM, you wrote: LG> Hello Tom, LG> Friday, March 4, 2005, 9:13:41 PM, you wrote: TR>> This will set the include path just before the document root: LG> H. Not quite what I'm looking for. I set up some test folders and LG> files on a development machine

Re: [PHP] line feed

2005-03-04 Thread Tom Rogers
Hi, Saturday, March 5, 2005, 12:38:20 AM, you wrote: BS> Hello. BS> How do i print a line return using the echo command, for when i see the BS> page source, BS> i get the code line by line and not all in the same line. BS> using double quotes ( " ), i can put \n at the end and i get the result B

Re[3]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
Hi, TR> This will set the include path just before the document root: TR> if(isset($_SERVER["SCRIPT_FILENAME"])){ TR> $root = $_SERVER['SCRIPT_FILENAME']; TR> //echo "Root: $root"; TR> $script = $_SERVER['SCRIPT_NAME']; TR> $document_root = str_replace($sc

  1   2   3   4   5   6   7   8   9   >