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:
if(f
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 = "
Username
Password
";
Also, I am using the nusoap library.
Luis
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 sym
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 PROTEC
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
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 ge
> notepad, .doc with word). I believe that IE tries 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 [mai
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 = "
blurb blah
happy days
name=\"$file\"\n");
header("Content-transfer-encoding: binary\n");
header("Content-length: " . filesize($path) . "\n");
//send file contents
$fp=fopen($path, "r");
fpassthru($fp);
Luis Lebron wrote:
> I a
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 file
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 B
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 pic
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
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
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'; 'Ja
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
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 in
, 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 e
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
--- 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 ge
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.
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 t
Name=swen
http://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
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 paren
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 us
y'";
thanks,
Luis
-Original Message-
From: 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 b
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
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
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
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
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
My Link to My
Link
thanks,
Luis
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:
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
Here's what I have been using.
$trans= array("'" => "'", "'" => "'",">" => ">", "<" => "<",
"&" => "&","-" => "-", "°" => "°", "±" => "±", "-" =>
"–", """ => "“", """ => "”","..." => "…","'" =>
"‘","²" =>"²","·" => "·" );
$value=strtr($value,$trans);
Luis
-Original Message-
Fr
Here's another way to do it:
https://$url_array[host]$url_array[path]";);
}
?>
Luis
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 3:25 AM
To: PHP General
Subject: Re: [PHP] Redirect to HTTPS
This is how I do it:
if ($_SERVER['HTTPS
Original Message-
From: David Nicholson [mailto:[EMAIL PROTECTED]
Sent: 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 pref
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 ("
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 [mailto:
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=
The php $image variable, of course, could be set by any method (post/get, db
query, etc...)
Luis
-Original Message-
From: Tim Baker [mailto:[EMAIL P
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 re
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 tha
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 thing
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: Php
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
Let say I have an html string that looks like this:
Title
foo bar bar fooSome 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?
thanks,
Luis R. Lebron
Project Manager
Sigmatech, In
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
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
I need to modify a string that contains image links like http://www.somedomain/directory/graphics/filename.jpg";> to
image links like
How can I do this?
Luis
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 (screensho
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 $s
50 matches
Mail list logo