[PHP] IE problem downloading files

2005-04-01 Thread Luis Lebron
I have just changed the server that was being used our public website. In the process the php scripts used to download files stopped working with IE. The new box is running Debian Testing. The php version is listed as PHP Version 4.3.10-9. Apache 1.0.33. The download script looks like this:

RE: [PHP] anyone has successful to use a PHP SoapClient talking with .Net Web services?

2005-01-18 Thread Luis Lebron
I recently had to get one to work. The key in my case was building the soap message for the paramaters instead of the standard paramaters array something like $parameters = Login UsernameUsername/Username PasswordPassword/Password /Login;

[PHP] Problem with PHP Curl support and Apache

2004-11-24 Thread Luis Lebron
I have a server running RH 8, Apache 1.3.27, PHP 4.3.9. I tried to recompile PHP with Curl support. Everything seemed to compile correctly. However, when I restarted apache I got the following error: Cannot load /etc/httpd/modules/libssl.so into server: /etc/httpd/modules/libssl.so: undefined

[PHP] Problems with mail and php

2004-04-12 Thread Luis Lebron
I have a development box that uses our company's Exchange server as an smtp host. All of a sudden, the php mail function has stopped working. I can, however, send a message using mutt. Here's the output of the maillog: Apr 12 10:38:51 localhost sendmail[11879]: i3CFckaV011877: to=[EMAIL

RE: [PHP] Simple table sorting

2003-12-03 Thread Luis Lebron
You may want to also try a javascript solution See http://www.kryogenix.org/code/browser/sorttable/ for an example. Luis -Original Message- From: Tommi Virtanen [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 8:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Simple table sorting

[PHP] IE download problem

2003-11-26 Thread Luis Lebron
I am working on a script to force downloading a file. The script works fine with NS (4.8 and 7) but does not work correctly with IE 6.0 I have looked at examples on php.net and have googled for a solution, but still can't find a solution. I think IE wants to download the script instead of the

RE: [PHP] Re: IE download problem

2003-11-26 Thread Luis Lebron
-encoding: binary\n); header(Content-length: . filesize($path) . \n); //send file contents $fp=fopen($path, r); fpassthru($fp); Luis Lebron wrote: I am working on a script to force downloading a file. The script works fine with NS (4.8 and 7) but does not work

RE: [PHP] trim...

2003-11-26 Thread Luis Lebron
You need to strip the newlines. str_replace(\n, , $body); Luis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 10:59 AM To: [EMAIL PROTECTED] Subject: [PHP] trim... Why doesn't this work...? $body = pblurb blah phappy days

RE: [PHP] Re: IE download problem

2003-11-26 Thread Luis Lebron
to open the file in the registered application and Netscape doesn't always do that (could be wrong here, but that's how it seemed to me). Warren -Original Message- From: Luis Lebron [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 8:54 AM To: 'pete M'; [EMAIL PROTECTED

RE: [PHP] Re: IE download problem

2003-11-26 Thread Luis Lebron
download problem Oh, so you're actively trying to trick IE, are you? Why don't you provide the proper image/jpeg MIME type? And why do you add a newline character at the end of the MIME type? (As previously asked before.) Bogdan Luis Lebron wrote: Here's the error I'm getting Internet

RE: [PHP] [Q] Development Best Practices

2003-11-18 Thread Luis Lebron
Before considering using templates you may want to take a look at http://www.phppatterns.com/index.php/article/articleview/4/1/1/ Luis -Original Message- From: Adam [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 7:39 PM To: [EMAIL PROTECTED] Subject: [PHP] [Q] Development

[PHP] Generating test data

2003-11-10 Thread Luis Lebron
I would like to create some dummy mysql tables for load testing an application. Are there any tools that would make this task easier? At the moment I'm thinking of generating a series of arrays based on actual data (i.e Select distinct fielndname, followed by an array_push). And then randomly

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Luis Lebron
Excellent tips. I think I'm really going to have to polish my sql skills for this task. Any good tools for benchmarking sql queries? -Original Message- From: Wouter van Vliet [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 7:06 PM To: 'Luis Lebron'; 'Jay Blanchard'; 'Marco

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Luis Lebron
I guess there is a configuration option in my.cnf for logging slow queries? Luis -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:11 AM To: Luis Lebron; 'Wouter van Vliet'; 'Jay Blanchard'; 'Marco Tabini'; [EMAIL PROTECTED] Cc: 'Php

[PHP] Issues with Mysql 4.0 and PHP in a production environment

2003-11-06 Thread Luis Lebron
Are there any issues with running PHP 4.3.X and Mysql 4.0 in a production environment? thanks, Luis R. Lebron Project Manager Sigmatech, Inc

[PHP] Load Stress tool

2003-11-05 Thread Luis Lebron
I am looking for suggestions on a tool to load stress a php application. We want to make sure that the application/web server will be able to handle the amount of users we expect. I have found a few but they seem to be very expensive. Can anyone suggestion an affordable and user friendly stress

RE: [PHP] Load Stress tool

2003-11-05 Thread Luis Lebron
, November 05, 2003 9:32 AM To: Luis Lebron Cc: Php-General (E-mail) Subject: Re: [PHP] Load Stress tool I am looking for suggestions on a tool to load stress a php application. We want to make sure that the application/web server will be able to handle the amount of users we expect. I have found a few

[PHP] High bandwidth application tips

2003-11-05 Thread Luis Lebron
I have been coding php for a few years now, but I haven't build a high bandwidth application. I am currently working on an application for a customer that may have a very large amount of users (10,000 or more according to the customer). Are there any good reference books, articles and general

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Luis Lebron
admin function while the main server takes care of the users. Does this sound like a good idea? thanks, Luis -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:10 PM To: Marco Tabini; [EMAIL PROTECTED] Cc: Luis Lebron; Php-General (E

RE: [PHP] Performance of dynamically generated select boxes

2003-10-30 Thread Luis Lebron
--- Luis Lebron [EMAIL PROTECTED] wrote: I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate

[PHP] Performance of dynamically generated select boxes

2003-10-29 Thread Luis Lebron
I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate the select boxes and avoid the database queries.

RE: [PHP] Menu populated based on previous menu

2003-10-28 Thread Luis Lebron
You may want to look at the following article: http://www.zend.com/zend/tut/drop-down.php Luis -Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 9:46 AM To: [EMAIL PROTECTED] Subject: [PHP] Menu populated based on previous menu Searched all

[PHP] Post variables and mysql queries

2003-10-27 Thread Luis Lebron
This may be a dumb question but here goes. I have been trying to use $_POST globals in sql queries. If I use the following query string it does not work $query=Select * from users where userid='$_POST['userid']'; However, this works $userid=$_POST[userid] $query=Select * from users where

[PHP] preg match compilation error

2003-10-27 Thread Luis Lebron
I found a reqular expresion that I'm using to check for valid characters in file names. Here's the sample code: if(preg_match([^a-zA-Z0-9,._\+\()\-],$filename)) { //blah, blah, blah } However, when I run the script I get the following error: Warning: Compilation failed: unmatched

RE: [PHP] Re: preg match compilation error (Resolved)

2003-10-27 Thread Luis Lebron
://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ## Luis Lebron [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I found a reqular expresion that I'm using to check for valid characters in file names. Here's the sample code: if(preg_match

RE: [PHP] Post form variables to a frame

2003-10-25 Thread Luis Lebron
: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:38 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: RE: [PHP] Post form variables to a frame On Friday, October 24, 2003 8:28 PM Luis Lebron wrote I tried that but it did not work. Can you post the html code you used? Setting

[PHP] Post form variables to a frame

2003-10-24 Thread Luis Lebron
How can I post a form to the left frame of a frameset. I want to have an user submit a form that opens a frameset. The left frame contains the results of a query based on the posted parameters. What I want to create is a master detail page. Let's say a person is looking for a particular car. They

RE: [PHP] Post form variables to a frame

2003-10-24 Thread Luis Lebron
I tried that but it did not work. Luis -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:14 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: Re: [PHP] Post form variables to a frame On Friday 24 October 2003 06:08 pm, Luis Lebron wrote

RE: [PHP] Document Management App

2003-09-24 Thread Luis Lebron
You may want to look at Verity's products http://downloadcenter.verity.com/dlc/index.jsp -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Document Management App Howdy Good Afternoon! I am

RE: [PHP] Using PHP to do something with Acrobat PDF....

2003-09-15 Thread Luis Lebron
I use htmldoc http://www.easysw.com/htmldoc/ to generate pdf files from html documents. Another options is fpdf http://www.fpdf.org. Luis -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 9:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Using

[PHP] String substiion for flash text

2003-08-29 Thread Luis Lebron
I have a script that creates html files to be used with a flash scroll box. The problem I am having right now is that the Flash scroll box does not underline the hyperlinks. Is there a way I can change something like a href=mylink.htmlMy Link/a to a href=mylink.htmlulMy Link/ul/a thanks, Luis

[PHP] Question on class syntax

2003-08-09 Thread Luis Lebron
I am currently using a php class that uses the following syntax: $value= htmlcleaner::cleanup($value); What exactly is the :: used for? Is there a different syntax for :: ? thanks, Luis R. Lebron Project Manager Sigmatech, Inc

RE: [PHP] Question on class syntax

2003-08-09 Thread Luis Lebron
Thanks for the information. I checked the manual but wasn't able to find it. Luis -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 1:35 PM To: Luis Lebron; Php-General (E-mail) Subject: Re: [PHP] Question on class syntax From: Luis

RE: [PHP] Invalid Characters, XML...

2003-08-04 Thread Luis Lebron
Here's what I have been using. $trans= array(' = #39;, ' = #39;, = #62;, = #60;, = #38;,- = #45;, ° = #176;, ± = #177;, - = #150;, = #147;, = #148;,... = #8230;,' = #8216;,² =#178;,· = #183; ); $value=strtr($value,$trans); Luis -Original Message- From: David Otton

RE: [PHP] Redirect to HTTPS

2003-08-01 Thread Luis Lebron
Here's another way to do it: ?php $url=$_SERVER[SCRIPT_URI]; $url_array=parse_url($url); if($url_array[scheme]!=https) { header(Location: https://$url_array[host]$url_array[path];); } ? Luis -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED] Sent: Friday,

[PHP] Updating a table after a successful download

2003-07-30 Thread Luis Lebron
I currently have some code in a document management system that is used to check-out a document. It looks like this: //Update the status of the document $query = UPDATE $table_data SET status = '$SESSION_UID' WHERE id = '$id'; $result=$conn-Execute($query); //Download the document. header

RE: [PHP] Updating a table after a successful download

2003-07-30 Thread Luis Lebron
: Wednesday, July 30, 2003 8:18 AM To: Luis Lebron Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Updating a table after a successful download Hello, This is a reply to an e-mail that you wrote on Wed, 30 Jul 2003 at 13:46, lines prefixed by '' were originally written by you. The problem I am having

RE: [PHP] images in databases Flash via PHP

2003-07-23 Thread Luis Lebron
There a few different ways to do this. One method that we use here is to do something like this in the embed/object tags flash.swf?image=?php echo $image; ? The php $image variable, of course, could be set by any method (post/get, db query, etc...) Luis -Original Message- From: Tim

RE: [PHP] walking through database one record at a time with forms.

2003-07-23 Thread Luis Lebron
The trick is in using the MySQL 0limit statement. For the first record use: $sql = mysql_query(SELECT * FROM temp_table limit 0, 1); then increment the limit for the next record $sql = mysql_query(SELECT * FROM temp_table limit 1, 1); Luis -Original Message- From: Artoo

[PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread Luis Lebron
I found the following function to test a string for alphanumeric characters function is_alphanumeric($string) { return (preg_match(/^[a-z0-9]+$/i, $string)); } How can I modify it so that it also allows punctuation marks? thanks, Luis R. Lebron

RE: [PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread Luis Lebron
I tried adding a period to the end but a string will a period still returns false function is_alphanumeric($string) { return (preg_match(/^[A-Za-z0-9.]+$/i, $string)); } -Original Message- From: Dan Joseph [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:42 PM To:

RE: [PHP] How easy is this idea?

2003-06-06 Thread Luis Lebron
Take a look at http://www.zend.com/zend/tut/drop-down.php Luis -Original Message- From: Simon Thurtle [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 4:38 AM To: [EMAIL PROTECTED] Subject: [PHP] How easy is this idea? OK, now I have I have been convinced that PHP is the best

RE: [PHP] mysql backup solution

2003-06-06 Thread Luis Lebron
This is what I use http://members.lycos.co.uk/wipe_out/automysqlbackup/ -Original Message- From: John Kaspar [mailto:[EMAIL PROTECTED] Sent: Friday, April 25, 2003 3:48 PM To: [EMAIL PROTECTED] Subject: [PHP] mysql backup solution I've got a large mysql database (~400 megs) on a host

[PHP] Web Server Firewall Suggested

2003-06-06 Thread Luis Lebron
I know there is a lot of expertise on running web servers in this group. So, I'm going to ask a couple of questions. I am currently a public web server with an iptables firewall. A security consultant has suggested that we buy a separate firewall for the firewall instead of running iptables. He

[PHP] Changing variables in a text file

2003-03-25 Thread Luis Lebron
I have a text file with a series of project variables. For example $var1=; $var2=; $template=blue; $anothervar=foo; Let say I need to change $template=blue; to $template=red;. How can I do that keeping the rest of the file intact? thanks, Luis

[PHP] Grabbing image information from an html string

2003-03-25 Thread Luis Lebron
Let say I have an html string that looks like this: bTitleb img src=graphics/image1.jpgfoo bar bar fooimg src=graphics/image2.jpgSome more text. I would like to pull the image filenames from the html and end up with something like this $images=array(image1.jpg, image2.jpg) How can I do this?

[PHP] OT Inactivity Timeout

2003-03-14 Thread Luis Lebron
This may be more of a javascript question than a php question. But how can I set up an inactivity timeout that will logout a person after let's say 20 minutes of inactivity? thanks, Luis

[PHP] Modifying a string

2003-03-06 Thread Luis Lebron
I need to modify a string that contains image links like img src=http://www.somedomain/directory/graphics/filename.jpg; to image links like img src=graphics/filename.jpg How can I do this? Luis

[PHP] Problem with php and htmldoc

2001-07-22 Thread Luis Lebron
I am currently having a problem with php and htmldoc. I have a php script that queries a myql database and creates a series of tables each with a 800 x 600 product screenshot. The file is then sent to htmldoc to be converted into a pdf file. Here is my problem, if I request ten records

[PHP] MySQL previous next query

2001-02-05 Thread Luis Lebron
I need to build a query that needs to find the previous or next record in a database using a form. The records are numbered using a field called 'sb_num'. This field is initially set using the form. Would something like this work Next: Select 'field1', 'field2' from table order by sb_num where