[PHP] FastCGI
Hi, obviously, I don't if this is the right newsgroup to ask such questions, but here it goes... what has happened with FastCGI support on the 4.3 version of PHP? On changelog I saw that SAPI/FastCGI was discontinued. But when I do phpinfo() it reports "Server API : CGI/FastCGI" and when I go with "php -v" the answer is: PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies and when I go with "php -h" there's an option : -b | Bind Path for external FASTCGI Server mode But when I do "php -b localhost:5000" it says there's no "b" command. What's up with FastCGI? Was it really discontinued? If so, where can I find good alternatives to FastCGI for my home made webserver running on WinXP and where can I find the reasons that lead to this? thankz Fernando -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP memory usage
I don't know if I'm talking bullshit, but don't forget that each parameter or return valeu in php, if not explicited as a pointer, it's a copy of the full parameter. This way, any function a(myclass c) { return c; } would create another copy of "c" in memory. Things get a bit larger when you go with linked-list like structures in classes, where you have to take really good care to don't duplicate data. If you're not taking care, then maybe 5MB is normal. IMHO, I agree with splitting the class into smaller functions. 370KB is a big thing, that maybe useless. PHP isn't Java so you're not suposed to do a "class mysite" []s Fernando "James H. Thompson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > We have a good size PHP libary -- about 370KB of source code. > Its one class with a multitude of small functions in it. > just doing a require_once() on this library appears to use about 5MB of > memory.(the change in VmSize in /proc/self/status) > > Is this a normal ratio of PHP source code size to executable size? > > > -- > Jim > > James H. Thompson > [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: DUMB QUESTION I'M SURE
on the line that starts with $query = there's an extra ." the line should be: $query = "SELECT shops.name FROM shops WHERE name = ".$name; []s Fernando "Adam French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm just starting out, this is my script... > > $name = $_POST['username']; > $name = $name; > $db = mysql_connect("localhost"); > mysql_select_db("vinyldealers",$db); > $query = "SELECT shops.name FROM shops WHERE name = ".$name."; > $result = mysql_query($query); > while ($record = mysql_fetch_assoc($result)) { > while (list($feildname, $feildvalue) = each ($record)) { > echo $feildname. ": " .$feildvalue. ""; > } > echo""; > } > ?> > > This is the error I get... > > Parse error: parse error, unexpected ':' in > C:\Xitami\webpages\php\result1.php on line 12 > > I dunno what I'm doing wrong. Help please??? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php