RE: [PHP] Destroying session data

2004-12-23 Thread Vail, Warren
Closing the browser sends nothing to the webserver and with most webservers, the server has forgotten that you were ever there. When using sessions, you connect your browser and request a page, and that request is accompanied with a session key that is stored in a cookie on the browser machine by

RE: [PHP] Destroying session data

2004-12-23 Thread Vail, Warren
Okay, lemme see if I understand how it works. Even if it sees it as garbage, it will not destroy it until the session has ended? or will destroy when that time is reached? So can I set session.gc_maxlifetime to be a low number (e.g., 10 seconds) and it will still behave appropriately?

RE: [PHP] hackers?

2004-12-22 Thread Vail, Warren
not sure if this is a stupid question, but im looking for a person or a place that will check or try to break a site. Does sound a little like walking into a tough bar with a gun looking for someone to shoot you, but while I would be tempted to lurk around these guy's a little to figure

RE: [PHP] User Groups Mailing List

2004-12-17 Thread Vail, Warren
http://www.meetup.com is a website that has been around a couple of years at least, and provides lots of organization tips for groups interested in most subject and yes there is a whole series of them oriented around PHP, and I believe another around MySQL. Promote, promote, promote, seems to be

RE: [PHP] GD, problem adding text to GIF images

2004-12-16 Thread Vail, Warren
I believe that is the nature of GIF images, I seem to recall they were very compact but limited to a maximum of 16 colors (or 32 or some number like that[maybe 64]), fewer colors that JPEG. Anyone know exactly? Warren Vail -Original Message- From: Juan Nin [mailto:[EMAIL PROTECTED]

RE: [PHP] grabbing source of a URL

2004-12-10 Thread Vail, Warren
I suspect that you don't really want to cut out everything but the text (since you plan to display it) but check out; http://us2.php.net/manual/en/function.strip-tags.php Now, keep in mind that since you are getting the source from the url, and I'm guessing that the web server serving up the

RE: [PHP] grabbing source of a URL

2004-12-10 Thread Vail, Warren
Oops missed part of your question; know what function to use to grab the page. for the string http://us2.php.net/manual/en/function.fopen.php There are some good samples on the page $dh = fopen($url,'r'); $result = fread($dh,8192); Hope

RE: [PHP] ISP snippet

2004-12-09 Thread Vail, Warren
I can't help but wonder if an ip trace rte could be used to help identify the ISP? Or Perhaps using a whois,,, doesn't some versions of whois use IP address? Intriguing question,,, Warren Vail -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, December

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
There is another similar editor called htmlarea. http://www.interactivetools.com/freescripts/ My impression was that htmlarea might be a little more extensible. (Image manager, Table Managers, Multiple languages, etc). Warren Vail -Original Message- From: Ryan A [mailto:[EMAIL

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
Sure, I added it to a PHPNuke site (among others). Check out http://www.phppilot.com/nuke/html/modules.php?name=Submit_News Warren Vail -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 10:56 AM To: Vail, Warren Cc: [EMAIL PROTECTED

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
. On IE works just fine. Guys from InteractiveTools buit beta version 3 that covers most of browsers (didn't check/use). FCKeditor has some bugs on FireFox as well. Didn't check on Netscape. -afan Vail, Warren wrote: Sure, I added it to a PHPNuke site (among others). Check out

RE: [PHP] FCK Editor

2004-12-07 Thread Vail, Warren
, and that would be a shame. Warren Vail -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 11:37 AM To: [EMAIL PROTECTED] Cc: Vail, Warren Subject: RE: [PHP] FCK Editor It worked on my IE and I don't have .NET Framework

RE: [PHP] Random data loss.

2004-12-06 Thread Vail, Warren
Could be a problem of multiple update modules for the same table. When I've encountered this problem in the past it's been one of two causes. 1. In the process of maintaining the table one routine that has no price information, retrieves the row and notices that the something needs to be

RE: [PHP] getting the phsyical path

2004-12-03 Thread Vail, Warren
Another option would be to open the file with a http protocol reference. PHP can access files specifying a URL, and if pointing to your current domain it should work. http://www.php.net/manual/en/function.fopen.php I.e. $fh = fopen(http://www.mydomain.com/filea.txt,r;); You should also be able

RE: [PHP] Plz help me

2004-12-03 Thread Vail, Warren
Assuming you want to show the template file text contents and not have the file translated in any way in the iframe, you might check out; http://www.php.net/manual/en/function.htmlspecialchars.php If on the other hand you just want to show the translated template,, then you want to point your

RE: [PHP] Go Back Problem

2004-12-01 Thread Vail, Warren
If your php form is entered via a post, my experience is that most browsers do not save post information, therefore, clicking back to a page that was entered via a form using the post method, the browser complains that it does not have enough information to display the form, and that you must

RE: [PHP] Execution time?

2004-12-01 Thread Vail, Warren
Take a timestamp at the beginning or your script and at the end (subtract) and you have the execution time (reasonably precisely) plus or minus a few microseconds. http://www.php.net/manual/en/function.microtime.php Warren Vail -Original Message- From: Peter Lauri [mailto:[EMAIL

RE: [PHP] PHP mail redirect ??

2004-12-01 Thread Vail, Warren
But I want a redirect button so I could send the exact same message to the same user and from the same person just but to another mail box on a different machine. Not sure I've ever hear the term redirect used in reference to email. Understand that email cannot be received on just any

RE: [PHP] PHP mail redirect ??

2004-12-01 Thread Vail, Warren
] Sent: Wednesday, December 01, 2004 7:48 PM To: Vail, Warren; [EMAIL PROTECTED] Subject: Re: [PHP] PHP mail redirect ?? Hello, There is another smtp server ... I should of provided more info ... I set up a postfix server to do the following: 1. Receives mail from outside

RE: [PHP] unlink images

2004-11-26 Thread Vail, Warren
PHP has wonderful capabilities to generate images on the fly, such that they are never stored on disk, perhaps you should look into that as an option, you could even make the code decide who should be able to see the image and who should not. http://www.php.net/manual/en/ref.image.php Warren

RE: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Vail, Warren
Because you can have more than one submit button per form? Warren Vail -Original Message- From: Perry Jönsson [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 12:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] $_POST['xxx'] = blabla ? Gerhard Meier wrote: On Mon, Nov

RE: [PHP] PhP e COBOL

2004-11-19 Thread Vail, Warren
Sure, 1. In PHP/Mysql extract rows and save them to a file in delimited fashion, for numeric values be sure to align all the number digits (cobol is dependent on numeric fields being aligned), you can do this with sprintf(%09.02f,$dbfloat); Your delimiter character can be any character that

RE: [PHP] HTML form online

2004-11-19 Thread Vail, Warren
I want to write php script that fill out HTML form online. Any ideas how to do it? I'm probably reading too much into your question, but it sounds like there is another website with a form on it, and you would like to develop a script that would connect to the website, fill in the information

RE: [PHP] PHP Supremacy...

2004-11-17 Thread Vail, Warren
Because among 17 million installed domains, and because the Open Source is open, someone in those 17 million domains will keep it going. http://www.php.net/usage.php Some people never get it, you confuse them with too many facts, hope your manager has an open mind. Warren Vail -Original

RE: [PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Vail, Warren
Hard code the array occurrence number in the checkbox and textbox names; input type=checkbox name=url[1] value='http://somesite' checked a href='http://somesite' target=asomesite/a brinput type=text name=txt[1] size=75 value='some desc' The form will only return the checkboxes that are checked

RE: [PHP] Re: Passing values from a new window

2004-11-05 Thread Vail, Warren
I can recommend http://www.hotscripts.com (the javascript section). Warren Vail -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 1:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Passing values from a new window Is there a place

RE: [PHP] Re: Passing values from a new window

2004-11-05 Thread Vail, Warren
That foot sticking out of his monitor was his choice Warren Vail -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 2:08 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Passing values from a new window [snip] Is there a

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
Do you mean other than asking them, like using their IP address? Warren Vail -Original Message- From: bb9876 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Zip Codes Is there any way to use PHP to determine the zip code someone

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
One thing I might be tempted to try would be to execute a trace route utility and analyze the output, but it is very cryptic; http://www.traceroute.org/ http://www.tracert.com/cgi-bin/trace.pl HOSTLOSS RCVD SENTBEST AVG WORST er1.sfo1.speakeasy.net

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
Because for some of us, that part of our body is the smartest thing we have going, and the rest of us is not engaged in the question. Warren Vail -Original Message- From: bb9876 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] Strange query

2004-11-04 Thread Vail, Warren
The second limit parameter is the actual number of rows to limit to, and in most situations this is usually the same number (i.e. 0,15; 15,15; 30,15; etc). It is too bad this clause is not supported by some of the other databases I have had to use, it makes a convenient way of paging where the

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Vail, Warren
Assuming that the pasting is done into a textarea/textarea on an html form, I believe the Textarea will limit the past to just text characters. I suppose this could be dependent on the browser. I don't know of any html input control that would allow blob (binary) values. I also don't know if

RE: [PHP] getting a number range from user input.. (weight)

2004-11-04 Thread Vail, Warren
Not sure I completely understand what you are trying to do. In your problem, seems to me that both 1.3 and 1.6 would fall under 2.0 and neither of them would fall under 1.0. You must be using some logic that I am not getting. Can you be a little more specific? Warren Vail -Original

RE: [PHP] getting a number range from user input.. (weight)

2004-11-04 Thread Vail, Warren
Are you trying to round to the nearest .5 value? Warren Vail -Original Message- From: Vail, Warren Sent: Thursday, November 04, 2004 7:24 PM To: 'Louie Miranda'; [EMAIL PROTECTED] Subject: RE: [PHP] getting a number range from user input.. (weight) Not sure I completely understand

RE: [PHP] Passing a list in the Header

2004-11-02 Thread Vail, Warren
Not sure why you need to pass it in the header as apposed to the body, since html provides the following; - snip form action=postpgm.php method=post input type=hidden name=arrayvalue[0] value=value0 input type=hidden name=arrayvalue[1] value=value1 input type=hidden

RE: [PHP] Passing marked rows in a table

2004-11-02 Thread Vail, Warren
Assuming you have an artificial key for your table (like an auto increment column), I would place the key field to the table on your form in the value of the checkbox; input type=checkbox name=recsel[] value=$rowid When the form is returned to your post php script it will only receive those

RE: [PHP] Authentification related to browser window

2004-11-02 Thread Vail, Warren
I'm not sure which session parameter controls it, but my sites are setup so that opening a new browser window will start a new session, and if your pages require something in the session saying the user is logged on, he will be forced to logon in the new session, since the variable will not be

RE: [PHP] No luck creating dynamic images

2004-11-01 Thread Vail, Warren
One trick I use is invoke the dynamic image module directly (code the URL in the address field of the browser), along with making sure that the outputting of headers doesn't take place until just before the image output command. This allows the browser to display any syntax errors and such.

RE: [PHP] No luck creating dynamic images

2004-11-01 Thread Vail, Warren
?php $im = imagecreate(100, 50)    or die(Cannot Initialize new GD image stream); $back_color = imagecolorallocate($im, 255, 255, 255); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5,  A Simple Text String, $text_color);

RE: [PHP] Re: GUI editor for php?

2004-11-01 Thread Vail, Warren
I like htmlkit; (it's free) http://www.chami.com/html-kit/ Warren Vail -Original Message- From: Eric Bolikowski [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 2:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: GUI editor for php? Andy B [EMAIL PROTECTED] skrev i melding

RE: [PHP] problem with include()

2004-11-01 Thread Vail, Warren
How did you go to the page that included the login page, if you included it in the tiny_edit.php (which is the routine that sets the cookie in the browser, you need to cause the browser to send it back to you by doing a redirect; Header(Location: tiny_edit.php); Exit; When tiny_edit is entered

RE: [PHP] Session and validation

2004-10-29 Thread Vail, Warren
You might consider another approach, if you are using php5. It's called PRADO, I believe it was overall winner of the PHP programming contest sponsored by ZEND. http://www.zend.com/php5/contest/contest.php?id=36single=1 This is how the product is described;

RE: [PHP] Review: Function that measures the width of a text stri ng in pixels.

2004-10-28 Thread Vail, Warren
There is a function in the GD library that measures text size; http://www.php.net/manual/en/function.imagettfbbox.php But it has an advantage you don't have, once it has places exactly the font it wants, the size it wants, directly into an image, it knows that the browser won't change the image.

RE: [PHP] https://...

2004-10-27 Thread Vail, Warren
Depends on the server and the release, but my apache shows If($_SERVER[HTTPS] == on) // if true is secure Lots of other information like cypher key size, etc. Look in the $_SERVER array. Keep in mind that lots of servers are setup to use the same htdocs base directory for both secure and

RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
This is because there is no way for PHP to run in the browser. Wouldn't it be nice to have a plug-in that allowed PHP to run there, perhaps as a JavaScript replacement? Guess it would have to be a throttled back version of PHP to adhere to sandbox security concerns. Sigh Warren Vail

RE: RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
One aspect of this list that I really enjoy is finding out that everyone but me is on vacation or out of the office. 8-b Warren Vail -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:22 PM To: Vail, Warren Subject: Re: RE: [PHP

RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
and using PHP if I had known in the beginning that I'd need to learn JavaScript as well. Warren Vail -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:33 PM To: Vail, Warren; 'Larry E. Ullman'; Web Guy Cc: PHP Subject: Re: [PHP] User Screen

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Vail, Warren
I notice that none of your variables use the PHP convention of $ preceding the variable name, I also do not see you defining a value for DEFAULT_VALUE, which by the upper case convention seems to be referring to a global constant. Is it not true (no pun intended) that if a variable (or constant)

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Vail, Warren
OK, so it was C code on a PHP list, isn't there a PHP developers list that would work better? Warren Vail -Original Message- From: Quanah Gibson-Mount [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:56 PM To: Vail, Warren; [EMAIL PROTECTED] Subject: RE: [PHP] Default value

RE: [PHP] PHP Compiler?

2004-10-27 Thread Vail, Warren
Try; http://www.zend.com Warren Vail -Original Message- From: Bill McCuistion [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 5:27 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Compiler? Sorry if this is an old question: Where can I find information on any plans to

RE: [PHP] Pure PHP menu tree

2004-10-25 Thread Vail, Warren
Do you really want to have every single click go back to the server and then have the browser need to reload your entire page just to expand a limb (not sure limb is the right term) of the tree? That is what you would have to do to be pure PHP solution since the only place PHP can execute is on

RE: [PHP] fopen by URL is disabled, is there another way of readi ng a remote webpage?

2004-10-20 Thread Vail, Warren
CURL? http://www.php.net/manual/en/ref.curl.php Warren Vail -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 10:25 AM To: Chuck Barnett Cc: PHP General List Subject: Re: [PHP] fopen by URL is disabled, is there another way of

RE: [PHP] people/projects looking for developers...

2004-10-18 Thread Vail, Warren
Check out the following, probably a lot more; http://www.guru.com/ (used to be itmoonlighter.com) http://www.sologig.com/ (site written in php) http://www.prosavvy.com/ http://rfq.programmingbids.com/ I have even seen a few on this list, although it is considered a little off topic, I have yet

RE: [PHP] Exporting HTML to Excel

2004-10-13 Thread Vail, Warren
often see something similar in email. HTH, Warren Vail (415) 667-0240 SF211-07-434 -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 6:18 AM To: Vail, Warren Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Exporting HTML to Excel How

RE: [PHP] Exporting HTML to Excel

2004-10-12 Thread Vail, Warren
Have you tried changing your file name to project.htm but continue issuing the mime headers for excel? Warren Vail -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 2:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Exporting HTML to Excel Hi

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Vail, Warren
If you code in php something like the following, you just might be able to use the perl script; $ok = exec(path/to/Perl myperscriptname.pl server, $result); // you may have to straighten out syntax Foreach($result as $line) { echo $line; // or you could process the results } Hope this

RE: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Vail, Warren
Once heard someone say the same about wiki sites. 8-) Warren Vail -Original Message- From: lists [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] general research question (maybe a little OT, sorry) Hi List, My boss recently

RE: [PHP] Determining the length (in an audio sense) of an MP3

2004-10-07 Thread Vail, Warren
Haven't looked specifically at mp3 but with most sound formats the sample rate divided into the number of characters in the file should produce the time length (i.e. 22000 samples per second divided into a 44 byte data length results in 20 seconds of sound). Seems to me that with most formats

RE: [PHP] why this doesn't work as an external file but does inte rnally?

2004-10-06 Thread Vail, Warren
Perhaps you fixed things but they all appeared to work for me (at least mostly). https://celestica.tristarpromotions.com/NEW/index3.php This last one, seemed to not do the mouseout on the contact button, but all three seemed to work. Good job, Warren Vail -Original Message- From:

RE: [PHP] why this doesn't work as an external file but does inte rnally?

2004-10-05 Thread Vail, Warren
Right on, a .js file is probably not processed by the PHP engine, but while it's imbedded in a .php file, it is. Apples and Oranges, no? Warren Vail -Original Message- From: Aaron Wolski [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 1:01 PM To: 'Jay Blanchard'; [EMAIL

RE: [PHP] Session.gc_maxlifetime?

2004-10-04 Thread Vail, Warren
This is my understanding; When you use session_start(); in your script it sets a condition that will cause a session write of the contents of the $_SESSION array to the session repository (by default a file whose name contains the session ID) when the script has ended. At that time the record

RE: [PHP] Session handlers

2004-10-01 Thread Vail, Warren
I have used MySQL sessions and session handler routines to perform the following; 1. I was able to set different session timeouts for different applications as long as each application used a different session table. The garbage cleanup routines could be programmed to ignore the global session

RE: [PHP] choose upload folder

2004-09-21 Thread Vail, Warren
Marek is correct the behavior of the browse file selector is essentially a client side thing, and not directly controllable from PHP. One difficulty is how to know when a directory is clicked because it is selected, or clicked because the operator wanted the directory expanded, because he wanted

RE: [PHP] thumbnail of webpage

2004-09-17 Thread Vail, Warren
I have been looking into this over the last week and have come up blank as well. Doing this manually is simple, point your browser to your URL, and in windows use altprint Scrn to copy an image of the rendering in the browser to the scratch-pad, then paste the image into a tool like paint to cut

RE: [PHP] fopen problem, 5 line script

2004-09-15 Thread Vail, Warren
I thought filesize required the file name, and not the fileptr??? Warren Vail -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:17 AM To: php php Subject: Re: [PHP] fopen problem, 5 line script * Thus wrote Mag: Hi, Can someone

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Vail, Warren
Could it be that lizards are nocturnal? ;-) Warren Vail -Original Message- From: Jim Grill [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:05 AM To: Nick Wilson; php-general Subject: Re: [PHP] iguanahost - anyone else being plagued? Anyone else getting these

[PHP] Capturing an Image of a web page

2004-09-14 Thread Vail, Warren
Has anyone run across a tool available to PHP that can render an image of a entire webpage from a URL, so that it can be reduced to a thumbnail and stored in a database? Warren Vail

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Vail, Warren
I believe this one will be off by an hour on leap day. Warren Vail -Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 1:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Adding +7 more days on date() value problem Why would you do such

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Vail, Warren
So if this is run on the 30th of the month, you are saying this handles a month with day 37 correctly? Warren Vail -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 11:58 AM To: [EMAIL PROTECTED] Cc: Louie Miranda Subject: RE: [PHP]

RE: [PHP] Adding +7 more days on date() value problem

2004-09-10 Thread Vail, Warren
Actually, I stand corrected on this one, it will be off by an hour on daylight savings change date (either one). Warren Vail -Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 1:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Adding +7 more

RE: [PHP] remote script execution

2004-09-07 Thread Vail, Warren
/function.exec.php $responselines is now an array containing lines of output from the commands. Hope this helps, Warren Vail -Original Message- From: Sean Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 11:43 AM To: Vail, Warren Cc: [EMAIL PROTECTED] Subject: Re: [PHP] remote script

RE: [PHP] remote script execution

2004-09-03 Thread Vail, Warren
I've done a number of these and the choice depends on many things but perhaps the biggest factor is; Is server 1 and server 2 behind the same firewall or are they exposed to the internet? Behind a firewall you can probably get away with running any one of the following commands to remotely

RE: [PHP] how can I get the fileversion?

2004-09-03 Thread Vail, Warren
Pedro, Your question is difficult to answer because it is not specific enough. First I tried to identify what you meant by version number. I tried right clicking on the desktop, no version number. I opened windows explorer and tried right clicking on a file listed there, and got modification

RE: [PHP] php does not get variable values in POST method

2004-09-02 Thread Vail, Warren
That is because the option register globals was deprecated in later releases (provided a way for hackers to alter variables not even on your form). Suggest you code each reference to a form variable as $_POST[varname] (assuming you are using the form post method). Warren Vail -Original

RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Vail, Warren
PHP Nuke includes BLOG's and a lot more (referred to as Journals in the App). http://www.phpnuke.org Warren Vail -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Weblog -Blog software

RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Vail, Warren
- From: Vail, Warren [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 9:04 PM Subject: RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL PHP Nuke includes BLOG's and a lot more (referred to as Journals in the App). http://www.phpnuke.org Warren

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Vail, Warren
You are presented with some difficult design choices and limitations. The way I believe you are envisioning things may not work. The problem that you face is that PHP only runs on the server when preparing the page. You are asking some interactions to take place once the web page is presented

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Vail, Warren
I think you are coming to the compromise I've always had to make too. Warren Vail -Original Message- From: Francisco Puente XFMP (QA/EMC) [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 1:44 PM To: Vail, Warren Cc: Brent Clements; [EMAIL PROTECTED] Subject: RE: [PHP] PHP

RE: [PHP] Browser back button

2004-08-27 Thread Vail, Warren
I struggled with this one as well and the solution is quite simple; 1. Every PHP module that is reached via the action field in a form where the method is POST (most of mine are) never outputs any html except a http redirect (it will edit values, update the database, save session data, then does

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Vail, Warren
Perhaps the question could be asked another way and be more on topic. Is there a fix in I.E. 6.01 that would interfere with PHP being able to generate different mime types on the fly, like .png or .jpg Thanks, Warren Vail -Original Message- From: Jay Blanchard [mailto:[EMAIL

RE: [PHP] PHP performance

2004-08-10 Thread Vail, Warren
If your problem is with a long running MySQL Query, and many of mine have been, I would suggest you read http://dev.mysql.com/doc/mysql/en/Optimizer_Issues.html Your objective is to make sure that all your database queries avoid the deadly table scan as a part of their query plan. Good Luck,

RE: [PHP] CMS Ideas Welcome

2004-08-04 Thread Vail, Warren
I am hosting a few sites on PHPNuke and have modified PHPNuke to use the HTMLArea JavaScript addon to allow textareas to be edited in wysiwyg fashion, without having to deal with HTML. Initial reaction seems to be very favorable, especially the htmlarea version with the image manager plugin.

RE: [PHP] Re: webserver response-time, how?

2004-08-04 Thread Vail, Warren
I support several PHPNuke sites and the page preparation time is measured by taking a microtime stamp at the very beginning of the script and another just before echoing the last couple of lines at the bottom of the page and producing something like the following on the bottom of the page; Page

RE: [PHP] Re: webserver response-time, how?

2004-08-04 Thread Vail, Warren
I could be wrong, but I don't think it measures all the time you want. The fsockopen will measure the time it takes to resolve the dns entry, and open the socket, but it does not measure the time it takes to get the request to the server (you could send the request thru your socket and if you

RE: [PHP] Re: webserver response-time, how?

2004-08-04 Thread Vail, Warren
One thing you can count on this list, if I say something incorrect, it will get corrected, so stay tuned. I had made some assumptions that perhaps I shouldn't have. I assumed that your remote server was a typical machine running apache, php, mysql, and lots of other stuff. I don't believe pings

RE: [PHP] running a script

2004-08-03 Thread Vail, Warren
Sounds like a good plan, but if this is outside a firewall on the open internet, it could present some security risks. I'll assume for the moment that it's not. If your script that sends the email can store the information from the form into the database and assign it a unique number, then your

RE: [PHP] javascript type cast

2004-08-03 Thread Vail, Warren
I, for one, am not convinced that this all that far off topic. Since the accepted method to generate browser interaction with server side PHP, is to use Javascript, it doesn't seem any more off-topic than dealing with database questions about MySQL. I am probably like most PHP developers, with a

RE: [PHP] First day of the month

2004-08-03 Thread Vail, Warren
I was going to suggest; $dayofweek = date(D,strtotime(date(Y-m-01))); Warren Vail -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 11:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] First day of the month On Tuesday 03 August 2004 13:46,

RE: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread Vail, Warren
Try reversing the order in the date to -mm-dd and I believe it should work. Keep in mind that the time variable $ts is not the same as a Mysql timestamp for example. It conforms to the unix epoch time variable. Warren Vail -Original Message- From: news [mailto:[EMAIL PROTECTED] On

RE: [PHP] Re: php coding software

2004-08-02 Thread Vail, Warren
For what it's worth, I use HTML-Kit as well. Feature I like best is the ability to seamlessly edit content of remote sites and local (folder based) sites. Warren Vail -Original Message- From: Harlequin [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 5:15 PM To: [EMAIL

RE: [PHP] php paypal

2004-07-27 Thread Vail, Warren
Did you think of saving the information (invoice number) in a session or cookie before sending them off to paypal, for use when the user returns? Warren Vail -Original Message- From: Mike R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 8:51 AM To: Jason Davidson Cc: [EMAIL

RE: [PHP] Showing all users who are logged in

2004-07-27 Thread Vail, Warren
I did one application where I used the PHP session table to tell who was logged on, and which area of the application they were most recently in. One of several flaws, was that I used Kill session to logoff, and that caused them to disappear from any count of users logged on. Course, if they had

RE: [PHP] Include path

2004-07-23 Thread Vail, Warren
Have you tried; Include ../templates/header.php; Warren Vail -Original Message- From: PHP Gen [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 12:28 PM To: Jay Blanchard; php php Subject: RE: [PHP] Include path --- Jay Blanchard [EMAIL PROTECTED] wrote: [snip]

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
Have you considered an imbedded frame? (Looks like a textarea, with the ability to imbed all types of controls (and tables) within it). I'm not sure that all browsers support IFRAME yet, but the most widely used one does. Another approach would be to use sprinf() formatting to imbed

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
a user to make mods to the information? -thanks.. ps.. to you guys who said that the textarea doesn't have a value=''.. it does... -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 11:20 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
are available. Notice that the form will return a multi-dimension array; $returnarray = $_GET[farray]; Hope this gets you started. Warren Vail -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 11:51 AM To: Vail, Warren; [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
How about (probably one of fifty solutions; Foreach($_POST as $k = $v) $vals[] = $k.=.$v; $strvals = urlencode(implode(,$vals)); Header(Location: https://example.com/script.asp?.$strvals); One thing to think about, URL's are limited in length, and one reason for using method=post is that they

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
) { $arr[] = $key.'='.urlencode($value); } I believe my loop may change the character to something it shouldn't? Warren Vail -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 12:55 PM To: Vail, Warren Cc: 'Lars Torben Wilson'; Jeff

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
If the hack works, it should get around the length limitation of the URL, but I would be more tempted to use CURL for that. http://www.php.net/manual/en/ref.curl.php Warren Vail Warren Vail (415) 667-0240 SF211-07-434 -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED

RE: [PHP] Re: Putting $_POST into string to send to ASP

2004-07-16 Thread Vail, Warren
I believe we all missed something important here, but I've been wrong before. Notice his URL below, specifically the https part. I believe this means that the data not only needs to be URL encoded but SSL encrypted. I believe this makes a stronger case for using CURL, does it not? I also would

  1   2   3   >