|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Fri Aug 10 2001 - 15:35:13 CDT
php-general Digest 10 Aug 2001 20:35:13 -0000 Issue 808
Topics (messages 62133 through 62214):
Re: problem with session start
62133 by: Balaji Ankem
62137 by: Renze Munnik
62139 by: Yamin Prabudy
Re: Image header problems
62134 by: Hugh Danaher
62135 by: Maxim Maletsky
62197 by: Hugh Danaher
again session doubt
62136 by: Balaji Ankem
Re: how 2 read an non-existing file?! (I need help)
62138 by: Tribun
plz check the warning message
62140 by: Balaji Ankem
62141 by: Renze Munnik
62147 by: karthik
62150 by: Balaji Ankem
62153 by: Renze Munnik
62156 by: Balaji Ankem
62158 by: Renze Munnik
62164 by: Renze Munnik
Re: PHP.exe EAT's my win resources... (!)
62142 by: Bruin, Bolke de
62154 by: elias
62165 by: Bruin, Bolke de
Using UltraDev with Phakt can't connect to mysql server!
62143 by: Jack
Re: Printing
62144 by: B. van Ouwerkerk
62195 by: Fernando Avila
62205 by: Matthew Loff
Re:[PHP] Using UltraDev with Phakt can't connect to mysql server!
62145 by: Andras Balogh
Log off
62146 by: AJDIN BRANDIC
62148 by: Andras Balogh
62152 by: AJDIN BRANDIC
Can't insert record using UltraDEV with PHAKT to MYSQL
62149 by: Jack
php authentication system
62151 by: Andras Kende
62159 by: pierre-yves
62173 by: Sheridan Saint-Michel
62183 by: Sam Masiello
THIS REALLY DOES WORK.
62155 by: Tom Hill
[PHP-WIN] Php on Windows not running!!! Any help ???
62157 by: legal.HEROCYCLES.COM
Php on Windows not running!!! Any help ???
62160 by: legal.HEROCYCLES.COM
62167 by: Data Driven Design
Re: [PHP-WIN] Can't insert record using UltraDEV with PHAKT to MY SQL
62161 by: Svensson, B.A.T.
Re: Question about security: writing images to a directory (chmod 777)
62162 by: Data Driven Design
Re: user's ip]
62163 by: Dave Freeman
Re: help, weird include problem with functions
62166 by: Jaxon
62168 by: Renze Munnik
installing mysql on win98
62169 by: David Ovens
62179 by: Evan Nemerson
PHP and Public Key System cryptos? (PKS)
62170 by: elias
Re: Any ideas if a form needs a signature?
62171 by: Manuel Lemos
62178 by: Sean C. McCarthy
Excepting Certain Charactors
62172 by: Mike Mike
62174 by: Renze Munnik
PHP's handling of Array's in Form Fields
62175 by: Joseph Koenig
62176 by: Jon Yaggie
Making web spider clever
62177 by: Phillip Lockwood-Holmes
62189 by: Peter Clarke
commandline php
62180 by: Nick Davies
62181 by: Tyler Longren
Win32 building of wvHtml and wvWare
62182 by: François PERROT
Active directory and ldap
62184 by: Mikael hultgren
Re: regular expressions and mySQL
62185 by: Steve Brett
PHP and SSL - intermittant problem
62186 by: Adrian Teasdale
Socket problem
62187 by: Jon Farmer
stripslashes() strips too much...
62188 by: Tyler Longren
62192 by: Peter Clarke
62193 by: Tyler Longren
Re: PHP in corporate settings?
62190 by: billfarr.ages.com
mysql error
62191 by: Jerry Lake
Meta Tags and Regular Expressions
62194 by: Kyle Mathews
ld problems when compiling 4.0.6
62196 by: Daniel Adams
finding tags and extracting information
62198 by: David Ovens
62200 by: Daniel Adams
62204 by: David Ovens
62206 by: Daniel Adams
62208 by: David Ovens
62214 by: Daniel Adams
Streaming a jpg
62199 by: Todd Cary
compiling issues
62201 by: Jay Paulson
62203 by: Angerer, Chad
62211 by: Jay Paulson
Having my script login to a secure area of another site.....
62202 by: Brandon Orther
cvs build
62207 by: Daniel Adams
Writing files on Linux
62209 by: Corin Rathbone
62210 by: Corin Rathbone
Logging into a secure site that looks for cookies
62212 by: Brandon Orther
compiling apache 1.3.20 with php 4.0.6
62213 by: Jay Paulson
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi Andrew,
Thankyou now it is working well.
I would like to close the session after clicking logout button.
How to do?
Thanks inadvance.
Regards
-Balaji
----- Original Message -----
From: Andrew Braund
To: Balaji Ankem
Sent: Friday, August 10, 2001 1:45 PM
Subject: RE: [PHP] problem with session start
You need to create a c:\tmp directory.
- text/plain attachment: Wipro_Disclaimer.txt
attached mail follows:
On Fri, Aug 10, 2001 at 01:58:54PM +0530, Balaji Ankem wrote:
> Hi Andrew,
> Thankyou now it is working well.
> I would like to close the session after clicking logout button.
> How to do?
>
> Thanks inadvance.
> Regards
> -Balaji
session_destroy();
http://www.php.net/manual/en/function.session-destroy.php
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
OK i can see your problem.... you are using windows..... then in the php.ini you must set where to put the session file..... it's somewhere around with line like this
session.save_path = /tmp change it to something like session.save_path = c:\tmp of cause you must make the tmp directory first
good luck
Yamin Prabudy
----- Original Message -----
From: Balaji Ankem
To: php-general
lists.php.net
Cc: Yamin Prabudy
Sent: Friday, August 10, 2001 3:10 PM
Subject: problem with session start
Hi! friend, i got the following error when i am goint to start a session.
This is the file. and i got the following errors.
Warning: open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m (2) in c:\www\login.php on line 2 Warning: open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
login.php
<?php session_start(); session_register(emp_id); ?>
<html> <head> <SCRIPT language="Javascript">
function check(){
if (document.login.emp_id.value=='') { alert('Please enter your employee number'); document.issue.emp_id.focus(); return false;
}
else if(document.login.emp_pass.value=='') { alert("Please enter the password"); document.issue.emp_pass.focus(); return false; } else { document.login.method = "POST"; document.login.action="http://10.145.2.23/authentication.php"; document.login.submit(); return true; } } </script> </head>
<body text="arial" background="imacbg1.gif" ONLOAD="document.login.emp_id.focus()"> <font face="arial" > <center> <h1> WELCOME TO IMAC TOOL </h1></center> <center> <img SRC="logo.gif" height=100 width=100></img> <pre> <form name="login" > <b>Employee No:</b> <input type="text" size="10" name="emp_id" maxlength="10" value=""><br> <b>Password :</b> <input type="password" size="10" name="emp_pass" maxlength="10" value=""><br> <input type="button" Value="LOGIN" OnClick="check();"> </form> </pre> </center> </font> </body></html>
attached mail follows:
Message-ID: <002e01c12178$7f4e13e0$aafdb3d1
win95>
From: "Hugh Danaher" <hdanaher
earthlink.net>
To: "Maxim Maletsky" <maxim
japaninc.com>
Cc: "Php-General" <php-general
lists.php.net>
Date: Fri, 10 Aug 2001 01:43:13 -0700
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Re: [PHP] Image header problems
Thanks for your help. Someone earlier caught the same error which was a
print call before the header. But in addition to removing line 4, I had to
remove lines 2 and 3 too. Even though they were empty, they also called the
browser and stopped the execution of the code.
Thanks again.
Hugh
----- Original Message -----
From: Maxim Maletsky <maxim
japaninc.com>
To: 'Hugh Danaher' <hdanaher
earthlink.net>; Php-General
<php-general
lists.php.net>
Sent: Thursday, August 09, 2001 6:04 PM
Subject: RE: [PHP] Image header problems
make it look this way:
1. <?php 2. 3. 4. # print "jpeg format<br>"; 5. header("content-type: image/jpeg",replace); 6. $image=imagecreate(200,200); 7. $red=imagecolorallocate($image,255,0,0); 8. $blue=imagecolorallocate($image,0,0,255); 9. imagearc($image,99,99,180,180,0,360,$blue); 10. imagefill($image,99,99,$blue); 11. imagejpeg($image); 12. ?>
The problem are outputs before header();
Yoroshiku, Maxim Maletsky
-----Original Message-----
From: Hugh Danaher [mailto:hdanaher
earthlink.net]
Sent: Friday, August 10, 2001 7:26 AM
To: Php-General
Subject: [PHP] Image header problems
I want to generate an image using the following code, and think it should have worked. Unfortunately I get an error message saying the header info has already been sent, and the browser (IE5) doesn't print a picture just the characterset representing the picture. I think I've got it right, but obviously, I don't. Any help will be greatly appreciated.
1. 2. 3. <?php 4. print "jpeg format<br>"; 5. header("content-type: image/jpeg",replace); 6. $image=imagecreate(200,200); 7. $red=imagecolorallocate($image,255,0,0); 8. $blue=imagecolorallocate($image,0,0,255); 9. imagearc($image,99,99,180,180,0,360,$blue); 10. imagefill($image,99,99,$blue); 11. imagejpeg($image);
?> <html> <body>
<img src="test.php" alt="a php generated image"> </body> </html>
what I get is the following:
Warning: Cannot add header information - headers already sent by (output started at /www/ironorchid/stocks/test.php:3) in /www/ironorchid/stocks/test.php on line 5 ÿØÿàJFIFÿþ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), ...
A printout of the jpeg file (I think) and a broken link icon.
attached mail follows:
you didn't examine my code well enough.
line 1 is where PHP starts... <?php line 2 and 3 are empty and will cause nothing... line 4 is commented...
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim
phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Hugh Danaher [mailto:hdanaher
earthlink.net]
Sent: Friday, August 10, 2001 5:43 PM
To: Maxim Maletsky
Cc: Php-General
Subject: Re: [PHP] Image header problems
Thanks for your help. Someone earlier caught the same error which was a
print call before the header. But in addition to removing line 4, I had to
remove lines 2 and 3 too. Even though they were empty, they also called the
browser and stopped the execution of the code.
Thanks again.
Hugh
----- Original Message -----
From: Maxim Maletsky <maxim
japaninc.com>
To: 'Hugh Danaher' <hdanaher
earthlink.net>; Php-General
<php-general
lists.php.net>
Sent: Thursday, August 09, 2001 6:04 PM
Subject: RE: [PHP] Image header problems
make it look this way:
1. <?php 2. 3. 4. # print "jpeg format<br>"; 5. header("content-type: image/jpeg",replace); 6. $image=imagecreate(200,200); 7. $red=imagecolorallocate($image,255,0,0); 8. $blue=imagecolorallocate($image,0,0,255); 9. imagearc($image,99,99,180,180,0,360,$blue); 10. imagefill($image,99,99,$blue); 11. imagejpeg($image); 12. ?>
The problem are outputs before header();
Yoroshiku, Maxim Maletsky
-----Original Message-----
From: Hugh Danaher [mailto:hdanaher
earthlink.net]
Sent: Friday, August 10, 2001 7:26 AM
To: Php-General
Subject: [PHP] Image header problems
I want to generate an image using the following code, and think it should have worked. Unfortunately I get an error message saying the header info has already been sent, and the browser (IE5) doesn't print a picture just the characterset representing the picture. I think I've got it right, but obviously, I don't. Any help will be greatly appreciated.
1. 2. 3. <?php 4. print "jpeg format<br>"; 5. header("content-type: image/jpeg",replace); 6. $image=imagecreate(200,200); 7. $red=imagecolorallocate($image,255,0,0); 8. $blue=imagecolorallocate($image,0,0,255); 9. imagearc($image,99,99,180,180,0,360,$blue); 10. imagefill($image,99,99,$blue); 11. imagejpeg($image);
?> <html> <body>
<img src="test.php" alt="a php generated image"> </body> </html>
what I get is the following:
Warning: Cannot add header information - headers already sent by (output started at /www/ironorchid/stocks/test.php:3) in /www/ironorchid/stocks/test.php on line 5 ÿØÿàJFIFÿþ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), ...
A printout of the jpeg file (I think) and a broken link icon.
attached mail follows:
When I first posted my question I had 2 blank lines above the <?php call, and those were the two lines I needed to remove. Thank you again though for responding to my question. Without experienced programmers like you, us newbies would still be in the dark. Now my next hurtle: I can generate a .jpg image, I just can't seem to get it inserted into a page that is otherwise php generated text and tables. I think I'll get it eventually, but for now it is a puzzlement. Hugh
----- Original Message -----
From: Maxim Maletsky <maxim
japaninc.com>
To: 'Hugh Danaher' <hdanaher
earthlink.net>
Cc: Php-General <php-general
lists.php.net>
Sent: Friday, August 10, 2001 1:46 AM
Subject: RE: [PHP] Image header problems
you didn't examine my code well enough.
line 1 is where PHP starts... <?php line 2 and 3 are empty and will cause nothing... line 4 is commented...
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim
phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Hugh Danaher [mailto:hdanaher
earthlink.net]
Sent: Friday, August 10, 2001 5:43 PM
To: Maxim Maletsky
Cc: Php-General
Subject: Re: [PHP] Image header problems
Thanks for your help. Someone earlier caught the same error which was a
print call before the header. But in addition to removing line 4, I had to
remove lines 2 and 3 too. Even though they were empty, they also called the
browser and stopped the execution of the code.
Thanks again.
Hugh
----- Original Message -----
From: Maxim Maletsky <maxim
japaninc.com>
To: 'Hugh Danaher' <hdanaher
earthlink.net>; Php-General
<php-general
lists.php.net>
Sent: Thursday, August 09, 2001 6:04 PM
Subject: RE: [PHP] Image header problems
make it look this way:
1. <?php 2. 3. 4. # print "jpeg format<br>"; 5. header("content-type: image/jpeg",replace); 6. $image=imagecreate(200,200); 7. $red=imagecolorallocate($image,255,0,0); 8. $blue=imagecolorallocate($image,0,0,255); 9. imagearc($image,99,99,180,180,0,360,$blue); 10. imagefill($image,99,99,$blue); 11. imagejpeg($image); 12. ?>
The problem are outputs before header();
Yoroshiku, Maxim Maletsky
-----Original Message-----
From: Hugh Danaher [mailto:hdanaher
earthlink.net]
Sent: Friday, August 10, 2001 7:26 AM
To: Php-General
Subject: [PHP] Image header problems
I want to generate an image using the following code, and think it should have worked. Unfortunately I get an error message saying the header info has already been sent, and the browser (IE5) doesn't print a picture just the characterset representing the picture. I think I've got it right, but obviously, I don't. Any help will be greatly appreciated.
1. 2. 3. <?php 4. print "jpeg format<br>"; 5. header("content-type: image/jpeg",replace); 6. $image=imagecreate(200,200); 7. $red=imagecolorallocate($image,255,0,0); 8. $blue=imagecolorallocate($image,0,0,255); 9. imagearc($image,99,99,180,180,0,360,$blue); 10. imagefill($image,99,99,$blue); 11. imagejpeg($image);
?> <html> <body>
<img src="test.php" alt="a php generated image"> </body> </html>
what I get is the following:
Warning: Cannot add header information - headers already sent by (output started at /www/ironorchid/stocks/test.php:3) in /www/ironorchid/stocks/test.php on line 5 ÿØÿàJFIFÿþ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), ...
A printout of the jpeg file (I think) and a broken link icon.
attached mail follows:
Hello! boss, It started session. But i didn't close the session. I tried to login again. But it is giving authorization required. It is not allowing for loggin in again because of session. What i have to do.
Thanks and regards -Balu
----- Original Message ----- From: Yamin Prabudy To: Balaji Ankem Sent: Friday, August 10, 2001 12:38 PM Subject: Re: Help required on creating session
say you have a form that input the username in the top of the file before the <html> just put the <? session_start(); session_register(username); ?> that's goes the first page... in the next page you can do this
<? session_start(); echo $username; ?>
you must have you username display there
----- Original Message -----
From: Balaji Ankem
To: Yamin Prabudy
Cc: php-general
lists.php.net
Sent: Friday, August 10, 2001 1:16 PM
Subject: Help required on creating session
Hi! friends, i also want this feature.
Can u tell me how to start a session whenever the user logged in and how to end session after logout.
where i have to give these function names... session_start(); session_register(username);
Thanks in advance.
Regards
-Balaji
----- Original Message -----
From: Yamin Prabudy
To: php-general
lists.php.net
Sent: Friday, August 10, 2001 10:02 AM
Subject: [PHP] HELP...session
Hi there I need help about session
see i have a page (index.php) that used this session_start(); session_register(username); and i got input username
after the submit button is click i move into a frame pages......
then in the frame i define again session_start(); for each frame...i got two frame...... i intended to parse the username into my frame...but got nothing i intended to parse the username all over the pages (in frame) until he/she log out
can anyone help me with it
Thanks in Advance
Yamin Prabudy
- text/plain attachment: Wipro_Disclaimer.txt
attached mail follows:
at first: thank you for your answer.
but I'm not sure what you've meant, with "I'm betting there's code in the code archives to show you how"
Have you any ideas to do that????
May be through the CURL function??? (http://www.php.net/manual/de/ref.curl.php)
In fact, I realy dont know. If you can, please help me out ;)
10x!
Tribun
--- mp3o.net"Richard Lynch" <ceo
l-i-e.com> schrieb im Newsbeitrag news:04da01c1211b$ecdb1960$6401a8c0
Lynchux100... > Yahoo *might* be "detecting" that you're not a "real" browser, since PHP > probably sends different headers when you attempt to get the file > dynamically than your browser sends when you type the URL. > > So Yahoo may be denying you access when using PHP, but not from your > browser. > > There's nothing to stop you from writing some extra code and talking > directly to their server and lying to them about what browser you are, > however. I'm betting there's code in the code archives to show you how. > > -- > WARNING richard
zend.com address is an endangered species -- Use > ceo
l-i-e.com > 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: Tribun <mail
tribun.de> > Newsgroups: php.general > To: <php-general
lists.php.net> > Sent: Thursday, August 09, 2001 4:33 AM > Subject: how 2 read an non-existing file?! (I need help) > > > > the following problem: > > > > I want to read out, if the firstname is a boy's name or a girl's name... > > > > therefore I've written this code: (which allready works) > > > > ------------------ <snap> ------------------- > > > > > $fp=fopen('http://www.vornamenlexikon.de/main/suchen.asp?kriterium=search&B1 > > =Suchen&action=searchnow&searchby='.$name,"r"); > > if($fp){ > > $daten=fread($fp,100000); > > fclose($fp); > > $male='/m.gif'; > > $female='/w.gif'; > > if((strpos($daten,$female)>0)&&(strpos($daten,$male)>0)){ > > if(strpos($daten,$male)>strpos($daten,$female))$result='w'; > > else $result='m'; > > }else if(strpos($daten,$female)>0)$result='w'; > > else if(strpos($daten,$male)>0)$result='m'; > > } > > if(empty($result)){ > > > > > $fp=fopen('http://www.kindername.de/'.strtolower(substr($name,0,1)).'-namen. > > htm',"r"); > > if($fp){ > > $namen=array(); > > $daten=fread($fp,100000); > > fclose($fp); > > > > $daten=strstr($daten,'<font size="4" face="Verdana, Arial, Helvetica, > > sans-serif"><B>VORNAMEN MIT'); > > for($cnt=0;strpos($daten,'<tr>')>0;$cnt++){ > > $daten=substr(strstr($daten,'<tr>'),4); > > $tag=substr($daten,0,strpos($daten,'</tr>')); > > if(strpos($tag,'</td>')>0){ > > $x1=substr(strstr($tag,'<td>'),4); > > while(strpos($x1,' ')>0)$x1=str_replace(' ',' ',$x1);//TAB > > while(strpos($x1,' ')>0)$x1=str_replace(' ',' ',$x1);//DBLSPACE > > $x1=trim($x1); > > for($i=1;strpos($x1,'<td>')>0;$i++){ > > > > $field=strtolower(trim(strip_tags(substr($x1,0,strpos($x1,'</td>'))))); > > if($i==1)$namen[$cnt]=array($field); > > else if($i==2)$namen[$cnt]['gender']=trim($field); > > else if($i==3){ > > while(strpos($field,',')>0){ > > array_push($namen[$cnt],substr($field,0,strpos($field,','))); > > $field=substr(strstr($field,','),1); > > } > > array_push($namen[$cnt],$field); > > }else if($i==4){ > > if(in_array($name,$namen[$cnt]))$result=$namen[$cnt]['gender']; > > } > > $x1=substr(strstr($x1,'<td>'),4); > > } } } } } > > ------------------ </snap> ------------------- > > > > This code works, but I wanted to include another Datebase (Yahoo) > > > > So I included this function: > > > > ------------------ <snap> ------------------- > > $fp=
fopen('http://babynames.pregnancy.yahoo.com/bnfname?n='.$name,"r"); > > if($fp){ > > $daten=fread($fp,10000); > > fclose($fp); > > $male='boy'; > > $female='girl'; > > if((strpos($daten,$female)>0)&&(strpos($daten,$male)>0)){ > > if(strpos($daten,$male)>strpos($daten,$female))$result='w'; > > else $result='m'; > > }else if(strpos($daten,$female)>0)$result='w'; > > else if(strpos($daten,$male)>0)$result='m'; > > } > > ------------------ </snap> ------------------- > > > > But this code has no effect. It returns only an Error (404) > > > > The reason therefore is, that the targetting URL does'nt > > exist: > > > > Try this URL's > > > > http://babynames.pregnancy.yahoo.com/bnfname?n=Patrick > > or > > http://babynames.pregnancy.yahoo.com/bnfname.htm?n=Patrick > > http://babynames.pregnancy.yahoo.com/bnfname.?n=Patrick > > http://babynames.pregnancy.yahoo.com/bnfnameBLABLA?n=Patrick > > > > In a Browser its not nessesary to type in the correct Name > > "bnfname". So you can add what ever you want, but the result > > is the same (it works) > > > > But the problem is, to downloading this file, because then the reason > > is an 404-Error (not existing) > > > > Does anybody know an answer to this problem??? > > > > How can I download this file anyway... and read out the information > > I want? > > > > > > > > Thanks, > > Tribun (Patrick) > > --- > > www.mp3o.net > > > > > > PS: I know. its not the best english ;) > > > > > > >
attached mail follows:
Warning: Cannot send session cache limiter - headers already sent (output started at c:\www\authentication.php:2) in c:\www\authentication.php on line 38
----- Original Message -----
From: Yamin Prabudy
To: Balaji Ankem ; php-general
lists.php.net
Sent: Friday, August 10, 2001 2:26 PM
Subject: [PHP] Re: problem with session start
OK i can see your problem.... you are using windows..... then in the php.ini you must set where to put the session file..... it's somewhere around with line like this
session.save_path = /tmp change it to something like session.save_path = c:\tmp of cause you must make the tmp directory first
good luck
Yamin Prabudy
----- Original Message -----
From: Balaji Ankem
To: php-general
lists.php.net
Cc: Yamin Prabudy
Sent: Friday, August 10, 2001 3:10 PM
Subject: problem with session start
Hi! friend, i got the following error when i am goint to start a session.
This is the file. and i got the following errors.
Warning: open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m (2) in c:\www\login.php on line 2 Warning: open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
login.php
<?php session_start(); session_register(emp_id); ?>
<html> <head> <SCRIPT language="Javascript">
function check(){
if (document.login.emp_id.value=='') { alert('Please enter your employee number'); document.issue.emp_id.focus(); return false;
}
else if(document.login.emp_pass.value=='') { alert("Please enter the password"); document.issue.emp_pass.focus(); return false; } else { document.login.method = "POST"; document.login.action="http://10.145.2.23/authentication.php"; document.login.submit(); return true; } } </script> </head>
<body text="arial" background="imacbg1.gif" ONLOAD="document.login.emp_id.focus()"> <font face="arial" > <center> <h1> WELCOME TO IMAC TOOL </h1></center> <center> <img SRC="logo.gif" height=100 width=100></img> <pre> <form name="login" > <b>Employee No:</b> <input type="text" size="10" name="emp_id" maxlength="10" value=""><br> <b>Password :</b> <input type="password" size="10" name="emp_pass" maxlength="10" value=""><br> <input type="button" Value="LOGIN" OnClick="check();"> </form> </pre> </center> </font> </body></html>
- text/plain attachment: Wipro_Disclaimer.txt
attached mail follows:
On Fri, Aug 10, 2001 at 02:44:09PM +0530, Balaji Ankem wrote: > > Warning: Cannot send session cache limiter - headers already sent (output started at c:\www\authentication.php:2) in c:\www\authentication.php on line 38 >
I don't know what's in authentication.php, but I do know that -like the warningmsg says- you try to send headers while on line 2 you've already sent some output (echo, print, whatever). You'll have to put the session_start() before your output.
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
Hi,
What Renze Munnik said is absolutely right. U r trying to send headers after outputing something.
So u either have to write ur code before outputing anything or if u want to keep ur code like that only, but still want it to work, go to php.ini and change the settings for output_buffering.
Karthik.
----- Original Message -----
From: Balaji Ankem
To: Yamin Prabudy
Cc: php-general
lists.php.net
Sent: Friday, August 10, 2001 2:44 PM
Subject: [PHP] plz check the warning message
This document contains frames, which cannot be edited. The original document is attached.
------------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
For additional commands, e-mail: php-general-help
lists.php.net
To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Message-ID: <02cc01c12188$933864e0$1702910a
wipro.com>
From: "Balaji Ankem" <balaji.ankem
wipro.com>
To: "Renze Munnik" <renze
datalink.nl>
Cc: <php-general
lists.php.net>
Date: Fri, 10 Aug 2001 16:08:19 +0530
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="------------InterScan_NT_MIME_Boundary"
Subject: Re: [PHP] plz check the warning message
--------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----=_NextPart_000_02C9_01C121B6.AC166D80"
------=_NextPart_000_02C9_01C121B6.AC166D80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi, munnik,
thankyou for u'r help.
I am getting the following warning while closing session.
Warning: Trying to destroy uninitialized session in c:\www\logout.php on line 3 session closed for 85744
Plz do the needful. I am sending the following files.
logout.php
<?php session_unregister(emp_id); session_destroy(); echo "session closed for $emp_id"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Thankyou </TITLE>
<meta http-equiv="Expires" CONTENT="0"> <meta http-equiv="Cache-Control" CONTENT="no-cache"> <meta http-equiv="Pragma" CONTENT="no-cache">
</HEAD>
<BODY background="nightsky.gif" text="white">
<p>
<center><h1>THANKYOU FOR USING IMAC TOOL</h1></center><br><br> <center> <h3>Do you want to login again?</h3><a href="login.php">clickhere</a> </center>
</p> </BODY> </HTML>
Authentication.php <?php header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache");
// Connect to MySQL
mysql_connect( 'localhost', 'balaji', 'pingpong' ) or die ( 'Unable to connect to server.' );
// Select database on MySQL server
mysql_select_db( 'imac' ) or die ( 'Unable to select database.' );
// Formulate the query
$sql = "SELECT * FROM employee WHERE emp_id = '$emp_id' AND emp_pass = '$emp_pass'";
// Execute the query and put results in $result
$result = mysql_query( $sql ) or die ( 'Unable to execute query.' );
// Get number of rows in $result.
$num = mysql_numrows( $result );
if ( $num != 0 ) {
// A matching row was found - the user is authenticated.
$auth = true; session_start(); session_register(emp_id);
$row = mysql_fetch_object($result);
if ($row->user_type=='S') { include('super.php');
} else if ($row->user_type=='O') { include('ordinary.php');
} }
else { file://User does not exist or not authenticated. echo '<center><h1>Authorization Required.</h1></center>'; header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); exit; }
?>
Thanks in advance
With warm Regards -Balaji
----- Original Message -----
From: Renze Munnik
To: Balaji Ankem ; Yamin Prabudy
Cc: php-general
lists.php.net
Sent: Friday, August 10, 2001 2:49 PM
Subject: Re: [PHP] plz check the warning message
On Fri, Aug 10, 2001 at 02:44:09PM +0530, Balaji Ankem wrote: > > Warning: Cannot send session cache limiter - headers already sent (output started at c:\www\authentication.php:2) in c:\www\authentication.php on line 38 >
I don't know what's in authentication.php, but I do know that -like the warningmsg says- you try to send headers while on line 2 you've already sent some output (echo, print, whatever). You'll have to put the session_start() before your output.
--
* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: renze
datalink.nl
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
For additional commands, e-mail: php-general-help
lists.php.net
To contact the list administrators, e-mail: php-list-admin
lists.php.net
------=_NextPart_000_02C9_01C121B6.AC166D80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=4>Hi, munnik,</FONT></DIV>
<DIV> </DIV>
<DIV> thankyou for u'r help.</DIV>
<DIV> </DIV>
<DIV>I am getting the following warning while closing session.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=5><STRONG>Warning: Trying to destroy uninitialized session in
c:\www\logout.php on line 3<BR>session closed for 85744<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> </STRONG>
<META content=0 http-equiv=Expires>
<META content=no-cache http-equiv=Cache-Control>
<META content=no-cache http-equiv=Pragma></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Plz do the needful. I am sending the following files.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=4><U>logout.php</U></FONT></DIV>
<DIV> </DIV>
<DIV><FONT
size=4><?php<BR>session_unregister(emp_id);<BR>session_destroy();<BR>echo
"session closed for $emp_id";<BR>?><BR><!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 3.2 Final//EN"><BR><HTML><BR><HEAD><BR><TITLE>Thankyou
</TITLE></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> <meta http-equiv="Expires" CONTENT="0"><BR>
<meta http-equiv="Cache-Control" CONTENT="no-cache"><BR> <meta
http-equiv="Pragma" CONTENT="no-cache"></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=4></HEAD></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4><BODY background="nightsky.gif"
text="white"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> <p></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> <center><h1>THANKYOU FOR USING IMAC
TOOL</h1></center><br><br><BR> <center>
<h3>Do you want to login again?</h3><a
href="login.php">clickhere</a> </center></FONT></DIV>
<DIV> </DIV>
<DIV><FONT
size=4> </p><BR> </BODY><BR> </HTML><BR></FONT></DIV>
<DIV><FONT size=4><U>Authentication.php</U></FONT></DIV>
<DIV><FONT size=4><?php<BR>header ("Cache-Control: no-cache,
must-revalidate");<BR>header ("Pragma: no-cache");</FONT></DIV>
<DIV> </DIV>
<DIV><BR><FONT size=4> // Connect to MySQL</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> mysql_connect( 'localhost', 'balaji',
'pingpong' )<BR> or die ( 'Unable to
connect to server.' );</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> // Select database on MySQL
server</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> mysql_select_db( 'imac'
)<BR> or die ( 'Unable to select
database.' );</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> // Formulate the query</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> $sql = "SELECT * FROM employee
WHERE<BR>
emp_id = '$emp_id' AND emp_pass = '$emp_pass'";</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> // Execute the query and put results in
$result</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> $result = mysql_query( $sql
)<BR> or die ( 'Unable to execute
query.' );</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> // Get number of rows in
$result.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> $num = mysql_numrows( $result
);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> if ( $num != 0 ) {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> // A matching row
was found - the user is authenticated.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> $auth =
true;<BR>
session_start();<BR>
session_register(emp_id);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> $row =
mysql_fetch_object($result);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> if
($row->user_type=='S')<BR> {<BR>
include('super.php');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> }<BR> else if
($row->user_type=='O')<BR> {<BR> include('ordinary.php');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> }<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4> else<BR> {<BR> <A
href="file://User">file://User> does not exist or not
authenticated.<BR> echo '<center><h1>Authorization
Required.</h1></center>';<BR> header(
'WWW-Authenticate: Basic realm="Private"' );<BR> header(
'HTTP/1.0 401 Unauthorized'
);<BR> exit;<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4>?></FONT></DIV>
<DIV> </DIV>
<DIV><BR><FONT size=4>Thanks in advance</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=4>With warm Regards</FONT></DIV>
<DIV><FONT size=4>-Balaji</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:renze
datalink.nl" title=renze
datalink.nl>Renze Munnik</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:balaji.ankem
wipro.com" title=balaji.ankem
wipro.com>Balaji
Ankem</A> ; <A href="mailto:phplist
pro.net.id" title=phplist
pro.net.id>Yamin
Prabudy</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
href="mailto:php-general
lists.php.net"
title=php-general
lists.php.net>php-general
lists.php.net</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, August 10, 2001 2:49
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [PHP] plz check the warning
message</DIV>
<DIV><BR></DIV>On Fri, Aug 10, 2001 at 02:44:09PM +0530, Balaji Ankem
wrote:<BR>> <BR>> Warning: Cannot send session cache limiter - headers
already sent (output started at c:\www\authentication.php:2) in
c:\www\authentication.php on line 38<BR>> <BR><BR><BR>I don't know what's
in authentication.php, but I do know that -like<BR>the warningmsg says- you
try to send headers while on line 2 you've<BR>already sent some output (echo,
print, whatever).<BR>You'll have to put the session_start() before your
output.<BR><BR>-- <BR><BR>* R&zE:<BR><BR>-- »»»»»»»»»»»»»»»»»»»»»»»»<BR>--
Renze Munnik<BR>-- DataLink BV<BR>--<BR>-- E: <A
href="mailto:renze
datalink.nl">renze
datalink.nl</A><BR>-- W: +31 23
5326162<BR>-- F: +31 23 5322144<BR>-- M: +31 6 21811143<BR>-- H: +31 23
5516190<BR>--<BR>-- Stationsplein 82<BR>-- 2011 LM HAARLEM<BR>--<BR>--
<A href="http://www.datalink.nl">http://www.datalink.nl><BR>--
««««««««««««««««««««««««<BR><BR>-- <BR>PHP General Mailing List (<A
href="http://www.php.net/)">http://www.php.net/)</A><BR>To unsubscribe,
e-mail: <A
href="mailto:php-general-unsubscribe
lists.php.net">php-general-unsubscribe
lists.php.net</A><BR>For
additional commands, e-mail: <A
href="mailto:php-general-help
lists.php.net">php-general-help
lists.php.net</A><BR>To
contact the list administrators, e-mail: <A
href="mailto:php-list-admin
lists.php.net">php-list-admin
lists.php.net</A><BR></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_02C9_01C121B6.AC166D80--
--------------InterScan_NT_MIME_Boundary Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt"
-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro Limited and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin
wipro.com and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------
--------------InterScan_NT_MIME_Boundary--
attached mail follows:
On Fri, Aug 10, 2001 at 04:08:19PM +0530, Balaji Ankem wrote: > Hi, munnik, > > thankyou for u'r help. > > I am getting the following warning while closing session. > > > Warning: Trying to destroy uninitialized session in c:\www\logout.php on line 3 > session closed for 85744 > > > Plz do the needful. I am sending the following files. > > > > logout.php > > <?php > session_unregister(emp_id); > session_destroy(); > echo "session closed for $emp_id"; > ?> > <!DOCTYPE (...) > (...) </HTML> >
I just gave a quick look, but I think you forgot (or didn't know to) add session_start() to your code. So it will be:
<?php session_start(); /* <-- This is it! */ session_unregister(emp_id); session_destroy(); echo "session closed for $emp_id"; ?> <!DOCTYPE (...) (...) </HTML>
Otherwise you don't have any session to destroy...
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
Hi, Munnik, I am starting the session if authentication is successful and i am closing the session whenever user click on logout button. Here in my case authentication is succesfull and session is started. And i checked the c:\tmp directory. session file is there. But it is not closing the session without starting a session again before closing. I did as u told it works perfect. Thanks alot. Why we have to start again another session before closing.
One more doubt..after logging out (it closed the session) and i pressed the back button in browser It has given Warning.page expired. I pressed Refresh button It asked do u want to repost the values again. I pressed retry button. It posted the values again and created session again...
Is there anyway to restrict the reposting?? Means after pressing logout button we shouldn't allow the user to go back or reposting the data again and getting session again.
Thanks and Regards -Balu
----- Original Message -----
From: Renze Munnik
To: Balaji Ankem
Cc: php-general
lists.php.net
Sent: Friday, August 10, 2001 4:13 PM
Subject: Re: [PHP] plz check the warning message
On Fri, Aug 10, 2001 at 04:08:19PM +0530, Balaji Ankem wrote: > Hi, munnik, > > thankyou for u'r help. > > I am getting the following warning while closing session. > > > Warning: Trying to destroy uninitialized session in c:\www\logout.php on line 3 > session closed for 85744 > > > Plz do the needful. I am sending the following files. > > > > logout.php > > <?php > session_unregister(emp_id); > session_destroy(); > echo "session closed for $emp_id"; > ?> > <!DOCTYPE (...) > (...) </HTML> >
I just gave a quick look, but I think you forgot (or didn't know to) add session_start() to your code. So it will be:
<?php session_start(); /* <-- This is it! */ session_unregister(emp_id); session_destroy(); echo "session closed for $emp_id"; ?> <!DOCTYPE (...) (...) </HTML>
Otherwise you don't have any session to destroy...
--
* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: renze
datalink.nl
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
For additional commands, e-mail: php-general-help
lists.php.net
To contact the list administrators, e-mail: php-list-admin
lists.php.net
- text/plain attachment: Wipro_Disclaimer.txt
attached mail follows:
On Fri, Aug 10, 2001 at 04:42:48PM +0530, Balaji Ankem wrote: > Hi, Munnik, > I am starting the session if authentication is successful and i am closing the session whenever user click on logout button. > Here in my case authentication is succesfull and session is started. And i checked the c:\tmp directory. session file is there. > But it is not closing the session without starting a session again before closing. > I did as u told it works perfect. Thanks alot. > Why we have to start again another session before closing.
Well... you don't actualy start another session before closing. The call to session_start() starts a session or resumes one:
=====[ PHP Manual ]=====
"session_start() creates a session (or resumes the current one based on the session id being passed via a GET variable or a cookie)."
=====[ end ]=====
> > One more doubt..after logging out (it closed the session) and i pressed the back button in browser It has given > Warning.page expired. I pressed Refresh button It asked do u want to repost the values again. I pressed retry button. It posted the values again and created session again... > > Is there anyway to restrict the reposting?? Means after pressing logout button we shouldn't allow the user to go back or reposting the data again and getting session again.
I don't know (yet)... I'm gonna try to find out. I'll let you know.
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
On Fri, Aug 10, 2001 at 04:42:48PM +0530, Balaji Ankem wrote: > Is there anyway to restrict the reposting?? Means after pressing > logout button we shouldn't allow the user to go back or reposting > the data again and getting session again.
Okay... I've figured out two 'solutions'. But... I must say: They're not pretty. Actually you can't prevent it. But:
Option 1 -------- You can set a cookie after logging in. The authorization page should check for that cookie. It should not exist in order to login. The login page (where one gives his username/password) should remove that cookie if it exists. This is, though, a _very_ ugly solution and using cookies for security isn't realy the best thing to do. So actually I wouldn't encourage you to use this.
Option 2 -------- Another solution is to redirect to a different page. I created the following example:
=====[ PHP code ]===== // File: login.php <HTML> <HEAD> <TITLE>Login Test</TITLE> </HEAD> <BODY> <FORM method="post" action="submit-login.php"> <INPUT type="text" name="firstname"> <INPUT type="text" name="lastname"> <BR> <INPUT type="submit"> </FORM> </BODY> </HTML>
// File: submit-login.php <? /* Here you should do things with the provided data... For the example I only write it to the log. */ error_log ("Firstname: $firstname", 0); error_log ("Lastname: $lastname", 0);
/* Here's where you redirect */ header ("Location: logged-in.php"); ?>
// File: logged-in.php /* Whatever you want! */
=====[ end of code ]=====
After pushing the submit-button, the data will be submitted to submit-login.php. There you handle the login-procedure. After that, you automatically redirect to a different page (logged-in.php in my example). That's you you show eg 'You are logged in now'. If you reload that page, nothing realy happens. If you push 'Back', you end up on login.php again.
Uptil now this is the best option I've come up with.
Hope it works for what you had in mind.
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
That is correct, if you dont want it run it as an ISAPI module.
Bolke
-----Oorspronkelijk bericht-----
Van: Tribun [mailto:mail
tribun.de]
Verzonden: Friday, August 10, 2001 10:24 AM
Aan: php-general
lists.php.net
Onderwerp: [PHP] PHP.exe EAT's my win resources... (!)
Tach!
Is that correct, that my php.exe opens each time when a user access a page (e.g. on my intranet-page) ??
Is there no way to say php.exe to run only one time and compile the files through this instance???
I've designed a intranet-platform for LAN-parties and at our last one, there were 505 guys, and ~30 accessed my pages at the same time, so the 2 gig-ram high-end-power PC was to slow to return the queries whitin the 180 sec. timeout...
(excause my bad english ;)
I hope, someone knows an answer...
10x !
Tribun
--- www.mp3o.netPS: the LAN-Party's HomePage is called: www.lankoeln.com (may be some other germans from cologne read this ;)
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hmm...Maybe because you're installing PHP as CGI. ISAPI runs fast only only once as you want. But it's not really stable.
"Tribun" <mail
tribun.de> wrote in message
news:20010810082611.50194.qmail
pb1.pair.com...
> Tach!
>
> Is that correct, that my php.exe opens each time when a user access a page
> (e.g. on my intranet-page) ??
>
> Is there no way to say php.exe to run only one time and compile the files
> through this instance???
>
> I've designed a intranet-platform for LAN-parties and at our last one,
there
> were 505 guys, and ~30 accessed my pages at the same time, so the 2
gig-ram
> high-end-power PC was to slow to return the queries whitin the 180 sec.
> timeout...
>
> (excause my bad english ;)
>
> I hope, someone knows an answer...
>
> 10x !
>
> Tribun
> ---
> www.mp3o.net
>
>
> PS: the LAN-Party's HomePage is called: www.lankoeln.com
> (may be some other germans from cologne read this ;)
>
>
attached mail follows:
Depends for what you are using it.
I'm having a PHP module as an ISAPI module in production use here for use as a Quicken OFX server. I haven't had much trouble with it and its running stable for 6 months now.
Bolke
-----Oorspronkelijk bericht-----
Van: elias [mailto:elias_bachaalany
yahoo.com]
Verzonden: Friday, August 10, 2001 1:49 PM
Aan: php-general
lists.php.net
Onderwerp: [PHP] Re: PHP.exe EAT's my win resources... (!)
Hmm...Maybe because you're installing PHP as CGI. ISAPI runs fast only only once as you want. But it's not really stable.
"Tribun" <mail
tribun.de> wrote in message
news:20010810082611.50194.qmail
pb1.pair.com...
> Tach!
>
> Is that correct, that my php.exe opens each time when a user access a page
> (e.g. on my intranet-page) ??
>
> Is there no way to say php.exe to run only one time and compile the files
> through this instance???
>
> I've designed a intranet-platform for LAN-parties and at our last one,
there
> were 505 guys, and ~30 accessed my pages at the same time, so the 2
gig-ram
> high-end-power PC was to slow to return the queries whitin the 180 sec.
> timeout...
>
> (excause my bad english ;)
>
> I hope, someone knows an answer...
>
> 10x !
>
> Tribun
> ---
> www.mp3o.net
>
>
> PS: the LAN-Party's HomePage is called: www.lankoeln.com
> (may be some other germans from cologne read this ;)
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Dear Sir
I had installed phakt into my Ultradev, but when i modify the connect of the database on mysql, it prompts me the message as follow: "org/git/mm/mysql/driver" "Class not found", could you tell me what is the most likely is? I had try to use my computer to connect to the mysql in my server, it works! but i couldn't do it inside ultradev. I had set the application server to PHP4 already and the os which containing the MYSQL Server is Windows NT server 4.0 with service pack 5! Is there anything i got to download to fix this problem!!
I'm working this for my company's project, so could you pls send tell to me??
thx
jack
jack
nedcor.com
attached mail follows:
> > I made a system in php and mysql for a corp. > > This system controls the payment of the customers, so i need to print > > the quote of each payment. Is there anyway to do this with php? > > I mean.. Printing quotes from a web browser, besides that i also need > > something to print from this system, but in this case the monthly > > resume of each customer's account. > > >Using PHP you can't print client-side. Either the user should press >the print-button (just like elias already mentioned), or you should >use JavaScript (window.print()).
That's going to be fun if you need to create say 200 reports.. :-)
Lucky you.. a tool exists to pull data out of a MySQL database..
Do a search for.. report or reportgenerator or something like that on the mysql list archive. It's found here: http://lists.mysql.com/ Your question has been answered there..
Bye,
B.
attached mail follows:
Hello php-general,
I was thinking about my problem about printing reports CAn i do something like connecting a printer to the server where php and mysql runs.. And when someone send the comand to print the quote get printed in the server's printer? if it's posible maybe i will be albe to print a good quote
-- Best regards, Fernando mailto:fanointer-k.com.ar
attached mail follows:
If you run windows, then see:
http://www.php.net/manual/en/ref.printer.php
-----Original Message-----
From: Fernando Avila [mailto:fano
inter-k.com.ar]
Sent: Friday, August 10, 2001 10:18 AM
To: php-general
lists.php.net
Subject: [PHP] printing
Hello php-general,
I was thinking about my problem about printing reports CAn i do something like connecting a printer to the server where php and mysql runs.. And when someone send the comand to print the quote get printed in the server's printer? if it's posible maybe i will be albe to print a good quote
-- Best regards, Fernando mailto:fanointer-k.com.ar
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi,
I don't know that this will help you but the /org/git/mm/mysql/driver is a JDBC driver for mysql. It is used if you want to connect in Java through JDBC to Mysql. Is ultradev trying to connect through java (jdbc) to mysql????
If yes than you can download it from:http://mmmysql.sourceforge.net/ From this point you are on your own because i have never used ultradev. I think you have to put the jar you download in your CLASSPATH.
BW,
Andras.
Original message:
Dear Sir
I had installed phakt into my Ultradev, but when i modify the connect of the database on mysql, it prompts me the message as follow: "org/git/mm/mysql/driver" "Class not found", could you tell me what is the most likely is? I had try to use my computer to connect to the mysql in my server, it works! but i couldn't do it inside ultradev. I had set the application server to PHP4 already and the os which containing the MYSQL Server is Windows NT server 4.0 with service pack 5! Is there anything i got to download to fix this problem!!
I'm working this for my company's project, so could you pls send tell to me??
thx
jack
jack
nedcor.com
attached mail follows:
Hi
I am using HTTP authorisation to allow users to log in to vew specific pages. What can I use for log off?.
I tried using header ("HTTP/1.0 401 Unauthorised"); header ("Location: http://www.mysite.com/index.php3");
OR
$PHP_AUTH_USER=0;
but it didn't work.
attached mail follows:
Hi,
As is many cases read the manual: http://www.php.net/manual/en/features.http-auth.php
BW,
Andras.
----- Original Message -----
From: "AJDIN BRANDIC" <abrandic
coventry.ac.uk>
To: <php-general
lists.php.net>
Sent: Friday, August 10, 2001 1:20 PM
Subject: [PHP] Log off
> Hi
>
> I am using HTTP authorisation to allow users to log in to vew specific
pages.
> What can I use for log off?.
>
> I tried using
> header ("HTTP/1.0 401 Unauthorised");
> header ("Location: http://www.mysite.com/index.php3");
>
> OR
>
> $PHP_AUTH_USER=0;
>
> but it didn't work.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Yes I have done so before posting this message. It says that by sending 401 can log off a user. I tried and failed,it still holds u/p. This is why I have posted the message to find if there is a different way of doing it.
code <? if($log=='off') { Header("WWW-authenticate: Basic realm=\"Test\""); Header("HTTP/1.0 401 Unauthorised"); Header("Location: http://www.mysite.com/index.php3"); exit; } ?>
On Fri, 10 Aug 2001, Andras Balogh wrote:
> Hi,
>
> As is many cases read the manual:
> http://www.php.net/manual/en/features.http-auth.php
>
>
> BW,
> Andras.
> ----- Original Message -----
> From: "AJDIN BRANDIC" <abrandic
coventry.ac.uk>
> To: <php-general
lists.php.net>
> Sent: Friday, August 10, 2001 1:20 PM
> Subject: [PHP] Log off
>
>
> > Hi
> >
> > I am using HTTP authorisation to allow users to log in to vew specific
> pages.
> > What can I use for log off?.
> >
> > I tried using
> > header ("HTTP/1.0 401 Unauthorised");
> > header ("Location: http://www.mysite.com/index.php3");
> >
> > OR
> >
> > $PHP_AUTH_USER=0;
> >
> > but it didn't work.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Dear all I had installed a software (PHAKT) into UltraDev, then the application server i used is ASP, and i had create a table on Mysql. Everthing seems works fine, i had test the connection and match all to field to the field of the mysql table! i had create a insert record on the server behavior before i can match the field to the Mysql table! But when i had submit the form, there is error prompts out :
"HTTP Error 405 405 Method Not Allowed The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.
Please contact the server's administrator if this problem persists."
Can anyone tell me what is the most likely problem is??? pls
jack
jack
nedcor.com
attached mail follows:
Hello,
I need to password protect some webpages.... right now its passwords everywhere....
Probably need some cookie based php authentication system where users login once .... Where can I find a simple but good script??
Thanks :) Andras
attached mail follows:
http://www.phpbuilder.com/columns/tim20000505.php3
py
----- Original Message -----
From: "Andras Kende" <info
kende.com>
To: <php-general
lists.php.net>
Sent: Friday, August 10, 2001 6:44 AM
Subject: [PHP] php authentication system
> Hello,
>
> I need to password protect some webpages.... right now its passwords
> everywhere....
>
> Probably need some cookie based php authentication system where users
login
> once ....
> Where can I find a simple but good script??
>
> Thanks :)
> Andras
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
I wrote a script to do that a while ago. You can see it here http://www.zend.com/codex.php?id=393&single=1
Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com
----- Original Message -----
From: Andras Kende <info
kende.com>
To: <php-general
lists.php.net>
Sent: Friday, August 10, 2001 5:44 AM
Subject: [PHP] php authentication system
> Hello,
>
> I need to password protect some webpages.... right now its passwords
> everywhere....
>
> Probably need some cookie based php authentication system where users
login
> once ....
> Where can I find a simple but good script??
>
> Thanks :)
> Andras
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
If you don't care about session timeouts and such, you could always just use HTTP_AUTH
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 x289
smasiello
synacor.com
-----Original Message-----
From: Andras Kende [mailto:info
kende.com]
Sent: Friday, August 10, 2001 6:44 AM
To: php-general
lists.php.net
Subject: [PHP] php authentication system
Hello,
I need to password protect some webpages.... right now its passwords everywhere....
Probably need some cookie based php authentication system where users login once .... Where can I find a simple but good script??
Thanks :) Andras
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
This mail is never sent unsolicited. This is a PostMasterDirect.com mailing !
You Have subscribed to receive this information at ListsUK.
To unsubscribe forward this message to deleteall
postmasterdirect.com
( be sure to forward the ENTIRE message, or it will not unsubscibe you ! )
This Works Like the National Lottery Except It's Much More Fun as you Are GUARANTEED to WIN !
Dear Friend. My name is Tom, in My 2000 my car was repossessed and debt collectors were hounding me like you would not believe ! I lost my job when the shop I worked in went out of business. I was at my wits end and findng it terribly hard to make ends meet. I could not even afford cat litter for my poor cat. In June 2000, my friend recieved a letter from a self made millionaire called David Rhodes from Norfolk, telling her how to EARN £37.000. at a Time.
My friend was sceptical but I was desperate and because I had nothing to lose. I borrowed some money from my Dad and gave it a TRY.
In August I paid my Dad back and went to Spain on hoilday with my friend, paying for both our holidays. In October I brought a brand new house and will be moving very shortly and I will never have to work for any one else again.
I have earned £200.000 to date and will become a millionaire within the next few months. This programme works perfectly every time, I have never failed to receive less than £37.000 from each mailing of 200 LETTERS.
This is a Legitimate Business Opportunitiy not requiring you to sell anything or come into contact with people. Best of all you only have to leave home to post a few letters. This is your lucky break simply follow the instructions below ( estimate to take two to three hours WORK ) you cannot lose ! Without casting a fishing line how do you expect to catch a fish ? Do It ! Surprise yourself. it really does work !
Kindest regards.
T. Roebuck.
Information and Instuctions to Follow Carefully. Follow these six steps EXACTLY ! What have you got to lose ? You have Everything to GAIN.
Step No.1. Send £1.00 to each of the five names and addresses to follow. Sellotape £1.00 coin to a piece of card and write your name and address and these words :- " PLEASE ADD MY NAME and ADDRESS to YOUR MAILING LIST " on the card oe letter. This is Legitimate service for which you are paying.
No.1. R. Hill. The Flat. 67, Barlby Road, London. W10 - 6AW.
No.2. Fred Race. Flat 52. 28a, Seymour Place, London. W1H - 5WJ.
No.3. Peter Bulat. 2a, Clockhouse Mansions, North Circular Road, Palmers Green, London. N13 - 6BG.
No.4. David Breard. 118, Dalgarno Gardens, North Kensington, London. W10 - 6AA.
No.5. Z. Pallaris. 18, Prospero Close, Greenstead, Colchester,, Essex. CO4 - 3SS.
Step No.2. Remove the name that is one on the list and move the others up one place so that No.2 becomes No.1 and then No.3 becomes No.2 and so on. Then place your own name and address in the No.5 position. Alternatively type or print the five names and addresses on a slip of paper and fix it over the existing names and addresses before either photocopying or using a low cost printer that can easily do this or if you have a PC you can do it yourself.
Step No.3. Photocopy or Print 200 copies or more of this letter which by now has your Name and Address in Position No.5.
Step No.4. Buy a Mailing List of Business Opportunity seekers from a Mailing List Broker found in your local newspaper or contact the following Sending s.a.e to :- Lord R Hill Suite 14. 59, Crawford Street, London. W1H - 1HS. 0870 120 7932. Make sure you ask for LIST of Business Opportunitiy Seekers ( buyers only ) This will cost you between £15.00 to £19.00 per 250 names and addresses on stick and peel.
Step No.5. While waiting for your mailing list to arrive place your copies of this letter in a self sealing envelope. Seal them and attach a 2nd class stamp ( never send 1st class stamps ).
Step No.6. When your mailing list arrives place the gummed addressed labels onto the envelopes and post them all. within 60 days you will receive £37.000 in cash GUARANTEED. Keep a copy of this letter so you can use it again and again.
When you have sent out your letters you are Automatically in the Mailing Order Business and people will send you £1.00 to be placed on your mailing list, which you will be compiling. This is Perfectly LEGAL.
We are all just Ordinary people aiming at being financially secure, please play this game faily. Be honest and do unto others as you would have done unto you. Please do not try to short cut the process as benefits will suffer.
Please consider a CHARITY and help others when you are financially secure.
IF EVERYONE RESPONDS WE WILL ALL BE OUT OF DEBT AND HAVE THE MEANS TO STAY OUT OF DEBT FOR EVER.
Now here is the Interesting Part. with a very conservative 7.5% response rate.
When you send out 200 letters 15 people will send you £1, you receive £ 15.00. Those 15 people will mail out 200 letters 225 people will send you £1, you receive £ 225.00. Those 225 people will mail out 200 letters 3,375 people will send you £1, you receive £ 3.375.00. Those 3,375 people will mail out 200 letters 50,625 people will send you £1, you receive £50,625.00.
Total received by you will be £54,240.00.
attached mail follows:
Hello Everyone
I have installed php on my windows computer running with PWS. PHP files are in c:\php folder. I have placed test.php file in c:\inetpub\wwwroot folder on which I have given execute permission. When I call it in internet explorer as http://localhost/test.php it gives an error as File not found --- Error 500 ?Internal Server Error. However, my ASP files are running perfectly well. What does it mean? However, when run c:\php\php.exe ?i it shows some html codes which I presume it is in order.
What should I do to run my PHP files.
Ajay K. Ratra
Ludhiana (INDIA)
ajay
LudhianaInfoline.com
attached mail follows:
Hello Everyone
I have installed php on my windows computer running with PWS. PHP files are in c:\php folder. I have placed test.php file in c:\inetpub\wwwroot folder on which I have given execute permission. When I call it in internet explorer as http://localhost/test.php it gives an error as File not found --- Error 500 ?Internal Server Error. However, my ASP files are running perfectly well. What does it mean? However, when run c:\php\php.exe ?i it shows some html codes which I presume it is in order.
What should I do to run my PHP files.
Ajay K. Ratra
Ludhiana (INDIA)
ajay
LudhianaInfoline.com
attached mail follows:
I used to use PWS, but now I use Apache, maybe I can help. Did you: . move the php.ini and php4ts.dll to your system folder . put the correct path in the registry editing file and double click it . check the box for 'Execute' in your PWS administration
Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117
http://www.datadrivendesign.com Phone: (386) 226-8979
Websites That WORK For You
----- Original Message -----
From: <legal
HEROCYCLES.COM>
To: <php-general
lists.php.net>
Sent: Friday, August 10, 2001 7:43 AM
Subject: [PHP] Php on Windows not running!!! Any help ???
> Hello Everyone
>
> I have installed php on my windows computer running with PWS.
> PHP files are in c:\php folder.
> I have placed test.php file in c:\inetpub\wwwroot folder on which I have
> given execute permission.
> When I call it in internet explorer as http://localhost/test.php it gives
> an error as File not found --- Error 500 ?Internal Server Error. However,
> my ASP files are running perfectly well.
> What does it mean?
> However, when run c:\php\php.exe ?i it shows some html codes which I
> presume it is in order.
>
> What should I do to run my PHP files.
>
>
> Ajay K. Ratra
> Ludhiana (INDIA)
> ajay
LudhianaInfoline.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
>"HTTP Error 405 > 405 Method Not Allowed >The method specified in the Request Line is not allowed for the resource >identified by the request. Please ensure that you have the proper MIME type >set up for the resource you are requesting. > >Please contact the server's administrator if this problem persists." > >Can anyone tell me what is the most likely problem is??? pls
According to the error message you are trying to do something that is not explicitly allowed to do with in the server environment.
Do you posses admin rights?
attached mail follows:
Using the ftp functions is an alternative
http://www.php.net/manual/en/ref.ftp.php
Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117
http://www.datadrivendesign.com Phone: (386) 226-8979
Websites That WORK For You
----- Original Message -----
From: "SED" <sed
sed.is>
To: <php-general
lists.php.net>
Sent: Thursday, August 09, 2001 9:07 PM
Subject: [PHP] Question about security: writing images to a directory (chmod
777)
> For a job I'm working on I need to let PHP-code write images to a
> directory. To be able to do that I need to make this directory read- and
> writeable. Concerned about the security, is this directory open for
> anyone to write into it? (Let say PHP-code form another server?) If so,
> how can I solve this without this security-risk?
>
> Thanks,
> SED
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
On 7 Aug 01, at 14:02, René Moonen wrote:
> The problem is that REMOTE_ADDR returns the IP address of the proxy (if
> if(getenv(HTTP_X_FORWARDED_FOR)) > { > $ip=getenv(HTTP_X_FORWARDED_FOR); > } > else > { > $ip=getenv(REMOTE_ADDR); > } > $host = gethostbyaddr($ip);
except, perhaps, when there's also a firewall with NAT/MASQ involved - in that case you'll probably not get much closer than the firewall's IP address (at least, that's how it is on my network).
CYA, Dave
-----------------------------------------------------------------------
Outback Queensland Internet - Longreach, Outback Queensland - Australia
http://www.outbackqld.net.au mailto:dfreeman
outbackqld.net.au
-----------------------------------------------------------------------
attached mail follows:
Renze,
I found that it works if I pass only a variable or a path in, not both.
e.g. opendir("/path/to/foo") works opendir("$variable") where variable contains "path/to/foo" also works opendir("$somevar/some/path") does NOT work.
go figure.
cheers, jaxon
> -----Original Message-----
> From: Renze Munnik [mailto:renze
datalink.nl]
> Sent: Friday, August 10, 2001 4:06 AM
> To: jaxon
salamander.net
> Subject: Re: [PHP] RE: help, weird include problem with functions
>
>
> On Thu, Aug 09, 2001 at 02:05:24PM -0400, Jaxon wrote:
> > yes, I'm sure the directory exists :)
> >
> > here is the actual code, I suppose this would have been more helpful to
> > start:
> >
> > <?php
> > function incl_common()
> > {
> > global $modroot; //modroot is defined as http://localhost/modules in a
> > settings file
> >
> > echo "<br>$modroot from included"; //this echos
> "http://localhost/modules"
> > properly
> >
> >
> > //the below throws the error, OpenDir: No such file or
> directory (error 2)
> > in (this function file name)
> > //but I can replce the $modroot/common with a hard-coded path
> and it works
> > fine.
> >
> > $handle=opendir("$modroot/common");
> > while ($file = readdir($handle))
> > { //load files in $directory into array
> > if ($file != ".." && $file != ".")
> > {
> > $files_to_include[count($files_to_include)] = $file;
> > }
> > }
> >
> > //clean up and sort
> > closedir($handle);
> > if (is_array($files_to_include))
> > {
> > while (list ($key, $val) = each ($files_to_include))
> > {
> > include "$modroot/common/$val";
> > }
> > }
> > }
> > incl_common();
> > ?>
>
> Well... Actualy I can't find anything about opening URL's with
> opendir(). Is it even possible? I don't think so. But if is it, I'd
> check this:
>
> - Is the directory readable for the webserver?
> - Does your webserver allow this kind of actions? I'd say it's a bit
> of a security leak if anyone can just directly execute an
> opendir() (and then ofcourse also a readdir()) on your directories
> from a remote server.
>
> But anyway, I don't know if it's possible to do an opendir() on an
> URL. I've tried your example on my on server and I can't get it to
> work unless I give the actual directory instead of the URL.
>
> --
>
> * R&zE:
>
> -- »»»»»»»»»»»»»»»»»»»»»»»»
> -- Renze Munnik
> -- DataLink BV
> --
> -- E: renze
datalink.nl
> -- W: +31 23 5326162
> -- F: +31 23 5322144
> -- M: +31 6 21811143
> -- H: +31 23 5516190
> --
> -- Stationsplein 82
> -- 2011 LM HAARLEM
> --
> -- http://www.datalink.nl
> -- ««««««««««««««««««««««««
>
attached mail follows:
On Fri, Aug 10, 2001 at 08:22:57AM -0400, Jaxon wrote: > Renze, > > I found that it works if I pass only a variable or a path in, not both. > > e.g. opendir("/path/to/foo") works > opendir("$variable") where variable contains "path/to/foo" also works > opendir("$somevar/some/path") does NOT work. > > go figure. > > cheers, > jaxon
Ehhhhhhhhhhhhhhh.... Weird!
I really start believing that it's either the directory you use in $somevar that's wrong, or that the permissions are wrong. I have no troubles wse with the constructions. It doesn't matter if I only type the path, or that I put the whole path in one variable or that I use both a variable and a (part of) the path. The result is exactly the same. (as it should btw).
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
I have decided to incorporate mysql databases into my php, I am new to mysql and have installed a binary onto my windows 98
When I start the server "mysqld" I get the following error "cant initialize innoDB as 'innodb_data_file_path' not set" I have been looking at my .cnf files so that I can set a path, but not sure where the .cnf file should be or what should be in it.
Can anyone help me ?
Dave
attached mail follows:
I thought I was the only one!!! It's easy to fix, though.
instead of shell> mysqld
use shell> mysqld --skip-innodb
As an added benefit, this frees up memory!
On Friday 10 August 2001 06:38, you wrote: > I have decided to incorporate mysql databases into my php, I am new to > mysql and have installed a binary onto my windows 98 > > When I start the server "mysqld" I get the following error "cant initialize > innoDB as 'innodb_data_file_path' not set" I have been looking at my .cnf > files so that I can set a path, but not sure where the .cnf file should be > or what should be in it. > > Can anyone help me ? > > > Dave
attached mail follows:
Hello.
Does PHP somehow offer a PKS encryption libraries?
attached mail follows:
Hello,
Chris wrote: > > I am digitalizing a companies Application in an online system. The problem is that companies they deal with require the app to be signed. Obviously an online application cannot be signed conventionally. Does anyone know of a way or a work-around to accomplish this?
In Europe, many banks only let you do Internet banking if you use a digital certificate that you enable after you receive a code by postal (snail) mail. The certificate is created online, but you need to enter a password defined by yourself everytime you want to use it. This is to reduce the chance that somebody does anything if they steal the certificate files from your disk.
It is annoying because the certificate maybe lost in a hard disk crash, very frequent with Windows users that keep trying all the crap that they get from the Internet and they don't have a clue that they should take backup copies of the certifcate files. Some banks only let you create 3 copies of your certificate.
I don't know if this solves your problem, but at least could be a means of demonstrating that who is accessing your site pages is somebody well known to your institution and the possibilities of fraud are low.
Regards, Manuel Lemos
attached mail follows:
Hi,
If you want to distribute your app and need to be signed the almost only thing you can use without getting into too much trouble is Java. The applets can be sent to the client and used in a simple browser. At the server side you can still use PHP, since the applet can make HTTP requests (POST and GET) and process the data with PHP. The applet signed has strong critpography (both simetric and public), and the execution only occurs if the signed code belongs to the issuer of the certificate you give execution permission. Click on the security tab of any browser and have a look at it.
I don't know if you mean that kind of signing. If you mean the information transfer must be signed then you only need signing tools. Have a look at openssl (www.openssl.org), it has many methods for signing, hash codes and security related stuff. It is also under a GPL license and developed outside US, so you will have no problem about restrictions.
Sean C. McCarthy SCI, S.L. (www.sci-spain.com)
Manuel Lemos wrote:
>
> Hello,
>
> Chris wrote:
> >
> > I am digitalizing a companies Application in an online system. The problem is that companies they deal with require the app to be signed. Obviously an online application cannot be signed conventionally. Does anyone know of a way or a work-around to accomplish this?
>
> In Europe, many banks only let you do Internet banking if you use a
> digital certificate that you enable after you receive a code by postal
> (snail) mail. The certificate is created online, but you need to enter a
> password defined by yourself everytime you want to use it. This is to
> reduce the chance that somebody does anything if they steal the
> certificate files from your disk.
>
> It is annoying because the certificate maybe lost in a hard disk crash,
> very frequent with Windows users that keep trying all the crap that they
> get from the Internet and they don't have a clue that they should take
> backup copies of the certifcate files. Some banks only let you create 3
> copies of your certificate.
>
> I don't know if this solves your problem, but at least could be a means
> of demonstrating that who is accessing your site pages is somebody well
> known to your institution and the possibilities of fraud are low.
>
> Regards,
> Manuel Lemos
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello Everyone, I have a form and I only want to except lower case and 'a threw z' charactors only. How does one do that? Thanks --Mike
__________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
attached mail follows:
On Fri, Aug 10, 2001 at 07:01:08AM -0700, Mike Mike wrote:
> Hello Everyone,
> I have a form and I only want to except lower case and
> 'a threw z' charactors only. How does one do that?
> Thanks
> --Mike
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
preg_match ("/^[a-z]*$/", $string) or preg_match ("/^[a-z]+$/", $string)
depending on $string being required or not.
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
When a form field (a select, for instance) is named as an array (field_name[]), what order is the array set in? If I have 2 rows in a table, with 4 columns in each row, with each column containing a select (so 8 all together), with all the selects named as an array, will the array be filled with values in the order of the code, or is it somewhat random? Hope this question makes sense. Thanks,
Joe
attached mail follows:
surely i will be corrected if wrong but i think yes that they the elements appear in the array in the same order as they are in your html.
----- Original Message -----
From: "Joseph Koenig" <joe
jwebmedia.com>
To: <php-general
lists.php.net>
Sent: Friday, August 10, 2001 9:41 PM
Subject: [PHP] PHP's handling of Array's in Form Fields
> When a form field (a select, for instance) is named as an array
> (field_name[]), what order is the array set in? If I have 2 rows in a
> table, with 4 columns in each row, with each column containing a select
> (so 8 all together), with all the selects named as an array, will the
> array be filled with values in the order of the code, or is it somewhat
> random? Hope this question makes sense. Thanks,
>
> Joe
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I am working on a basic web spider PHP script running as Shell / CGI on a Linux box. At the moment I have the most basic piece of PHP to read in the contents of a URL into a variable.
function OpenURL ($URL) { global $MaxFileLength;
$SpiderSource = fopen ($URL, "r"); $SpiderPage = fread ($SpiderSource, $MaxFileLength); fclose ($SpiderSource);
return $SpiderPage; }
I am going to put in some error trapping on the fopen command and set $SpiderPage to "Offline". However sometimes the fopen doesn't error but either that or fread take ages. I presume this is due to general slow internet/server issues. I therefore want to build in something which will timeout and set $SpiderPage to "TimeOut" rather than the script just getting stuck.
Any help would be great. Thanks in advance,
Phillip
attached mail follows:
"Phillip Lockwood-Holmes" <phillip
kagoule.co.uk> wrote in message
news:20010810144602.6781.qmail
pb1.pair.com...
> I am working on a basic web spider PHP script running as Shell / CGI on a
> Linux box. At the moment I have the most basic piece of PHP to read in the
> contents of a URL into a variable.
>
> function OpenURL ($URL) {
> global $MaxFileLength;
>
> $SpiderSource = fopen ($URL, "r");
> $SpiderPage = fread ($SpiderSource, $MaxFileLength);
> fclose ($SpiderSource);
>
> return $SpiderPage;
> }
>
> I am going to put in some error trapping on the fopen command and set
> $SpiderPage to "Offline". However sometimes the fopen doesn't error but
> either that or fread take ages. I presume this is due to general slow
> internet/server issues. I therefore want to build in something which will
> timeout and set $SpiderPage to "TimeOut" rather than the script just
getting
> stuck.
>
> Any help would be great. Thanks in advance,
>
>
> Phillip
>
>
You get more flexibilty with fsockopen() [ http://www.php.net/fsockopen ] allowing for time-outs and sending whatever headers you want. Also fopen() is often prevented from opening remote files as a security measure. Here's what I use to collect a web page into a string (with a 15 second time-out):
$string = external_fileread($url);
function external_fileread($url) {
$content = "";
$urlArray = parse_url($url);
if (!
$urlArray["port"]) $urlArray["port"] = "80";
if (!
$urlArray["path"]) $urlArray["path"] = "/";
if (
$urlArray["query"]) $urlArray["path"] .= "?$urlArray[query]";
$dump = "GET $urlArray[path] HTTP/1.0\r\n";
$dump .= "Accept: */*\r\n";
$dump .= "Host: $urlArray[host]\r\n";
$dump .= "User-Agent: PHP script\r\n";
$dump .= "Connection: close\r\n";
$dump .= "\r\n";
$socket = fsockopen($urlArray["host"], $urlArray["port"], &$errnum,
&$errstr, 15);
if (!
$socket) {
return 0;
} else {
fputs($socket, $dump);
while($str = fgets($socket, 1024)){
if ($headers_finished){
$content .= $str;
}
if (($str == "\n")||($str == "\r\n")){ // headers finish with a blank
line
$headers_finished = true;
}
}
fclose($socket);
return $content;
}
return 0;
}
Peter
attached mail follows:
Do i have to do something special to get a php binary to run scripts from a commandline. I have the latest version of php but on compile/install can't find the binary.
Thanks.
Nick.
attached mail follows:
When running the ./configure script, don't specify a web server. IE: ./configure --with-mysql
Instead of: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
Tyler Longren
Captain Jack Communications
tyler
captainjack.com
www.captainjack.com
On Fri, 10 Aug 2001 16:01:00 +0100 (BST)
Nick Davies <nick
sensei.co.uk> wrote:
>
> Do i have to do something special to get a php binary to run scripts
> from
> a commandline. I have the latest version of php but on compile/install
> can't find the binary.
>
> Thanks.
>
> Nick.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi everyone,
Has anyone of you binaries of wvHtml and wvWare under win32 ? Or at least indications concerning compiling with cygwin ?
Thanks
Francois
attached mail follows:
Date: Fri, 10 Aug 2001 17:41:11 +0200 From: Mikael hultgren <mikael.hultgren
uds.se>
To: php-general
lists.php.net
Message-Id: <20010810173955.104B.MIKAEL.HULTGREN
uds.se>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Subject: Active directory and ldap
Has anyone managed to get ldap in php to talk to an Active directory for authentication of user logins. Right now i'm drawing a blank, so if anyone has an example on how they did it, please show it, i would be very grateful.
micke <mikael
uds.se>
--
"Love is a snowmobile racing across the tundra. Suddenly it flips
over, pinning you underneath. At night, the ice weasels come."
-- Matt Groening
attached mail follows:
download the mysql manual (i use the pdf version) ...
there's loads of help in there.
Steve
"Joe Sheble )" <JustForMailingLists
wizaerd.com> wrote in message
news:NEBBJIOOOLABHKDFACGHMEPAFAAA.JustForMailingLists
wizaerd.com...
>
>
> I know this would probably be better placed on the mySQL mailing list, but
> alas I do not subscribe to it and am hesitant to do so to ask one
question.
> Enough PHP users use mySQL that perhaps the answer could be found here.
>
> In searching through a text field in a mySQL database, I would like to
> search for a keyword and return that record as a resultset, obvious no?
> However, I do not want the search to return true if the search word or
> phrase falls within an HTML tag contained within the text. The field in
> question will contain some basic HTML tags but I don't want them searched,
> just the freeform text.
>
> What would be the best approach? I'm not all that well versed in regular
> expressions, well let's face it, I probably couldn't put a regular
> expression together if my life depended on it, and any assistance would be
> greatly appreciated.
>
>
attached mail follows:
Hi
I have a weird problem with SSL and PHP. Sometimes when I click on next in an ordering process I've built it comes up with a server/DNS error. If I click "back" and try again it usually works. It is really intermittant and I haven't a clue why it's happening. It does not happen on normal html pages, but does on PHP pages. It also doesn't happen with http:// but only with https://
Has anyone else come across the same thing or have any ideas?
Thanks
Ade
attached mail follows:
Hi,
I playing with the socket examples off php.net
When I try the talkback example I get the following error
bind() failed: reason: Can't assign requested address
I am setting $address to the ip of the machine and using port 10000
Any ideas?
Regards
Jon
Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175
attached mail follows:
Hello everyone,
I've written a small forum. I addslashes() on the message before it goes into the database. I stripslashes() before the message is displayed on the page. That all works fine. But if I have a message like this: "It's in C:\Windows" there's trouble. The \ gets striped out, so it's then "It's in C:Windows";
Does anyone know anyway to get around this? I've been thinking about it, but can't come up with anything.
Thanks,
Tyler Longren
Captain Jack Communications
tyler
captainjack.com
www.captainjack.com
attached mail follows:
"Tyler Longren" <tyler
captainjack.com> wrote in message
news:20010810111203.1553b8f5.tyler
captainjack.com...
> Hello everyone,
>
> I've written a small forum. I addslashes() on the message before it goes
> into the database. I stripslashes() before the message is displayed on
> the page. That all works fine. But if I have a message like this:
> "It's in C:\Windows"
> there's trouble. The \ gets striped out, so it's then "It's in
> C:Windows";
>
> Does anyone know anyway to get around this? I've been thinking about it,
> but can't come up with anything.
>
> Thanks,
> Tyler Longren
> Captain Jack Communications
> tyler
captainjack.com
> www.captainjack.com
>
The database will strip the slashes as they go in as they are escapes for the db also...
This was discussed recently on alt.php.sql :
http://groups.google.com/groups?hl=en&safe=off&th=57ea31ab2e83928b,7 especially message number 4
Peter
attached mail follows:
Removed the stripslashes() and all is good...thank! I didn't know the db will strip the slashes.
Tyler Longren
Captain Jack Communications
tyler
captainjack.com
www.captainjack.com
On Fri, 10 Aug 2001 17:49:46 +0100
"Peter Clarke" <peterNO
SPAMjingo.com> wrote:
>
> "Tyler Longren" <tyler
captainjack.com> wrote in message
> news:20010810111203.1553b8f5.tyler
captainjack.com...
> > Hello everyone,
> >
> > I've written a small forum. I addslashes() on the message before it
> goes
> > into the database. I stripslashes() before the message is displayed
> on
> > the page. That all works fine. But if I have a message like this:
> > "It's in C:\Windows"
> > there's trouble. The \ gets striped out, so it's then "It's in
> > C:Windows";
> >
> > Does anyone know anyway to get around this? I've been thinking about
> it,
> > but can't come up with anything.
> >
> > Thanks,
> > Tyler Longren
> > Captain Jack Communications
> > tyler
captainjack.com
> > www.captainjack.com
> >
>
> The database will strip the slashes as they go in as they are escapes
> for
> the db also...
>
> This was discussed recently on alt.php.sql :
>
> http://groups.google.com/groups?hl=en&safe=off&th=57ea31ab2e83928b,7
> especially message number 4
>
>
> Peter
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Evan:
Thanks 'n' a tip o'the hat!
<grin> I certainly have no problem evangelising, especially for something that actually WORKS as documented. How do the authors feel about the idea of evangelising? How best to consolidate support round those who created, maintain, and document PHP? The best approach, I think, is to lock ranks together round those gentles and offer our support and contributions toward an effort of making the marketplace more PHP-aware.
Personally, I'd like nothing better than to see a safe, secure, fully-featured toolkit-to-success like PHP outshine IIS/ASP in glossy print. Fact for fact, feature-for-feature comparisons, extolling the richness of PHP as opposed to ASP, praising the documentation: a side-by-side comparison tells the whole story. No offence to Perl programmers (I count myself as one, sometimes :-) but there are appropriate places for rich, intelligent scripting languages and then there's the web with its own rules. Mind, I rely heavily on Perl, but it does things like keep mirror servers mirrored, watch over NFS mounts (I'm running 4 VPN's to sites in N America and Netherlands), and generally keeping the shop together. But it's PITA to use for interactive, EBusiness-type web stuff. PHP (to me) seems much more appropriate and easy to use.
Ok, we could toss a barb or two in the ads like "If you'd used Apache/PHP instead of IIS/ASP your network wouldn't be shut down due to Code Red today" just for schitzengiggles. But just one or two :-) I'd hate to suffer a loss of credibility due to appearing to be strident about it. M$ people being shrill about the virtues of M$ to me is the biggest turnoff about ASP or any other M$ product: not necessarily the shoddy workmanship of M$ in general. (You can tell I run a strictly ABM [anything but Microsoft] shop.)
And Lord knows, if a shyte product like SAP can get TV airtime and corporate notice (even though after 2 years of tracking installs I've YET to hear of an implementation success story--I have loads of disaster stories) and zillions of dollars in revenue (do we smell a scam?), a LEGITIMATE, works-as-promised product like PHP should have little problem gaining notice with a few good advert placements. One would hope. Oftimes, the corporate marketplace seems to have a taste for doodoo and there's little one can do about that except keep plugging.
Ladies and gentlemen: any further thoughts? A good product deserves good recognition. Any strong marketing/psychologist types out there with some ideas how to put forth PHP's strengths without sounding shrill? Any ideas from the PHP authors/contributors/caretakers?
Evan, good show on the site to collect contacts to support the idea of promoting PHP as a much better, safer, richer alternative. A central rallying point is always a good start.
-B
-----Original Message-----
From: Evan Nemerson [mailto:evan
coeus-group.com]
Sent: Thursday, August 09, 2001 9:04 PM
To: Bill Farrell; php-general
lists.php.net
Subject: Re: [PHP] Re: PHP in corporate settings?
Bill has hit it right on! Programmers all over the world have already recognized that PHP is a superior language, and open-source is not the root of all evil (as M$ would have us believe). However, many (most?) execs do not listen to reason, but rather only to TV and glossy ads. Therefore, I propose
we fight fire with fire!
Lets band together and form a web site not altogether unlike LinuxFund.org. However, instead of development of new technology, our site could focus on the spread of PHP, or perhaps open source technology. Get our own credit card, ask for donations, be those donations money or time.
We could use this money to fund ad-campaigns. Ad-campaigns targeted not at programmers who already know the merit of PHP (and open-source in general), but rather the "Big Corporate Executive" who has the power to make or break PHP.
The ads could go in magazines like Forbes, Fortune, etc. instead of Open Magazine.
If you are interested in this, either helping make the site, providing expertise in other areas (such as marketing), or would just be willing to make a donation, visit a page I just set up: http://www.coeus-group.com/AdCamp.php . I'll consider this post to be a kind
of market analysis. I sincerly hope that you are as interested- and willing-
as I.
Evan Nemerson
evan
coeus-group.com
attached mail follows:
From: "Jerry Lake" <jerryl
europa.com>
To: <php-general
lists.php.net>
Date: Fri, 10 Aug 2001 09:47:57 -0700
Message-ID: <000001c121bc$36475fa0$0103670a
europa.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Subject: mysql error
$query = "insert into reviews(id,artist,album,label,copyright,rating,image_url,review_text,author, review_date) values('','$artist','$album','$label','$copyright','$rating','$image_url','$ review_text','$author',NOW())";
$result = mysql_query($query,$connection) or die("Error in this query");
This for some reason is giving me errors, I don't know why. is there something I can put in to show me what is going wrong ? or if anyone notices anything immediately.
Thanks,
Jerry Lake Interface Engineering Technician
attached mail follows:
Hello:
I'm looking for a good way to pull information from a static HTML file for dumping into a database. I need to pull the information from a META tag, and from within two comments in the HTML file. I know this can be done with regular expressions, but I'm not really sure where to start or how to do it.
<META name="CATEGORY" CONTENT="Test Content">
I need to pull the CONTENT information from this META tag.
<!-- STORY START -->
Story contents
<!-- STORY END -->
Then pull the information from between these two comments.
Any help, and/or example code would help a lot.
Thanks,
Kyle
kyle
thedip.net
attached mail follows:
i can configure php fine but when i try to run make i get this:
make[1]: Entering directory `/usr/local/src/php-4.0.6' /bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=link gcc -I. -I/usr/local/src/php-4.0.6/ -I/usr/local/src/php-4.0.6/main -I/usr/local/src/php-4.0.6 -I/usr/local/include -I/usr/local/src/php-4.0.6/Zend -I/usr/local/src/php-4.0.6/ext/mysql/libmysql -I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6/TSRM -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath /usr/local/src/php-4.0.6/libs -avoid-version stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lcrypt -lresolv -lm -ldl -lnsl -lresolv main/.libs/libmain.al: object main/.libs/libmain.al(main.lo) in archive is not object collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.6' make: *** [all-recursive] Error 1
Anyone know how to fix this? I had an error about stub.lo previously but simply deleted the file per some advice on a mailing list archive. I hope this was a good idea. Anyway, can someone help me with this? I'm running redhat 7.1 - Dan
--
attached mail follows:
I have a string full of html information, and I am trying to find a way of scanning the string to find a tag and extract a variable from the tag, but cannot find any functions to split the string in lengths of the tag to find the variable.
so is there a function that will chop x amount of characters from the left and right of a string so that I can check for information.
Hope this is clear
Dave
attached mail follows:
Sounds like a job for regular expressions. :-) check out preg_match in the docs. - Dan
On Fri, 10 Aug 2001, David Ovens wrote:
> I have a string full of html information, and I am trying to find a way of > scanning the string to find a tag and extract a variable from the tag, but > cannot find any functions to split the string in lengths of the tag to find > the variable. > > so is there a function that will chop x amount of characters from the left > and right of a string so that I can check for information. > > Hope this is clear > > > Dave > > > >
--
attached mail follows:
If I could match the expression, how do I extract the variable after the expression I have found ?
----- Original Message -----
From: "Daniel Adams" <danno
wpi.edu>
To: "David Ovens" <DOvens
doweb.co.uk>
Cc: "Php-General" <php-general
lists.php.net>
Sent: Friday, August 10, 2001 8:22 PM
Subject: Re: [PHP] finding tags and extracting information
> Sounds like a job for regular expressions. :-) check out preg_match in
> the docs.
> - Dan
>
> On Fri, 10 Aug 2001, David Ovens wrote:
>
> > I have a string full of html information, and I am trying to find a way
of
> > scanning the string to find a tag and extract a variable from the tag,
but
> > cannot find any functions to split the string in lengths of the tag to
find
> > the variable.
> >
> > so is there a function that will chop x amount of characters from the
left
> > and right of a string so that I can check for information.
> >
> > Hope this is clear
> >
> >
> > Dave
> >
> >
> >
> >
>
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Send me some of the html and tell me what tag and variable you want to extract.
On Fri, 10 Aug 2001, David Ovens wrote:
> If I could match the expression, how do I extract the variable after the
> expression I have found ?
>
> ----- Original Message -----
> From: "Daniel Adams" <danno
wpi.edu>
> To: "David Ovens" <DOvens
doweb.co.uk>
> Cc: "Php-General" <php-general
lists.php.net>
> Sent: Friday, August 10, 2001 8:22 PM
> Subject: Re: [PHP] finding tags and extracting information
>
>
> > Sounds like a job for regular expressions. :-) check out preg_match in
> > the docs.
> > - Dan
> >
> > On Fri, 10 Aug 2001, David Ovens wrote:
> >
> > > I have a string full of html information, and I am trying to find a way
> of
> > > scanning the string to find a tag and extract a variable from the tag,
> but
> > > cannot find any functions to split the string in lengths of the tag to
> find
> > > the variable.
> > >
> > > so is there a function that will chop x amount of characters from the
> left
> > > and right of a string so that I can check for information.
> > >
> > > Hope this is clear
> > >
> > >
> > > Dave
> > >
> > >
> > >
> > >
> >
> > --
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
--
attached mail follows:
<td><font color="#FFFFFF" face="Arial Black">| </font><font face="Arial Black">Home</font></td> <td><font color="#FFFFFF" face="Arial Black">| </font><a href="experience.htm"><font face="Arial Black">Experience</font></a></td> <td><font color="#FFFFFF" face="Arial Black">| </font><a href="quotation.htm"><font face="Arial Black">Quotation</font></a></td> <td align="right" width="1"><img src="graphic1.gif" width="8" height="27"></td>
I am trying to find the tag "<a href=" for example and extract the reference "experience.htm" and "quotation.htm"
Thanks for your help on this as I am struggling to get my head round this one.
Dave
----- Original Message -----
From: "Daniel Adams" <danno
wpi.edu>
To: "David Ovens" <DOvens
doweb.co.uk>
Cc: "Php-General" <php-general
lists.php.net>
Sent: Friday, August 10, 2001 8:53 PM
Subject: Re: [PHP] finding tags and extracting information
> Send me some of the html and tell me what tag and variable you want to
> extract.
>
> On Fri, 10 Aug 2001, David Ovens wrote:
>
> > If I could match the expression, how do I extract the variable after the
> > expression I have found ?
> >
> > ----- Original Message -----
> > From: "Daniel Adams" <danno
wpi.edu>
> > To: "David Ovens" <DOvens
doweb.co.uk>
> > Cc: "Php-General" <php-general
lists.php.net>
> > Sent: Friday, August 10, 2001 8:22 PM
> > Subject: Re: [PHP] finding tags and extracting information
> >
> >
> > > Sounds like a job for regular expressions. :-) check out preg_match in
> > > the docs.
> > > - Dan
> > >
> > > On Fri, 10 Aug 2001, David Ovens wrote:
> > >
> > > > I have a string full of html information, and I am trying to find a way
> > of
> > > > scanning the string to find a tag and extract a variable from the tag,
> > but
> > > > cannot find any functions to split the string in lengths of the tag to
> > find
> > > > the variable.
> > > >
> > > > so is there a function that will chop x amount of characters from the
> > left
> > > > and right of a string so that I can check for information.
> > > >
> > > > Hope this is clear
> > > >
> > > >
> > > > Dave
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > >
> >
> >
>
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Date: Fri, 10 Aug 2001 16:29:42 -0400 (EDT) From: Daniel Adams <danno
wpi.edu>
To: David Ovens <DOvens
doweb.co.uk>
cc: Php-General <php-general
lists.php.net>
Message-ID: <Pine.LNX.4.33.0108101627540.1651-300000
localhost.localdomain>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-2117802474-997475382=:1651"
Subject: Re: [PHP] finding tags and extracting information
--8323328-2117802474-997475382=:1651 Content-Type: TEXT/PLAIN; charset=US-ASCII
just put test.php and test.txt in the same directory and run the script. You should see this output:
Array ( [0] => Array ( [0] => href="experience.htm" [1] => href="quotation.htm" )
[1] => Array ( [0] => experience.htm [1] => quotation.htm )
)
I hope this helps. :-) - Dan
On Fri, 10 Aug 2001, David Ovens wrote:
> <td><font color="#FFFFFF" face="Arial Black">| </font><font
> face="Arial Black">Home</font></td>
> <td><font color="#FFFFFF" face="Arial Black">| </font><a
> href="experience.htm"><font face="Arial Black">Experience</font></a></td>
> <td><font color="#FFFFFF" face="Arial Black">| </font><a
> href="quotation.htm"><font
> face="Arial Black">Quotation</font></a></td>
> <td align="right" width="1"><img src="graphic1.gif"
> width="8" height="27"></td>
>
> I am trying to find the tag "<a href=" for example and extract the reference "experience.htm" and "quotation.htm"
>
> Thanks for your help on this as I am struggling to get my head round this one.
>
>
> Dave
>
>
>
>
> ----- Original Message -----
> From: "Daniel Adams" <danno
wpi.edu>
> To: "David Ovens" <DOvens
doweb.co.uk>
> Cc: "Php-General" <php-general
lists.php.net>
> Sent: Friday, August 10, 2001 8:53 PM
> Subject: Re: [PHP] finding tags and extracting information
>
>
> > Send me some of the html and tell me what tag and variable you want to
> > extract.
> >
> > On Fri, 10 Aug 2001, David Ovens wrote:
> >
> > > If I could match the expression, how do I extract the variable after the
> > > expression I have found ?
> > >
> > > ----- Original Message -----
> > > From: "Daniel Adams" <danno
wpi.edu>
> > > To: "David Ovens" <DOvens
doweb.co.uk>
> > > Cc: "Php-General" <php-general
lists.php.net>
> > > Sent: Friday, August 10, 2001 8:22 PM
> > > Subject: Re: [PHP] finding tags and extracting information
> > >
> > >
> > > > Sounds like a job for regular expressions. :-) check out preg_match in
> > > > the docs.
> > > > - Dan
> > > >
> > > > On Fri, 10 Aug 2001, David Ovens wrote:
> > > >
> > > > > I have a string full of html information, and I am trying to find a way
> > > of
> > > > > scanning the string to find a tag and extract a variable from the tag,
> > > but
> > > > > cannot find any functions to split the string in lengths of the tag to
> > > find
> > > > > the variable.
> > > > >
> > > > > so is there a function that will chop x amount of characters from the
> > > left
> > > > > and right of a string so that I can check for information.
> > > > >
> > > > > Hope this is clear
> > > > >
> > > > >
> > > > > Dave
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > > For additional commands, e-mail: php-general-help
lists.php.net
> > > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > > >
> > >
> > >
> >
> > --
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
----8323328-2117802474-997475382=:1651 Content-Type: TEXT/plain; name="test.txt" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33.0108101629420.1651
localhost.localdomain> Content-Description: Content-Disposition: attachment; filename="test.txt"
PHRkPjxmb250IGNvbG9yPSIjRkZGRkZGIiBmYWNlPSJBcmlhbCBCbGFjayI+ fCA8L2ZvbnQ+PGZvbnQNCmZhY2U9IkFyaWFsIEJsYWNrIj5Ib21lPC9mb2lu dD48L3RkPg0KPHRkPjxmb250IGNvbG9yPSIjRkZGRkZGIiBmYWNlPSJBcmlh bCBCbGFjayI+fCA8L2ZvbnQ+PGENCmhyZWY9ImV4cGVyaWVuY2UuaHRtIj48 Zm9udCBmYWNlPSJBcmlhbA0KQmxhY2siPkV4cGVyaWVuY2U8L2ZvbnQ+PC9h PjwvdGQ+DQo8dGQ+PGZvbnQgY29sb3I9IiNGRkZGRkYiIGZhY2U9IkFyaWFs IEJsYWNrIj58IDwvZm9udD48YQ0KaHJlZj0icXVvdGF0aW9uLmh0bSI+PGZv bnQNCmZhY2U9IkFyaWFsIEJsYWNrIj5RdW90YXRpb248L2ZvbnQ+PC9hPjwv dGQ+DQo8dGQgYWxpZ249InJpZ2h0IiB3aWR0aD0iMSI+PGltZyBzcmM9Imdy YXBoaWMxLmdpZiINCndpZHRoPSI4IiBoZWlnaHQ9IjI3Ij48L3RkPg0K --8323328-2117802474-997475382=:1651 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="test.php" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33.0108101629421.1651
localhost.localdomain> Content-Description: Content-Disposition: attachment; filename="test.php"
PD8NCiRmaWxlID0gZmlsZSAoInRlc3QudHh0Iik7DQokdGV4dCA9IGltcGxv ZGUgKCIiLCAkZmlsZSk7DQoNCnByZWdfbWF0Y2hfYWxsICgiL2hyZWY9XCIo Wy5cd10qKVwiLyIsICR0ZXh0LCAkbWF0Y2hlcyk7DQpwcmludF9yICgkbWF0 Y2hlcyk7DQoNCj8+DQo--8323328-2117802474-997475382=:1651--
attached mail follows:
If I know the location and name of a jpeg file, can I stream it to a HTML page?
What I have is a DB that contains the path and name of jpeg files. These files are "outside of the www Home directory" for security reasons. I would like to access the files from my PHP script and stream them to the page.
Never having done any streaming (PHP files) with PHP, I am not sure if this can be done and if it can, how to do it.
Many thanks for any guidance........
Todd
-- Todd Cary Ariste Software toddaristesoftware.com
attached mail follows:
has anyone run into the problem when compiling php 4.0.6 with this error?
error: iconv not found
i'm at a lost here and don't have a clue as to what's going on.. can someone help?
jay
attached mail follows:
I ran into that problem compiling php 4.0.6 on RedHat 7.1 ... I added the config option --with-iconv and things worked out ok. To be honest though I am not really sure what iconv is for so I don't know the implications of adding it. It seemed it was when I tried to compile with Sablotron.. but I didn't do much testing so again, I can't say for sure.
I know I am not much help there if you need details, but you can try it once.
C
-----Original Message-----
From: Jay Paulson [mailto:jpaulson
lbjs.com]
Sent: Friday, August 10, 2001 2:37 PM
To: Php-General
Subject: [PHP] compiling issues
has anyone run into the problem when compiling php 4.0.6 with this error?
error: iconv not found
i'm at a lost here and don't have a clue as to what's going on.. can someone help?
jay
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
yeah i'm trying to compile Sablotron in mine too.. but i just put --with-iconv=ext/iconv and it worked.. so i'm keeping it that way.. :) all i have to do now is get the gd library to work! arg!
thanks!
----- Original Message -----
From: "Angerer, Chad" <cangerer
ibsys.com>
To: "'Jay Paulson'" <jpaulson
lbjs.com>; "Php-General"
<php-general
lists.php.net>
Sent: Friday, August 10, 2001 2:39 PM
Subject: RE: [PHP] compiling issues
> I ran into that problem compiling php 4.0.6 on RedHat 7.1 ... I added the
> config option --with-iconv and things worked out ok. To be honest though
I
> am not really sure what iconv is for so I don't know the implications of
> adding it. It seemed it was when I tried to compile with Sablotron.. but
I
> didn't do much testing so again, I can't say for sure.
>
> I know I am not much help there if you need details, but you can try it
> once.
>
> C
>
> -----Original Message-----
> From: Jay Paulson [mailto:jpaulson
lbjs.com]
> Sent: Friday, August 10, 2001 2:37 PM
> To: Php-General
> Subject: [PHP] compiling issues
>
>
> has anyone run into the problem when compiling php 4.0.6 with this error?
>
> error: iconv not found
>
> i'm at a lost here and don't have a clue as to what's going on.. can
someone
> help?
>
> jay
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hello, I am making a script that needs to login to a secure area of another site. To login you use a basic html form. Is there a way to login to that site and then use sockets to emulate a post from one of the forms on that site’s secure section? Thank you, Brandon Orther
attached mail follows:
Date: Fri, 10 Aug 2001 16:02:08 -0400 (EDT) From: Daniel Adams <danno
wpi.edu>
To: php-gtk <php-gtk
lists.php.net>
cc: <php-general
lists.php.net>
Message-ID: <Pine.LNX.4.33.0108101558370.1542-100000
localhost.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: cvs build
Has anyone been able to build from cvs on redhat 7.1? I get the following when I run ./buildconf:
***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP rebuilding main/php_config.h.in
I have autoconf v. 2.13 and all the required versions for the other programs. Can anyone help me on this one? Thank you in advanced. - Dan
--
attached mail follows:
Does anybody know why the function below does not work on Linux yet works perfectly well on windows.
function write_file($file, $contents){ // $contents is like "Test, Test" global $root_path; // $root_path is /var/www/htdocs $file_location = $root_path.$file; // $file is /jim.txt $fp = fopen("$file_location", "w") or die("Could not open file pointer."); $worked = fwrite($fp, $contents) or die("Could not write to file pinter"); // It fails here fclose($fp) or die("Could not close file pointer"); return $worked; }
It always fails at fwrite.
Thanks, Corin Rathbone
attached mail follows:
Sorry, forgot to mention fputs fails as well. Also, the dir permissions are fine.
Thanks,
Corin Rathbone
attached mail follows:
Hello,
A site needs cookies
I am trying to convert this perl into the same working PHP. If anyone
can help I greatly appreciate it.
------------------------------------------------------------------------
-----------------------------------------------
#!/usr/bin/perl
#
# Part ripped off from Tom Brown, tbrown
baremetal.com
#
my $USERID = "username"; # your reseller id
my $PASS = "password "; # your reseller password
use strict;
use Net::SSLeay qw(get_https post_https sslcat make_headers make_form) ;
use vars qw($opt_d); use Getopt::Std;
getopts('d');
die "Usage: getpw domain_name" unless ($#ARGV == 0);
my $debug = $opt_d;
my ($domain) =
ARGV;
my $HOSTNAME = "somthing.net";
my $URI = "/folder/new.cgi";
my $init_cookie = 'CheckCookie=CheckCookie'; # really should load the
login page my $AGENT = 'baremetal Reconciller'; my $headers =
make_headers( 'User-Agent' => $AGENT, Cookie => $init_cookie );
my ($page, $response, %reply_headers) = post_https($HOSTNAME, 443, $URI,
$headers,
make_form(
'username' => $USERID,
'password' => $PASS,
'action' => 'login'
));
if ($debug)
{
foreach (keys %reply_headers)
{
printf "header: %s: %s\n", $_, $reply_headers{$_};
}
}
my $cookie = $reply_headers{'SET-COOKIE'} or die "can't get auth
cookie!"; print "cookie set to $cookie\n" if ($debug);
$headers = make_headers('User-Agent' => $AGENT, Cookie => $cookie);
($page, $response, %reply_headers)
= post_https($HOSTNAME, 443, $URI, $headers,
"action=send_password&domain=$domain"
);
die "whoa, request failed: $response" unless ($response);
if ($page =~ /password sent/i)
{
print "Password Sent\n";
exit(0);
}
print "Password not sent\n";
exit(1);
------------------------------------------------------------------------
-----------------------------------------------
attached mail follows:
Message-ID: <019601c121da$32a2c600$6e00a8c0
webdesign>
Reply-To: "Jay Paulson" <jpaulson
lbjs.com>
From: "Jay Paulson" <jpaulson
lbjs.com>
To: "PHP User Group" <php-general
lists.php.net>
Date: Fri, 10 Aug 2001 15:22:37 -0500
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Subject: compiling apache 1.3.20 with php 4.0.6
hello everyone... I'm trying to compile apache with mod_php but it gets to the line "+ Module php4: yes" and then spits out all this gibberish.. i've already installed php so i really don't know what this junk it has spit out to me.. any help? thanks...
+ Module php4: yes cd ..; gcc -DLINUX=22 -I/home/updates/php-4.0.6 -I/home/updates/php-4.0.6/main -I/ home/updates/php-4.0.6/main -I/home/updates/php-4.0.6/Zend -I/home/updates/p hp-4.0.6/Zend -I/home/updates/php-4.0.6/TSRM -I/home/updates/php-4.0.6/TSRM -I/home/updates/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/local/lib -rdynamic -L/usr/local/lib -Lmo dules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lc-clien t -ldl -lxmltok -lxmlparse -lsablot -lpam -lbz2 -lz -lcrypt -lresolv -lm -l dl -lnsl -lresolv -lm -lcrypt -ldl /usr/bin/ld: cannot find -lxmltok collect2: ld returned 1 exit status make: *** [dummy] Error 1 cd ..; gcc -DLINUX=22 -I/home/updates/php-4.0.6 -I/home/updates/php-4.0.6/main -I/ home/updates/php-4.0.6/main -I/home/updates/php-4.0.6/Zend -I/home/updates/p hp-4.0.6/Zend -I/home/updates/php-4.0.6/TSRM -I/home/updates/php-4.0.6/TSRM -I/home/updates/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/local/lib -rdynamic -L/usr/local/lib -Lmo dules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lc-clien t -ldl -lxmltok -lxmlparse -lsablot -lpam -lbz2 -lz -lcrypt -lresolv -lm -l dl -lnsl -lresolv -lm -lcrypt -ldl /usr/bin/ld: cannot find -lxmltok collect2: ld returned 1 exit status make: *** [dummy] Error 1 Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + using -ldl for vendor DSO support + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The above error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc.
======== Error Output for sanity check ======== ============= End of Error Report =============
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]