php-general Digest 31 Jan 2001 00:15:17 -0000 Issue 483
Topics (messages 37275 through 37319):
Re: mail( ) question
37275 by: Jon Haworth
disabling php ability via .htaccess
37276 by: Martin Pitt
37277 by: php3.developersdesk.com
using fopen, but warned "permission denied"
37278 by: Zenith
37310 by: Brian Clark
W2K Pro, IIS5.0 + PHP4.4 install trouble....
37279 by: Sebastian Stadtlich
37291 by: Niel Zeeman
37293 by: kaab kaoutar
Re: Nesting 'foreach ()'
37280 by: Tim Ward
Re: form validation :ereg ()
37281 by: kaab kaoutar
Re: when using die(), how can i get the line number that errored?
37282 by: Neil Kimber
verify that email exist ?
37283 by: kaab kaoutar
37284 by: Website4S.aol.com
37312 by: Brian Clark
email headers!
37285 by: kaab kaoutar
37297 by: Christian Reiniger
Ultradev
37286 by: kaab kaoutar
37303 by: Kath
Richard Heyes HTML Mime Mail class
37287 by: Nicklas af Ekenstam
httpd-prozess doesn't get killed
37288 by: Thomas Weber
Re: major help required with php3 and apache on suse 7.0 pro
37289 by: Thomas Weber
37317 by: Thomas Weber
PHP3 + Sessions?
37290 by: Sean Kennedy
37300 by: Devta Singh
37314 by: Sean Kennedy
37315 by: Sean Kennedy
Re: Sending Download Header
37292 by: Christian Reiniger
Re: Editor
37294 by: Christian Sakshaug
37301 by: Kath
37304 by: Brian Clark
Odbc_connect!
37295 by: kaab kaoutar
37309 by: Brian Clark
interreng problem ..
37296 by: hsmith.twilyt.com
37307 by: Brian Clark
these url icons fashion
37298 by: kaab kaoutar
37302 by: Boaz Yahav
37316 by: kaab kaoutar
Prefilling select boxes ?
37299 by: matthewt tozer
37311 by: Brian Clark
Re: Thumbnails and PHP
37305 by: Brian Clark
Re: Problems with majodomo
37306 by: Brian Clark
Re: E Bay is going up again..
37308 by: Brian Clark
Re: Passing HTTP_COOKIE_VARS to functions
37313 by: Brian Clark
RegEx and URLs
37318 by: Joe Sheble (Wizaerd)
37319 by: Joe Sheble (Wizaerd)
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:
[EMAIL PROTECTED]
----------------------------------------------------------------------
If you've copied-and-pasted that script, you might want to correct this
line:
<scrip language="JavaScrip">
Both the words "script" and "Javascript" have a T on the end of them :-)
On the other hand, why don't you just use PHP for the whole thing? Get the
e-mail address from a form, make the action of this form $PHP_SELF, and have
a condition along the lines of
if ($submit) {
... send the mail
} else {
... display the form
}
Then you don't have to switch to and from client- and server-side scripts,
and you don't risk your system being fubar'd by people who browse with
Javascript turned off.
Just a thought.
Cheers
Jon
-----Original Message-----
From: Fang Li [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2001 17:30
To: [EMAIL PROTECTED]
Subject: [PHP] mail( ) question
Hi All:
Would anyone tell me how to correct the code in mail( ) function? Thanks a
lot.
<html>
<head>
<scrip language="JavaScrip">
function askEmailAddress( ){
var inputedData = prompt("The email address you want send
to:"," ");
if(confirm("The email address you want send to is" +
inputedData +
"?")){
alert("OK, the article will send to " + inputedData +
"!");
}
}
</script>
</head>
<body>
.......
<?php
mail(?> <script language="JavaScript"> document.write(inputed_data)</script>
<?php , "My Subject", "Line 1\nLine 2\nLine 3"); ?>
</body>
</html>
Fang Li
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hiya,
Ok this is going to a little weird, however I can assure you there is a
reason for it.
Basically does anyone how to disabled .php scripts within directories by
using a .htaccess file.
Basically the whole server (Apache with Linux and PHP 4.0.4) is PHP enabled,
but we don't want certain users to run .php scripts in certain directories
until we allow them to, and remove the file.
How can this be done via method stated above, or is there another way of
going about this.
Many Thanks
Martin
Addressed to: "Martin Pitt" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Martin Pitt" <[EMAIL PROTECTED]> Tue, 30 Jan 2001 10:05:41 -0000
>
> Hiya,
>
> Ok this is going to a little weird, however I can assure you there is
> a reason for it.
>
> Basically does anyone how to disabled .php scripts within directories
> by using a .htaccess file.
>
> Basically the whole server (Apache with Linux and PHP 4.0.4) is PHP
> enabled, but we don't want certain users to run .php scripts in
> certain directories until we allow them to, and remove the file.
>
> How can this be done via method stated above, or is there another way
> of going about this.
Look for engine in this document:
http://www.php.net/manual/en/configuration.php
It does work in .htaccess, as long as overrides are allowed in
httpd.conf. Your big problem will be how to keep them from
changing or removing the .htaccess file in a directory they can write
to. Remember, if I can write to a directory, I can rm files from it,
even if I don't own them.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
I installed my php + apache in my linux box, with compiled the php as an
apache module. any my web server is run as nobody ( by default ).
I try to write some php script in my home directory, in which, I use the
fopen call.
However, I was warned with "fopen("tester.db","w") - Permission denied"
I can only simply change the permission by chmod [directory], but, it is
obivous dangerous.
How can I do?
Hello Zenith,
(Z == "Zenith") [EMAIL PROTECTED] accounted:
Z> I installed my php + apache in my linux box, with compiled the php as an
Z> apache module. any my web server is run as nobody ( by default ).
<snip>
Z> However, I was warned with "fopen("tester.db","w") - Permission denied"
Z> I can only simply change the permission by chmod [directory], but, it is
Z> obivous dangerous.
Z> How can I do?
chown nobody.nobody ./tester.db
chmod 700 ./tester.db
Is *one* way.
-Brian
i just installed php on IIS5.01.
i placed a file phpinfo.php in the webroot
---------------
<?php
phpinfo();
?>
--------------
whatever i try i always get the following error :
Warning opening 'c:\inetpub\wwwroot\phpinfo.php' for inclusion
(include_path='') in unknown on line 0
i'm not sure what this include thing is about....
but on an old installation on a nt4.0 ihave nothing written in it......
if i write phpscripts they are executed perfectly,
<?php
echo ""test";
?>
but i don't get any information from phpinfo....
( which is pretty usefull......)
any sugestions?
sebastian
Maybe you could try this
no quarentees :)
Niel Zeeman
----- Original Message -----
From: "Sebastian Stadtlich" <[EMAIL PROTECTED]>
To: "'Php-General (E-Mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 12:26 PM
Subject: [PHP] W2K Pro, IIS5.0 + PHP4.4 install trouble....
> i just installed php on IIS5.01.
> i placed a file phpinfo.php in the webroot
> ---------------
> <?php
> phpinfo();
> ?>
> --------------
>
> whatever i try i always get the following error :
>
> Warning opening 'c:\inetpub\wwwroot\phpinfo.php' for inclusion
> (include_path='') in unknown on line 0
>
> i'm not sure what this include thing is about....
> but on an old installation on a nt4.0 ihave nothing written in it......
> if i write phpscripts they are executed perfectly,
> <?php
> echo ""test";
> ?>
>
> but i don't get any information from phpinfo....
> ( which is pretty usefull......)
>
> any sugestions?
>
> sebastian
>
Installation Procedures for PHP4 on a Windows2K server
1)Copy the PHP files to a directory ( preferably a dos compatible named directory) on
the server.
2)Copy the "php4ts.dll" to the \winnt\system32 directory.
3)If Interbase support in required and Interbase itself is not installed on the server
copy the "gds32.dll" file that resides in the "dlls" directory of you PHP installation
to the \winnt\system32.
3.1) Modify the php.ini file and set the "extension_dir" to the folder containing the
extensions (e.g. extension_dir = C:\php\extensions ).
3.2) Uncomment the "extension=php_interbase.dll" line in the php.ini file.
4)Copy the php.ini to the winnt directory.
5)Open up the "Internet Services Manager" under "Administrative Tools" on the start
up menu.
6)Open up the "server name" to reveal the servers that are running.
7)Stop the "Default Web Site" server.
8)Right click on it and go to properties.
9)Under the "Default Web Site Properties" dialog select the "ISAPI Filters" Tab.
10)Click "Add" to add a new filter.
11)In the "Filter Name" field enter "PHP" and in the "Executable" field use the
"Browse" button to navigate to the "sapi" directory under the php installation and
select the "php4isapi.dll" file.
12)Click "Apply" and "OK" on the "Filter Properties" dialog and click "Apply" on the
"Default Web Site Properties" dialog.
13)Next Click on the "Home Directory" tab and click the "Configuration" button to open
up the "Application Configuration" dialog.
14)Click the "Add" button to add a new "Application Mapping".
15)On the "Add/Edit Application Extension Mapping" dialog click the "Browse" button,
and navigate to the "php4isapi.dll" file as before.
16)Next enter the extension that you are going to use ( ".php" ).
17)Make sure that the "Script Engine" is ticket, and leave the rest as is.
18)Click "OK" and the "Apply" and "Close" on the "Application Configuration" dialog
and then click "Apply" and "Close" on the "Default Web Site Properties" dialog as well.
19)Start the "Default Web Site" server again and you should have PHP installed and
running.
Do u call it from http://server/phpdirectory/file.php?
assuming ofcourse that u've created a phpdirectory in inetpub/wwwroot where
u put ur php files !
>From: "Niel Zeeman" <[EMAIL PROTECTED]>
>To: "Sebastian Stadtlich" <[EMAIL PROTECTED]>, "php gen list"
><[EMAIL PROTECTED]>
>Subject: Re: [PHP] W2K Pro, IIS5.0 + PHP4.4 install trouble....
>Date: Wed, 31 Jan 2001 01:25:45 +0200
>
>Maybe you could try this
>no quarentees :)
>
>Niel Zeeman
>----- Original Message -----
>From: "Sebastian Stadtlich" <[EMAIL PROTECTED]>
>To: "'Php-General (E-Mail)" <[EMAIL PROTECTED]>
>Sent: Tuesday, January 30, 2001 12:26 PM
>Subject: [PHP] W2K Pro, IIS5.0 + PHP4.4 install trouble....
>
>
> > i just installed php on IIS5.01.
> > i placed a file phpinfo.php in the webroot
> > ---------------
> > <?php
> > phpinfo();
> > ?>
> > --------------
> >
> > whatever i try i always get the following error :
> >
> > Warning opening 'c:\inetpub\wwwroot\phpinfo.php' for inclusion
> > (include_path='') in unknown on line 0
> >
> > i'm not sure what this include thing is about....
> > but on an old installation on a nt4.0 ihave nothing written in it......
> > if i write phpscripts they are executed perfectly,
> > <?php
> > echo ""test";
> > ?>
> >
> > but i don't get any information from phpinfo....
> > ( which is pretty usefull......)
> >
> > any sugestions?
> >
> > sebastian
> >
><< PHPInstallationonW2K.txt >>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
thanks, I found that there is a bug. The curly braces don't make any
difference in fact ...
foreach ($fred as $fred1) foreach ($fred as $fred2) echo "$fred1 :
$fred2<br>";
is okay (but still doesn't work) although I have noticed that you seem to
need to code-block single statements in if ... else constructs
i.e
if (1==1) echo("fred") else echo("bill"):
should work but doesn't.
Another bug?.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -----Original Message-----
> From: Chris Fry [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2001 03:56
> To: Tim Ward
> Cc: PHP News Group (E-mail)
> Subject: Re: [PHP] Nesting 'foreach ()'
>
>
> Tim,
>
> Works fine in 4.04pl1 on NT.
>
> I think you should have curly braces round the inner foreach as well?
>
> $fred = array(1,2,3,4,5,6);
> foreach ($fred as $fred1)
> { foreach ($fred as $fred2) {
> echo "$fred1 : $fred2<br>";
> }
> };
>
>
> Chris Fry
>
> Tim Ward wrote:
>
> > according to the online refernce foreach() doesn't change
> the array pointer.
> > However the following code:
> >
> > $fred = array(1,2,3,4,5,6);
> > foreach ($fred as $fred1)
> > { foreach ($fred as $fred2)
> > echo "$fred1 : $fred2<br>";
> > };
> >
> > returns:
> >
> > 1 : 1
> > 1 : 2
> > 1 : 3
> > 1 : 4
> > 1 : 5
> > 1 : 6
> >
> > and stops there, implying that the second foreach() is
> interfering with the
> > first.
> >
> > I've got around this in my actual case by creating two
> arrays and adding to
> > the second as well as the first, but this won't always be
> as convenient. Is
> > this a known bug or is the manual wrong?
> >
> > ... by the way
> >
> > $fred = array(1,2,3,4,5,6);
> > $fred2 = $fred;
> > foreach ($fred as $fred1)
> > { foreach ($fred2 as $fred2)
> > echo "$fred1 : $fred2<br>";
> > };
> >
> > ... doesn't work either which would normally imply that
> $fred2 is a pointer
> > to $fred rather than a copy. Can this be the case?
> >
> > I am using version 4.0.0
> >
> > Tim Ward
> > Senior Systems Engineer
> >
> > Please refer to the following disclaimer in respect of this message:
> > http://www.stivesdirect.com/e-mail-disclaimer.html
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
> --
> Chris Fry
> Quillsoft Pty Ltd
> Specialists in Secure Internet Services and E-Commerce Solutions
> 10 Gray Street
> Kogarah
> NSW 2217
> Australia
>
> Phone: +61 2 9553 1691
> Fax: +61 2 9553 1692
> Mobile: 0419 414 323
> eMail: [EMAIL PROTECTED]
> http://www.quillsoft.com.au
>
> You can download our Public CA Certificate from:-
> https://ca.secureanywhere.com/htdocs/cacert.crt
>
> **********************************************************************
>
> This information contains confidential information intended only for
> the use of the authorised recipient. If you are not an authorised
> recipient of this e-mail, please contact Quillsoft Pty Ltd by return
> e-mail.
> In this case, you should not read, print, re-transmit, store or act
> in reliance on this e-mail or any attachments, and should destroy all
> copies of them.
> This e-mail and any attachments may also contain copyright material
> belonging to Quillsoft Pty Ltd.
> The views expressed in this e-mail or attachments are the views of
> the author and not the views of Quillsoft Pty Ltd.
> You should only deal with the material contained in this e-mail if
> you are authorised to do so.
>
> This notice should not be removed.
>
>
Hi!
thanks for the answer !
but for eregi("[^a-zA-Z[:space:]ëàéêêàäïüöûâç-]",$name);
it accespts also numbers hen i give kaab1 as input it accept it ? strange ?!
by the way how can i add the fact that the name should not start with space
?
thanks a lot !
>From: "Jeff Warrington" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP] form validation :ereg ()
>Date: Mon, 29 Jan 2001 17:55:22 -0800
>
>In article <[EMAIL PROTECTED]>, "kaab kaoutar"
><[EMAIL PROTECTED]> wrote:
>
>If you wish to include a hyphen in the allowed character list of a
>pattern match, you must include it as the last character.
>
>So what you want should be more like:
>
>if (eregi("[^a-zA-Zëàéêêàäïüöûâç-]",$name)) {
> print("your name can't include non-letter, etc....");
>}
>
>You can add space with: [:space:] within the charachter
>class ([^a-zA-Z[:space:]ëàéêêàäïüöûâç-])
>
>Jeff
>
>
> > Hi again!
> >
> > I still did not fix my prob : I want to check, in a form, that the name
> > input may include an alphabetical letter a- z, A-Z, or a space, or -,
> > or à, or ä or ü etc how can i do that ? i used
> > ereg("([a-z,A-Z][ë,à]?)",$name) then
> > (!ereg("([a-z,A-Z,é,ê,è,ë,-,\t,à,ä,ï,ü,ö,û,â,ç])", $name))
> > i get the following warnin :REG_ERANGE:,invalid character range by the
> > way how to add space " " and "-" ?
> >
> > Please help!
> >
> > Thanks
> >
> >
> >
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
> > http://www.hotmail.com.
> >
> >
> >
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Rather than use die() why not use trigger_error() and have an error_handler
registered with the parser.
Firstly, create an error handler and register it - I use something like the
following:
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
$locStrMessage = $errfile . " " . $errline . " " . $errno . " : " .
$errstr;
error_log($locStrMessage . "\r\n",3,'debug/debug.log');
}
Register this in your autoprepend file using:
set_error_handler("myErrorHandler");
Now, whenever you get an error it gets logged to your debug file with the
file and line number. You can 'generate' errors using trigger_error() and
pass it a string of information. You can use this method to catch absolute
bad bugs and also to dump useful debug information.
This is quiet an elementary implementation of good error handling, you can
take this and extend it into quite a useful system for tracking bugs. You
could add system flags for turning debug on and off, alter levels of
debugging etc...
regards,
Neil
p.s. assert() is cool too.
-----Original Message-----
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2001 08:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] when using die(), how can i get the line number that
errored?
function errtrapper($file, $line){
echo "In $file on line $line<BR>\n";
#current body here.
}
die(errtrapper(__FILE__, __LINE__));
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Noah Spitzer-Williams" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, January 29, 2001 6:59 PM
Subject: [PHP] when using die(), how can i get the line number that errored?
> here's my code:
>
> $res = mysql_query($badsqlstatement) or die(errtrapper());
>
> inside errtrapper(), is there a way to find out what line this error
> occurred?
>
> thanks!!
>
> - Noah
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi!
is there a way whith which i can check, before confirming a form, whether
the email exists ?
i think it's a bit difficult but maybe it's doable ?
thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi,
I don`t think it is possible to check that an email actually exists but what
you could do is make them confirm there email by sending them a code, if they
enter the right code on the next page then they have recieved the email and
it obviously exists.
HTH
Ade
Hello Website4S,
(Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] etched:
Wac> I don`t think it is possible to check that an email actually
Wac> exists but what
It's possible:
http://phpclasses.upperdesign.com/browse.html/package/13
Class that may be used to determine if a given e-mail address
is valid.
It features:
- Simple validation just by looking at the e-mail address string.
- Validation of a e-mail address host as a valid mail exchange domain.
- Validation of a e-mail address by connecting to the mail host
server to determine if there is really a deliverable mail box.
-Brian
--
Dinner not ready: (A)bort (R)etry (P)izza
Hi!
how can i add Bcc Cc and others to my email?
i use
$headers="Bcc:[EMAIL PROTECTED]\nCc:[EMAIL PROTECTED]";
mail($email,$subject,$body,$headers))
but i receive it only once ?
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
On Tuesday 30 January 2001 12:06, kaab kaoutar wrote:
> how can i add Bcc Cc and others to my email?
> i use
> $headers="Bcc:[EMAIL PROTECTED]\nCc:[EMAIL PROTECTED]";
> mail($email,$subject,$body,$headers))
> but i receive it only once ?
I guess your mail server is simply too intelligent - it recognizes that
all addresses are the same and only sends it once :)
Usually this is desired behavior
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"World domination. Fast." (Linus Torvalds about Linux)
Hi!
i used to work with asp on ultradev, and i believe it's a pretty nice tool,
i know that it generate asp, jsp and coldfusion files but not php !
do u know a tool equivalent to ultradev that generates php files or more do
u know of a version of ultradev that generates php ?
Thanks?
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
My copy of UltraDev 4 lets you work with PHP.
Might not have all the bells and whistles, but it works good and lets me
seemlessly mix HTML/JScript/PHP. :)
- Kath
----- Original Message -----
From: "kaab kaoutar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 6:11 AM
Subject: [PHP] Ultradev
> Hi!
> i used to work with asp on ultradev, and i believe it's a pretty nice
tool,
> i know that it generate asp, jsp and coldfusion files but not php !
> do u know a tool equivalent to ultradev that generates php files or more
do
> u know of a version of ultradev that generates php ?
>
> Thanks?
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Hi all!
I've just downloaded and started playing aorund with <? echo($subject); ?> ;-)
Looks great! Only one problem though:
I'd like to be able to use the included smtp-class for delivering serveral
messages through the same smtp-connection before closing it and I'm too
stupid to figure out how to do it myself. Does anyone here have any sample
code or tips? Would be greatly appreciated.
Thank!
- Nicklas af Ekenstam
Hi,
i code a streaming chat in PHP4. Everithing works fine, it is very fast due
to use of shared memory. But i have this problem: Every time i start the
script a new httpd-process is started (Apache 1.3.12). So far so good. But
the process doesn't get killed when aborting or reloading the script. So if
you reload the stream an few times you have a task list full of Apaches.
How can i kill the old, unused process when i reload the page?
I tried if($connection_aborted()) { exit; }, but it exits the first time.
Thanks,
---
Thomas Weber
CYNOBIA Community Online Service AG
Kühbachstraße 11
81543 München
fon 089-78 06 0(280)
fax 089-78 06 01 99
email [EMAIL PROTECTED]
net http://www.CYNOBIA.de
Hi,
i run SuSE 7.0 too, but i think you cannot use mod_php3 AND mod_php4
together.
-----Original Message-----
From: bob [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 9:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] major help required with php3 and apache on suse 7.0 pro
Importance: High
Hi,
I have a webserver with over 100 domains running.
I have installed suse 7.0 with the apache that came with suse.
php3 and 4 are installed but are not running.
I cannot restart apache because of an error, and I dont seem to find it.
I want to download the new .14 apache and compile it, but I have NEVER done
that before.
My system admin had a major car crash, and is out for the next 3 months.
Now I want to try this.
I must be careful though, because of the running domains etc...
How can I do this ?
Can anyone help me ?
Regards,
Bob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
in yout httpd.conf (/etc/httpd/httpd.conf i think) there is a section
<IfDefine PHP4>. Just comment out the lines with <IfDefine...> and
</IfDefine> and add your prefered extension to a line with AddType.
Then restart the Apache and it should work.
For administration it is always good you are running a Webmin-Server on your
box. ( http://www.webmin.org ) This is a very confortable web.interface for
Linux-administration.
-----Original Message-----
From: bob [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 12:48 PM
To: Thomas Weber
Subject: RE: [PHP] major help required with php3 and apache on suse 7.0
pro
Hi thomas,
I uninstalled all the php_mods
Installed php4_mod via yast
And still, if I want to www.propop.be/test.php3 then it want to download the
file.
You have suggestions ?
THNX mate
Bob
-----Oorspronkelijk bericht-----
Van: Thomas Weber [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 30 januari 2001 12:27
Aan: [EMAIL PROTECTED]
CC: Php-General
Onderwerp: RE: [PHP] major help required with php3 and apache on suse
7.0 pro
Hi,
i run SuSE 7.0 too, but i think you cannot use mod_php3 AND mod_php4
together.
-----Original Message-----
From: bob [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 9:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] major help required with php3 and apache on suse 7.0 pro
Importance: High
Hi,
I have a webserver with over 100 domains running.
I have installed suse 7.0 with the apache that came with suse.
php3 and 4 are installed but are not running.
I cannot restart apache because of an error, and I dont seem to find it.
I want to download the new .14 apache and compile it, but I have NEVER done
that before.
My system admin had a major car crash, and is out for the next 3 months.
Now I want to try this.
I must be careful though, because of the running domains etc...
How can I do this ?
Can anyone help me ?
Regards,
Bob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I was wondering if there are any functions in php3 that would allow me to play with
sessions. In the docs at the php site, most if not all the functions they have listed
there were added in php4, but my server is still setup with php3.
Any help is appreciated!
Sean Kennedy
Use this:
http://www.phpheaven.net/resources/libraries/php3Sessions/
------------------------------------------------------
Devta Singh
Webmaster ZDNet España
[EMAIL PROTECTED]
------------------------------------------------------
----- Original Message -----
From: "Sean Kennedy" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 12:28 PM
Subject: [PHP] PHP3 + Sessions?
I was wondering if there are any functions in php3 that would allow me to
play with sessions. In the docs at the php site, most if not all the
functions they have listed there were added in php4, but my server is still
setup with php3.
Any help is appreciated!
Sean Kennedy
Thank you, I will.
----- Original Message -----
From: Devta Singh <[EMAIL PROTECTED]>
To: Sean Kennedy <[EMAIL PROTECTED]>; PHP Mailing List
<[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 4:13 AM
Subject: Re: [PHP] PHP3 + Sessions?
> Use this:
> http://www.phpheaven.net/resources/libraries/php3Sessions/
> ------------------------------------------------------
> Devta Singh
> Webmaster ZDNet España
> [EMAIL PROTECTED]
> ------------------------------------------------------
Thank you, I will.
----- Original Message -----
From: Devta Singh <[EMAIL PROTECTED]>
To: Sean Kennedy <[EMAIL PROTECTED]>; PHP Mailing List
<[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 4:13 AM
Subject: Re: [PHP] PHP3 + Sessions?
> Use this:
> http://www.phpheaven.net/resources/libraries/php3Sessions/
> ------------------------------------------------------
> Devta Singh
> Webmaster ZDNet España
> [EMAIL PROTECTED]
> ------------------------------------------------------
On Sunday 28 January 2001 17:52, Natasha wrote:
> The filename is just the name, the content is what
> matters, and also wanted to know if echoing binary
> data is ok ?
Yes. That's what application/octet-stream means: binary data.
> and what about images, can i send it through octect
> stream ? will they turn up right ?
Usually yes, but you should use the proper MIME type for them
(image/jpeg, image/png, image/gif etc) just to be sure
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"World domination. Fast." (Linus Torvalds about Linux)
>EditPlus.com ($?)
Free I think...
>-----Original Message-----
>From: Christian Sakshaug [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 30, 2001 4:45 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP] Editor
>
>
>Try www.phpedit.com or www.ultraedit.com (30$)
>
>
>At 08:37 30.01.2001, you wrote:
> >Hi,
> >
> >I know this has been asked before but I can`t seem to get the archive email
> >thingy to work, basically I`m looking for a free or cheap editor that has
>the
> >lines numbered so that it`s a bit easier for me to debug my scripts.
> >
> >TIA
> >Ade
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>Best Regards, Christian Sakshaug
>--
>Email: [EMAIL PROTECTED]
>Web: www.sakshaug.net
>Tel: +47 913 95 618
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
Best Regards, Christian Sakshaug
--
Email: [EMAIL PROTECTED]
Web: www.sakshaug.net
Tel: +47 913 95 618
I'm partial to PHPEd.
- Kath
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 2:37 AM
Subject: [PHP] Editor
> Hi,
>
> I know this has been asked before but I can`t seem to get the archive
email
> thingy to work, basically I`m looking for a free or cheap editor that has
the
> lines numbered so that it`s a bit easier for me to debug my scripts.
>
> TIA
> Ade
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Hello Maxim,
(MM == "Maxim Maletsky") [EMAIL PROTECTED] channelled:
MM> EditPlus.com ($?)
Yep. http://www.editplus.com/
-Brian
Hi!
i have an oracle Database and i wanted to use odbc functions i tried it but
it gives me faile to connect, so i tried an access Database that i put in
dsn system etc
and i still have the same error!
here is the code :
if (($res = Odbc_Connect("WebZine","kaab","kaab")==0))
{
print ("Couldn't connect to database\n");
exit ();
}
echo $res;
$sql = "Select * subscribe";
if ($res <> 0)
{
$id = Odbc_Exec($res, $sql);
$row=1 ;
while (Odbc_Fetch_Row($id,$row))
{ $emaildb = Odbc_result($id,3); echo $emaildb;}
Odbc_Close($res) ;
}
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hello kaab,
(kk == "kaab kaoutar") [EMAIL PROTECTED] told:
kk> if (($res = Odbc_Connect("WebZine","kaab","kaab")==0))
Just a wild guess, you might want:
if (($res = Odbc_Connect("WebZine","kaab","kaab")) == 0)
kk> {
kk> print ("Couldn't connect to database\n");
kk> exit ();
kk> }
-Brian
Hi all
I'm having a small problem ....
here is code:
<?
fucntion load_page($page_name){
$page_name="index";
include"templates/$webit_layout_id/$page_name_heading.php3";
include"templates/$webit_layout_id/$page_name_footer.php3";
}
?>
as you can see ... it replace "$page_name_heading"; instead of just "$page_name";
any ideas how to get around this ?
henti
Hello henti,
(htc == "[EMAIL PROTECTED]") [EMAIL PROTECTED] accounted:
htc> as you can see ... it replace "$page_name_heading"; instead of
htc> just "$page_name"; any ideas how to get around this ?
How about:
include("templates/$webit_layout_id/${page_name}_heading.php3");
or:
include("templates/$webit_layout_id/" . $page_name . '_heading.php3');
And you probably want to make use of global($webit_layout_id).
-Brian
Hi!
maybe this questio has nothing to do with php and maybe not !
well i noticed that in internet explorer some urls have their own icon
instead of the one of explorere!here is a sample :www.php.net
any ideas of how to do that ?
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
http://www.favicon.com
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
> -----Original Message-----
> From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 30, 2001 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] these url icons fashion
>
>
> Hi!
>
> maybe this questio has nothing to do with php and maybe not !
> well i noticed that in internet explorer some urls have their
> own icon
> instead of the one of explorere!here is a sample :www.php.net
> any ideas of how to do that ?
>
> Thanks
>
> ______________________________________________________________
> ___________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
hi!
It works only in the bookmark !
but ib the url address, it does not show!
thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
If you make your users fill in form details .... and they forget to fill in an
important field,
you'd want to return them to the same page prefilling all fields they already
populated.
My question is how can you prefil a select box ( drop down list ) with the
item they selected ?
Is there a method that will support multipule selects ?
-----------------------
"Nokia 3310, free on any Orange contract. Visit Totalise Telecom
to get your free phone at http://www.totalisetelecom.net/store"
Hello matthewt,
(mt == "matthewt tozer") [EMAIL PROTECTED] forecasted:
mt> question is how can you prefil a select box ( drop down list )
mt> with the item they selected ?
Something not unlike:
<option name="foo"<?php print($foo ? ' selected' : '');?>>
-Brian
Hello Todd,
(TC == "Todd Cary") [EMAIL PROTECTED] uttered:
TC> If I do <table width="100%"> and <td width="750"> all works fine -
TC> the <img>'s "word wrap". But, when I do <table width="100%"> and
TC> <td width="100%">, I get a horizontal scroll bar and the <img>'s
TC> go off to the left.
Just leave out the width attribute for the <td> tag. You probably
don't want to use fixed width cells within a 100% width table.
Of course, if your images are 750 pixels wide and you put three of
them in a table cell, they're going to cause the page to scroll
horizontally no matter what you do to try to prevent it.
Might I suggest you check out some of the lists at http://www.hwg.org/
and check out the different HTML specifications at http://www.w3c.org/
It's a little daunting at first, but it's worth it to understand what
it all means.
HTH,
-Brian
Hello Alan,
(AT == "Alan Todd") [EMAIL PROTECTED] stated:
AT> mail("$majordomo", "", "$action $list $email","From: $email");
Try this and see if it works:
mail($majordomo, '', "$action $list $email\n\r","From: $email\n\r");
-Brian
Hello James,
(JM == "James Moore") [EMAIL PROTECTED] calculated:
JM> There are various reasons why what you suggested will not happen,
JM> if you really want to see why look in the archives there are
JM> plenty of posts. You have a delete key so use it.
"Hey, your window is open, so you won't mind me dumping my trash in
your living room. You have a vacuum cleaner, so use it."
-Brian
Hello Jamie,
(J == "Jamie") [EMAIL PROTECTED] scratched:
J> PrefResults($HTTP_COOKIE_VARS["cookie_user"],$HTTP_COOKIE_VARS["cookie_passw
J> ord"]);
Try putting <?php_track_vars?> at the top of your script and see if it
makes any difference.
-Brian
I have some text that may or may not contain valid URLs (anything starting
with an http:// or a mailto:). Some of these URLs may or may not be
contained within a valid A HREF tag. Could somebody help me out with a
regex that would find all the URLs that are not already contained in an A
HREF tag and convert them to one? The URLs could fall anywhere within the
text.
thanx!
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=================================
I have some text that may or may not contain valid URLs (anything starting
with an http:// or a mailto:). Some of these URLs may or may not be
contained within a valid A HREF tag. Could somebody help me out with a
regex that would find all the URLs that are not already contained in an A
HREF tag and convert them to one? The URLs could fall anywhere within the
text.
thanx!
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=================================