Iconv did it for me, a great thanks!!!
/Peter
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 11:12 PM
To: Peter Lauri
Cc: 'PHP General'
Subject: RE: [PHP] Convert UTF-8 to windows-874?
I think that the iconv function/package may have
).
This is a private system, so I do not worry so much :)
/Peter
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 2:13 PM
To: Peter Lauri
Cc: 'PHP General'
Subject: RE: [PHP] preg_replace (again) [solved]
On Wed, 2006-09-20 at 11:45 +0700
=pinkcolored text/font that
I want to transfer
Anyone who see a simple solution to this? Right now I have created an ugly
script that do the same thing, but I want to start to learn and use
preg_match.
Thanks.
/Peter
www.lauri.se http://www.lauri.se/ - Personal web site
Just to share my solution:
preg_replace('/_color:(.*?)_(.*?)_color_/i', 'font color=$1$2/font',
$html);
/Peter
-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 9:42 AM
To: 'PHP General'
Subject: [PHP] preg_replace (again)
Hi group
this problem by saving
information in 2 places (in cookies and in database). So when saving
data once I saved in the cookie then into database. When I wanted to
read the information I first check if cookie exist and if it doesn't I
read from database.
Andy
Peter Lauri wrote:
Hi guys,
I am
[month]- $_SESSION[day]
Just some thoughts.
/Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No problem, now I will go and make my girlfriend happy :)
-Original Message-
From: Dave Goodchild [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 6:27 PM
To: Peter Lauri
Cc: PHP General
Subject: Re: [PHP] PHP and mySQL dates
Thanks. I have been so up close and personal
, and I am curious of how difficult it would be to create a
dynamic system for this.
When the affiliate signs up they can choose their subfolder and the system
will automatically create necessary files and copy them.
Am I clear of what I want to accomplish?
Best regards,
Peter Lauri
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 3:11 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Mirror url
Peter Lauri wrote:
My client wants an affiliate system developed. I already have an affiliate
system that works
What are you doing on this line:
$headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' . \r\n;
Should it not be:
$headers .= 'From: MyADTV [EMAIL PROTECTED]' . \r\n;
?
/Peter
www.lauri.se - personal web site
www.dwsasia.com - company web site
-Original Message-
From: suresh
onto
every url that they pass, but that would not be a beautiful solution.
Maybe I can also create a SESSION that stores the affiliate information so
that it at least get registered if the purchase is completed within the
session?
What do you think is the best way?
Best regards,
Peter Lauri
the $authstring?
Maybe someone have experience with this? Or just a comment?
Best regards,
Peter Lauri
www.lauri.se http://www.lauri.se/ - personal web site
www.dwsasia.com http://www.dwsasia.com/ - company web site
Isn't that just to send a username and password with the request? Or is the
username and password protected somehow in that process?
-Original Message-
From: Paul Scott [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 05, 2006 4:08 PM
To: Peter Lauri
Cc: php-general@lists.php.net
[snip]
This seems the easiest for me:
- Determine IP address of Server A.
- At Server B:
?php
if ($_SERVER['REMOTE_ADDR'] != SERVER_A_IP) {
die('Get lost, will you.');
}
rest of code ...
How's that? You could, of course, still add the md5 check, which sounds
pretty good.
HTH
Ivo
fine, but as soon as the field
todotext is empty the $html seam to break, but the value of $html until the
$this-getDesc() is still being returned by the function (can see half of
the table).
Is this a bug, or am I just stupid? If I just insert some blank spaces it
works, hrm.
/Peter
--
PHP General
Just figured out that it seams to happen when the request is done via AJAX.
But it does not make any sense to me that there should be any difference.
/Peter
-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 03, 2006 1:53 PM
To: php-general
fields, but
the description should be able to be empty :)
/Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just thought one thing. I did do a alert() on the http.responseText, and
that breaks in on the td too, so the response that is sent back probably
just ends there... weird...
/Peter
-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 03, 2006 11:31 PM
this.
/Peter
.
So the question is:
Is there really no function in php so that I can recreate a BMP and change
the size of it? I have it all working with jpg and gif.
/Peter
in the right direction if you can :)
/Peter
www.lauri.se - my personal blog
www.dwsasia.com - the company I work for
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks. I went for the version where I use the path to the file instead :)
/Peter
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 5:02 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Not using cached version
Peter Lauri wrote
of the string works fine, but the last character does mostly
break. How can I determine the start and end of a character.
I hope the problem is clear enough, is it? :)
Best regards,
Peter Lauri
www.lauri.se - personal web site
www.dwsasia.com - company web site
--
PHP General Mailing List (http
this to change behavior of a script depending on
what the GET variables values are.
/Peter
-Original Message-
From: Ross [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 7:10 PM
To: php-general@lists.php.net
Subject: [PHP] what's all the about then?
There is a site which has interesting
[snip]
Actually this is false. I don't know what I was thinking. The high bit
will be set in all bytes of a UTF-8 byte sequence. If it's not it's an
ASCII character.
The bytes are actually layed out as follows [1]:
U- ___ U-007F: 0xxx
U-0080 ___ U-07FF: 110x
But can you download it correctly? Is it just the download box that shows 0
bytes?
Or is it so that you actually is doing what you do below readfile() without any
argument? So that you are actually downloading something empty? :)
/Peter
-Original Message-
From: Rafael Mora [mailto
();
-Original Message-
From: Rafael Mora [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 1:25 AM
To: Peter Lauri
Cc: php-general
Subject: Re: [PHP] send a file or stream
I can download it, but when I see the file I downloaded has 0 bytes, and I
have readfile(stations.zip);
On 8/30/06
:)
And if that is the case you can join the [EMAIL PROTECTED] list for that
purpose.
/Peter
-Original Message-
From: Shu Hung (Koala) [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 10:41 AM
To: PHP General Users
Subject: [PHP] php generated javascript
Hello,
I'm writing a script
, $act_id);
Notice the %d for the id part if $act_id should be integer.
/Peter
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 8:28 PM
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Subject: Re: [PHP] replace single and double quotes
://www.lauri.se/article/4/security-hole-in-golfdatase about a big and
important golf organization in Sweden and how they screwed up about their
security.
Hrm, I might be wrong here :)
/Peter
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 8:37 PM
);
readfile(path_to_compressed_file);
?
/Peter
-Original Message-
From: Rafael Mora [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 2:34 AM
To: php-general@lists.php.net
Subject: [PHP] send a file or stream
Hi!
i want to send a file or output stream in a .php, but first compress
?php
header(Content-Type: application/octet-stream);
readfile(path_to_compressed_file);
?
Should do it then. if you know the path to the file :)
_
From: Rafael Mora [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 10:10 AM
To: Peter Lauri
Subject: Re: [PHP] send a file
it as an octet-stream.
/Peter
_
From: Rafael Mora [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 10:25 AM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] send a file or stream
I test it and gave me this: xœ ÉÈ,V¢D…'Ôâ=®(??/§C0/¿D!1O!3· ¿¨$1¯D¡¸¤(3/]
LÖ
: binary);
header(Content-Length: .filesize(stations.gzip));
readfile(stations.gzip);
/Peter
PS! To maintain the list and its functionality, do not post same message
multiple times DS!
-Original Message-
From: Rafael Mora [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 11:01 AM
Hi,
Have you set
header('Content-Type: text/html; charset=utf-8');
in your php script that you call via AJAX?
Best regards,
Peter
PS! I assumed you were not sending any variables with the AJAX request? If
so, you would need to do an utf-8 encoding of the variables and then a
base64 encoding
:)
/Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
// If we get here then it didn't pass
return FALSE;
}
/Peter
From: Dave Goodchild [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 27, 2006 8:47 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Email
It should not be to big of a problem if you can set your mind into thinking
about functions and objects instead of a step by step script. Then just cut
it in pieces and your are done :)
-Original Message-
From: Bigmark [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 4:40 PM
To:
) VALUES ('$name', '$author', '$filename', '$filetype',
'$filesize', '{$filedata}');
/Peter
-Original Message-
From: Sonja [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 24, 2006 2:38 PM
To: php-general@lists.php.net
Subject: [PHP] upload image
Hi,
I have problems with uploading
, $this-myCompareFunction);
}
}
function myCompareFunction($a, $b) {
//return rajraj depending on $a and $b values
}
Best regards,
Peter Lauri
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Working perfect, thanks :) I did RTFM but I did miss that :)
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 24, 2006 3:46 AM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] usort within a class
On Thu, 2006-08-24 at 03:13 +0700
of them, creating an own logging function.
I did a lot of Google, but no article that I found that take care of this
subject.
/Peter
Yes, of course I can do that. But I was just lazy and wanted to reuse the
function mysql_query that I am already using.
-Original Message-
From: Paul Scott [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 22, 2006 7:48 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP
7:27 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Overriding core functions
Peter Lauri wrote:
Hi,
I want to add some functionality when calling the mysql_query():
function my_query($Query) {
//do stuff before
mysql_query($Query
Check the version of MySQL, I think sub queries came in version 4.1 and you
are using that. So you probably have a version=4.1 at localhost, and 4.1
at your server.
/Peter
-Original Message-
From: Bigmark [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 20, 2006 5:19 PM
To: php-general
Agreed...
-Original Message-
From: Skip Evans [mailto:[EMAIL PROTECTED]
Sent: Monday, August 21, 2006 8:25 AM
To: Gerry D
Cc: Larry Garfield; php-general@lists.php.net
Subject: Re: [PHP] Shopping cart
Granted, the shopping cart/credit card processing
modules I've been required to write
I am a KISSER! :)
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 19, 2006 1:26 PM
To: Peter Lauri
Cc: 'Ryan A'; 'php php'
Subject: RE: [PHP] Dhtml/javasript layer tips or software (0.T)
On Sat, 2006-08-19 at 12:32 +0700, Peter Lauri wrote:
Now
1. Why not a scanner that scans your fingerprint and use that as
authentication method? Then you do not need any username or password, you
are who you are :)
2. Ten multiple choice questions where you have to preset the system with 5
of your dreams that only you know about, and then you have to
Some might suggest using JavaScript and storing the hint and solution with
that. However, then it is easy for the student to cheat. You could use AJAX
for this to load the info from the server upon request and put it into an
alert or into a div with a specific id using innerHTML (JS).
/Peter
Now I get interested, what is KISS? :)
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 19, 2006 12:14 PM
To: Peter Lauri
Cc: 'Ryan A'; 'php php'
Subject: RE: [PHP] Dhtml/javasript layer tips or software (0.T)
On Sat, 2006-08-19 at 11:54 +0700
Robert,
Isn't it to easy to cheat if you do like this? Just view the source and you
have the answers. But, this is maybe not for examination, maybe just for
learning. If it is examination, AJAX would be better, so that they can not
find out the solution by just looking at the source.
/Peter
I have no clue what he is saying, but I believe he is asking if there is any
list in Spanish he can join. But I might be wrong :)
-Original Message-
From: Dave Goodchild [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 5:20 PM
To: Rory Browne
Cc: php-general@lists.php.net
But I was almost correct. The hay otra lista en espanol looks like
something with list and spanish :)
Great stuff... let us learn some Thai too:
Mee mailing list php pasa Thai mai?
Or Swedish:
Finns det någon phplista på svenska?
/Peter
-Original Message-
From: Mario de Frutos
a PHP developer from another country that is interested to
come to Bangkok for a year, not that great pay, but living standard are
great.
Best regards,
Peter Lauri
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
And I assume that this should be reused to minimize the time spent on this
by creating a form class or function, correct?
I have been thinking about this too, and it makes a lot sense to do like
this.
/Peter
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent
[snip]
On Sat, August 12, 2006 8:00 am, Peter Lauri wrote:
When you just use time() you tell the cookie to just live until now,
so it
dies directly. You have to add some seconds to determine how long the
cookie
will live.
Unfortunately, no...
The above solution relies on the USER computer
When you just use time() you tell the cookie to just live until now, so it
dies directly. You have to add some seconds to determine how long the cookie
will live.
/Peter
-Original Message-
From: BBC [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 12, 2006 7:48 PM
To: PHP
Subject: [PHP
might need
to do some more research on that, it seams to be a good tool :)
I will do some testing in the CMD to learn how to use it, should not be that
big of a deal :)
Many times the regex looks like rubbish, but that is just because I do not
know the language :)
Thanks,
Peter
-Original
Hi,
How do I add so that it checks for a comma , in this preg_match. I think the
documentation is not that good for the pref_match:
preg_match('/^[a-z0-9-_\'() +]*$/i', $s);
/Peter
The function needs to be declared without variable variable
Du like this instead:
function my_function($module) {
// do something with $module
}
And then you call the function with the variable variable:
my_function($$module_no);
/Peter
-Original Message-
From: Ross [mailto
http://se2.php.net/serialize
/Peter
-Original Message-
From: Ross [mailto:[EMAIL PROTECTED]
Sent: Monday, August 07, 2006 7:19 PM
To: php-general@lists.php.net
Subject: [PHP] saving and retrieving an array from a database
Hi,
I have an array of values. I want to save them with php
You can generate a PDF with fpdf and then print that.
-Original Message-
From: Jef Sullivan [mailto:[EMAIL PROTECTED]
Sent: Monday, August 07, 2006 8:50 PM
To: php-general@lists.php.net
Subject: [PHP] php and printing
Greetings to everyone,
I have been able to program the capability
Robert, have you studied Neuron Networks?
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 2:16 AM
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Subject: Re: [PHP] php/ajax..
On Mon, 2006-08-07 at 12:11 -0700, bruce wrote:
hi..
already add slashes or something?
/Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
' (with the $_POST['formvalue']=';
mysql_query(sprintf(INSERT INTO table (value1, value2) VALUES (1,
'%s'), $_POST['formvalue']));
Something that we are missing out here?
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 5:54 AM
To: Peter
[snip]My guess: magic_quotes_gpc is enabled where you're running the script.
Therefore slashes are already present in the data from the form post.[/snip]
Should I turn it off? Adding slashes and mysql_real_escape_string is not
exactly the same thing, correct?
/Peter
--
PHP General Mailing List
Hi,
Try www.php.net/curl
/Peter
-Original Message-
From: s2j1j1b0 [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 05, 2006 1:51 PM
To: php-general@lists.php.net
Subject: [PHP] PayPal's PHP SDK on Windows
I'm trying to get PayPal's PHP SDK
running on Windows. After running
FROM or TRUNCATE or
similar.
I am aware of that I can create different db-users to restrict this, but in
some hosting cases I only have access to one db-user. I also always use
sprintf() so make sure integers etc are used where I expect integers.
/Peter
it to check if they were
protected, and I informed them about my process etc. I only deleted my
record, no one else's. In Sweden it might have been called computer
break-in, but I am not sure.
Anyone with experience of a similar thing?
Best regards,
Peter Lauri
for something you did not
do.
One at the forum sent me an message off the list and said: You got bigger
balls than me. :-), what did he mean with that? I did not know that the php
list also shows the web cam at the same time. I better watch out...
Best regards,
Peter Lauri
-Original Message-
From
Hi,
Is it possible to print out all variables that are active within a script
without doing it manually? This is what I would like to do:
$a = 12;
$b = 'Peter';
$c = 'Lauri';
echo 'pre';
print_r( get_all_variables() );
echo '/pre';
Best regards,
Peter Lauri
--
PHP General Mailing List (http
Great stuff, I probably just searched the wrong words.
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 01, 2006 6:22 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] All active variables?
Peter Lauri wrote:
Is it possible to print out
And this for DESCending
function cmpcountry($a, $b)
{
$country1 = $a['country'];
$country2 = $b['country'];
if($country1=='' OR $country2=='') {
if($country1==$country2) return 0;
elseif($country1=='') return
;
elseif($country1=='') return 1;
else return -1;
} else return ($country1 $country2) ? -1 : 1;
}
/Peter
-Original Message-
From: Paul Novitski [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 1:57 PM
To: php-general
function cmpcountry($a, $b)
{
$country1 = $a['country'];
$country2 = $b['country'];
if($country1=='') return 1;
else return ($country1 $country2) ? -1 : 1;
}
-Original Message-
From: weetat [mailto:[EMAIL PROTECTED]
Sent: Monday, July
Correct me if I am wrong, but do fpdf allow jpg? I think you must convert to
PNG or GIF and then use that image.
-Original Message-
From: nicolas figaro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 26, 2006 8:24 PM
To: PHP List
Subject: [PHP] jpg to pdf using fpdf
Hi,
I'd like to
So then it was the opposite of what I had in memory :)
-Original Message-
From: nicolas figaro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 26, 2006 8:30 PM
To: 'PHP List'
Subject: Re: [PHP] jpg to pdf using fpdf
Peter Lauri a écrit :
Correct me if I am wrong, but do fpdf allow jpg
This is code how it works for me:
$pdf = new FPDF('p','pt','a4');
$pdf-AddPage();
$pdf-Image(pdf/profilechart.png,145,$pdf-GetY());
$pdf-Output(pdf/temp/thepdf.pdf,'F');
Add the $pdf-AddPage(); and it might work :)
-Original Message-
From: nicolas figaro [mailto:[EMAIL PROTECTED]
figaro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 26, 2006 8:44 PM
To: PHP List
Subject: Re: [PHP] jpg to pdf using fpdf
Peter Lauri a écrit :
This is code how it works for me:
$pdf = new FPDF('p','pt','a4');
$pdf-AddPage();
$pdf-Image(pdf/profilechart.png,145,$pdf-GetY());
$pdf-Output(pdf
http://www.w3schools.com/wap/default.asp
That is a good start...
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 26, 2006 10:54 PM
To: PHP List
Subject: [PHP] Books: PHP and WAP
Hi all,
I need some recommendations for books:
are there any good
Yes you can...
$pdf-Output(thelocation/filename.pdf, F);
Just make sure that thelocation has permission to write for the web server.
/Peter
-Original Message-
From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 7:05 AM
To: php-general@lists.php.net
?
Best regards,
Peter Lauri
regards,
Peter Lauri
storage
procedure by changing in my file storage class if a change will be
necessary.
/Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How about answer extends question?
-Original Message-
From: David Tulloh [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 9:36 AM
To: Sjef
Cc: php-general@lists.php.net
Subject: Re: [PHP] design?
Sjef wrote:
Hi there,
I am starting a new, very small project. A simple question
Is it possible to some how find out all cookies on a specific computer and
their name and value? I assume not :)
/Peter
AM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: Find out cookies on a computer?
Peter Lauri wrote:
Is it possible to some how find out all cookies on a specific computer and
their name and value? I assume not :)
/Peter
No, because you don't OWN them, therefore you have
snip
The global array $_COOKIE should hold any cookie which is available to you
/snip
Yes, but that is just for the ones available for me. Like Google, they set a
cookie if you click on one of their adwords ads and then use them in the
tracking of the customer conversion.
Cookies like this are
Thank you, great reading :)
-Original Message-
From: Richard Collyer [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 5:01 AM
To: php-general@lists.php.net
Subject: Re: [PHP] RE: Find out cookies on a computer?
Peter Lauri wrote:
Is the question dumb? Why you answer
Probably nobody, as PHP is a Server Side Scripting Language.
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 7:16 PM
To: php-general@lists.php.net
Subject: [PHP] Controlling a scanner with PHP
Hi,
I have been asked to look at extending one
Maybe JavaScript can do it for you?
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 8:01 PM
To: Peter Lauri
Subject: RE: [PHP] Controlling a scanner with PHP
Peter,
I take it you have spoken to everyone on the list then?
I know that PHP
Stut,
You are correct. PHP can be used in much more extent, but my tiny box where
I use PHP has never touched that area though :) I did truly enjoy the
continuing of the thread, because I learned that PHP is much more then a Web
Server Scripting Language :)
/Peter
-Original Message
Thanks. I will ignore it, it is not a big deal in my Development. Was more
curious if where was an easy way :)
I am using PHP4
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 3:50 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re
Best group member,
I have a variable $content that is taken from a database. It contains line
breaks and the $content will be posted with line breaks.
I need to use this to insert this into a JavaScript function:
$output = 'writeRichText(\'rte1\', \''.$content.'\', 400, 200, true,
Just do:
SELECT * FROM thetable ORDER BY yourfieldyouwanttoorder
If you want it in reverse order you add DESC in the end.
/Peter
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Monday, June 19, 2006 5:51 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Re
in WHY the server is
not sending the correct headers? This is becoming more and more irritating
:)
Best regards,
Peter Lauri
-Original Message-
From: Rafael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 6:28 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Setting headers
headers for file download
Peter Lauri schrieb:
Best group member,
This is how I try to push files to download using headers:
header(Content-type: $file_type);
header(Content-Disposition: attachment; filename=$filename);
print $file;
It works fine in FireFox, but not that good in IE. I
not find it. Anyone with experience of this?
Best regards,
Peter Lauri
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
characters are not being
presented. Is there any fix on this?
The messages etc are coming from a form. Is it possible to set the charset
for the form?
/Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That worked better. Now I at least am getting something that looks like
the same it looks in MySQL database table. However, in the email client
(outlook, gmail, hotmail) it is being showed like this:
Document name: ´¡¿Ë
Document summary: ´¡Ë¿
/Peter
-Original Message-
From: Barry
601 - 700 of 1823 matches
Mail list logo