RE: [PHP] Similar functions?

2003-11-20 Thread Jake McHenry
-Original Message- From: RT [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 1:40 AM To: Jake McHenry Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Similar functions? I'm not sure if this is what you're looking for but if it is it will be much easier the regex's

[PHP] install php-cli script

2003-11-20 Thread Decapode Azur
hello, Where should php-cli scripts be installed? I have put the main file in /usr/local/bin/script.php but I wonder where requires should be installed? /usr/local/bin/script_inc/ ? the problem is that it have to be exec from a boot shell after a cd to find the requisites :-/ I also would like

Re: [PHP] SESSION wierdness....

2003-11-20 Thread Jason Wong
On Thursday 20 November 2003 14:34, David HM Spector wrote: I'm seeing really odd behavior using session variables and wonder if I'm really just missing something obvious... My env is: RH9, httpd-2.0.40-21.5, PHP 4.2.2 (RH RPM, gazillion compile flags enabled), session support enabled,

Re: [PHP] SESSION wierdness....

2003-11-20 Thread Rob Burris
David HM Spector wrote: I am writing a multi-page form, on the first page I session_register() a mess of variables (8 of them), the first time through the form everything works as expected, I can get things out of form variables and into relevant the $_SESSION variables. Items are put

[PHP] $_REQUEST non populated

2003-11-20 Thread Andrea Pinnisi
I've made a php script that works fine on many servers, but in one of them I get $_REQUEST not populated, if I print_r($_REQUEST) I get my cookies, and not GET or POST vars! I need to user _REQUEST and not _GET or _POST for some reason, and I can't change all the scripts (2Mb and more of php

[PHP] RE: Prefilled forms (solved)

2003-11-20 Thread Veress Berci
Hello! Scuse me, if I write some totally dumb thing. I am quite new to PHP and programming, and maybe I'm not understanding the question, but: What if you assign a value to every form field like this: input type=text name=something value=?php echo $something; ? or - safer, with

Re: [PHP] RE: Prefilled forms (solved)

2003-11-20 Thread Eugene Lee
On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote: : : Scuse me, if I write some totally dumb thing. : I am quite new to PHP and programming, and maybe I'm not understanding : the question, but: : : What if you assign a value to every form field like this: : : input type=text

RE: [PHP] RE: Prefilled forms (solved)

2003-11-20 Thread Wouter van Vliet
-Oorspronkelijk bericht- Van: Eugene Lee [mailto:[EMAIL PROTECTED] On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote: : : Scuse me, if I write some totally dumb thing. : I am quite new to PHP and programming, and maybe I'm not understanding : the question, but: : :

Re: [PHP] $_REQUEST non populated

2003-11-20 Thread Marek Kilimajer
Andrea Pinnisi wrote: I've made a php script that works fine on many servers, but in one of them I get $_REQUEST not populated, if I print_r($_REQUEST) I get my cookies, and not GET or POST vars! I need to user _REQUEST and not _GET or _POST for some reason, and I can't change all the scripts

Re: [PHP] passing PHP variables to Javascript ...

2003-11-20 Thread David Strencsev
Cpt John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Kenn Murrah [EMAIL PROTECTED] I need to be able to pass a PHP variable to a Javascript and can't figure out how to do it. In short, the Javascript win() statement is used open a page as defined in PHP --

[PHP] Re: file_exists on Windows problem

2003-11-20 Thread David Strencsev
If you're using NTFS file system... please make sure that the PHP's temporay UPLOAD directory and SESSIONDATA directory are set with the correct permissions. I mean that the user IUSR_YOURCOMPUTER has write permissions in these directories. Hope it will help - David Strencsev -- PHP General

[PHP] $query works but i still get a returned error

2003-11-20 Thread PAUL FERRIE
I am not sure what the problem is here. The script runs and deletes the relevent row but still returns DATA from albums loaded row id 658 did not get sent Error deleting row! Warning: Cannot modify header information - headers already sent by (output started at

[PHP] Re: IE 6 mangling posted code

2003-11-20 Thread David Strencsev
You may play with these functions: addslashes(); stripslashes(); htmlentities(); html_entity_decode(); Good luck - David Strencsev -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problems with images

2003-11-20 Thread Egil Berntsen
I make som images on-the-fly with php. Scandinavian spesial characters comes out with a square instead. I use a font that I have placed on root. What can I do to fix this? egil berntsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP-Only Polling Script?

2003-11-20 Thread Jay Blanchard
[snip] Can anyone recommend a good, simple PHP-only polling script? [/snip] I found this by using Google http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=267lngWId=8 http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=PHP+voting+script -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] date question

2003-11-20 Thread John Nichel
Martin Cameron wrote: $ndays=14; function get_next_dates($ndays) { $today=date(m-d-Y,mktime(0,0,0,date(m),date(d),date(Y))); $forward_date=date(m-d-Y,mktime(0,0,0,date(m),date(d)+$few_days,date(Y))); print h1$today === $few_days === $forward_date/h1; for($i=0;$i$ndays;$i++) {

Re: [PHP] PHP-Only Polling Script?

2003-11-20 Thread John Nichel
Jay Blanchard wrote: [snip] Can anyone recommend a good, simple PHP-only polling script? [/snip] I found this by using Google http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=267lngWId=8 http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=PHP+voting+script I keep hearing about this

Re: [PHP] $query works but i still get a returned error

2003-11-20 Thread John W. Holmes
PAUL FERRIE wrote: I am not sure what the problem is here. The script runs and deletes the relevent row but still returns DATA from albums loaded row id 658 did not get sent Error deleting row! Warning: Cannot modify header information - headers already sent by (output started at

Re: [PHP] $query works but i still get a returned error

2003-11-20 Thread PAUL FERRIE
So your saying i should be using POST rather than GET? John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PAUL FERRIE wrote: I am not sure what the problem is here. The script runs and deletes the relevent row but still returns DATA from albums loaded row id 658 did

Re: [PHP] $_REQUEST non populated

2003-11-20 Thread Andrea Pinnisi
Marek Kilimajer ha scritto: variables_order - usualy set to EGPCS It's already EGPCS, I'm waiting more info from the system administrator of that server. Is there any enviroment variable that may help to solve this problem? I don't want to post the entire phpinfo :-) Thanks Andrea -- PHP

Re: [PHP] Why is the php loop, 'for()', so slow????

2003-11-20 Thread Scott Fletcher
Well, should have make one long string to the $res_str variable a lot shorter. :-) It turned out that the for() loop isn't the slow part when you mentioned about substr(). I tried out the while() loop and it is pretty much the same when the loop take over 5 minutes. So, it now seem to have to

Re: [PHP] Installing Turck MMcache on win

2003-11-20 Thread Veress Berci
Hello Curt wrote: php has to run as a mod in order to have mmcache run. Make a php I knew this from the start. So I configured Apache (i think i did it right) to run php as module. I had an httpd.conf.runphpasmodule file, and I had renamed it to httpd.conf page with the output of phpinfo(). It

Re: [PHP] Why is the php loop, 'for()', so slow????

2003-11-20 Thread Scott Fletcher
I can give the strpos() a shot but I seem to have problem with getting the strpos() to give me two seperate !CDATA[[]] tags instead of just hte first one only... Scott Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott, Please dont post 500+ lines of stuff to the

RE: [PHP] retrieving ENUM description from MySQL

2003-11-20 Thread Jeff McKeon
Here's an example of how to get the ENUM into a drop down list in a web form. I use it all the time.. [code] /* Get_Enum : Retreives the enum options from an enum type field in a MySql Database */ function Get_enum($table,$field,$db,$link) { mysql_select_db($db,$link); $result =

[PHP] echo or print

2003-11-20 Thread Jay Fitzgerald
when should i use echo ' '; vs. print ' '; Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS-A) - Certified Professional Web Developer (CPWDV-A) - Certified E-Commerce Manager

[PHP] date from weeknumber

2003-11-20 Thread Fredrik
Hi I want to get the last date in a week. Is there anybody who know how i can do this. something like this: function date getDateFromWeek( $week, $year){ ... ... return date; } - Petter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
Hi Everyone! Is there a way to get the strpos() to find the next needle in the haystack instead of just the 1st one only? (Where the 1st needle is the same string as the next needle)... Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] RE: Prefilled forms(solved)

2003-11-20 Thread Veress Berci
-Oorspronkelijk bericht- Van: Eugene Lee [mailto:[EMAIL PROTECTED] On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote: : : Scuse me, if I write some totally dumb thing. : I am quite new to PHP and programming, and maybe I'm not understanding : the question, but: : :

Re: [PHP] date from weeknumber

2003-11-20 Thread Marco Tabini
Hey-- Maybe this will help: http://www.phparch.com/mailinglists/msg.php?a=557061 Cheers, Marco Fredrik wrote: Hi I want to get the last date in a week. Is there anybody who know how i can do this. something like this: function date getDateFromWeek( $week, $year){ ... ... return

RE: [PHP] Why is the php loop, 'for()', so slow????

2003-11-20 Thread Wouter van Vliet
As a substitute for substr, you might want to give a regex a chance.. have no clue if it's faster, but it might just be. /^.{2}(.{0,8})/ would be your regex if you want to start at offset THREE and take out a MAX EIGHT char string (remove the 0 and get ONLY EIGHT char strings). Not sure

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] date question

2003-11-20 Thread Ahbaid Gaffoor
Beautiful, many thanks Ahbaid. Martin Cameron wrote: $ndays=14; function get_next_dates($ndays) { $today=date(m-d-Y,mktime(0,0,0,date(m),date(d),date(Y))); $forward_date=date(m-d-Y,mktime(0,0,0,date(m),date(d)+$few_days,date(Y))); print h1$today === $few_days === $forward_date/h1;

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 14:53, Scott Fletcher wrote: Hi Everyone! Is there a way to get the strpos() to find the next needle in the haystack instead of just the 1st one only? (Where the 1st needle is the same string as the next needle)... Look at the optional 3rd parameter to strpos().

[PHP] Session vars not echoing?

2003-11-20 Thread Jas
Not sure why this is happening but I think it has something to do with an include statement... [Server environment] Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3 register_globals On On report_memleaks On On safe_mode Off Off safe_mode_exec_dir no value no value Session Support enabled [Script

[PHP] Using JavaScript variables in PHP

2003-11-20 Thread Mike Knittel
How does one go about using a JavaScript variable with PHP code. I have a function in JavaScript that takes a single input parameter (ID). I want to use this ID variable as the value on the where clause of a database query. Example: select * from somedatabase where field=ID Can this be done,

[PHP] XML Parsing....

2003-11-20 Thread Scott Fletcher
Hi Everyone! I'm having a little trouble understanding how exactly to use the XML parser. I haven't found the right settings to set up the XML Parser's option because of no definition of the encoding setting in the XML tags I received. So, I'll post the script here and hope to get some

Re: [PHP] Installing Turck MMcache on win

2003-11-20 Thread Curt Zirzow
* Thus wrote Veress Berci ([EMAIL PROTECTED]): Hello Curt wrote: php has to run as a mod in order to have mmcache run. Make a php I knew this from the start. So I configured Apache (i think i did it right) to run php as module. I had an httpd.conf.runphpasmodule file, and I had renamed it

RE: [PHP] Re: IE 6 mangling posted code

2003-11-20 Thread Pablo Gosse
David Strencsev wrote: You may play with these functions: addslashes(); stripslashes(); htmlentities(); html_entity_decode(); Thanks for your help manu and david. I'm going to attempt converting the html characters and see if that works, but something also makes me think this might be a

Re: [PHP] Using JavaScript variables in PHP

2003-11-20 Thread Mike Migurski
How does one go about using a JavaScript variable with PHP code. I have a function in JavaScript that takes a single input parameter (ID). I want to use this ID variable as the value on the where clause of a database query. Example: select * from somedatabase where field=ID Can this be done,

Re: [PHP] Using JavaScript variables in PHP

2003-11-20 Thread John Nichel
Mike Knittel wrote: How does one go about using a JavaScript variable with PHP code. I have a function in JavaScript that takes a single input parameter (ID). I want to use this ID variable as the value on the where clause of a database query. Example: select * from somedatabase where field=ID

Re: [PHP] PHP-Only Polling Script?

2003-11-20 Thread Rob Adams
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] For premade scripts, there's always here too... http://www.phpresourceindex.com Is this page a joke? When I go there, I get this message: error Active Server Pages error 'ASP 0241' CreateObject Exception /Default.asp

[PHP] Avoiding duplicate orders?

2003-11-20 Thread J J
What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card processing and will click the submit button two, three, or more times causing duplicate orders. Is there a quick way to disable the submit button at least in

RE: [PHP] PHP-Only Polling Script?

2003-11-20 Thread Dan Joseph
Hi, Is this page a joke? When I go there, I get this message: error Active Server Pages error 'ASP 0241' CreateObject Exception /Default.asp The CreateObject of '(null)' caused exception C005. /error Looks ok to me, except last I remmeber, ASP gave you a line number it

Re: [PHP] PHP-Only Polling Script?

2003-11-20 Thread John Nichel
Rob Adams wrote: John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] For premade scripts, there's always here too... http://www.phpresourceindex.com Is this page a joke? When I go there, I get this message: Nope, no joke...just not thinking while I type

Re: [PHP] Avoiding duplicate orders?

2003-11-20 Thread Sophie Mattoug
The way I do is, on the result page, to create a variable (for example $done) and I put to into the session. So if this variable already exists, I don't re-execute the form treatment code. Hope this helps -- Cordialement, --- Sophie Mattoug Développement web dynamique

[PHP] Re: PHP Encoders

2003-11-20 Thread R. Rajesh Jeba Anbiah
Jerry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi there ! I am curretly looking for suitbale solutions for encoding PHP scripts after developing a couple of comercial applications in PHP. Has anybody made any experience with several encoders like IONCUBE,

[PHP] Re: Session vars not echoing?

2003-11-20 Thread pete M
need to issue a session_start() at top of page Pete Jas wrote: Not sure why this is happening but I think it has something to do with an include statement... [Server environment] Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3 register_globalsOnOn report_memleaksOnOn safe_modeOff

[PHP] Re: Avoiding duplicate orders?

2003-11-20 Thread pete M
psuedo code session_start() if (incoming POST and $_SESSION['in_database'] != 1) { insert to DB $_SESSION['in_database'] = 1 } pete J J wrote: What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card

[PHP] Two-way on-the-fly encryption

2003-11-20 Thread Ray
I want to do two-way encryption on a file coming through the web server. In this context, I would want to generate a public and private key, encrypt the file stream (i.e., don't want to write the unencrypted file to disk first and then encrypt it; I want to encrypt the stream as it comes in) with

Re: [PHP] Avoiding duplicate orders?

2003-11-20 Thread Marek Kilimajer
J J wrote: What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card processing and will click the submit button two, three, or more times causing duplicate orders. Is there a quick way to disable the submit button at

[PHP] LAMP jobs

2003-11-20 Thread Susan Ator
It seems like this question came up before. Is there a resource for people looking for jobs working with open source products (LAMP specifically)? Thanks, susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray mailto:[EMAIL PROTECTED] on Thursday, November 20, 2003 5:29 AM said: Any ideas on how to accomplish this within the PHP construct? Instead of reinventing the wheel you can just use HTTPS. Chris. -- Don't like reformatting your Outlook replies? Now there's relief!

[PHP] On-the-fly encryption

2003-11-20 Thread Ray
I want to do two-way encryption on a file coming through the web server. In this context, I would want to generate a public and private key, encrypt the file stream (i.e., don't want to write the unencrypted file to disk first and then encrypt it; I want to encrypt the stream as it comes in) with

[PHP] Re: file_exists on Windows problem

2003-11-20 Thread Chris Williams
Thanks, that worked David Strencsev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If you're using NTFS file system... please make sure that the PHP's temporay UPLOAD directory and SESSIONDATA directory are set with the correct permissions. I mean that the user IUSR_YOURCOMPUTER

RE: [PHP] On-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray mailto:[EMAIL PROTECTED] on Wednesday, November 19, 2003 9:44 AM said: Any ideas on how to accomplish this within the PHP construct? You already posted this question and I've already responded to it. Check the old thread. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: PHP Encoders

2003-11-20 Thread Ryan A
Hi, POBs is really good, but I have had some weird problems when encoding large files, especially if you take out the line breaks in the options. Another problem with POBS is that you can have your config.php file not encoded with the rest of the files, since it changes your variables (eg $email

[PHP] Usort an array.

2003-11-20 Thread Vincent M.
Hello, I have an array like that: $return[0][photo] = monuments_01.jpg $return[1][photo] = monuments_00.jpg $return[2][photo] = monuments_03.jpg $return[3][photo] = monuments_02.jpg $return[4][photo] = monuments_04.jpg If I use the sort function: sort($return) ; I get:

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... --snip-- $XML_Start = (strpos($res_str,![CDATA[,1)+9); $HTML_Start = (strpos($res_str,![CDATA[,2)+9);

Re: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Ray
Chris, I thought of that and I do plan on implementing it on the way in and out. However, to meet HIPA and other business requirements, the data can not exist at any point in time on my system in unencrypted form. I do not want to be able to view it and I do not want to know what is there. Any

[PHP] Re: Session vars not echoing?

2003-11-20 Thread Jas
Yeah I did that, sorry I just didn't note it in the snippit.. and it is now working with the $_SESSION function, i just had to restart the browser to clear the cache after updating the code. jas Pete M wrote: need to issue a session_start() at top of page Pete Jas wrote: Not sure why this

[PHP] Remote computer name?

2003-11-20 Thread Jas
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas -- PHP General Mailing List

[PHP] Re: Usort an array.

2003-11-20 Thread pete M
array_reverse() Vincent M. wrote: Hello, I have an array like that: $return[0][photo] = monuments_01.jpg $return[1][photo] = monuments_00.jpg $return[2][photo] = monuments_03.jpg $return[3][photo] = monuments_02.jpg $return[4][photo] = monuments_04.jpg If I use the sort

RE: [PHP] Usort an array.

2003-11-20 Thread Jay Frumkin
Try using rsort() Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo or print

2003-11-20 Thread John W. Holmes
Jay Fitzgerald wrote: when should i use echo ' '; vs. print ' '; You should always use echo. It'll make a significant performance increase in your scripts as it's only four letters instead of five. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect:

Re: [PHP] Session vars not echoing?

2003-11-20 Thread John W. Holmes
Jas wrote: [Script registering vars - sessions.php] /* Format Date Time */ $hour = (date(H:i:s)); $day = (date(d)); $date = (date(F $day, Y)); Don't you mean $data = date('F d, Y'); I don't see why you're calculating $day and then putting it in date(). /* Register vars */ $_SESSION['date'] =

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Scott Fletcher wrote: How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... The optional offset parameter allows you to specify which

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 17:39, Scott Fletcher wrote: How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... --snip-- $XML_Start =

RE: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray mailto:[EMAIL PROTECTED] on Thursday, November 20, 2003 9:32 AM said: I thought of that and I do plan on implementing it on the way in and out. However, to meet HIPA and other business requirements, the data can not exist at any point in time on my system in unencrypted form. I do

Re: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 01:31, Ray wrote: I thought of that and I do plan on implementing it on the way in and out. However, to meet HIPA and other business requirements, the data can not exist at any point in time on my system in unencrypted form. I do not want to be able to view it and

Re: [PHP] Remote computer name?

2003-11-20 Thread John Nichel
Jas wrote: I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas HTTP_HOST returns the name (or

[PHP] PHP LDAP attributes question

2003-11-20 Thread Cory Hicks
Hello, I am having trouble returning attributes from an LDAP dir and was curious if anyone had experienced similar issues. I am able to retrieve the attributes in the $nds_stuff fine. However, once I add an attribute to the array, I can get the last attribute in the array, but not the one that

[PHP] Javascript question

2003-11-20 Thread Robin Kopetzky
I know this may be off-topic but I've got a problem that I do not know how to work around... I'm displaying a SELECT list and the problem is getting the value back after an 'onChange' event. Code is like this: HTML HEAD SCRIPT LANGUAGE=JAVASCRIPT !-- function jump() {

Re: [PHP] Javascript question

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 02:24, Robin Kopetzky wrote: I know this may be off-topic but I've got a problem that I do not know how to work around... Hey list moderators, can this list be renamed the php-general-javascript-and-the-kitchen-sink list? -- Jason Wong - Gremlins Associates -

RE: [PHP] echo or print

2003-11-20 Thread Johnson, Kirk
when should i use echo ' '; vs. print ' '; Here's a link listed in the manual at http://www.php.net/manual/en/function.print.php http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Javascript question

2003-11-20 Thread Robin Kopetzky
Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Remote computer name?

2003-11-20 Thread Mike Migurski
[Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas HTTP_HOST returns the name (or ip) of the machine on which php is running. REMOTE_ADDR will return the ip of the client

RE: [PHP] Javascript question

2003-11-20 Thread Mike Migurski
Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? Insofar as he is cautious about spam, sure. - michal migurski-

RE: [PHP] Javascript question

2003-11-20 Thread Jay Blanchard
[snip] Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? [/snip] I found Jason's reply to be humorous! You yourselef said that your request was off topic. What did you expect? Here is

Re: [PHP] echo or print

2003-11-20 Thread Burhan Khalid
Tom Rogers wrote: 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

Re: [PHP] Javascript question

2003-11-20 Thread John Nichel
Jason Wong wrote: On Friday 21 November 2003 02:24, Robin Kopetzky wrote: I know this may be off-topic but I've got a problem that I do not know how to work around... Hey list moderators, can this list be renamed the php-general-javascript-and-the-kitchen-sink list? My kitchen sink

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Gerfen
So in that case there isn't a $_SERVER function to gather the remote computer name? Jas John Nichel wrote: Jas wrote: I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as

Re: [PHP] Javascript question

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 02:38, Robin Kopetzky wrote: Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? My address only accepts mail directly from the list, cuts down on the spam

Re: [PHP] Javascript question

2003-11-20 Thread John Nichel
Robin Kopetzky wrote: Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? Jason's actions describe him, not his email address. Jason is a valued member of this list and has helped

RE: [PHP] Javascript question

2003-11-20 Thread Jay Blanchard
[snip] My kitchen sink always gets clogged when we clean out the fridge. Does anyone know of a way I can fix that? ;) [/snip] $strSinkTrap = fopen(/under/the/cabinet/, w+); while(!feof($strSinkTrap)){ unscrewFittings($pipe); if($pipeUnscrewed == TRUE){

Re: [PHP] Remote computer name?

2003-11-20 Thread John Nichel
Jason Gerfen wrote: John Nichel wrote: Jas wrote: I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost,

Re: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Ray
1. When you say on my system in unencrypted form do you indeed mean you want data that can be encrypted and then unencrypted as opposed to a hash like md5() that cannot be reversed? (I only ask this because a lot times people use them synonymously when they should not.) Yes, two way, like PKI.

Re: [PHP] Javascript question

2003-11-20 Thread John Nichel
Jay Blanchard wrote: [snip] My kitchen sink always gets clogged when we clean out the fridge. Does anyone know of a way I can fix that? ;) [/snip] $strSinkTrap = fopen(/under/the/cabinet/, w+); while(!feof($strSinkTrap)){ unscrewFittings($pipe); if($pipeUnscrewed ==

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 02:59, Jason Gerfen wrote: So in that case there isn't a $_SERVER function to gather the remote computer name? 1) print_r($_SERVER) to see what is available 2) it may be available if you have set your webserver to do DNS lookups. But because it is expensive (ie takes

Re: [PHP] Javascript question

2003-11-20 Thread Aaron Gould
$strSinkTrap = fopen(/under/the/cabinet/, w+); while(!feof($strSinkTrap)){ unscrewFittings($pipe); if($pipeUnscrewed == TRUE){ removeClog($hair, $grease, $grime); } } fclose($strSinkTrap); You may want to call the screwFittings

Re: [PHP] Remote computer name?

2003-11-20 Thread John Nichel
Jason Wong wrote: snip 3) you can always use gethostbyaddr($_SERVER['REMOTE_ADDR']) whenever it is needed. But do note that $_SERVER['REMOTE_ADDR'] is not a wholly reliable indicator of who your client is. Right...it doesn't return the machine name for any of my client machines (didn't

[PHP] array_search

2003-11-20 Thread Jake McHenry
I've been using array_search in my scripts for a while now, but have come across a problem. My new page has a textarea field. If I enter any new lines in the textarea, array_search returns false. I have tried using html_encode, addslashes, serialize and nothing yet has worked. My only other

Re: [PHP] Javascript question

2003-11-20 Thread Brent Baisley
Funny off-off topic stuff. But to address the original question, which I deleted already, the problem is in your html, not your javascript. The syntax for selects is: select name=state_name onChange= option label=Colorado value=ColoradoColorado/option You had the name parameter in the option,

RE: [PHP] array_search

2003-11-20 Thread Jay Blanchard
[snip] I've been using array_search in my scripts for a while now, but have come across a problem. My new page has a textarea field. If I enter any new lines in the textarea, array_search returns false. I have tried using html_encode, addslashes, serialize and nothing yet has worked. My only

RE: [PHP] array_search

2003-11-20 Thread Jake McHenry
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 2:48 PM To: Jake McHenry; [EMAIL PROTECTED] Subject: RE: [PHP] array_search [snip] I've been using array_search in my scripts for a while now, but have come across a problem. My

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 03:33, John Nichel wrote: Right...it doesn't return the machine name for any of my client machines (didn't expect it too on the DHCP boxes, but thought it might on the two static boxes). For the two static machines, it returns the Charter (cable connection) and

RE: [PHP] Re: PHP Encoders

2003-11-20 Thread Michael
I like POB too but it's an obsfuscator. To fix your $email problem just do a search for $2d4g3a5sd and change them all to $email. An encoder would be Ioncube or Turck's mmcache but the server needs to be installed with their software to run the encoded scripts. POB doesn't need anything

RE: [PHP] array_search

2003-11-20 Thread Jake McHenry
-Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 2:51 PM To: 'Jay Blanchard' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] array_search -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: [PHP] array_search

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Jay Blanchard wrote: $foo = $_POST['textarea']; $newFoo = str_replace(\n, , $foo); $arrayFoo = explode( , $newFoo); In the code above any spaces on the lines will also be delimiters... I missed that part of the requirement...? Maybe I'm not understanding the problem, but

Re: [PHP] Why is the php loop, 'for()', so slow????

2003-11-20 Thread Eugene Lee
On Thu, Nov 20, 2003 at 09:45:45AM -0500, Scott Fletcher wrote: : : I can give the strpos() a shot but I seem to have problem with getting the : strpos() to give me two seperate !CDATA[[]] tags instead of just hte : first one only... Use the offset parameter: ?php $haystack

Re: [PHP] echo or print

2003-11-20 Thread Eugene Lee
On Thu, Nov 20, 2003 at 12:36:42PM -0500, John W. Holmes wrote: : : Jay Fitzgerald wrote: : : when should i use echo ' '; vs. print ' '; : : You should always use echo. It'll make a significant performance : increase in your scripts as it's only four letters instead of five. p

  1   2   >