php-general Digest 21 Jun 2006 15:47:43 -0000 Issue 4198
Topics (messages 238452 through 238473):
Re: comparing a string
238452 by: yangshiqi1089
helping people...
238453 by: Jochem Maas
238455 by: Barry
238456 by: Rob W.
238459 by: Matthew Pegg
238469 by: John Nichel
238473 by: Adam Zey
Re: session problem
238454 by: Barry
238458 by: weetat
238460 by: Barry
Fails to enable dynamic library support
238457 by: Artzi, Yoav \(Yoav\)
¢Ò¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office
238461 by: ä¾ÈÒÅ
Re: Stream download problem
238462 by: Jochem Maas
238468 by: Michael Satterwhite
238470 by: chris smith
238471 by: Jochem Maas
popen and pclose. Something changed in 4.4.2 ! ....Fixed
238463 by: Venkatesh M. S.
Re: Processing HTML in mail form
238464 by: Joe Wollard
xhtml to pdf conversion
238465 by: Manoj Singh
Custom static extension compilation
238466 by: Artzi, Yoav \(Yoav\)
238467 by: Jochem Maas
Re: A way to stop spam on this list
238472 by: Jochem Maas
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
When the $_REQUEST['x'] is not 0 or '', it will be always correct condition
of your if. see the magic*.
-----Original Message-----
From: tedd [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 10:02 PM
To: Ross; php-general@lists.php.net
Subject: Re: [PHP] comparing a string
At 12:43 PM +0100 6/20/06, Ross wrote:
>I have a quiz where the ansers are held in a array called $correct answers.
>When I compare the string
>
>if ($_REQUEST['x']= $correct_answers[$page-1]) {
>
>
>
>with a double == the answer is always correct with the single = it is
always
>wrong.
>
>when I echo out the posted answer and the value from the answers arrray
they
>are correct.
When you say == the answer is always correct -- does that mean even when the
answer is wrong? If so, then there's something else going on here.
But, I believe the answer is:
if ($_REQUEST['x'] == $correct_answers[$page-1]) {
This will compare the two and if they are the same will report true. You
should read the manual.
hth's
tedd
--
----------------------------------------------------------------------------
--------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
helping some people will get you no end of trouble.
and so it seems as though I'm going to be DoSSed by someone who uses
Outlook Express as their mail client. I guess it's monday somewhere.
-------- Original Message --------
From: - Wed Jun 21 01:47:39 2006
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl
(Postfix) with ESMTP id EECE119EB29 for <[EMAIL PROTECTED]>; Wed, 21
Jun 2006 01:47:00 +0200 (CEST)
Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01046-16 for
<[EMAIL PROTECTED]>; Wed, 21 Jun 2006 01:46:57 +0200 (CEST)
Received: from mail.fiberuplink.com (newyork.hardlink.com
[140.186.181.161]) by mx1.moulin.nl (Postfix) with SMTP id A4FBB19EAF0
for <[EMAIL PROTECTED]>; Wed, 21 Jun 2006 01:46:56 +0200 (CEST)
Received: (qmail 86220 invoked by uid 1013); 20 Jun 2006 23:46:57 -0000
Received: from 208.107.101.135 by eclipse.fiberuplink.com
(envelope-from <[EMAIL PROTECTED]>, uid 1011) with
qmail-scanner-1.25-st-qms (clamdscan: 0.87/1102. spamassassin: 3.0.1.
perlscan: 1.25-st-qms. Clear:RC:0(208.107.101.135):SA:0(-1.9/4.5):.
Processed in 3.519899 secs); 20 Jun 2006 23:46:57 -0000
X-Antivirus-INetKing-Mail-From: [EMAIL PROTECTED] via
eclipse.fiberuplink.com
X-Antivirus-INetKing: 1.25-st-qms
(Clear:RC:0(208.107.101.135):SA:0(-1.9/4.5):. Processed in 3.519899 secs
Process 86212)
Received: from host-135-101-107-208.midco.net (HELO rob)
([EMAIL PROTECTED]@208.107.101.135) by mail.fiberuplink.com with SMTP;
20 Jun 2006 23:46:52 -0000
Message-ID: <[EMAIL PROTECTED]>
From: Rob W. <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject:
Date: Tue, 20 Jun 2006 19:18:02 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_003E_01C6949E.403D9880"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Virus-Scanned: amavisd-new at moulin.nl
Unless you wanna keep your server up, I suggest you quit sending me shit.
--- End Message ---
--- Begin Message ---
Jochem Maas schrieb:
helping some people will get you no end of trouble.
and so it seems as though I'm going to be DoSSed by someone who uses
Outlook Express as their mail client. I guess it's monday somewhere.
It's the email from Rob W.
See further down in this list.
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
No that wasnt a ddos threat you idiot, i dont play them games.
And when you keep sending spam is when it starts to piss people off.
----- Original Message -----
From: "Jochem Maas" <[EMAIL PROTECTED]>
To: "[php] PHP General List" <php-general@lists.php.net>
Sent: Wednesday, June 21, 2006 1:55 AM
Subject: [PHP] helping people...
helping some people will get you no end of trouble.
and so it seems as though I'm going to be DoSSed by someone who uses
Outlook Express as their mail client. I guess it's monday somewhere.
-------- Original Message --------
From: - Wed Jun 21 01:47:39 2006
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl
(Postfix) with ESMTP id EECE119EB29 for <[EMAIL PROTECTED]>; Wed, 21
Jun 2006 01:47:00 +0200 (CEST)
Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01046-16 for
<[EMAIL PROTECTED]>; Wed, 21 Jun 2006 01:46:57 +0200 (CEST)
Received: from mail.fiberuplink.com (newyork.hardlink.com
[140.186.181.161]) by mx1.moulin.nl (Postfix) with SMTP id A4FBB19EAF0
for <[EMAIL PROTECTED]>; Wed, 21 Jun 2006 01:46:56 +0200 (CEST)
Received: (qmail 86220 invoked by uid 1013); 20 Jun 2006 23:46:57 -0000
Received: from 208.107.101.135 by eclipse.fiberuplink.com
(envelope-from <[EMAIL PROTECTED]>, uid 1011) with
qmail-scanner-1.25-st-qms (clamdscan: 0.87/1102. spamassassin: 3.0.1.
perlscan: 1.25-st-qms. Clear:RC:0(208.107.101.135):SA:0(-1.9/4.5):.
Processed in 3.519899 secs); 20 Jun 2006 23:46:57 -0000
X-Antivirus-INetKing-Mail-From: [EMAIL PROTECTED] via
eclipse.fiberuplink.com
X-Antivirus-INetKing: 1.25-st-qms
(Clear:RC:0(208.107.101.135):SA:0(-1.9/4.5):. Processed in 3.519899 secs
Process 86212)
Received: from host-135-101-107-208.midco.net (HELO rob)
([EMAIL PROTECTED]@208.107.101.135) by mail.fiberuplink.com with SMTP;
20 Jun 2006 23:46:52 -0000
Message-ID: <[EMAIL PROTECTED]>
From: Rob W. <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject:
Date: Tue, 20 Jun 2006 19:18:02 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_003E_01C6949E.403D9880"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Virus-Scanned: amavisd-new at moulin.nl
Unless you wanna keep your server up, I suggest you quit sending me shit.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Subject: Re: [PHP] helping people...
No that wasnt a ddos threat you idiot, i dont play them games.
And when you keep sending spam is when it starts to piss people off.
Rob W: Seriously mate, you are way... way outa line here.
I've only used this list once and all I can say is...thank god people in
general
want to go out of their way to help others out. That's how lists like this
get started
and how lists like these foster and grow and I'd like to thank the people
who
pointed ME in the right direction..and hopefully I can at some point return
the favour.
I read back through your posts, and all I could think was - here's some
dimwit
undergrad with a PHP assignment due in on Monday, who hasn't done anything
to
help himself because "THE INTERNET" is just, like, you know - right there !!
This may or may not be you, but certainly that's the impression I got.
Do the participants on this list a favour - when you do finally hand that
puppy in a coupla
days late - let the list know what mark they got and what percentage of the
overall mark
it counted for...
(PS. I have some old C exam and prac tests on floppies that you can have
for 20 bucks..and
a paper on Mosaic and the World Wide Web circa 1993 that I'd be happy to
throw in for free..
oh... and a copy of Bill Gates - The Road Ahead... you can have that too...
I'm not using it anymore ;-)
cheers,
Matt.
--- End Message ---
--- Begin Message ---
Rob W. wrote:
No that wasnt a ddos threat you idiot, i dont play them games.
So what was your threat then Robbie?
Here's an idea, do your own damn homework. And if all you're going to
do here is cry like a little girl*, do us a favor and STFU.
*sorry to give all the little girls a bad name
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Rob W. wrote:
No that wasnt a ddos threat you idiot, i dont play them games.
And when you keep sending spam is when it starts to piss people off.
----- Original Message ----- From: "Jochem Maas" <[EMAIL PROTECTED]>
To: "[php] PHP General List" <php-general@lists.php.net>
Sent: Wednesday, June 21, 2006 1:55 AM
Subject: [PHP] helping people...
helping some people will get you no end of trouble.
and so it seems as though I'm going to be DoSSed by someone who uses
Outlook Express as their mail client. I guess it's monday somewhere.
-------- Original Message --------
From: - Wed Jun 21 01:47:39 2006
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl
(Postfix) with ESMTP id EECE119EB29 for <[EMAIL PROTECTED]>; Wed, 21
Jun 2006 01:47:00 +0200 (CEST)
Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01046-16 for
<[EMAIL PROTECTED]>; Wed, 21 Jun 2006 01:46:57 +0200 (CEST)
Received: from mail.fiberuplink.com (newyork.hardlink.com
[140.186.181.161]) by mx1.moulin.nl (Postfix) with SMTP id A4FBB19EAF0
for <[EMAIL PROTECTED]>; Wed, 21 Jun 2006 01:46:56 +0200 (CEST)
Received: (qmail 86220 invoked by uid 1013); 20 Jun 2006 23:46:57 -0000
Received: from 208.107.101.135 by eclipse.fiberuplink.com
(envelope-from <[EMAIL PROTECTED]>, uid 1011) with
qmail-scanner-1.25-st-qms (clamdscan: 0.87/1102. spamassassin: 3.0.1.
perlscan: 1.25-st-qms. Clear:RC:0(208.107.101.135):SA:0(-1.9/4.5):.
Processed in 3.519899 secs); 20 Jun 2006 23:46:57 -0000
X-Antivirus-INetKing-Mail-From: [EMAIL PROTECTED] via
eclipse.fiberuplink.com
X-Antivirus-INetKing: 1.25-st-qms
(Clear:RC:0(208.107.101.135):SA:0(-1.9/4.5):. Processed in 3.519899 secs
Process 86212)
Received: from host-135-101-107-208.midco.net (HELO rob)
([EMAIL PROTECTED]@208.107.101.135) by mail.fiberuplink.com with SMTP;
20 Jun 2006 23:46:52 -0000
Message-ID: <[EMAIL PROTECTED]>
From: Rob W. <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Date: Tue, 20 Jun 2006 19:18:02 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_003E_01C6949E.403D9880"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Virus-Scanned: amavisd-new at moulin.nl
Unless you wanna keep your server up, I suggest you quit sending me shit.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If somebody is sending you spam from one address over and over, USE A
FILTER TO BLOCK THEM. Don't be an asshole and threaten to DDoS/attack
their server. At that point you've just gone from being a victim to the
bad guy, and you don't get any sympathy from people on this list. So,
screw off.
Regards, Adam Zey.
--- End Message ---
--- Begin Message ---
weetat schrieb:
Hi all,
I have 2 php page , whenever i click the submit in 1st page , the
$_SESSION['LIST_OF_DATA'] display nothing in the 2nd page.
If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it
displayed the data correctly.
Anybody have any ideas why php session behaviour is like that ?
Thanks - weetat
below is the 1st page :
<?php
session_start();
$arrayoffiles = listoffiles();
$params = array(
'mode' => 'Jumping',
'itemData' => $arrayoffiles,
'perPage' => 10,
'delta' => 8,
'append' => true,
'clearIfVoid' => true,
'useSessions' => true,
'closeSession' => true,
);
$pager = & Pager::factory($params);
$data = $pager->getPageData();
$links = $pager->getLinks();
$_SESSION['LIST_OF_DATA'] = $data;
?>
below is second page :
<?php
session_start();
echo print_r($_SESSION['LIST_OF_DATA']);
?>
Let me take a guess:
Your FORM action is action="http:// ...."
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
yes i am
Thank for you help
Barry wrote:
weetat schrieb:
Hi all,
I have 2 php page , whenever i click the submit in 1st page , the
$_SESSION['LIST_OF_DATA'] display nothing in the 2nd page.
If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it
displayed the data correctly.
Anybody have any ideas why php session behaviour is like that ?
Thanks - weetat
below is the 1st page :
<?php
session_start();
$arrayoffiles = listoffiles();
$params = array(
'mode' => 'Jumping',
'itemData' => $arrayoffiles,
'perPage' => 10,
'delta' => 8,
'append' => true,
'clearIfVoid' => true,
'useSessions' => true,
'closeSession' => true,
);
$pager = & Pager::factory($params);
$data = $pager->getPageData();
$links = $pager->getLinks();
$_SESSION['LIST_OF_DATA'] = $data;
?>
below is second page :
<?php
session_start();
echo print_r($_SESSION['LIST_OF_DATA']);
?>
Let me take a guess:
Your FORM action is action="http:// ...."
Barry
--- End Message ---
--- Begin Message ---
weetat schrieb:
>>
>> Let me take a guess:
>> Your FORM action is action="http:// ...."
>>
>> Barry
yes i am
Thank for you help
Ookay ... no problem ... probably .....
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
In my phpinfo() I get (under standard):
Dynamic Library support not available
I can't seem to get PHP to be configured to allow dynamic libraries. My
php.ini is:
enable_dl="1"
extension_dir="/usr/local/lib/php/extensions/no-debug-zts-20050922/"
extension=logmanager.so
And myconfigure line is:
'./configure' '--host=powerpc-wrs-linux-gnu' '--build=i686-linux'
'--prefix=/usr/local' '--enable-releasemode' '--enable-xml'
'--cache-file=config.cache' '--enable-libxml'
'--with-libxml-dir=/home/artzi/work/down/temp/target/usr/local'
'--disable-simplexml' '--enable-dom' '--enable-soap' '--with-db'
'--enable-memory-limit' '--disable-safe-mode' '--enable-sockets'
'--enable-track-vars' '--enable-trans-sid' '--enable-magic-quotes'
'--enable-inline-optimization' '--without-pear' '--disable-all'
'--disable-shared' '--enable-static' '--disable-ipv6' '--disable-wddx'
'--disable-bcmath' '--disable-debug' '--disable-calendar'
'--disable-ftp' '--with-zlib' '--with-exec-dir=/usr/local/appweb'
'--sysconfdir=/usr/local/appweb' '--with-gnu-ld' '--with-openssl=/usr'
'--without-aolserver' '--without-apache' '--without-continuity'
'--without-pi3web' '--enable-mbstring' '--disable-mbregex'
'--enable-session' '--enable-pcntl' '--enable-pdo' '--with-pdo-sqlite'
'--with-pcre-regex' '--enable-spl' '--enable-tokenizer'
'--disable-rpath'
'--with-snmp=/home/artzi/work/down/temp/target/usr/local'
'--enable-ctype' '--with-ctype' '--with-tsrm-pthreads'
'--enable-threadsafe' '--enable-maintainer-zts' '--enable-embed=shared'
'--enable-cgi' '--enable-cli'
I can't seem to understand where I go wrong. Obviously something is
wrong, but what?
Thanks,
Yoav.
--- End Message ---
--- Begin Message ---
¢Ò¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office
XP Professional, Office Pro 2003 ¶Ù¡ÁÒ¡ ¢Í§á·éá¹è¹Í¹ 100 %
µÔ´µèÍ Paisarn 06-5881135
- Windows 95 ẺÁÕ CD ¤ÃºªØ´ 200 bath
- Windows 98 book+COA only 800 bath
- Windows 98 book+COA+CD 1,000 bath
- Windows 98 SE book + COA + CD ÊÕ¢ÒÇãËÁè 1,500 bath
- Windows 2000 Professional + CD 2,700 bath
- Windows ME ¤ÙèÁ×Í + COA + CD 1,800 bath
- Windows XP Home Edition ¤ÙèÁ×Í + COA 2,000 bath
- Windows XP Home Edition ¤ÙèÁ×Í + COA + CD 2,700 bath
- Windows XP Professional ¤ÙèÁ×Í + COA 2,400 bath
- Windows XP Professional ¤ÙèÁ×Í + COA+CD 3,500bath
- Microsoft Office Pro 2003 7,500 bath
- Microsoft Office Basic 5500
µÔ´µèÍ Paisarn 06-5881135, 02-8966280
[EMAIL PROTECTED]
«×éÍËÅÒªشÊèǹŴÂÔè§à¾ÔèÁ¤ÃѺ ºÃÔ¡ÒÃÊ觶֧·Õè ¡·Á.-µ¨Ç.¾ÃéÍÁãºàÊÃç¨ãËé
--- End Message ---
--- Begin Message ---
Michael Satterwhite wrote:
> Prathaban Mookiah wrote:
>> Micheal,
>>
>> I ran into this problem too. A easy workaround is to right click and
>> choose 'save as' which worked for me.
>
> I wish that would work. The URL is along the lines of
> <a href="easy.php?download=stream&dltype=full> - and it's this that gets
> substituted for the filename. It reports that it cannot be written to
> the cache.
is possible for you to change the way the URL is written so that it looks
like so:
easy.php/fakepdfname.pdf?download=stream&dltype=full
or
easy.php/download/stream/dltype/full/fakepdfname.pdf
I'm pretty sure that this would fool IE into accepting the download (I
remember Richard Lynch offering such a 'solution'** in the past). obviously
is requires that your webserver will actually run easy.php (due to the
fact that the rest of the 'path' doesn't exist (this is a matter of
the correct configuration in apache - I *think* its default behaviour actually)
AND changing easy.php to [also] accept the get parameters as part of a faked
URL path.
** 'solution' as in 'another hack to work round an IE bug'
>
>> For complete information on this you want to have a look at
>> http://support.
>> microsoft.com/default.aspx/kb/279667
>
> I find this interesting MSoft claims to have fixed the problem back at
> IE 5.1, but I'm still seeing it - and I'm up to date as is my client. Of
> course, I seldom believe anything MSoft says.
seldom is more than most :-)
>
--- End Message ---
--- Begin Message ---
Jochem Maas wrote:
Michael Satterwhite wrote:
Prathaban Mookiah wrote:
Micheal,
I ran into this problem too. A easy workaround is to right click and
choose 'save as' which worked for me.
I wish that would work. The URL is along the lines of
<a href="easy.php?download=stream&dltype=full> - and it's this that gets
substituted for the filename. It reports that it cannot be written to
the cache.
is possible for you to change the way the URL is written so that it looks
like so:
easy.php/fakepdfname.pdf?download=stream&dltype=full
I don't think so (although I'll do some checking). I don't have the
ability to configure apache on this server.
--- End Message ---
--- Begin Message ---
On 6/21/06, Michael Satterwhite <[EMAIL PROTECTED]> wrote:
Jochem Maas wrote:
> Michael Satterwhite wrote:
>
>>Prathaban Mookiah wrote:
>>
>>>Micheal,
>>>
>>>I ran into this problem too. A easy workaround is to right click and
>>>choose 'save as' which worked for me.
>>
>>I wish that would work. The URL is along the lines of
>><a href="easy.php?download=stream&dltype=full> - and it's this that gets
>>substituted for the filename. It reports that it cannot be written to
>>the cache.
>
>
> is possible for you to change the way the URL is written so that it looks
> like so:
>
> easy.php/fakepdfname.pdf?download=stream&dltype=full
I don't think so (although I'll do some checking). I don't have the
ability to configure apache on this server.
Use mod_rewrite rules in a htaccess file, you don't need apache access.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Michael Satterwhite wrote:
> Jochem Maas wrote:
>> Michael Satterwhite wrote:
>>
>>> Prathaban Mookiah wrote:
>>>
>>>> Micheal,
>>>>
>>>> I ran into this problem too. A easy workaround is to right click and
>>>> choose 'save as' which worked for me.
>>>
>>> I wish that would work. The URL is along the lines of
>>> <a href="easy.php?download=stream&dltype=full> - and it's this that gets
>>> substituted for the filename. It reports that it cannot be written to
>>> the cache.
>>
>>
>> is possible for you to change the way the URL is written so that it looks
>> like so:
>>
>> easy.php/fakepdfname.pdf?download=stream&dltype=full
>
> I don't think so (although I'll do some checking). I don't have the
> ability to configure apache on this server.
you can also set an ErrorDocument for 404 and have that check the requested URL
and if required run the easy.php script....
>
--- End Message ---
--- Begin Message ---
On windows, allow Apache service "to interact with the desktop"... in
the services manager GUI
Rgds
Venkat
******************
Greetings!
I was using popen and pclose on a previous version of PHP on Windows with an
older version of Apache (2.x). ( I think it was 4.4.1 but will need to check
as i am not sure).
pclose(popen("start " . $exe . " " . $args, "r"))
Where $exe is my path to the batch file and $args are the arguments for the
batch file. The batch file, in turn calls other batch files on a shared
folder on a different PC
On Windows, it would open up the dos window and run commands there and exit
and the PHP script that called the pclose would terminate loading on the
users' browsers.
Now, with PHP 4.4.2, the pclose and popen send the tasks to the background
and the dos window does not show up! As a result, killing the dos process is
not possible (i get access denied in windows...) and the users cannot see
the dos window when it runs.
I would like the php script to send the commands to a dos window, and the
php script to finish executing. I tried passthru, system, exec and
proc_open... and none of them work. None of them bring up the dos window.
Please help!
Regards
Venkat
--- End Message ---
--- Begin Message ---
(sorry for the duplicate response Parathaban, forgot to reply to the
list)
Look at example 4 from http://us3.php.net/function.mail
> $headers = 'MIME-Version: 1.0' . "\r\n";
> $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
That should get you started.
On Jun 20, 2006, at 9:41 PM, Prathaban Mookiah wrote:
Jonas:
I am not sure if I understood your problem correct. But the way I
understood
it, you want the mail to be displayed as:
F-namn: J
L-namn: R
Birth: 12
Address: 34
Zip: 56
City: 78
Phone: 90
Mail: [EMAIL PROTECTED]
Desc: N
Hair: hair
Make: makeup
Am I correct? If that is the case, I guess you should use '\n'
instead of
'<BR>'.
Cheers,
Prathap
---------- Original Message -----------
From: Jonas Rosling <[EMAIL PROTECTED]>
To: PHP Lists <php-general@lists.php.net>
Sent: Tue, 20 Jun 2006 23:56:47 +0200
Subject: [PHP] Processing HTML in mail form
I've done the following code bellow for an e-mail form. But it
handles the HTML tags as text. Is there anyway to get the HTML tags
processed to form the mail?
<?php
@extract($_POST);
$subject = 'Intresseanmalan';
$forname = stripslashes($forname);
$lastname = stripslashes($lastname);
$date_of_birth = stripslashes($date_of_birth);
$post_address = stripslashes($post_address);
$zip_code = stripslashes($zip_code);
$city = stripslashes($city);
$phone = stripslashes($phone);
$mail = stripslashes($mail);
$description = stripslashes($description);
$hairdresser = stripslashes($hairdresser);
$makeup = stripslashes($makeup);
$text = 'F-name: '.$forname.'<br>'.
'L-name: '.$lastname.'<br>'.
'Birth: '.$date_of_birth.'<br>'.
'Address: '.$post_address.'<br>'.
'Zip: '.$zip_code.'<br>'.
'City: '.$city.'<br>'.
'Phone: '.$phone.'<br>'.
'Mail: '.$mail.'<br>'.
'Desc: '.$description.'<br>'.
'Hair: '.$hairdresser.'<br>'.
'Make: '.$makeup;
mail('[EMAIL PROTECTED]',$subject,$text,"From: $forname
$lastname <$mail>");
?>
The mail looks like this when recived:
F-namn: J<br>L-namn: R<br>Birth: 12<br>Address: 34<br>Zip:
56<br>City: 78<br>Phone: 90<br>Mail: [EMAIL PROTECTED]<br>Desc: N<br>Hair:
hair<br>Make: makeup
Thanks in advance // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
------- End of Original Message -------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello all,
I am developing a script which converts the xhtml to pdf. Now the problem is
:
I am applying multiple fonts in this script according to HTML "<Font>" Tag
but when pdf is generated the pdf file gives error "The Font Name of font
Contain a bad /BBox.".
So please advice me what should i do for fix this error.
Waiting for positive reply.
Thankx & Regards
--
Manoj Kumar Singh
Software Engineer
Kalptaru Infotech Ltd
Dawa Bazaar
Indore (MP)
452001
--- End Message ---
--- Begin Message ---
After trying to compile my custom extension as a dynamic extension, I
decided to try to compile it as a static one. I found out that I have to
copy the directory with the sources and the config.m4 to the ext
directory under the source dir and call ./buildconf --force to rebuild
the configure script. However, doing that built the configure script in
a way that doesn't even compile. My configure command is:
'./configure' '--host=powerpc-wrs-linux-gnu' '--build=i686-linux'
'--prefix=/usr/local' '--disable-all' '--enable-static'
'--disable-shared' '--enable-memory-limit' '--disable-safe-mode'
'--disable-rpath' '--disable-ipv6' '--disable-wddx' '--disable-bcmath'
'--disable-debug' '--disable-calendar' '--disable-ftp'
'--without-aolserver' '--without-apache' '--without-continuity'
'--without-pi3web' '--enable-releasemode' '--enable-xml'
'--cache-file=config.cache' '--enable-libxml'
'--with-libxml-dir=/home/artzi/work/down/temp/target/usr/local'
'--disable-simplexml' '--enable-dom' '--enable-soap' '--with-db'
'--enable-sockets' '--enable-track-vars' '--enable-trans-sid'
'--enable-magic-quotes' '--without-pear' '--with-zlib'
'--with-exec-dir=/usr/local/appweb' '--sysconfdir=/usr/local/appweb'
'--with-gnu-ld' '--with-openssl=/usr' '--enable-mbstring'
'--disable-mbregex' '--enable-session' '--enable-pcntl' '--enable-pdo'
'--with-pdo-sqlite' '--with-pcre-regex' '--enable-spl'
'--enable-tokenizer'
'--with-snmp=/home/artzi/work/down/temp/target/usr/local'
'--enable-ctype' '--with-ctype' '--with-tsrm-pthreads'
'--enable-threadsafe' '--enable-maintainer-zts' '--enable-embed=shared'
'--enable-cgi' '--enable-cli' '--enable-inline-optimization'
Before the buildconf, the configure passed fine, but afterwards I got an
error from the PCNTL extension that the system doesn't support fork().
It happened both when cross compiling and when compiling normally.
Any idea what is the right way to add an extension as static so it will
compile right?
Thanks,
Yoav.
--- End Message ---
--- Begin Message ---
sounds like you know more about this stuff than I do, but
I thought I might suggest to remove the threadsafe/pthreads/optimization
related configure options to see if the problem then goes away...
this suggestion is based on the fact that php and threadsafety stuff is
kind of 'bleedingedge' ... usually when people ask about stuff on the internals
list regarding threads et al the answer is something like 'your on your own :-)'
Artzi, Yoav (Yoav) wrote:
> After trying to compile my custom extension as a dynamic extension, I
> decided to try to compile it as a static one. I found out that I have to
> copy the directory with the sources and the config.m4 to the ext
> directory under the source dir and call ./buildconf --force to rebuild
> the configure script. However, doing that built the configure script in
> a way that doesn't even compile. My configure command is:
> './configure' '--host=powerpc-wrs-linux-gnu' '--build=i686-linux'
> '--prefix=/usr/local' '--disable-all' '--enable-static'
> '--disable-shared' '--enable-memory-limit' '--disable-safe-mode'
> '--disable-rpath' '--disable-ipv6' '--disable-wddx' '--disable-bcmath'
> '--disable-debug' '--disable-calendar' '--disable-ftp'
> '--without-aolserver' '--without-apache' '--without-continuity'
> '--without-pi3web' '--enable-releasemode' '--enable-xml'
> '--cache-file=config.cache' '--enable-libxml'
> '--with-libxml-dir=/home/artzi/work/down/temp/target/usr/local'
> '--disable-simplexml' '--enable-dom' '--enable-soap' '--with-db'
> '--enable-sockets' '--enable-track-vars' '--enable-trans-sid'
> '--enable-magic-quotes' '--without-pear' '--with-zlib'
> '--with-exec-dir=/usr/local/appweb' '--sysconfdir=/usr/local/appweb'
> '--with-gnu-ld' '--with-openssl=/usr' '--enable-mbstring'
> '--disable-mbregex' '--enable-session' '--enable-pcntl' '--enable-pdo'
> '--with-pdo-sqlite' '--with-pcre-regex' '--enable-spl'
> '--enable-tokenizer'
> '--with-snmp=/home/artzi/work/down/temp/target/usr/local'
> '--enable-ctype' '--with-ctype' '--with-tsrm-pthreads'
> '--enable-threadsafe' '--enable-maintainer-zts' '--enable-embed=shared'
> '--enable-cgi' '--enable-cli' '--enable-inline-optimization'
>
> Before the buildconf, the configure passed fine, but afterwards I got an
> error from the PCNTL extension that the system doesn't support fork().
> It happened both when cross compiling and when compiling normally.
>
> Any idea what is the right way to add an extension as static so it will
> compile right?
>
> Thanks,
>
> Yoav.
>
--- End Message ---
--- Begin Message ---
this is a weird thread, so I thought I'd add another OT comment :-)...
MOKULEN_IMADICA wrote:
> Dear Lyan and Tedd.
> yes,it is exactly.We,the japanese,don't create one like PHP and Linux
sushi, samurai, walkman, ruby - +4 for the japanese :-)
oh and I saw the craziest japanese robots in a documentary the other day
:-)
> and postfix and apache and so on in the net.Recently,the fact that the
> professor of the art with authority in Japan had stolen the artwork of
> the Italian wonderful painter was reported in Japan.The professer should
> not steal but introduce the wonderful artist to us,the Japanese,I think.
>
> Madoca
>
>
>
>
>
--- End Message ---