|
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: Sun Aug 26 2001 - 15:02:03 CDT
php-general Digest 26 Aug 2001 20:02:03 -0000 Issue 839
Topics (messages 64479 through 64527):
POST without Content-Type?
64479 by: Chris Maresca
64480 by: Rasmus Lerdorf
64521 by: Chris Maresca
Error while passing parameters as path
64481 by: Anas Mughal
64482 by: Rasmus Lerdorf
64483 by: Anas Mughal
64502 by: Rasmus Lerdorf
IP security
64484 by: nafiseh saberi
64506 by: Ralph Deffke
Re: disable_functions....
64485 by: Andy Ladouceur
convert timestamp to time?
64486 by: nafiseh saberi
64498 by: Dave
Thinking about going to ASP
64487 by: ReDucTor
64488 by: Jason Brooke
64513 by: pierre-yves
PHP as an Apache module
64489 by: Chris
Splitting 1 Colomn into 2
64490 by: HTTP-404
64492 by: Hugh Danaher
Re: The future of PHP
64491 by: Zeev Suraski
64515 by: pierre-yves
#!/usr/bin/perl -T
64493 by: nafiseh saberi
64495 by: Yasuo Ohgaki
64501 by: Jeff Lewis
Premature end of script headers
64494 by: nafiseh saberi
64505 by: Ryan Fischer
I need some help with this code
64496 by: Javi - NeoDigit
Re: Program to check for cookies
64497 by: Dave
64511 by: Ralph Deffke
Re: path to php
64499 by: ReDucTor
64500 by: ReDucTor
thanks Dave
64503 by: nafiseh saberi
show number of search results
64504 by: sgibbs.vt.globalhealth.org
64510 by: Ralph Deffke
Re: zlib1.1.3 and ob_gzhandler
64507 by: Ralph Deffke
Wide Image Scroller
64508 by: Craig Westerman
64516 by: Eric Persson
64518 by: Ralph Deffke
Re: relative filename /home/www... in stead of /www/.....
64509 by: Ralph Deffke
Re: global variable.
64512 by: Goran Aleksic
Re: limit 1
64514 by: Ralph Deffke
APC and WIN 32
64517 by: Ralph Deffke
Re: DBase functions
64519 by: Er Galvão Abbott
character encoding
64520 by: Fanda
How to create thumbnails?
64522 by: Jan
Dedicated Hosting
64523 by: Heidi Belal
64526 by: Boaz Yahav
"undefined variable view ..."
64524 by: Wolfgang Schneider
Shell or http?
64525 by: George E. Papadakis
How to show specific records of a Dbase file
64527 by: Er Galvão Abbott
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:
All,
I've been coding a PHP page that listens for a connection from an embedded
device (a piece of hardware) that sends a POST query to Apache (and to my
PHP pages...).
I've having a problem that I can't seem to solve. The embedded
application does not set a Content-Type header on the POST, so PHP fails
with the following error:
-- HTTP/1.1 200 OK Date: Sun, 26 Aug 2001 05:26:14 GMT Server: Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/4.0.2 Connection: close Content-Type: text/html<br> <b>Fatal error</b>: No content-type in POST request in <b>Unknown</b> on line <b>0</b><br> Connection closed by foreign host. --
The connection that the embedded system makes looks like this:
-- POST http://host.mysite.foo/dir/phppage HTTP/1.0 User-Agent: ImEmbedded Host: host.mysite.foo Content-Length: 123 Pragma: no-cache Cookie: embeddedsession=myverylongsessionvariablegeneratedbythehardware
<?xml version="1.0"?> -- And below is some XML stuff...
I've tried setting 'Content-Type' in $HTTP_POST_VARS, using mod_rewrite in Apache to change the content-type (with the -T flag) and looked at all the options in php.ini. I'm using PHP 4.0.2 w/Apache 1.3.12 (if you couldn't tell from the sig above...)
Nothing works correctly. The mod_rewrite trick would work, but it makes everthing to that URL text/xml, including the PHP script, which no longer executes. I look on the mailing lists here and on usenet, but I don't see a good solution...
Anyone have any ideas? At this point, I'm thinking of re-writing my code in Perl or Python since there seems to be no solution to this problem.
Note that it's PHP that rejects the request, not Apache. I don't see why a missing content-type should do this. It should just default to text/plain or something.
Anyway, thanks for any help.
Chris.
-- chris maresca internet systems architect -- www.chrismaresca.com
"linux, only up 138 days, because california has flaky power... "
attached mail follows:
Well, first of all, you are using an ancient version of PHP. That message was changed from a fatal error to a warning over a year ago.
And if you really want to have PHP accept non-typed POST data, it's an obvious one-line change in main/SAPI.c
-Rasmus
On Sat, 25 Aug 2001, Chris Maresca wrote:
> > All, > > I've been coding a PHP page that listens for a connection from an embedded > device (a piece of hardware) that sends a POST query to Apache (and to my > PHP pages...). > > I've having a problem that I can't seem to solve. The embedded > application does not set a Content-Type header on the POST, so PHP fails > with the following error: > > -- > HTTP/1.1 200 OK > Date: Sun, 26 Aug 2001 05:26:14 GMT > Server: Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/4.0.2 > Connection: close > Content-Type: text/html > > <br> > <b>Fatal error</b>: No content-type in POST request in <b>Unknown</b> on > line <b>0</b><br> > Connection closed by foreign host. > -- > > The connection that the embedded system makes looks like this: > > -- > POST http://host.mysite.foo/dir/phppage HTTP/1.0 > User-Agent: ImEmbedded > Host: host.mysite.foo > Content-Length: 123 > Pragma: no-cache > Cookie: embeddedsession=myverylongsessionvariablegeneratedbythehardware > > <?xml version="1.0"?> > -- > And below is some XML stuff... > > I've tried setting 'Content-Type' in $HTTP_POST_VARS, using mod_rewrite in > Apache to change the content-type (with the -T flag) and looked at all the > options in php.ini. I'm using PHP 4.0.2 w/Apache 1.3.12 (if you couldn't > tell from the sig above...) > > Nothing works correctly. The mod_rewrite trick would work, but it makes > everthing to that URL text/xml, including the PHP script, which no longer > executes. I look on the mailing lists here and on usenet, but I don't see > a good solution... > > Anyone have any ideas? At this point, I'm thinking of re-writing my code > in Perl or Python since there seems to be no solution to this problem. > > Note that it's PHP that rejects the request, not Apache. I don't see why > a missing content-type should do this. It should just default to > text/plain or something. > > Anyway, thanks for any help. > > Chris. > > -- > chris maresca > internet systems architect -- www.chrismaresca.com > > "linux, only up 138 days, because california has flaky power... " > > > >
attached mail follows:
On Sat, 25 Aug 2001, Rasmus Lerdorf wrote:
> Well, first of all, you are using an ancient version of PHP. That message > was changed from a fatal error to a warning over a year ago.
Cool. Thx. I'll upgrade. Had no good reason to until now. > And if you really want to have PHP accept non-typed POST data, it's an > obvious one-line change in main/SAPI.c
Well, I grep'd the source, but did not find the origin of the error. Also, since I'm not familiar with PHP source, it would have taken me hours to find even that one line....
Thx.
Chris.
> -Rasmus > > On Sat, 25 Aug 2001, Chris Maresca wrote: > > > > > All, > > > > I've been coding a PHP page that listens for a connection from an embedded > > device (a piece of hardware) that sends a POST query to Apache (and to my > > PHP pages...). > > > > I've having a problem that I can't seem to solve. The embedded > > application does not set a Content-Type header on the POST, so PHP fails > > with the following error: > > > > -- > > HTTP/1.1 200 OK > > Date: Sun, 26 Aug 2001 05:26:14 GMT > > Server: Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/4.0.2 > > Connection: close > > Content-Type: text/html > > > > <br> > > <b>Fatal error</b>: No content-type in POST request in <b>Unknown</b> on > > line <b>0</b><br> > > Connection closed by foreign host. > > -- > > > > The connection that the embedded system makes looks like this: > > > > -- > > POST http://host.mysite.foo/dir/phppage HTTP/1.0 > > User-Agent: ImEmbedded > > Host: host.mysite.foo > > Content-Length: 123 > > Pragma: no-cache > > Cookie: embeddedsession=myverylongsessionvariablegeneratedbythehardware > > > > <?xml version="1.0"?> > > -- > > And below is some XML stuff... > > > > I've tried setting 'Content-Type' in $HTTP_POST_VARS, using mod_rewrite in > > Apache to change the content-type (with the -T flag) and looked at all the > > options in php.ini. I'm using PHP 4.0.2 w/Apache 1.3.12 (if you couldn't > > tell from the sig above...) > > > > Nothing works correctly. The mod_rewrite trick would work, but it makes > > everthing to that URL text/xml, including the PHP script, which no longer > > executes. I look on the mailing lists here and on usenet, but I don't see > > a good solution... > > > > Anyone have any ideas? At this point, I'm thinking of re-writing my code > > in Perl or Python since there seems to be no solution to this problem. > > > > Note that it's PHP that rejects the request, not Apache. I don't see why > > a missing content-type should do this. It should just default to > > text/plain or something. > > > > Anyway, thanks for any help. > > > > Chris. > > > > -- > > chris maresca > > internet systems architect -- www.chrismaresca.com > > > > "linux, only up 138 days, because california has flaky power... " > > > > > > > > >
--
chris maresca
internet systems architect -- www.chrismaresca.com
"linux, only up 138 days, because california has flaky power... "
attached mail follows:
All, I read the article by John Coggeshall on building search engine friendly pages. Now, I trying to pass my script parameters as path (instead of "?param=value¶m2=value2").
However, for some reason I keep on getting the following error:
Fatal error: Unable to open /home/mydomain/public_html/try.phtml/param1/123 in - on line 0 No input file specified.
This is what I run: http://www.mydomain.com/try.phtml/param1/123
It seems like PHP is trying to read the file 123 at the given path. For some reason, PHP doesn't realize the try.phtml is the script.
I am trying this with PHP3. However, my production server is running PHP4 and it works there. Is this a new feature in PHP4 or do I need to build PHP3 with some configuration for this to work?
Thank you in advance.
-- anas mughal
attached mail follows:
Are you running PHP 3 as a CGI? Things work/don't work a bit differently in CGI mode.
-Rasmus
On Sun, 26 Aug 2001, Anas Mughal wrote:
> All, > I read the article by John Coggeshall on building search engine friendly > pages. Now, I trying to pass my script parameters as path (instead of > "?param=value¶m2=value2"). > > However, for some reason I keep on getting the following error: > > Fatal error: Unable to open > /home/mydomain/public_html/try.phtml/param1/123 in - on line 0 > No input file specified. > > This is what I run: > http://www.mydomain.com/try.phtml/param1/123 > > It seems like PHP is trying to read the file 123 at the given path. For some > reason, PHP doesn't realize the try.phtml is the script. > > I am trying this with PHP3. However, my production server is running PHP4 > and it works there. Is this a new feature in PHP4 or do I need to build PHP3 > with some configuration for this to work? > > Thank you in advance. > -- > anas mughal > > >
attached mail follows:
yes, I am running as CGI. How should that matter?
Actually, I need to run as CGI because I have customized extensiont to PHP that my hosting company will not imbed in their PHP-Apache module. I am totally fine with that. Bottom line is that I need to run PHP as CGI.
Is there a way for this work in that mode?
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus
php.net]
Sent: Sunday, August 26, 2001 2:14 AM
To: Anas Mughal
Cc: php-general
lists.php.net
Subject: Re: [PHP] Error while passing parameters as path
Are you running PHP 3 as a CGI? Things work/don't work a bit differently in CGI mode.
-Rasmus
On Sun, 26 Aug 2001, Anas Mughal wrote:
> All, > I read the article by John Coggeshall on building search engine friendly > pages. Now, I trying to pass my script parameters as path (instead of > "?param=value¶m2=value2"). > > However, for some reason I keep on getting the following error: > > Fatal error: Unable to open > /home/mydomain/public_html/try.phtml/param1/123 in - on line 0 > No input file specified. > > This is what I run: > http://www.mydomain.com/try.phtml/param1/123 > > It seems like PHP is trying to read the file 123 at the given path. For some > reason, PHP doesn't realize the try.phtml is the script. > > I am trying this with PHP3. However, my production server is running PHP4 > and it works there. Is this a new feature in PHP4 or do I need to build PHP3 > with some configuration for this to work? > > Thank you in advance. > -- > anas mughal > > >
attached mail follows:
> Actually, I need to run as CGI because I have customized extensiont to PHP > that my hosting company will not imbed in their PHP-Apache module. I am > totally fine with that.
Why don't you just dl() your extension into the module version?
> Bottom line is that I need to run PHP as CGI. > > Is there a way for this work in that mode?
I dunno. Has been so long since I have used the CGI version for direct web stuff. Play with it and figure it out.
-Rasmus
attached mail follows:
hi. how can I control the ip that with ID and password ,all of user cant enter to site and if one person want to enetr should have special IP that I know it.
thanks. nafiseh.
attached mail follows:
use the $REMOTE_ADDR variable for the remote address
see php manual chapter 7 Variables - Variables from outside PHP
Nafiseh Saberi schrieb:
> hi. > how can I control the ip that with ID and password ,all of > user cant enter to site and if one person want to enetr should > have special IP that I know it. > > thanks. > nafiseh.
attached mail follows:
Thanks..
D'you think you'd be able to give me an example?
(Sorry, I am _quite_ new to all of this...)
-Andy
Rasmus Lerdorf <rasmus
php.net> wrote in message
news:Pine.LNX.4.33.0108252147440.18919-100000
rasmus.php.net...
> Any php.ini directive can be used in your httpd.conf on a per-dir basis.
> See the manual..
>
> -Rasmus
>
> On Sat, 25 Aug 2001, Andy Ladouceur wrote:
>
> > Does anyone know if its possible to use disable_functions on only
specified
> > directories, and not all?
> > Hopefully its possible..
> >
> >
> >
> >
>
attached mail follows:
hi. I write: $m=date("H:i:s"); ---->10:34:33 $p=echo time($m); ------>998805674 date("h:i:s",mktime($p)); ----->12:34:33
my problem is the difference between first and third time that should be the same.??? thanks.
attached mail follows:
>I write: >$m=date("H:i:s"); ---->10:34:33 >$p=echo time($m); ------>998805674 >date("h:i:s",mktime($p)); ----->12:34:33 > >my problem is the difference between first and third time that should >be the same.???
nope
if $p is already a unix timestamp (as per your output) I don't know why you are processing it again with mktime. $m=date("H:i:s"); ---->10:34:33 $p=echo time($m); ------>998805674 date("h:i:s",$p);
Dave
attached mail follows:
Just looking over the achives of the .net show(was msdn show), and with .net its got some really great features..
So i am going to get a hold of .net and try it out...
- James "ReDucTor" Mitchell
attached mail follows:
----- Original Message -----
From: "ReDucTor" <sjdtmv
tpg.com.au>
To: <php-general
lists.php.net>
Sent: Sunday, August 26, 2001 4:38 PM
Subject: [PHP] Thinking about going to ASP
> Just looking over the achives of the .net show(was msdn show), and with .net > its got some really great features.. > > So i am going to get a hold of .net and try it out... > > - James "ReDucTor" Mitchell
Ok
attached mail follows:
It's always nice and wise to try, if you do make the switch, even if they say (MS) the opposite, it's a no return path...
py
----- Original Message -----
From: "ReDucTor" <sjdtmv
tpg.com.au>
To: <php-general
lists.php.net>
Sent: Sunday, August 26, 2001 2:38 AM
Subject: [PHP] Thinking about going to ASP
> Just looking over the achives of the .net show(was msdn show), and with
.net
> its got some really great features..
>
> So i am going to get a hold of .net and try it out...
>
> - James "ReDucTor" Mitchell
>
>
> --
> 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 have PHP 4.06 and using it as an Apache module, but for some reason I cannot get my changes to take effect after I change something in the PHP.ini file. I've tried to restart Apache, restart Windows98, nothing. But if I run as a CGI, the changes are there in the phpinfo()!
Any help with this would be great...
Thanks, Chris Irwin
attached mail follows:
Hello Thnx for your last replies, looks like i need more help with php now.
I have this code:
-------------------------------- function displayCategory(){
include ('admin/config.inc.php'); $connection = mysql_connect ("$host", "$username", "$password"); if ($connection == false){ echo mysql_errno().": ".mysql_error(); exit; } $query = "select ID,Category from sections"; $result = mysql_db_query ("$dbase", $query);
if ($result){ echo "<table border=1>"; echo "<tr><td><b>Category</b></td></tr>";
$numOfRows = mysql_num_rows ($result);
for ($i = 0; $i < $numOfRows; $i++){ $ID = mysql_result ($result, $i, "ID"); $Category = mysql_result ($result, $i, "Category"); echo "<tr><td><a href=\"knowledgebase.php?display=threads&thread=$ID\">$Category</a></td></tr >"; } echo "</table>"; } else{ echo mysql_errno().": ".mysql_error()."<BR>"; } mysql_close (); } -------------------------
It's pretty simple it grabs content into 1 huge colomn, i wonder how could i split it into 2 colomns
Thank You Very much
attached mail follows:
This is how I divided one long column into several more equal sized columns. Hope it helps.
print "<table align=center cellpadding=3 width=90%><tr><td valign=top width=20%><h$fonts>";
while ($a_row=mysql_fetch_row($results)) { $count=$count+1; foreach($a_row as $field) { print "$field <br>"; } if ($count==78) { print "</h$fonts></td><td valign=top width=20%><h$fonts>"; $count=0; } } print "</h$fonts></td></tr></table>";
----- Original Message -----
From: HTTP-404 <http404
hot.ee>
To: <php-general
lists.php.net>
Sent: Sunday, August 26, 2001 11:07 AM
Subject: [PHP] Splitting 1 Colomn into 2
> Hello
> Thnx for your last replies, looks like i need more help with php now.
>
> I have this code:
>
> --------------------------------
> function displayCategory(){
>
> include ('admin/config.inc.php');
> $connection = mysql_connect ("$host", "$username", "$password");
> if ($connection == false){
> echo mysql_errno().": ".mysql_error();
> exit;
> }
> $query = "select ID,Category from sections";
> $result = mysql_db_query ("$dbase", $query);
>
> if ($result){
> echo "<table border=1>";
> echo "<tr><td><b>Category</b></td></tr>";
>
> $numOfRows = mysql_num_rows ($result);
>
> for ($i = 0; $i < $numOfRows; $i++){
> $ID = mysql_result ($result, $i, "ID");
> $Category = mysql_result ($result, $i, "Category");
> echo "<tr><td><a
>
href=\"knowledgebase.php?display=threads&thread=$ID\">$Category</a></td></tr
> >";
> }
> echo "</table>";
> }
> else{
> echo mysql_errno().": ".mysql_error()."<BR>";
> }
> mysql_close ();
> }
> -------------------------
>
> It's pretty simple it grabs content into 1 huge colomn, i wonder how could
i
> split it into 2 colomns
>
> Thank You Very much
>
>
>
> --
> 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:
At 05:36 26-08-01, Manuel Lemos wrote: >The first problem is technical. You just keep developing PHP to satisfy >the user needs as soon as you perceive them and that's it.
I think we're doing that nicely, but it's quite true that meeting the technical needs is not enough.
>The second problem is marketing. It doesn't matter for people that have >to make the decisions how much better PHP in fact is if people don't >hear about it. Even if they hear about it, it may not be enough if they >hear much more from the rest (Java, ASP.Net, C#, , whatever). > >Here PHP looses bigtime. You may not want to believe me, but I am afraid >that unless PHP is better marketted, soon or later its market acceptance >will be weakened.
I think you're right here also, but only to a degree. PHP has reached (or is quite close) to the critical mess it needs to penetrate the suite of 'accepted solutions'. As in, solutions which are covered by analysts and that exist within large organizations. It's true that it took it some 5 years or so to make this penetration (and it took .NET about -2 years), but that is the price you pay when you don't have gigantic marketing budgets to compete with. Undoubtfully this is a problem, but the bottom line appears to be that we managed to overcome this, despite the lack of resources.
>That's not my point. Some marketing is better than no marketing at all >which is what you do today. There are plenty of ways to do some >marketing on PHP that don't even cost money to you.
I don't think it's fair to say that there's no marketing today. Well, forget fair, but I don't think it's accurate either :) There are several good PHP sites, and there are a few companies advocating PHP as well. Analysts are starting to cover PHP, and it's a fairly important landmark in PHP's penetration to the family of industry-adopted solutions.
At any rate, suggestions will be welcome. I've seen the Web Developer Ring you suggested, and I think it's worth thinking (the reason I'm not going wild with enthusiasm is that I think it also has drawbacks, not only advantages).
>oh, man Linux was a different story. Expecting a similar future for PHP >I'm afraid it may be wishful thinking. PHP is mostly focused on Web >development. Web market is fading out.
I agree with the first part of the paragraph, but completely disagree with the 2nd. Web is not fading out, the .COM era is. Web, as a medium, is here to stay, and on the long run, it's going to grow to be much larger than what it is today.
As for the similarities and dissimilarities of PHP and Linux, I think it's fair to say that it's pretty difficult to predict the way things will go with PHP in the enterprise, but I doubt it'll happen in a similar way to that of Linux. Linux 'made it' when huge corporations like IBM started using it and advocating it, after smaller companies (like RedHat) managed to create enough hype to 'wake the giants'. It's unlikely that such a giant will make the same choice with PHP, even if we just look at it from a statistical perspective.
>Even if you can do non Web programming with PHP, most people are not >aware of that. You need to do some marketing to put in evidence that PHP >is as much capable for non-Web programming.
Given the fact that I don't see the Web going anywhere, I strongly disagree. PHP's strength is in its focus to provide a good Web development framework. Losing that focus would be a bad idea. Projects like PHP-GTK are nice and for certain audiences they're also quite useful, but it's very wrong to assume that PHP's future lies in there. There are too many languages in the world, including ones which are much more capable than PHP in the GUI programming area, and if we move the focus to this front, we're going to fight a lost battle. In the Web front, on the other hand, we're doing quite well.
>There you have another big problem that is there is no affordable way to >compile and generate executables from PHP programs. I know that >historically you never liked this ability into PHP programs, but that is >a vital need for people that will want to distribute their programs like >VB or Delphi programs.
If you mean native executables, then I have to disagree with you yet again... I don't think native executables are the thing that's holding PHP back. It's a direct deduction from my view that PHP's main course is the Web environment, where native executables simply do not make sense. If you mean something else, I'll be happy to discuss this with you over personal email :)
Zeev
-- Zeev Suraski <zeevzend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
attached mail follows:
> there. There are too many languages in the world, including ones which are > much more capable than PHP in the GUI programming area, and if we move the > focus to this front, we're going to fight a lost battle. In the Web front, > on the other hand, we're doing quite well.
This is the main reason I like PHP so much. It was build for the web and it grows with the web. If that focus is kept, PHP will survive. I do not see PHP surpassing Java or .NET, but it will be there and will outperform those two!
py
> At 05:36 26-08-01, Manuel Lemos wrote:
> >The first problem is technical. You just keep developing PHP to satisfy
> >the user needs as soon as you perceive them and that's it.
>
> I think we're doing that nicely, but it's quite true that meeting the
> technical needs is not enough.
>
> >The second problem is marketing. It doesn't matter for people that have
> >to make the decisions how much better PHP in fact is if people don't
> >hear about it. Even if they hear about it, it may not be enough if they
> >hear much more from the rest (Java, ASP.Net, C#, , whatever).
> >
> >Here PHP looses bigtime. You may not want to believe me, but I am afraid
> >that unless PHP is better marketted, soon or later its market acceptance
> >will be weakened.
>
> I think you're right here also, but only to a degree. PHP has reached (or
> is quite close) to the critical mess it needs to penetrate the suite of
> 'accepted solutions'. As in, solutions which are covered by analysts and
> that exist within large organizations. It's true that it took it some 5
> years or so to make this penetration (and it took .NET about -2 years),
but
> that is the price you pay when you don't have gigantic marketing budgets
to
> compete with. Undoubtfully this is a problem, but the bottom line appears
> to be that we managed to overcome this, despite the lack of resources.
>
> >That's not my point. Some marketing is better than no marketing at all
> >which is what you do today. There are plenty of ways to do some
> >marketing on PHP that don't even cost money to you.
>
> I don't think it's fair to say that there's no marketing today. Well,
> forget fair, but I don't think it's accurate either :) There are several
> good PHP sites, and there are a few companies advocating PHP as
> well. Analysts are starting to cover PHP, and it's a fairly important
> landmark in PHP's penetration to the family of industry-adopted solutions.
>
> At any rate, suggestions will be welcome. I've seen the Web Developer
Ring
> you suggested, and I think it's worth thinking (the reason I'm not going
> wild with enthusiasm is that I think it also has drawbacks, not only
> advantages).
>
> >oh, man Linux was a different story. Expecting a similar future for PHP
> >I'm afraid it may be wishful thinking. PHP is mostly focused on Web
> >development. Web market is fading out.
>
> I agree with the first part of the paragraph, but completely disagree with
> the 2nd. Web is not fading out, the .COM era is. Web, as a medium, is
> here to stay, and on the long run, it's going to grow to be much larger
> than what it is today.
>
> As for the similarities and dissimilarities of PHP and Linux, I think it's
> fair to say that it's pretty difficult to predict the way things will go
> with PHP in the enterprise, but I doubt it'll happen in a similar way to
> that of Linux. Linux 'made it' when huge corporations like IBM started
> using it and advocating it, after smaller companies (like RedHat) managed
> to create enough hype to 'wake the giants'. It's unlikely that such a
> giant will make the same choice with PHP, even if we just look at it from
a
> statistical perspective.
>
> >Even if you can do non Web programming with PHP, most people are not
> >aware of that. You need to do some marketing to put in evidence that PHP
> >is as much capable for non-Web programming.
>
> Given the fact that I don't see the Web going anywhere, I strongly
> disagree. PHP's strength is in its focus to provide a good Web
development
> framework. Losing that focus would be a bad idea.
> Projects like PHP-GTK are nice and for certain audiences they're also
quite
> useful, but it's very wrong to assume that PHP's future lies in
> there. There are too many languages in the world, including ones which
are
> much more capable than PHP in the GUI programming area, and if we move the
> focus to this front, we're going to fight a lost battle. In the Web
front,
> on the other hand, we're doing quite well.
>
> >There you have another big problem that is there is no affordable way to
> >compile and generate executables from PHP programs. I know that
> >historically you never liked this ability into PHP programs, but that is
> >a vital need for people that will want to distribute their programs like
> >VB or Delphi programs.
>
> If you mean native executables, then I have to disagree with you yet
> again... I don't think native executables are the thing that's holding
PHP
> back. It's a direct deduction from my view that PHP's main course is the
> Web environment, where native executables simply do not make sense.
> If you mean something else, I'll be happy to discuss this with you over
> personal email :)
>
> Zeev
>
>
> --
> Zeev Suraski <zeev
zend.com>
> CTO & co-founder, Zend Technologies Ltd. http://www.zend.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:
hi. what is the meaning of #!/usr/bin/perl -T ??? thanks.
attached mail follows:
Nafiseh Saberi wrote: > hi. > what is the meaning of #!/usr/bin/perl -T ??? > thanks. >
You are in wrong list. Try perl user list.
-- Yasuo Ohgaki
attached mail follows:
You're on the wrong list for this question but...
-T runs the Perl script in Taint mode. It checks for possible security holes. It marks any variable a user can control as unsecure.
-The shebang (#! /usr/bin/perl) is telling the script where it can find the perl interpreter.
Jeff
> -----Original Message-----
> From: nafiseh saberi [mailto:nsaberi
iraninfocenter.net]
> Sent: Monday, August 27, 2001 4:50 AM
> To: php-general
lists.php.net
> Subject: [PHP] #!/usr/bin/perl -T
>
>
>
> hi.
> what is the meaning of #!/usr/bin/perl -T ???
> thanks.
>
> --
> 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. what is the meaning of: Premature end of script headers.
thanks.
attached mail follows:
You wrote: > hi. > what is the meaning of: > Premature end of script headers.
The script headers terminated before the double-newline. Probably because you sent content to the browser before sending a content type. Or some type of error occured, which there will be information about in the error log. This sounds more like a Perl or other CGI app issue, rather than a PHP issue, though, because PHP errors get sent to the browser.
-- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/
attached mail follows:
I'm using copy() and the final owner is "nobody", I'm opening a socket connection with fsockopen() so I have a validate user. I want the validated user to be the owner of the new file That`s de code: - open the socket - validate user - change dir chmod so we can write - write the file (with "nobody" owner and I need the "user" owner) - change back dir chmod - close connection
---------------------------------- $tftp = fsockopen("ftp.dominio.com", 21, $errno, $errstr, 60) or die("Fallode Conexión");
socket_set_blocking($tftp, false); fputs($tftp, "user $login\n"); fputs($tftp, "pass $password\n");
$ruta = "/www/".$direc; fputs($tftp, "SITE chmod 0777 $ruta\n");
copy ("file1.php", "file2.php");
fputs($tftp, "SITE chmod $perm $ruta\n"); sleep(1);
fclose($tftp); ------------------------------------ Thanks for helping Javi
attached mail follows:
Please dont reply to messages with a new subject as this breaks threading.
also check the man for addslashes... where are you getting the error, storage or retrieval?
Dave
>-----Original Message-----
>From: idesign
tampabay.rr.com [mailto:idesign
tampabay.rr.com]
>Sent: Saturday, August 25, 2001 3:44 PM
>To: Sunil Jagarlamudi; php-general
lists.php.net
>Subject: Re: [PHP] Program to check for cookies
>
>
>I have a form that submits data to a database, works great until someome
>puts in an apostrophe in the comments area...how do i escape this
>charecter upon
>insert?
>
>
>
>
>--
>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:
see php Manual chapter 18 cookies
Sunil Jagarlamudi schrieb:
> Is there a program which will check for cookies before > it allows access into the web site ? > > I want the user to enter the userid/password on a > secure web server and pass the cookie information to > the regular server. I don't want them to access > regular web server without that cookie being enabled > through the secure server. > > Thank You > > Sunil > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/
attached mail follows:
>Have you tried which php or locate php? what do you mean?
no shell acces, that requires contacting them to get, which they don't read the emails :D
- James "ReDucTor" Mitchell
----- Original Message -----
From: "David Robley" <huntsman
www.nisu.flinders.edu.au>
To: "ReDucTor" <sjdtmv
tpg.com.au>; <php-general
lists.php.net>
Sent: Thursday, August 23, 2001 12:20 PM
Subject: Re: [PHP] path to php
> On Thu, 23 Aug 2001 11:05, ReDucTor wrote:
> > does anyone know all the possible paths to php...because i can't seem
> > to find it on my current host...i have tried using the following
> >
> > php /path/to/script.php
> > /usr/php /path/to/script.php
> > /usr/local/bin/php /path/to/script.php
> > /usr/bin/php /path/to/script.php
> >
> > but i still can't seem to get it to work with out it saying that it
> > can't find the path to php...any one got any ideas?!?
> >
> > btw. i know php is on it..
> >
> > I have tried contacting them, but they don't seem to want to reply...
>
> Have you tried which php or locate php? If you don't have shell access
> you'll have to fiddle around with backticks or whichever of system() and
> friends is appropriate.
>
> --
> David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
> CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
>
> Electricity was invented by rubbing cats backwards!
>
> --
> 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:
they don't give shell access without contacting them, and they don't reply
to emails
----- Original Message -----
From: "ReDucTor" <sjdtmv
tpg.com.au>
To: <huntsman
www.nisu.flinders.edu.au>; <php-general
lists.php.net>
Sent: Thursday, August 23, 2001 12:48 PM
Subject: Re: [PHP] path to php
> >Have you tried which php or locate php?
> what do you mean?
>
> no shell acces, that requires contacting them to get, which they don't
read
> the emails :D
>
> - James "ReDucTor" Mitchell
> ----- Original Message -----
> From: "David Robley" <huntsman
www.nisu.flinders.edu.au>
> To: "ReDucTor" <sjdtmv
tpg.com.au>; <php-general
lists.php.net>
> Sent: Thursday, August 23, 2001 12:20 PM
> Subject: Re: [PHP] path to php
>
>
> > On Thu, 23 Aug 2001 11:05, ReDucTor wrote:
> > > does anyone know all the possible paths to php...because i can't seem
> > > to find it on my current host...i have tried using the following
> > >
> > > php /path/to/script.php
> > > /usr/php /path/to/script.php
> > > /usr/local/bin/php /path/to/script.php
> > > /usr/bin/php /path/to/script.php
> > >
> > > but i still can't seem to get it to work with out it saying that it
> > > can't find the path to php...any one got any ideas?!?
> > >
> > > btw. i know php is on it..
> > >
> > > I have tried contacting them, but they don't seem to want to reply...
> >
> > Have you tried which php or locate php? If you don't have shell access
> > you'll have to fiddle around with backticks or whichever of system() and
> > friends is appropriate.
> >
> > --
> > David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
> > CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
> >
> > Electricity was invented by rubbing cats backwards!
> >
> > --
> > 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:
hi. my problem solve .
------------------------------------------------------ nafiseh saberi. software engineering in ISP (www.iraninfocenter.net). working on distributed database with postgres,perl,php,... note: A smooth sea never made a skillful mariner. -------------------------------------------------------
attached mail follows:
Good day,
I'm trying to figure out how I can show the following on my search results page:
SEARCH RESULTS 1 - 10 of 14 total results for books
Currently, I have a limit of 10 results printing on a page using "offset". I figured out how to program the pages to know what page of the results its viewing (eg: you are on page 4 or 10 pages of results) so programming the above statement shouldn't be difficult because the two statements seem quite similar. Nevertheless, I can't figure it out - I have a feeling I'm making it harder than it really is. Any suggestions or leads would be greatly appreciated!
Thank you, Shawna
attached mail follows:
make a sql just with your where clause like this
select count(*) from table where your where clause
the relsulting result set will give u the number of records for your where clause
sgibbs
vt.globalhealth.org schrieb:
> Good day, > > I'm trying to figure out how I can show the following on my search results > page: > > SEARCH RESULTS 1 - 10 of 14 total results for books > > Currently, I have a limit of 10 results printing on a page using "offset". > I figured out how to program the pages to know what page of the results its > viewing (eg: you are on page 4 or 10 pages of results) so programming the > above statement shouldn't be difficult because the two statements seem quite > similar. Nevertheless, I can't figure it out - I have a feeling I'm making > it harder than it really is. Any suggestions or leads would be greatly > appreciated! > > Thank you, Shawna
attached mail follows:
Are you shure u sending the right http header?
your discription sound like the browser receives the wrong header information, respactively the wrong mime type. if you use the right mouse button and say show image, all browsers don't care about the mime type and try to evaluate the data content and find the appropiate helper application. make shure the header is something like 'octed-stream/JPG' or octed-stream/GIF (i'm not shure if this is the exact syntax for the mime types, refer to HTTP 1.0 spezification for detaisl)
Martin Helie schrieb:
> Hello everyone, > > I'm a newbie here, so please forgive me if this topic has been discussed > previously (I could find no mention of it). > > I recently compiled PHP4.0.6 with gd1.8.4 and zlib 1.1.3 and experienced no > problems --except! If you use ob_gzhandler as your output handler, you'll > want to make sure any image functions you use in PHP return valid images for > Netscape (I tried Netscape Communicator 4.7 on Linux, Irix and Windows and > got "broken images"). Funny thing is, if you right-clicked on the image and > did "view image", the browser would show it correctly. > > After much frustration, I realized that using _no_ output handler (at least > not ob_gzhandler) solved the problem. > > I assume this is due to a different way of gzipping data in either PHP or > zlib from previous versions. > > I hope someone finds this information useful -- or can provide the "real" > explanation, maybe even a better solution. > > Martin
attached mail follows:
I have a very wide panoramic image I want to display on a page. I don't want to side scroll the page, only the image. Is there a way to make a image side scrollable using PHP?
Thanks
Craig ><>
westerman
chanuteks.com
attached mail follows:
Craig Westerman wrote: > > I have a very wide panoramic image I want to display on a page. I don't want > to side scroll the page, only the image. Is there a way to make a image side > scrollable using PHP?
This can not be done with php, it has to be made on the client side, with java/javascript/dhtml or something. The easy way should be to use a frameset, where one frame contains the image with the scroll.
//Eric
attached mail follows:
but the frameset could be done with php !
Eric Persson schrieb:
> Craig Westerman wrote: > > > > I have a very wide panoramic image I want to display on a page. I don't want > > to side scroll the page, only the image. Is there a way to make a image side > > scrollable using PHP? > > This can not be done with php, it has to be made on the client side, > with java/javascript/dhtml or something. > The easy way should be to use a frameset, where one frame contains the > image with the scroll. > > //Eric
attached mail follows:
use $SCRIPT_FILENAME and extract the parts of the path as u need. or better $PATH_TRANSLATED see also php manual chapter 7 predefined variables.
Chris Hayes schrieb:
> dear group, > > I use the $DOCUMENT_ROOT to make a complete file name. > > $fpname=$DOCUMENT_ROOT.'/includes/blocks/dynmenu.php'; > > It does not work on one site: the document root misses the /home/ start. I could > just hardcode this but i'ld rather have a function that would work everywhere. > > What can i do? > > Warning: fopen("/www/ecodorp/admin/modules/dynmenu.src","r") > - No such file or directory in /home/www/ecodorp/php/post/admin/modules/dynmenu.php on line 378 > I cannot open /www/ecodorp/admin/modules/dynmenu.src > Chris > > -------------------------------------------------------------------- > -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- > -------------------------------------------------------------------- > >
attached mail follows:
hi,
if I understand correctly... you should try:
<?php session_register ("a"); ?>
include this line in files where you want to make your $a global
Goran
Hugh Bothwell <hugh_bothwell
hotmail.com> wrote in message
news:20010825150925.89514.qmail
pb1.pair.com...
>
> "Nafiseh Saberi" <nsaberi
iraninfocenter.net> wrote in message
> news:200108260756.f7Q7up228742
persia.iraninfocenter.net...
> >
> > hi.
> >
> > I want to use glabal variable.
> >
> > <?
> > global $a;
> >
> > ?>
> > but it doesnot work??
>
> ... why do you think you need to use global here?
>
> global is used *in a function* to let it see
> external variables. You are not in a function,
> so I don't see why you think you need it.
>
>
attached mail follows:
i would try this:
$sql = "SELECT DISTINCT users.names FROM users, selection Where users.name = selection.name and selection.setting = 'on' "; because you joining two tables and you get as many results per users.name = selection.name as entries in bouth tables per user. The DISTINCTROW could solve the problem. However i don't know the number of records per user excists in the tables, let assume u have not relaid on relational database rules and users are not unique in one of the tables the following has to be done
$sql = "SELECT DISTINCT users.names FROM users, selection Where users.name = selection.name and selection.setting = 'on' GROUP BY users.name";
Jeremy Morano schrieb:
> Hi, > > I wondering if it was possible to use limit on part of a query and not all. > > this is my query which works the way it should. > > $sql = "SELECT users.names > FROM users, selection > Where users.name = selection.name and setting = 'on' limit 1 > "; > > What I would like to do is put a limit of 1 to only this part -----> setting > = 'on' limit 1 <--------------- and not on the rest. > > You see, there are many users.name that have a setting = 'on'............I > want, ALL those names , ONLY once.. > > How do I do this?
attached mail follows:
does anybody know a resource where i can get apc for windows? or does anybody have experienced how to compile APC under wimdows and include it i.e. in Merlin Desktop?
attached mail follows:
I've had the same error a couple of weeks ago and contacted my ISP. If I understood correctly the dbase funcion wasn't enabled.
On Mon, 22 Jan 2001 13:37:32 +0100, dooshek
softomat.com.pl (Piotr
Duszynski) wrote:
>I have a problem connecting to dbase database. I use: >dbase_open("filename.dbf",0) and get from PHP: >Fatal error: Call to unsupported or undefined function dbase_open() in ... > >What's the problem? > >-- > > Piotr Duszynski > >http://www.softomat.com.pl >http://filmomat.3miasto.pl >http://www.3miasto.pl
attached mail follows:
Hi, can I use some php funciton to convert strings to charset iso-8859-2? Do exists some function to detect encoding of string?
Thanks from Czech Republic... Fanda
attached mail follows:
For thumbnail creation I would need to know how I scale a loaded image or better: How do I copy a scaled version of an image created with imagecreatefromjpeg onto a background I have previously created?
Jan
attached mail follows:
Hi All, Can you please tell of a good, reliable place where i can rent a dedicated server in the US? Thanks! Heidi
==Heidi Belal ICQ# 32127109
A bus stops at a bus station. A train stops at a train station. On my desk I have a work station...
__________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
attached mail follows:
Check out :
http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm
This is your one stop shop for hosting. WeberDev.com is hosted there and I can tell you that their service is amazing. They are fast, reliable and more than anything, very professional (specially in PHP / MySQL).
Sincerely
berber
Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow.
> -----Original Message-----
> From: Heidi Belal [mailto:hmbelal
yahoo.com]
> Sent: Sunday, August 26, 2001 7:26 PM
> To: CF-Talk; Egypt Programmers; js-jive mailing list; Php
> Subject: [PHP] Dedicated Hosting
>
>
> Hi All,
> Can you please tell of a good, reliable place where i
> can rent a dedicated server in the US?
> Thanks!
> Heidi
>
> =====
> Heidi Belal
> ICQ# 32127109
>
> A bus stops at a bus station.
> A train stops at a train station. On my desk
> I have a work station...
>
> __________________________________________________
> 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
>
>
attached mail follows:
Hi everybody, can someone have a look at this bit of code please and help me out? I am getting an error message when calling a php page containing the code below, and the message reads:
"Warning: Undefined index: view in c:/bibelcenter.de/www/links/links.php3 on line 76"
Now the line 76 in question is the last one of the code section below ... can someone tell me what's missing there? how could this "index view" be defined? ____________________________________________
# Get the content before showing the webpage if ($HTTP_GET_VARS['category'] == 'top_links') { $your_current_location = "Most Popular Links"; $category_links=Top_Hits($sp_max_top_links); } else if ($HTTP_GET_VARS['category'] == 'new_links') { $your_current_location = "Newly Added Links"; $category_links=Newly_Added($sp_max_new_links); } else { $categories = viewPage($HTTP_GET_VARS['category']); $your_current_location = display_category($HTTP_GET_VARS['category']); $category_links = display_category_links($HTTP_GET_VARS['category'], $HTTP_GET_VARS['view']); } _____________________________________________
Any helpful ideas? I only get this warning message in my Win2k machine which I have set up for testing webpages purposes, it does not show up on my ISP's server ... so I suspect that somehow the server's php tolerates something in the code which my php version here somehow puts up the warning ... Any helpful hints and ideas are much appreciated. Thank you! God bless you with His grace and peace Wolfgang
Looking for Biblical information? COME AND SEE! -- ONLINE Courses: http://classes.bibelcenter.de ... NEW! -- BibelCenter: http://www.bibelcenter.de -- Bookstore: http://www.worthy.net/BibelCenter/
attached mail follows:
Hi,
Is there any way to identify if a php script is running through a shell or web? Thanks in advance.
-- GeorgeP
attached mail follows:
Greetings.
I've made the following script, wich shows every record of a dbf file:
<?php $dbf = dbase_open('TEST.DBF',0); $quant = dbase_numrecords ($dbf); for ($x = 1; $x < $quant; $x++) { $drec = dbase_get_record_with_names($dbf,$x); foreach ($drec as $nome) { echo "$nome<br>"; } }
echo "Done. $quant records." ?>
But I'm trying (unsucessfully) to show only one or two fields of each records..
Anyone can help me with this?
Thanks in advance,
Er Galvão Abbott
erabbott
DONTSPAMterra.com.br
---------------------------------
Feel free to reply me by e-mail.
Just remove the CAPITAL TEXT from
the address above.
---------------------------------
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]