Re: [PHP] Please Help!

2006-01-25 Thread Steve Clay
Wednesday, January 25, 2006, 2:52:21 PM, S Yang wrote: Which method might I use to split the signature I have built in PHP into (r,s)? How can I know what the signature looks like? Run the function http://us2.php.net/openssl_sign and pass it a $signature. According to the manual, if

Re[2]: [PHP] XML and special characters

2006-01-23 Thread Steve Clay
Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote: ee dee da da da? sect;eth; -- those that look like html entities are the represented characters. I was mistaken, they are html entities, Can you show us a small chunk of this XML that throws errors? You said you've tried various

Re[2]: [PHP] Re: Managing sessions...

2006-01-23 Thread Steve Clay
Monday, January 23, 2006, 5:06:02 AM, David BERCOT wrote: But, I have just another question about all the options I have to put in this file... Is it necessary to do all of this (sorry for my Check phpinfo(). Several of those settings may already be set by your server's php.ini file. Generally,

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Steve Clay
Monday, January 23, 2006, 1:35:13 PM, Chris wrote: the -saveHTML() method ... outputs as `option selected` I need my output HTML to conform to XHTML strict. Since XHTML is XML, try -saveXML()? Steve -- http://mrclay.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Can PHP works with telnet?

2006-01-22 Thread Steve Clay
Sunday, January 22, 2006, 8:56:01 PM, HoWang wrote: software. I have made a quick search on php.net but I can't found amy extension support telnet. Is there any way to do so? Or it is impossible Try http://www.geckotribe.com/php-telnet/ which uses fsockopen [1]. CURL [2] /claims/ telnet

Re[2]: [PHP] Validating Radio Buttons in two directions

2006-01-18 Thread Steve Clay
Tuesday, January 17, 2006, 11:33:18 PM, HiFi Tubes wrote: Thanks to all of you who responded. Yes, I am doing the grid --basically 100 radio buttons, that is ten comments that must be ranked from 1 to 10. Ugh. If you absolutely can't use Javascript, here's an idea: Present this question by

Re[2]: [PHP] Best way to do this: www.domain.com?page=var

2006-01-17 Thread Steve Clay
Tuesday, January 17, 2006, 10:54:21 AM, [EMAIL PROTECTED] wrote: If you can't set a new 'default page' on your server, using a header('Location: ...') will simulate the same thing. Not really. Sending a Location: header says, this page is temporarily moved and the browser has to send a 2nd

Re[2]: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread Steve Clay
Monday, January 16, 2006, 5:14:49 PM, tg-php wrote: Should just be a matter of adding start.php to your defaults list in whatever priority order you want. Apache's .htaccess: DirectoryIndex start.php index.php index.html In start.php: // instead of redirecting, just set page if

[PHP] Re: Form variables not passing: globals IS on

2002-08-12 Thread Steve Clay
Monday, August 12, 2002, 4:57:36 AM, Petre wrote: PA to the default php.ini, and have checked it and register_global = On PHP settings can be altered outside of php.ini (using Apache .htaccess files for example) Add this line to page2.php to see the run-time setting: echo register_globals is

[PHP] massive find/replace on MySQL db

2002-06-15 Thread Steve Clay
Hello, I've inherited a MySQL db (4MB on disk) that's riddled with inconsistent storage of character entities from being pasted from Word. At very least I hope to convert all quotes #145; - #148; to HTML's #34; and #39;. I imagine I'll run a big query, save the id's needing edit in a file than

Re[2]: [PHP] massive find/replace on MySQL db

2002-06-15 Thread Steve Clay
Saturday, June 15, 2002, 11:11:49 AM, Julie wrote: JM update tablename set fieldwithcrap = replace(fieldwithcrap, JM 'oldstring', 'newstring'); Julie, lovely solution and shockingly fast. Thanks. Steve -- [EMAIL PROTECTED] ** http://mrclay.org -- PHP General Mailing List

[PHP] Re: 'Pure' php vs 'mixed' (html + php)

2002-06-03 Thread Steve Clay
Sunday, June 02, 2002, 7:55:09 PM, Andre wrote: AD I've been wondering why code in 'pure' php? Is there some compelling reason AD (that I'm unaware of) for doing so? Should I rewrite all my earlier code into Andre, Sorry to chime in so late, but IMO, be more concerned with saving output

[PHP] win32: migrating PWS to Apache

2002-05-30 Thread Steve Clay
Hello, On winNT I have Personal Web Server, PHP4.1.1, MySQL. My target is Apache1.3, PHP4.2.2, Perl, MySQL. Should I uninstall both PHP and PWS then install Apache, then PHP? Would it be easier to uninstall mySQL and use a package like PHPtriad than to set up Apache PHP seperately? A package

[PHP] CGI / Apache module session permissions

2002-05-18 Thread Steve Clay
Hello, To perform a certain task I have to run one of my PHP scripts as a CGI, which works fine except that the CGI doesn't have permissions to my sessions that were saved running under the Apache module. I expected different permissions, but I thought my user would have /more/ permission to

[PHP] Re: CGI / Apache module session permissions

2002-05-18 Thread Steve Clay
Saturday, May 18, 2002, 1:05:30 PM, I wrote: SC CGI, which works fine except that the CGI doesn't have permissions to SC my sessions that were saved running under the Apache module. I Figured it out: from Apache mod script before CGI script: //allow CGI to access session $sess_file =

[PHP] Re: Sessions/Cookies and HTTP Auth

2002-03-28 Thread Steve Clay
Just as a note, recent builds of Mozilla have a cookie manager that is the best for seeing exactly what's going on with your cookies. You can list by name or host and see all the properties of each. Know when your session cookies are sent/deleted, know if PHP is allowing use of the same SESSID

[PHP] Re: Comparrison

2002-03-27 Thread Steve Clay
Ron, You probably want strstr(). or stristr(). Just as a usability recommendation on you code below, please don't restrict your pages to IE only.. This would be better: if (!strstr($HTTP_USER_AGENT,MSIE 5.5) { print Please note this page has functionality designed for IE5.5; } Users of

[PHP] Re: Code Bulk

2002-03-26 Thread Steve Clay
GS ?php GS echo 'Finished'; ? I can do one better: ... ?Finished?php ... Seriously, I think he's right to think parsing 3000 lines with *every* call will be less than ideal. He should use include() conditionally to grab only the necessary code, but only to an extent. Then you start adding

[PHP] semi-OT: moving PWS to Apache on NT

2002-03-25 Thread Steve Clay
Hello, I run Personal Web Server on NT just for local testing but I'm considering installing Apache. Would this allow me to run mod_php instead of the CGI? Ideally I'd like to configure Apache so that only local requests are served - Is this easily done? Anyone on NT/win2k have anything good

[PHP] Re: RC4Crypt encryption opinions

2002-03-22 Thread Steve Clay
Maxwell, I tried it out. The sample test crashed the PHP 4.0.5 CGI binary everytime on my winNT system. No script has ever /crashed/ the executable before, just might be worth note. Steve Friday, March 22, 2002, 12:45:11 AM, . wrote: I'm looking for opinions on RC4Crypt -- [EMAIL

[PHP] eating mySQL result rows 1 by 1.. a better way?

2002-03-21 Thread Steve Clay
Hello, On my site I paginate query results by limiting rows output to a value, say LIMIT, and then the 2nd, 3rd pages run the same query with $skip=LIMIT, $skip=(LIMIT*2) value posted back. I use the following code to skip these result rows, which is just fetching the next row to an unused

[PHP] Looking for modifiable web administration script for MySQL

2002-03-19 Thread Steve Clay
On another note, Are there any open-source/freeware PHP scripts that have the functionality of PHPMyAdmin, but modifiable for my custom tables/needs? The admin script I could write at this point would be an inferior web interface for our MySQL DB (only 2 tables), so I'd rather save time

[PHP] sessions not so secure..solution?

2002-03-19 Thread Steve Clay
Hello, I'm building an e-commerce site which uses sessions to hold my $cart object. This works great but I've two worries: 1) When the user connects through our secure hostname, can I ensure the browser will send the server the cookie (w/ SESSID)? The user will shop through domain.com

Re[2]: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Steve Clay
Tuesday, March 19, 2002, 2:51:33 PM, Alexander wrote: AS Well, use GnuPG. Then you can use PGP. And what you stated above is Just some advice if you go with GPG and you don't have root/chown access. Since you'll create your keyring under your user, you'll likely have to run PHP as a CGI so