|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help
lists.php.net
Date: Mon Feb 11 2008 - 23:39:30 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 12 Feb 2008 05:39:30 -0000 Issue 5288
Topics (messages 269085 through 269144):
Re: Security scanner
269085 by: Emil Edeholt
Re: Gzipped output
269086 by: Eric Butera
269088 by: Per Jessen
269092 by: Eric Butera
269095 by: Daniel Brown
269097 by: Eric Butera
269098 by: Daniel Brown
269104 by: Per Jessen
269106 by: Eric Butera
269107 by: Stut
269116 by: Per Jessen
269117 by: Per Jessen
269128 by: Stut
php error loadin file
269087 by: miren.tinieblas.com
269090 by: Daniel Brown
269094 by: miren.tinieblas.com
269096 by: Daniel Brown
269114 by: Shawn McKenzie
Re: \n problems when creating an email
269089 by: Daniel Brown
Re: generate xls file on fly
269091 by: Daniel Brown
Re: Trouble with PHP server script
269093 by: Daniel Brown
DBR.php ???
269099 by: admin.buskirkgraphics.com
269100 by: Daniel Brown
269101 by: admin.buskirkgraphics.com
Re: mysql question
269102 by: Daniel Brown
PHP JavaBridge on Windows XP Pro
269103 by: David Giragosian
269105 by: Daniel Brown
Session and Multi Server Architecture
269108 by: chetan rane
269109 by: Paul Scott
269110 by: Nathan Nobbe
269111 by: chetan rane
269112 by: Nathan Nobbe
269113 by: Paul Scott
269119 by: Per Jessen
269120 by: mike
269122 by: Per Jessen
269123 by: Per Jessen
269125 by: mike
269126 by: Per Jessen
269127 by: mike
269130 by: Stut
269132 by: Nathan Nobbe
269134 by: Michael McGlothlin
269138 by: mike
DNS query in ldap_search
269115 by: Jan Müller
Run Process in back ground
269118 by: Richard Kurth
269121 by: Daniel Brown
269124 by: Per Jessen
269129 by: Stut
269131 by: Nathan Rixham
Sr. Software Engineer / PHP developer -Denver opportunities
269133 by: Nick Gasparro
How to read excel sheet and display it's contents.
269135 by: srihari naidu
269136 by: Jay Blanchard
269137 by: Daniel Brown
269139 by: srihari naidu
269141 by: Michael McGlothlin
269142 by: Jay Blanchard
269143 by: Warren Vail
269144 by: Wolf
Re: PHP Source code protection
269140 by: Greg Donald
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:
Thanks. Sure, I know how to escape and filter the input.. But since not
all my sites use PDO yet, and I use some external code it would be a
good idea to also use an sql injection scanner.
Emil
admin
buskirkgraphics.com wrote:
> Injections only work on sloppy code.
>
> If you are using globals you are asking for injections. Turn your globals off, use $_POST[var_name] and filter all user input.
>
> Just my opinion, I am sure some will disagree.
>
> Richard L. Buskirk
> ## Show me a man with no fear, I will point out the date on his tomb stone. ##
>
>
>
--
Hälsningar Emil Edeholt
Karlsson & Novak Medical AB
Telefon 090-154830
Mobil 070-3758222
E-post emil
knmedical.se
attached mail follows:
On Feb 10, 2008 2:33 PM, Per Jessen <per
computer.org> wrote:
> Andrés Robinet wrote:
>
> > How about something like this? (Needs debugging and testing, but...
> > just a hint after all)
> >
> > <?php
> >
> > ob_start("ob_gzhandler");
> >
> > while ($someString = getTheNextPartOfTheLargeFile()) {
> > echo $someString;
> > ob_flush();
> > }
> >
> > ?>
>
> I like it from a coding point of view (it's neat and elegant), but I
> don't think it achieves anything else than my initial suggestion of
> using exec(gzip -c).
>
>
>
> /Per Jessen, Zürich
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Except for that little thing where you shouldn't be using execs in
public facing code.
attached mail follows:
Eric Butera wrote:
>> I like it from a coding point of view (it's neat and elegant), but I
>> don't think it achieves anything else than my initial suggestion of
>> using exec(gzip -c).
>>
>
> Except for that little thing where you shouldn't be using execs in
> public facing code.
Why not?
/Per Jessen, Zürich
attached mail follows:
On Feb 11, 2008 10:44 AM, Per Jessen <per
computer.org> wrote:
> Eric Butera wrote:
>
> >> I like it from a coding point of view (it's neat and elegant), but I
> >> don't think it achieves anything else than my initial suggestion of
> >> using exec(gzip -c).
> >>
> >
> > Except for that little thing where you shouldn't be using execs in
> > public facing code.
>
> Why not?
>
>
>
>
> /Per Jessen, Zürich
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
You should never use exec & friends when there is another way around
the problem. It is a security concern.
attached mail follows:
On Feb 11, 2008 10:59 AM, Eric Butera <eric.butera
gmail.com> wrote:
> You should never use exec & friends when there is another way around
> the problem. It is a security concern.
Only as much as the design of the script allows.
Properly-filtered code (including using escapeshellarg() and
escapeshellcmd()) should work fine. Maybe a simple regexp to only
accept /(^[a-z0-9\s-_\.]*$)/i (untested) would be in order as well. I
do agree that it shouldn't be used as a replacement for anything that
can be done natively in PHP, but there are situations where using a
PHP-only system is impractical and imprudent.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
On Feb 11, 2008 11:08 AM, Daniel Brown <parasane
gmail.com> wrote:
should work fine
That is enough of a point, right? Why even take the risk if you don't
have to. :)
attached mail follows:
On Feb 11, 2008 11:11 AM, Eric Butera <eric.butera
gmail.com> wrote:
> On Feb 11, 2008 11:08 AM, Daniel Brown <parasane
gmail.com> wrote:
> should work fine
>
> if you don't have to. :)
.... which is my point. ;-P
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
Eric Butera wrote:
> You should never use exec & friends when there is another way around
> the problem. It is a security concern.
Why is it a security concern to execute another bit of code?
I really fail to see any security concern in doing e.g.
exec('gzip -c /tmp/myinputfile')
/Per Jessen, Zürich
attached mail follows:
On Feb 11, 2008 11:58 AM, Per Jessen <per
computer.org> wrote:
> Eric Butera wrote:
>
> > You should never use exec & friends when there is another way around
> > the problem. It is a security concern.
>
> Why is it a security concern to execute another bit of code?
>
> I really fail to see any security concern in doing e.g.
>
> exec('gzip -c /tmp/myinputfile')
>
>
>
> /Per Jessen, Zürich
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
In the real world would that be your exact usage? Would the file to
be compressed be a variable by chance?
attached mail follows:
Per Jessen wrote:
> Eric Butera wrote:
>
>> You should never use exec & friends when there is another way around
>> the problem. It is a security concern.
>
> Why is it a security concern to execute another bit of code?
>
> I really fail to see any security concern in doing e.g.
>
> exec('gzip -c /tmp/myinputfile')
Do that per request and it becomes a lot easier to DOS the server. Not a
'security' risk so much as a stability risk, but a risk all the same.
Personally I avoid firing up new processes from a web server - there are
just too many things that can go wrong, but you're free to take whatever
risks you want with your servers and clients.
-Stut
attached mail follows:
Eric Butera wrote:
>> Why is it a security concern to execute another bit of code?
>> I really fail to see any security concern in doing e.g.
>>
>> exec('gzip -c /tmp/myinputfile')
>>
>
> In the real world would that be your exact usage? Would the file to
> be compressed be a variable by chance?
I think in the context of this thread, the file to be compressed would
likely be a temporary file with a generated temporary name, so yes, the
filename would be held in a variable.
/Per Jessen, Zürich
attached mail follows:
Stut wrote:
> Per Jessen wrote:
>> Eric Butera wrote:
>>
>>> You should never use exec & friends when there is another way around
>>> the problem. It is a security concern.
>>
>> Why is it a security concern to execute another bit of code?
>>
>> I really fail to see any security concern in doing e.g.
>>
>> exec('gzip -c /tmp/myinputfile')
>
> Do that per request and it becomes a lot easier to DOS the server. Not
> a 'security' risk so much as a stability risk, but a risk all the
> same.
Make any PHP-based script available without usage-restriction, and
you've got yourself a DDOS potential. Using exec() doesn't change
anything.
/Per Jessen, Zürich
attached mail follows:
Per Jessen wrote:
> Stut wrote:
>
>> Per Jessen wrote:
>>> Eric Butera wrote:
>>>
>>>> You should never use exec & friends when there is another way around
>>>> the problem. It is a security concern.
>>> Why is it a security concern to execute another bit of code?
>>>
>>> I really fail to see any security concern in doing e.g.
>>>
>>> exec('gzip -c /tmp/myinputfile')
>> Do that per request and it becomes a lot easier to DOS the server. Not
>> a 'security' risk so much as a stability risk, but a risk all the
>> same.
>
> Make any PHP-based script available without usage-restriction, and
> you've got yourself a DDOS potential. Using exec() doesn't change
> anything.
I would argue that it makes it easier since creating and tearing down
processes is a pretty expensive operation for most OS's, but like I said
you're free to do whatever you want with your servers and clients.
Unfortunately I skipped past the start of this thread and I can't
remember what the OP was actually trying to do, but I view process
creation from a web request in the same way I view eval - it's almost
always the wrong way to get a job done.
-Stut
--
http://stut.net/
attached mail follows:
HEllo
with the next code i am trying for loading one file
$mibool = FALSE;
$Descriptor2 = fopen("usuarios.txt","r");
$usuarios=array();
$i=0;
while(!feof($Descriptor2)){
$buffer = fgets($Descriptor2,4086);
$usuarios[$i]=$buffer;
$i++;
}
fclose($Descriptor2);
$miusername = trim($username);
foreach($usuarios as $valor){
$mivalor=trim($valor);
if(strcasecmp($mivalor,$miusername) == 0){
$mibool=TRUE;
}else{
}
}
if($mibool == TRUE){
}else{
header("Location:out.php");
}
but into the log fiel appears this error:
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
feof(): supplied argument is not a valid stream resource in miscripts.php
on line 47, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
fgets(): supplied argument is not a valid stream resource in miscripts.php
on line 48, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
feof(): supplied argument is not a valid stream resource in miscripts.php
on line 47, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
fgets(): supplied argument is not a valid stream resource in miscripts.php
on line 48, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
feof(): supplied argument is not a valid stream resource in miscripts.php
on line 47, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
fgets(): supplied argument is not a valid stream resource in miscripts.php
on line 48, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
feof(): supplied argument is not a valid stream resource in miscripts.php
on line 47, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
fgets(): supplied argument is not a valid stream resource in miscripts.php
on line 48, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
feof(): supplied argument is not a valid stream resource in miscripts.php
on line 47, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
fgets(): supplied argument is not a valid stream resource in miscripts.php
on line 48, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
feof(): supplied argument is not a valid stream resource in miscripts.php
on line 47, referer: scripts1.php
[Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
fgets(): supplied argument is not a valid stream resource in miscripts.php
on line 48, referer: scripts1.php
[Fri Jan 11 22:44:24 2
can you help me for solving thsi error?
thanks
attached mail follows:
On Feb 11, 2008 10:40 AM, <miren
tinieblas.com> wrote:
> HEllo
> with the next code i am trying for loading one file
>
>
> $mibool = FALSE;
> $Descriptor2 = fopen("usuarios.txt","r");
Does this file exist in the directory from which the script is
ultimately run, and is it readable?
> $usuarios=array();
> $i=0;
> while(!feof($Descriptor2)){
> $buffer = fgets($Descriptor2,4086);
> $usuarios[$i]=$buffer;
> $i++;
> }
> fclose($Descriptor2);
> $miusername = trim($username);
> foreach($usuarios as $valor){
> $mivalor=trim($valor);
> if(strcasecmp($mivalor,$miusername) == 0){
> $mibool=TRUE;
> }else{
> }
>
> }
> if($mibool == TRUE){
>
> }else{
> header("Location:out.php");
> }
>
>
> but into the log fiel appears this error:
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> feof(): supplied argument is not a valid stream resource in miscripts.php
> on line 47, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> fgets(): supplied argument is not a valid stream resource in miscripts.php
> on line 48, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> feof(): supplied argument is not a valid stream resource in miscripts.php
> on line 47, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> fgets(): supplied argument is not a valid stream resource in miscripts.php
> on line 48, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> feof(): supplied argument is not a valid stream resource in miscripts.php
> on line 47, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> fgets(): supplied argument is not a valid stream resource in miscripts.php
> on line 48, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> feof(): supplied argument is not a valid stream resource in miscripts.php
> on line 47, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> fgets(): supplied argument is not a valid stream resource in miscripts.php
> on line 48, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> feof(): supplied argument is not a valid stream resource in miscripts.php
> on line 47, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> fgets(): supplied argument is not a valid stream resource in miscripts.php
> on line 48, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> feof(): supplied argument is not a valid stream resource in miscripts.php
> on line 47, referer: scripts1.php
> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
> fgets(): supplied argument is not a valid stream resource in miscripts.php
> on line 48, referer: scripts1.php
> [Fri Jan 11 22:44:24 2
>
>
> can you help me for solving thsi error?
> thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
> On Feb 11, 2008 10:40 AM, <miren
tinieblas.com> wrote:
>> HEllo
>> with the next code i am trying for loading one file
>>
>>
>> $mibool = FALSE;
>> $Descriptor2 = fopen("usuarios.txt","r");
>
> Does this file exist in the directory from which the script is
> ultimately run, and is it readable?
>
yes (both)
>
>> $usuarios=array();
>> $i=0;
>> while(!feof($Descriptor2)){
>> $buffer = fgets($Descriptor2,4086);
>> $usuarios[$i]=$buffer;
>> $i++;
>> }
>> fclose($Descriptor2);
>> $miusername = trim($username);
>> foreach($usuarios as $valor){
>> $mivalor=trim($valor);
>> if(strcasecmp($mivalor,$miusername) == 0){
>> $mibool=TRUE;
>> }else{
>> }
>>
>> }
>> if($mibool == TRUE){
>>
>> }else{
>> header("Location:out.php");
>> }
>>
>>
>> but into the log fiel appears this error:
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> feof(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 47, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> fgets(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 48, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> feof(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 47, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> fgets(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 48, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> feof(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 47, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> fgets(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 48, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> feof(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 47, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> fgets(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 48, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> feof(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 47, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> fgets(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 48, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> feof(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 47, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2008] [error] [client 192.168.1.2] PHP Warning:
>> fgets(): supplied argument is not a valid stream resource in
>> miscripts.php
>> on line 48, referer: scripts1.php
>> [Fri Jan 11 22:44:24 2
>>
>>
>> can you help me for solving thsi error?
>> thanks
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> </Dan>
>
> Daniel P. Brown
> Senior Unix Geek
> <? while(1) { $me = $mind--; sleep(86400); } ?>
>
attached mail follows:
On Feb 11, 2008 11:12 AM, <miren
tinieblas.com> wrote:
> > On Feb 11, 2008 10:40 AM, <miren
tinieblas.com> wrote:
> >> HEllo
> >> with the next code i am trying for loading one file
> >>
> >>
> >> $mibool = FALSE;
> >> $Descriptor2 = fopen("usuarios.txt","r");
> >
> > Does this file exist in the directory from which the script is
> > ultimately run, and is it readable?
> >
>
> yes (both)
And is the file being opened properly? Perhaps those error
messages are old, from when you first started testing the script. Try
emptying the error log and running the script again to see if they're
still being written.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
Daniel Brown wrote:
> On Feb 11, 2008 11:12 AM, <miren
tinieblas.com> wrote:
>>> On Feb 11, 2008 10:40 AM, <miren
tinieblas.com> wrote:
>>>> HEllo
>>>> with the next code i am trying for loading one file
>>>>
>>>>
>>>> $mibool = FALSE;
>>>> $Descriptor2 = fopen("usuarios.txt","r");
>>> Does this file exist in the directory from which the script is
>>> ultimately run, and is it readable?
>>>
>> yes (both)
>
> And is the file being opened properly? Perhaps those error
> messages are old, from when you first started testing the script. Try
> emptying the error log and running the script again to see if they're
> still being written.
>
It is currently February 11, your logs state January 11. Did it take
you one month to find this list?
attached mail follows:
On Feb 11, 2008 7:10 AM, Angelo Zanetti <angelo
elemental.co.za> wrote:
> Hi guys,
>
> I am making email text based on some fields the user fills in and then email
> the admin the details.
>
> I am having a problem where sometimes the \n (new line) works and sometimes
> it just does nothing. Im not sure the cause but I cant seem to figure it
> out.
Try using HEREDOC syntax instead:
$message =<<<EOM
How far would they be prepared to travel to
event venue?
$travel
Do you have a specific location
of preference?
$locationPref
City or country preference: $cityPref
EOM;
It may not prevent the client from reformatting the message on
delivery, as Stut, Nathan, and Wolf already correctly mentioned, but
placing it in a HEREDOC will improve readability, send an exact
structure without need for interpretation (of
newlines-vs-carriage-return-newlines and number of spaces per tab),
and allow you to freely use quotes without having to remember to
escape them (or escape to insert a variable).
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
On Feb 11, 2008 7:41 AM, Hiep Nguyen <hiep
ee.ucr.edu> wrote:
> any suggestion for a tutorial on session in php??? thanks.
http://www.google.com/search?q=working+with+php+sessions
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
On Feb 10, 2008 10:09 PM, Robert Cox <Robert.Cox
utas.edu.au> wrote:
> Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL
> forwarded site? I am trying to find the authorised user id so that I can
> access an SQL database with it. Anyone got some ideas?
Once again I'll defer to Dan Shirah, who was working with PHP and
the AUTH_USER stuff. He may be able to help you out through his
experience with it.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
As much as I admire Daniel, I think who ever sent me this question needs to rethink thier naming convention.
On Feb 9,2008 12:47 PM, WHOAMI <whoami
aol.com> wrote:
> Would you use this to server auth?
>
> if($_REQUEST['from']!="15600007d5af328786cdc81ed0f456bf")
> {
> $DanielBrown_rules = "index.php";// Kick back to first page
> }elseif($_REQUEST['from'=="15600007d5af328786cdc81ed0f456bf")
> {
> $DanielBrown_rules = "http://www.yourwebsite.com/main_content.php?
> auth=15600007d5af328687cdc81ed0f456bf&msg=1"; //Take to the right page
> }
attached mail follows:
On Feb 11, 2008 11:19 AM, <admin
buskirkgraphics.com> wrote:
> As much as I admire Daniel, I think who ever sent me this question needs to rethink thier naming convention.
>
>
> On Feb 9,2008 12:47 PM, WHOAMI <whoami
aol.com> wrote:
> > Would you use this to server auth?
> >
> > if($_REQUEST['from']!="15600007d5af328786cdc81ed0f456bf")
> > {
> > $DanielBrown_rules = "index.php";// Kick back to first page
> > }elseif($_REQUEST['from'=="15600007d5af328786cdc81ed0f456bf")
> > {
> > $DanielBrown_rules = "http://www.yourwebsite.com/main_content.php?
> > auth=15600007d5af328687cdc81ed0f456bf&msg=1"; //Take to the right page
> > }
That's a little strange. It's not me (not even my coding style),
and I'm certainly not the only Daniel Brown who uses PHP.... but if
it's about me, it's nice to know I have fans! ;-P
Which thread was that on Rich?
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
No clue Daniel, was sent to me directly using a non returnable email. I had to post it here because it had your name all over it.
I agree not your style at all.
Just beware another name for fan is (Stalker). lol
Rich.
On Feb 11, 2008 11:19 AM, <admin
buskirkgraphics.com> wrote:
> As much as I admire Daniel, I think who ever sent me this question needs to
rethink thier naming convention.
>
>
> On Feb 9,2008 12:47 PM, WHOAMI <whoami
aol.com> wrote:
> > Would you use this to server auth?
> >
> > if($_REQUEST['from']!="15600007d5af328786cdc81ed0f456bf")
> > {
> > $DanielBrown_rules = "index.php";// Kick back to first page
> > }elseif($_REQUEST['from'=="15600007d5af328786cdc81ed0f456bf")
> > {
> > $DanielBrown_rules = "http://www.yourwebsite.com/main_content.php?
> > auth=15600007d5af328687cdc81ed0f456bf&msg=1"; //Take to the right page
> > }
That's a little strange. It's not me (not even my coding style),
and I'm certainly not the only Daniel Brown who uses PHP.... but if
it's about me, it's nice to know I have fans! ;-P
Which thread was that on Rich?
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Feb 10, 2008 1:03 PM, Per Jessen <per
computer.org> wrote:
> Yep, you're right - I read mysql_query where the OP said mysql_result.
Don't feel bad. I did the exact same thing when I was reading
over the post just now.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
At the request of a supervisor who only programs in Java, I installed
JavaBridge on an intranet web server running Apache 2.0.59 and PHP 5.1.6,
and we've gotten a few PHP/Java applications up and running.
Problem is, unless I'm having a senior moment, they only work if a user is
logged into the server. Some Googling suggests that since Java, or the Java
Virtual Machine, is not a service on Windows, it goes away when you log out,
so there is nothing for the bridge connect to.
Is this a reasonable understanding of the problem? Is there a solution other
than keeping 'some' user logged in and the machine behind a locked door?
I do manage some CentOS web servers here, but the IS guys really want me to
use only RPM installs of PHP, and the Java module is not present as far as I
can see.
--
-David.
When the power of love
overcomes the love of power,
the world will know peace.
-Jimi Hendrix
attached mail follows:
On Feb 11, 2008 11:45 AM, David Giragosian <dgiragosian
gmail.com> wrote:
> At the request of a supervisor who only programs in Java, I installed
> JavaBridge on an intranet web server running Apache 2.0.59 and PHP 5.1.6,
> and we've gotten a few PHP/Java applications up and running.
>
> Problem is, unless I'm having a senior moment, they only work if a user is
> logged into the server. Some Googling suggests that since Java, or the Java
> Virtual Machine, is not a service on Windows, it goes away when you log out,
> so there is nothing for the bridge connect to.
>
> Is this a reasonable understanding of the problem? Is there a solution other
> than keeping 'some' user logged in and the machine behind a locked door?
>
> I do manage some CentOS web servers here, but the IS guys really want me to
> use only RPM installs of PHP, and the Java module is not present as far as I
> can see.
>
> --
>
> -David.
>
> When the power of love
> overcomes the love of power,
> the world will know peace.
>
> -Jimi Hendrix
>
I don't know if this will help you out, David, but if you don't
already know about RPMFind.net, you should get well-acquainted with
it.
http://www.google.com/search?q=site%3Arpmfind.net+javabridge
Also, if you're using yum, update your repositories and attempt to
install JavaBridge via that. It should resolve all dependency issues
automatically.
Specifically to your question, I believe you could just run an
application as a SYSTEM service on Windoze, but I'm not positive.
However, I did find this application that may help you out a bit:
http://www.application-as-service.com/order/
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
HI All
Can any one tell me what will be the best way to maintain session
information on a Multi Server Architecture i.e a Web Cluster.
--
Have A pleasant Day
Chetan. D. Rane
Location: India
Contact: +91-9986057255
other ID: chetscool
yahoo.com
chetrane
rediffmail.com
attached mail follows:
On Mon, 2008-02-11 at 23:03 +0530, chetan rane wrote:
> Can any one tell me what will be the best way to maintain session
> information on a Multi Server Architecture i.e a Web Cluster.
Memcached session handler. Provides failover as well as speeding things
up significantly.
Either that or in a db, but if you are already in clustering, you
probably have a memcached instance already right?
--Paul
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm
attached mail follows:
On Feb 11, 2008 12:33 PM, chetan rane <chetan.d.rane
gmail.com> wrote:
> HI All
>
> Can any one tell me what will be the best way to maintain session
> information on a Multi Server Architecture i.e a Web Cluster.
implement session_set_save_handler() with a database, or
ideally, memcache.
-nathan
attached mail follows:
Hi all
can you please let me know where i can find about Mem cache.
On Feb 11, 2008 11:11 PM, Nathan Nobbe <quickshiftin
gmail.com> wrote:
> On Feb 11, 2008 12:33 PM, chetan rane <chetan.d.rane
gmail.com> wrote:
>
> > HI All
> >
> > Can any one tell me what will be the best way to maintain session
> > information on a Multi Server Architecture i.e a Web Cluster.
>
>
> implement session_set_save_handler() with a database, or
> ideally, memcache.
>
> -nathan
>
--
Have A pleasant Day
Chetan. D. Rane
Location: India
Contact: +91-9986057255
other ID: chetscool
yahoo.com
chetrane
rediffmail.com
attached mail follows:
On Feb 11, 2008 12:47 PM, chetan rane <chetan.d.rane
gmail.com> wrote:
> Hi all
> can you please let me know where i can find about Mem cache.
http://us.php.net/manual/en/ref.memcache.php
-nathan
attached mail follows:
On Mon, 2008-02-11 at 12:48 -0500, Nathan Nobbe wrote:
> http://us.php.net/manual/en/ref.memcache.php
>
and http://www.danga.com/memcached/
--Paul
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm
attached mail follows:
chetan rane wrote:
> HI All
>
> Can any one tell me what will be the best way to maintain session
> information on a Multi Server Architecture i.e a Web Cluster.
Make sure all requests from the same client go to the same server. This
is often done by IP-address.
/Per Jessen, Zürich
attached mail follows:
On 2/11/08, Per Jessen <per
computer.org> wrote:
> Make sure all requests from the same client go to the same server. This
> is often done by IP-address.
isn't that an archaic piece of advice?
with shared storage and database/memcache for sessions, i don't find
this is necessary at all. in fact, as long as your load balancer has
the SSL certs installed, you don't even need any sort of affinity for
that either right?
i have -never- done any sort of IP affinity. it just works. i use a
mysql-based session handler (used to use msession but it added too
much latency)
perhaps i'm missing something here though. i might be wrong about the
SSL stuff, i have not personally done that yet.
attached mail follows:
mike wrote:
> On 2/11/08, Per Jessen <per
computer.org> wrote:
>> Make sure all requests from the same client go to the same server.
>> This is often done by IP-address.
>
> isn't that an archaic piece of advice?
I hope not. I've worked with this type of load-distribution since the
early 90s. (far from always IP-address based).
Check out persistency in LVS for instance:
http://www.linuxvirtualserver.org/docs/persistence.html
/Per Jessen, Zürich
attached mail follows:
Paul Scott wrote:
> Either that or in a db, but if you are already in clustering, you
> probably have a memcached instance already right?
Am I right in thinking that memcached will replicate session information
across a cluster, and that your application is only safe as long as you
stick _all_ session-related info in $_SESSION?
/Per Jessen, Zürich
attached mail follows:
On 2/11/08, Per Jessen <per
computer.org> wrote:
> mike wrote:
>
> I hope not. I've worked with this type of load-distribution since the
> early 90s. (far from always IP-address based).
>
> Check out persistency in LVS for instance:
> http://www.linuxvirtualserver.org/docs/persistence.html
i know persistence handling is an option in LVS, but i haven't seen
the need to use it. i use LVS right now without even bothering with
any of that.
[the only possibility would be if i needed to setup persistence for
SSL. but i believe if client <-> LB, as long as the LB has it
installed/presents a single SSL cert to the client it would still
work. that one i wouldn't guarantee though :)]
i suppose FTP would be a protocol that needs it. but nobody here is
looking to load balance FTP on this list :)
besides, if you are sticking a user on the same server, what happens
when that server dies? possible connection stampedes to others, their
session info and experience is trashed (unless LVS migrates it fast
enough)
attached mail follows:
mike wrote:
>> Check out persistency in LVS for instance:
>> http://www.linuxvirtualserver.org/docs/persistence.html
>
> i know persistence handling is an option in LVS, but i haven't seen
> the need to use it. i use LVS right now without even bothering with
> any of that.
Because you've chosen another option - memcached presumably - which is
more expensive over all. (IMHO).
> besides, if you are sticking a user on the same server, what happens
> when that server dies?
On the next request, LVS will know not to try that server, and the user
will move to another one. Obviously the session-context will die, but
is that really a big deal? How often does one of your servers die?
Sure, if you've got 10,000 in a cluster, you'll have fans and harddisks
pop every so often, but I have my doubts about memcached scaling to
that level (please correct me if I'm wrong here, I have _no_ experience
with memcached).
> possible connection stampedes to others, their
> session info and experience is trashed (unless LVS migrates it fast
> enough)
LVS won't migrate any of your data for you. It'll shift the client to
an available server, that's all.
/Per Jessen, Zürich
attached mail follows:
On 2/11/08, Per Jessen <per
computer.org> wrote:
> Because you've chosen another option - memcached presumably - which is
> more expensive over all. (IMHO).
mysql (stated above), and i already have a connection open each page...
> On the next request, LVS will know not to try that server, and the user
> will move to another one. Obviously the session-context will die, but
> is that really a big deal? How often does one of your servers die?
> Sure, if you've got 10,000 in a cluster, you'll have fans and harddisks
> pop every so often, but I have my doubts about memcached scaling to
> that level (please correct me if I'm wrong here, I have _no_ experience
> with memcached).
actually right now i have an issue on my system i'm working on
resolving - and it does create some poor experience for users. when
one of my webservers is taken out of the pool (softly due to a
healthcheck failure, not via reboot) those clients can get connection
refused, or connection reset (if mid-connection) - and if anyone is
uploading or downloading a file, they're screwed too. persistence or
not, that won't solve this, but it is my note about servers going down
and the little bit of non-transparency of the failover...
> LVS won't migrate any of your data for you. It'll shift the client to
> an available server, that's all.
yes i know that. so you're either advocating:
a) persistence AND central session management, or
b) persistence and not keeping anything important in a session in case
the server is pulled out of the pool? (assuming non-centralized
session support)
attached mail follows:
Per Jessen wrote:
> mike wrote:
>
>>> Check out persistency in LVS for instance:
>>> http://www.linuxvirtualserver.org/docs/persistence.html
>> i know persistence handling is an option in LVS, but i haven't seen
>> the need to use it. i use LVS right now without even bothering with
>> any of that.
>
> Because you've chosen another option - memcached presumably - which is
> more expensive over all. (IMHO).
Based on what? I'm currently looking at replacing a file-based cache
with memcached and I'm interested in all justified opinions.
>> besides, if you are sticking a user on the same server, what happens
>> when that server dies?
>
> On the next request, LVS will know not to try that server, and the user
> will move to another one. Obviously the session-context will die, but
> is that really a big deal? How often does one of your servers die?
> Sure, if you've got 10,000 in a cluster, you'll have fans and harddisks
> pop every so often, but I have my doubts about memcached scaling to
> that level (please correct me if I'm wrong here, I have _no_ experience
> with memcached).
Facebook. Digg. LiveJournal. That enough scalability proof for ya? If
not there are plenty more where those came from.
-Stut
--
http://stut.net/
attached mail follows:
On Feb 11, 2008 4:55 PM, Stut <stuttle
gmail.com> wrote:
> Per Jessen wrote:
> > On the next request, LVS will know not to try that server, and the user
> > will move to another one. Obviously the session-context will die, but
> > is that really a big deal? How often does one of your servers die?
> > Sure, if you've got 10,000 in a cluster, you'll have fans and harddisks
> > pop every so often, but I have my doubts about memcached scaling to
> > that level (please correct me if I'm wrong here, I have _no_ experience
> > with memcached).
>
> Facebook.
when i was in dc at the conference last year, there were several speakers
from facebook. they claimed they have (had) 400 servers w/ 4TB of memory
at on the memcache tier.
-nathan
attached mail follows:
> implement session_set_save_handler() with a database, or
> ideally, memcache.
I use memcache with a secondary db backing. Works pretty well. I use it
for session data as well as any other uses I want to make of memcache.
Memcache makes it fast and using the db makes it more persistent and
able to handle larger chunks of data.
--
Michael McGlothlin
Southwest Plumbing Supply
attached mail follows:
On 2/11/08, Nathan Nobbe <quickshiftin
gmail.com> wrote:
> when i was in dc at the conference last year, there were several speakers
> from facebook. they claimed they have (had) 400 servers w/ 4TB of memory
> at on the memcache tier.
actually, it's ~ 400 according to this (200 active / 200 hot spare) -
they're 16GB 4-core boxes :)
http://lists.danga.com/pipermail/memcached/2007-May/004098.html
oh, to have a server farm like that.
attached mail follows:
Hi,
I have a strange problem here. I try to authenticate users with LDAP
at an Active Directory Server (AD). Everything works fine. Just in
some cases, authentication is not possible. As we discovered, this has
something to do with a strange DNS Server setting. Sometimes a nslookup
for the (imaginary) host example.ch returns an address and sometimes it
does not. In times when the DNS server reports an (arbitrary) address
the authentication process gets broken.
Some testing with tcpdumps and the like enabled us to locate the problem
in the php function ldap_search. If this function is called like it is
shown in the code below, it starts a DNS query to the context (example.ch
in this case).
So my question is, why does "ldap_search" start a DNS query for the
context?
Since I'm not able to make any changes to the DNS server, I need the
php-side get fixed.
Does anyone has an idea?
Regards,
Jan
<?php
// $server == LDAP Server
// $bind_cn == Distinguished Name of (AD) LDAP Bind User
// $bind_pw == Password of (AD) LDAP Bind User
// "DC=example,DC=ch" == User lookup Context
$con = ldap_connect($server);
$bnd = ldap_bind($con, $bind_cn, $bind_pw);
$res = ldap_search($con, "DC=example,DC=ch", "sAMAccountName=username");
ldap_close($con);
?>
attached mail follows:
Is there a way that I can call a function that will send an email and
then move on redirecting to another website without having to what for
the email to send?
SendEmail($memberemail,$MailFrom,$MailHost);
header("Location:http://domain.com");
attached mail follows:
On Feb 11, 2008 2:23 PM, Richard Kurth <richardkurth
centurytel.net> wrote:
> Is there a way that I can call a function that will send an email and
> then move on redirecting to another website without having to what for
> the email to send?
> SendEmail($memberemail,$MailFrom,$MailHost);
> header("Location:http://domain.com");
There are a variety of ways, including setting a cron, running an
external script, or placing SendEmail() after the header("Location:
xxx") call and inserting ignore_user_abort(1) before redirecting the
user, in case PHP and Apache learn that the socket is closed to the
user.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
Richard Kurth wrote:
> Is there a way that I can call a function that will send an email and
> then move on redirecting to another website without having to what for
> the email to send?
> SendEmail($memberemail,$MailFrom,$MailHost);
> header("Location:http://domain.com");
Yes:
mail( .... );
header("Location:http://domain.com");
mail() only takes as long as it takes to drop the mail in your local
filesystem.
/Per Jessen, Zürich
attached mail follows:
Per Jessen wrote:
> Richard Kurth wrote:
>
>> Is there a way that I can call a function that will send an email and
>> then move on redirecting to another website without having to what for
>> the email to send?
>> SendEmail($memberemail,$MailFrom,$MailHost);
>> header("Location:http://domain.com");
>
> Yes:
>
> mail( .... );
> header("Location:http://domain.com");
>
>
> mail() only takes as long as it takes to drop the mail in your local
> filesystem.
Not necessarily. As discussed at length on this list last month sendmail
(or a substitute) may try to deliver the message rather than passing it
to a local MTA.
Richard: If sending the mail is taking a long time you need to look at
exactly how you're sending it. As Per points out the fastest way to send
email is to dump it to a local MTA. You should be able to configure your
system to do that pretty easily, but if you don't have that kind of
access either change hosts or look at poking the message into an
outgoing queue you implement yourself (file or db-based with a cron job
to periodically process it).
-Stut
--
http://stut.net/
attached mail follows:
vote - combine richard and daniels replies and you have a winner!
Nathan
Richard Kurth wrote:
> Is there a way that I can call a function that will send an email and
> then move on redirecting to another website without having to what for
> the email to send?
> SendEmail($memberemail,$MailFrom,$MailHost);
> header("Location:http://domain.com");
attached mail follows:
Hello Group,
I work for an executive search firm in Denver. I work with a handful of
carefully selected clients that are offering excellent opportunities for PHP
professionals. We are very excited to be working with these clients as they
offer extraordinary opportunities and top notch compensation. Currently I
have immediate openings for Sr. Software Engineers.
They are great FTE positions with a fast growing, and very successful
organization based in Denver (relocation Assistance provide). We are looking
for Senior Software Engineers to join our dynamic and growing Internet-based
company. The individuals will be responsible for the development,
implementation, and maintenance of our scalable, reusable, web/software
based user interfaces. You must be familiar with design patterns and be able
to write abstract classes that adhere to standard OOP methodologies. The
qualified candidate will expand our web-based platform, building new
features and products. You will work with the leaders in online media and
advertising.
Requirements:
* 4-6 years of commercial application development experience with open
source technologies
* Expert knowledge of Linux, Apache, MySQL and PHP 4, PHP 5, Perl/Python a
bonus.
* BA/BS in Computer Science or equivalent experience
* Object-oriented design and distributed systems
* Open source development tools, languages and application servers.
* Competent with JavaScript, Prototype, Scriptaculous, Moo
* OOP, SQL, Linux, HTML
Kind regards,
Nick Gasparro
Managing Partner, REMY Corp.
1637 Wazee Street
Denver, CO 80202
303-539-0448 Direct
303-547-7469 Cell
<mailto:nick
remycorp.com> nick
remycorp.com
<http://www.remycorp.com> www.remycorp.com
attached mail follows:
Date: Mon, 11 Feb 2008 14:51:57 -0800 (PST)
From: srihari naidu <srihari_asd
yahoo.com>
To: PHP Mail List <php-general
lists.php.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-801805506-1202770317=:53098"
Content-Transfer-Encoding: 8bit
Message-ID: <814242.53098.qm
web54401.mail.yahoo.com>
Subject: How to read excel sheet and display it's contents.
--0-801805506-1202770317=:53098
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi, can any suggest me how to read and display the content in a html page.
I tried phpexcelreadrer at http://sourceforge.net/projects/phpexcelreader/ but got error
Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php) [function.require-once]: failed to open stream: No such file or directory in D:\phpdocs\reader2\Excel\reader.php on line 31
Fatal error: require_once() [function.require]: Failed opening required 'Spreadsheet/Excel/Reader/OLERead.php' (include_path='.;C:\php5\pear') in D:\phpdocs\reader2\Excel\reader.php on line 31
can any please suggest me the solution for this error please.
Thanks in advance
Regards,
Sri Hari
---------------------------------
Never miss a thing. Make Yahoo your homepage.
--0-801805506-1202770317=:53098--
attached mail follows:
[snip]
Hi, can any suggest me how to read and display the content in a html
page.
I tried phpexcelreadrer at
http://sourceforge.net/projects/phpexcelreader/ but got error
Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php)
[function.require-once]: failed to open stream: No such file or
directory in D:\phpdocs\reader2\Excel\reader.php on line 31
Fatal error: require_once() [function.require]: Failed opening required
'Spreadsheet/Excel/Reader/OLERead.php' (include_path='.;C:\php5\pear')
in D:\phpdocs\reader2\Excel\reader.php on line 31
can any please suggest me the solution for this error please.
[/snip]
It is telling you that a file is missing or that you are pointed at the
wrong location for the file.
attached mail follows:
On Feb 11, 2008 5:51 PM, srihari naidu <srihari_asd
yahoo.com> wrote:
> Hi, can any suggest me how to read and display the content in a html page.
>
> I tried phpexcelreadrer at http://sourceforge.net/projects/phpexcelreader/ but got error
>
> Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php) [function.require-once]: failed to open stream: No such file or directory in D:\phpdocs\reader2\Excel\reader.php on line 31
>
> Fatal error: require_once() [function.require]: Failed opening required 'Spreadsheet/Excel/Reader/OLERead.php' (include_path='.;C:\php5\pear') in D:\phpdocs\reader2\Excel\reader.php on line 31
STFW and RTFM.
It means that the files being required do not exist where the
script is looking for them.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
attached mail follows:
I think i am not clear with my question. I know that the files are missing at the correct location.
Please suggest me any other free code that i can use instead of the code i tried.
Thanks in advance.
Regards,
Sri Hari.
Jay Blanchard <jblanchard
pocket.com> wrote:
[snip]
Hi, can any suggest me how to read and display the content in a html
page.
I tried phpexcelreadrer at
http://sourceforge.net/projects/phpexcelreader/ but got error
Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php)
[function.require-once]: failed to open stream: No such file or
directory in D:\phpdocs\reader2\Excel\reader.php on line 31
Fatal error: require_once() [function.require]: Failed opening required
'Spreadsheet/Excel/Reader/OLERead.php' (include_path='.;C:\php5\pear')
in D:\phpdocs\reader2\Excel\reader.php on line 31
can any please suggest me the solution for this error please.
[/snip]
It is telling you that a file is missing or that you are pointed at the
wrong location for the file.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
attached mail follows:
Message-ID: <47B0DBFD.7040003
swplumb.com>
Date: Mon, 11 Feb 2008 16:36:29 -0700
From: Michael McGlothlin <michaelm
swplumb.com>
MIME-Version: 1.0
To: srihari naidu <srihari_asd
yahoo.com>
CC: php-general
lists.php.net
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms020300030400050708020409"
Subject: Re: [PHP] How to read excel sheet and display it's contents.
--------------ms020300030400050708020409
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Tried http://www.codeplex.com/PHPExcel ?
> I think i am not clear with my question. I know that the files are missing at the correct location.
> Please suggest me any other free code that i can use instead of the code i tried.
>
> Thanks in advance.
>
> Regards,
> Sri Hari.
>
>
> Jay Blanchard <jblanchard
pocket.com> wrote:
> [snip]
> Hi, can any suggest me how to read and display the content in a html
> page.
>
> I tried phpexcelreadrer at
> http://sourceforge.net/projects/phpexcelreader/ but got error
>
> Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php)
> [function.require-once]: failed to open stream: No such file or
> directory in D:\phpdocs\reader2\Excel\reader.php on line 31
>
> Fatal error: require_once() [function.require]: Failed opening required
> 'Spreadsheet/Excel/Reader/OLERead.php' (include_path='.;C:\php5\pear')
> in D:\phpdocs\reader2\Excel\reader.php on line 31
>
>
> can any please suggest me the solution for this error please.
> [/snip]
>
> It is telling you that a file is missing or that you are pointed at the
> wrong location for the file.
>
>
>
> ---------------------------------
> Never miss a thing. Make Yahoo your homepage.
>
--
Michael McGlothlin
Southwest Plumbing Supply
--------------ms020300030400050708020409
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.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hgeis3WRG8Yaw7eJUffZbicfkpX2dDs9HdhqlQLCl5I3gtwhhJJbWSQjEs7
2h8gPEJsQyZw+y6p28wkCyPX+OQk5Ol1nAcEmqfANiNoDJpfd8S8TUXUe1ZmH9mQ4qhudi2v
LlnBhX+QO4r5IOqT6LoXzqtpKnzWRfjezEGmAAAAAAAA
--------------ms020300030400050708020409--
attached mail follows:
[snip]
I think i am not clear with my question. I know that the files are
missing at the correct location.
Please suggest me any other free code that i can use instead of
the code i tried.
[/snip]
Convert the spreadsheet to CSV and then you can use fopen, fgets, etc.
to read the file.
attached mail follows:
This latest one is a new solution to me, but I have tried several others,
only to have them fail in short order. Seems that excel formats have
changed many times, and while some of these solutions work well with a
particular release of excel (2007 for this one, I think), I found that every
user out there seems to have a different version of excel (even within the
same company), I finally gave up.
If you can get your users to save their files in csv format, you might have
better luck being able to read them, but don't hold me to it.
Good Luck,
Warren Vail
I finally settled for CSV, but even there Microsoft plays games with the
format, or so it seems.
> -----Original Message-----
> From: Michael McGlothlin [mailto:michaelm
swplumb.com]
> Sent: Monday, February 11, 2008 3:36 PM
> To: srihari naidu
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] How to read excel sheet and display it's contents.
>
> Tried http://www.codeplex.com/PHPExcel ?
> > I think i am not clear with my question. I know that the files are
> missing at the correct location.
> > Please suggest me any other free code that i can use instead of
> the code i tried.
> >
> > Thanks in advance.
> >
> > Regards,
> > Sri Hari.
> >
> >
> > Jay Blanchard <jblanchard
pocket.com> wrote:
> > [snip]
> > Hi, can any suggest me how to read and display the content in a html
> > page.
> >
> > I tried phpexcelreadrer at
> > http://sourceforge.net/projects/phpexcelreader/ but got error
> >
> > Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php)
> > [function.require-once]: failed to open stream: No such file or
> > directory in D:\phpdocs\reader2\Excel\reader.php on line 31
> >
> > Fatal error: require_once() [function.require]: Failed opening required
> > 'Spreadsheet/Excel/Reader/OLERead.php' (include_path='.;C:\php5\pear')
> > in D:\phpdocs\reader2\Excel\reader.php on line 31
> >
> >
> > can any please suggest me the solution for this error please.
> > [/snip]
> >
> > It is telling you that a file is missing or that you are pointed at the
> > wrong location for the file.
> >
> >
> >
> > ---------------------------------
> > Never miss a thing. Make Yahoo your homepage.
> >
>
>
> --
> Michael McGlothlin
> Southwest Plumbing Supply
attached mail follows:
I have to agree with this, CSV is the way to go. While you have to train your users to save as CSV, you are better off using a more universal standard the microshaft standards.
Sorry for the top posting, the Q doesn't like to bottom post. :/
Wolf
-----Original Message-----
From: Jay Blanchard <jblanchard
pocket.com>
Sent: Monday, February 11, 2008 6:36 PM
To: srihari naidu <srihari_asd
yahoo.com>; php-general
lists.php.net
Subject: RE: [PHP] How to read excel sheet and display it's contents.
[snip]
I think i am not clear with my question. I know that the files are
missing at the correct location.
Please suggest me any other free code that i can use instead of
the code i tried.
[/snip]
Convert the spreadsheet to CSV and then you can use fopen, fgets, etc.
to read the file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On 2/7/08, Daniel Brown <parasane
gmail.com> wrote:
> Because who's to say you're selling to one client? If it's your
> Intellectual Property, wouldn't you want to protect it, at least as
> much as possible?
No, I think protecting software in any way is a waste if resources,
especially software you plan to sell to someone. Prohibiting the
buyer from making changes to software they purchased has zero gains
for anyone involved.
If I did want to protect some software I wrote, and I was willing to
pay money to do so, I would want to use something much more capable
than the Zend Encoder. In principle I'd at least want something that
costs less than it's equivalent decoder.
--
Greg Donald
http://destiney.com/
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]