[PHP] readdir() and files with numbers

2005-09-14 Thread sub
I'm having a really weird problem. My code works, unless the images start with a number, then I get a 500 error. If they start with a letter it's fine. some example of problem files: 178_image.jpg 0005396C.jpg the whole reason I wrote this code was so that I wouldn't have to rename all my file

[PHP] To set mail priorities

2005-09-14 Thread suma parakala
Hi Can anyone tell me how should I set mail priorities using mail command in php Thanks Suma _ Get your own space on the web. Logon to MSN Spaces. http://spaces.msn.com/?mkt=en-in Share files, photos, ideas etc -- PHP General Ma

[PHP] PDO for PHP 4 (was Re: Quick Poll: PHP 4 / 5)

2005-09-14 Thread Manuel Lemos
Hello, on 09/13/2005 10:29 PM Oliver Grätz said the following: Furthermore, PHP5.1 will introduce PDO which unifies this database interface for all db systems. It's a native database abstraction layer. NEWSFLASH: PDO already exists for PHP 4: http://www.phpclasses.org/pdo Despite of that, I

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Manuel Lemos
Hello, on 09/14/2005 08:26 PM Oliver Grätz said the following: In theory those are the only changes. In practice, besides the officially admitted changes, there are also the bugs that were not yet discovered or fixed. Examples? Links? More information on this? The fact is that on http://bugs.

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Manuel Lemos
Hello, on 09/14/2005 08:20 PM Richard Lynch said the following: On Tue, September 13, 2005 7:50 pm, Manuel Lemos wrote: I also am a bit surprised for the tremendous lack of interest to upgrade to PHP 5. Ok, I expected that many people would not want to upgrade due to the nightmare of dealing wi

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: Issues with News sites again...

2005-09-14 Thread Death Gauge
Just for the record. I'm a professional C++ programmer and I know to initialize variables before I use them. Secondly, I've taken into account what has been said but all I keep seeing is guys saying that not initializing the variables opens up security issues. Which is just agreeing with what t

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Stephen Leaf
On Tuesday 13 September 2005 05:52 pm, Ryan A wrote: > [x] I never work with PHP 4 anymore, all my work is with PHP 5 so far I've not found any hosts that do PHP5, however I do all my own hosting anyway. I've switched to use PHP5 because I was interested in doing XSL, and the concept of doing ob

[PHP] ldap_add errors

2005-09-14 Thread Jeff Loiselle
Hello, According to the PHP documentation for the ldap library, ldap_add() returns a boolean value. However, if there is an error, it immediately throws a Warning to the browser with display_errors on. I would like to do this: $result = ldap_add($ldap, $dn, $array) if (!$result) { trigger_

Re: [PHP] Re: .htaccess

2005-09-14 Thread blackwater dev
Yes, I had already changed the AllowOverride. It might be php as I get this in my logs: [Wed Sep 14 20:04:46 2005] [notice] caught SIGTERM, shutting down PHP Warning: PHP Startup: Unable to load dynamic library './php_mcrypt.so' - ./php_mcrypt.so: cannot open shared object file: No such file or

Re: [PHP] mysql query

2005-09-14 Thread Stephen Leaf
On Wednesday 14 September 2005 07:36 pm, Jesús Alain Rodríguez Santos wrote: > I have a table colum in mysql with two fields: day and month. I > would like to know if it's possible to make a query where I can > determine if exist days before to a selected day, for example: > if I have in my table:

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Ryan A
Hey everyone, I'm the original guy who started this thread, now that it has taken a totally different curve from what I originally wrote, kindly dont forward your reply to me and the list, the discussion is good though,I just dont need two copies of it :-) Cheers, Ryan -- PHP General Mailing Lis

Re: [PHP] php/mysql object id question..

2005-09-14 Thread Jasper Bryant-Greene
Oliver Grätz wrote: 3. Yes. One can abuse exceptions to return something in a constructor. Just another argument against exceptions ;-) OK, it's unorthodox, if you absolutely need to do that, do it and tell nobody *g*. This is not "abusing" exceptions. If you throw an exception then the

Re: [PHP] php/mysql object id question..

2005-09-14 Thread Oliver Grätz
bruce schrieb: > but then, i'm starting to realize that there's probably a great deal of > 'opensource' code that's in use that hasn't been thoroughly vetted. 1. Constructors cannot explicitly return anything because they always return the new object. 2. OpenSource project and the code in them:

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Richard Lynch schrieb: > [...] > Some of my sites are on 5. > > Some are on 4. > > I can't tell a difference. That's what I am evangelising. People seem very concerned about backward compatibility issues that _almost_ never come up (hell, the problems of PHP 4.3.x -> 4.4 are more serious than 4-

[PHP] mysql query

2005-09-14 Thread Jesús Alain Rodríguez Santos
I have a table colum in mysql with two fields: day and month. I would like to know if it's possible to make a query where I can determine if exist days before to a selected day, for example: if I have in my table: day 19 - month 05, I wish to know if there are previous days inserted at the 19, the

[PHP] Re: Webservices and PHP - thanx!

2005-09-14 Thread Oliver Grätz
http://de.php.net/soap Short to "not there" questions provoke short answers AllOLLi "I let you borrow my eggs for a whole year!" [Susan on DH 106] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: >>>In theory those are the only changes. In practice, besides the >>>officially admitted changes, there are also the bugs that were not yet >>>discovered or fixed. >> >>Examples? Links? More information on this? The fact is that on > > http://bugs.php.net/ A reference wher

Re: [PHP] Problems with strings being handled like numbers

2005-09-14 Thread Richard Lynch
On Tue, September 13, 2005 7:48 pm, J B wrote: > On 9/13/05, Chris <[EMAIL PROTECTED]> wrote: >> >> Are you sure you're getting the number as you need it from the >> query? >> >> PHP won't (though I guess there could be a bug) automatically >> convert a >> numerical string into it's numerical equiv

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Richard Lynch
On Tue, September 13, 2005 7:50 pm, Manuel Lemos wrote: > I also am a bit surprised for the tremendous lack of interest to > upgrade > to PHP 5. Ok, I expected that many people would not want to upgrade > due > to the nightmare of dealing with backwards incompatible changes, but I > did not expect

Re: [PHP] launch app

2005-09-14 Thread Richard Lynch
On Tue, September 13, 2005 9:19 pm, Ed Lazor wrote: > What's the best way to send an executable to a client desktop in PHP? readfile("/full/path/to/file.exe"); > I'm doing a project where we need to check and see which files need to > be updated on a client-desktop. The idea is for a user to vis

Re: [PHP] Re: trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-14 Thread Richard Lynch
On Wed, September 14, 2005 1:57 pm, Dan Baker wrote: > (snipped) >> If you're going to use $_REQUEST you might as well just turn on >> register >> globals (no, don't!). More mis-information. $_REQUEST is simply the array_merge() of $_GET, $_POST, and $_COOKIE. You either check the contents of an

Re: [PHP] A tricky little addition

2005-09-14 Thread Richard Lynch
On Wed, September 14, 2005 2:25 pm, Ross wrote: > Hello, > > > If I have a variety of submit buttons all called 'add' but with > different > vaues, (food types fish, pork, beef ) > > I want to feed this into a function to increment the corresponfding > cookies > value by 1. This is what I have so

RE: [PHP] Re: trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-14 Thread Richard Lynch
On Wed, September 14, 2005 2:08 pm, Jim Moseby wrote: > Suppose you have a form that posts set hidden values. A malicious > user > could modify the URI to change those values. Sure. Or they could save your HTML on their hard drive, edit it in their editor of choice (some of which require NO brai

Re: [PHP] Re: trying to figure out the best/efficient way to tell whois loggedinto a site..

2005-09-14 Thread Richard Lynch
On Wed, September 14, 2005 4:03 pm, Ben wrote: >>>using $_REQUEST you'll be oblivious. You ought to know where your >>>variable values are coming from, $_REQUEST hides this. I think I must object to saying "$_REQUEST" hides this. $_REQUEST tells you it came from POST or GET (or COOKIE) Anyway,

Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: Issues with News sites again...

2005-09-14 Thread Richard Lynch
On Wed, September 14, 2005 9:46 am, Jay Blanchard wrote: > At the risk of starting another globals holy war, the reply that you > received was a generalization that reflects the potential (< NOTE > THAT) > security risks from having register globals 'on'. The poster was > essentially > correct,

RE: [PHP] php/mysql object id question..

2005-09-14 Thread bruce
it's not my understanding/use of classes.. my issue is that i was blindly using code that's been used by a lot of people, but that it obviously hadn't been thoroughly checked!! but then, i'm starting to realize that there's probably a great deal of 'opensource' code that's in use that hasn't been

Re: [PHP] Re: trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-14 Thread Scott Noyes
> Suppose you have a form that posts set hidden values. A malicious user > could modify the URI to change those values. A malicious user could just as easily modify the http header that sets the POST, or the cookie that sets the COOKIE, or whatever. In other words, if it comes from the user, it

Re: [PHP] Size limits of mysql

2005-09-14 Thread Philip Hallstrom
I have a simple database with one table with about 6 fields, just holding filenames, filepaths and sizes. Very basic audit for management here. Problem is I import a load of records into this table and it seems to only allow me to put in about 550,000 records.Maybe it's just mysqlFront that

RE: [PHP] launch app

2005-09-14 Thread mwestern
The only thing that you can do is the same as sourceforge.net does. Bring up a web page that says yadadad download this etc. then in the header make it redirect to a file on the web server after 3 seconds or something. Go download something off sourceforge to see what I'm on about. :) I have t

[PHP] Size limits of mysql

2005-09-14 Thread mwestern
Hi All, I have a simple database with one table with about 6 fields, just holding filenames, filepaths and sizes. Very basic audit for management here. Problem is I import a load of records into this table and it seems to only allow me to put in about 550,000 records.Maybe it's just m

[PHP] size limit in mysql tables?

2005-09-14 Thread mwestern
I have a simple database with one table with about 6 fields, just holding filenames, filepaths and sizes. Very basic audit for management here. Problem is I import a load of records into this table and it seems to only allow me to put in about 550,000 records. Maybe it's just mys

Re: [PHP] php/mysql object id question..

2005-09-14 Thread Jasper Bryant-Greene
bruce wrote: in their constructor, they have the 'return false' arrggghh!!! a quick look at google, and it appears that you can't return any val from a constructor. in fact, the 'object id' that's being returned appears to simply be (as you stated) the instance of the class that was created... as

Re: [PHP] php/mysql object id question..

2005-09-14 Thread Edward Vermillion
bruce wrote: stephen, you're correct regarding what's going on... i had taken some code used in phpBB, and blindly slammed it into my app to test out their db class... i had assumed that it worked guess what!!! in their constructor, they have the 'return false' arrggghh!!! a quick look at

[PHP] Webservices and PHP - thanx!

2005-09-14 Thread Gustav Wiberg
Hi there! Thanx you all for help with this issue... /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: trying to figure out the best/efficient way to tell whois loggedinto a site..

2005-09-14 Thread Edward Vermillion
Dan Baker wrote: "Ben" <[EMAIL PROTECTED]> wrote in message [snip] Interesting, but I think I wouldn't spend the extra code to detect if I was expecting a POST, but got a GET. If I didn't get the value from POST, I'd just assume it wasn't there -- I wouldn't go looking elsewhere for it, and

[PHP] Re: trying to figure out the best/efficient way to tell whois loggedinto a site..

2005-09-14 Thread Ben
Dan Baker wrote: On the one hand, you can't trust anything that came from the client, but on the other if you're expecting a variable to come from a cookie and instead it comes from a get you know something weird is going on, but using $_REQUEST you'll be oblivious. You ought to know where yo

RE: [PHP] php/mysql object id question..

2005-09-14 Thread bruce
stephen, you're correct regarding what's going on... i had taken some code used in phpBB, and blindly slammed it into my app to test out their db class... i had assumed that it worked guess what!!! in their constructor, they have the 'return false' arrggghh!!! a quick look at google, and it

Re: [PHP] php/mysql object id question..

2005-09-14 Thread Stephen Leaf
On Wednesday 14 September 2005 03:42 pm, bruce wrote: > hi... > > i have the following psuedo code... > > i'm showing the pertinent parts, and eliminating the rest... > > -- > class sql > { > >    function sql(...) >    { >       return false > >       mysql_

[PHP] php/mysql object id question..

2005-09-14 Thread bruce
hi... i have the following psuedo code... i'm showing the pertinent parts, and eliminating the rest... -- class sql { function sql(...) { return false mysql_ mysql_ } } $db = new sql(...) echo "db" = .$db; -

[PHP] Re: trying to figure out the best/efficient way to tell whois loggedinto a site..

2005-09-14 Thread Dan Baker
"Ben" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dan Baker wrote: > >> Why is using $_REQUEST a security issue? You know every value in the >> entire array came from the end-user, and needs to be validated somehow. >> If your code is written so the end-user can send this data

Re: [PHP] A tricky little addition

2005-09-14 Thread Jordan Miller
the syntax for variable variables is: $variable= $$add; or alternatively: $variable= ${$add}; Jordan On Sep 14, 2005, at 2:25 PM, Ross wrote: $variable= "$".$add; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-14 Thread Ben
Dan Baker wrote: Why is using $_REQUEST a security issue? You know every value in the entire array came from the end-user, and needs to be validated somehow. If your code is written so the end-user can send this data to you via a POST/GET/COOKIE, why not use $_REQUEST? On the one hand, you

[PHP] A tricky little addition

2005-09-14 Thread Ross
Hello, If I have a variety of submit buttons all called 'add' but with different vaues, (food types fish, pork, beef ) I want to feed this into a function to increment the corresponfding cookies value by 1. This is what I have so far if (isset($add)){ $variable= "$".$add; echo "the variable

[PHP] Re: Re: trying to figure out the best/efficient way to tellwhois logged into a site..

2005-09-14 Thread Dan Baker
"Jim Moseby" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> (snipped) >> "Ben" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > Gustav Wiberg wrote: >> >> if (isset($_REQUEST["frmUsername"])) { >> >> >> >> $un = $_REQUEST["frmUsername"]; >> > >> > If you're goi

RE: [PHP] Re: trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-14 Thread Jim Moseby
> (snipped) > "Ben" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Gustav Wiberg wrote: > >> if (isset($_REQUEST["frmUsername"])) { > >> > >> $un = $_REQUEST["frmUsername"]; > > > > If you're going to use $_REQUEST you might as well just > turn on register > > globals (no, do

[PHP] Re: trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-14 Thread Dan Baker
(snipped) "Ben" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gustav Wiberg wrote: >> if (isset($_REQUEST["frmUsername"])) { >> >> $un = $_REQUEST["frmUsername"]; > > If you're going to use $_REQUEST you might as well just turn on register > globals (no, don't!). > > If you're exp

RE: [PHP] error message while mysqling on php

2005-09-14 Thread Michal Krezolek
Thanks very much. I had an extra character when I was connecting to the database. Now everything works!!! -Original Message- From: Alan Fullmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 5:14 PM To: 'Michal Krezolek'; php-general@lists.php.net Subject: RE: [PHP] error mes

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-14 Thread Ben
Gustav Wiberg wrote: All you guys, please comment if the code is well or bad written and why... :-) Since you asked, a few things popped out from a security perspective, though I didn't read through your code very thoroughly Why limit your usernames/passwords to lower case? You've

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Manuel Lemos
Hello, on 09/14/2005 01:30 PM Oliver Grätz said the following: In theory those are the only changes. In practice, besides the officially admitted changes, there are also the bugs that were not yet discovered or fixed. Examples? Links? More information on this? The fact is that on http://bug

Re: [PHP] Re: PHP 5, LDAP/Active Directory: fixed

2005-09-14 Thread Joe Wollard
Mark, Thanks for all the help! Turns out I was right when I said my problem may have been inexperience. Your suggestion of "DC=domain,DC=com" worked and everything is functioning great! Thanks again! On Sep 14, 2005, at 4:35 AM, Mark Rees wrote: On my server I'm running: Fedora Core 4 Ap

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: > In theory those are the only changes. In practice, besides the > officially admitted changes, there are also the bugs that were not yet > discovered or fixed. Examples? Links? More information on this? The fact is that on php.internals there are discussions to reduce the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: > In theory those are the only changes. In practice, besides the > officially admitted changes, there are also the bugs that were not yet > discovered or fixed. Examples? Links? More information on this? The fact is that on php.internals there are discussions to reduce the

Re: [PHP] trying to figure out the best/efficient way to tell whoisloggedinto a site..

2005-09-14 Thread Ben Holt
bruce wrote: ben... i understand what you've stated, but i was under the impression that a number of sites (etrade, etc...) can/do track who is/is not logged into their sites.. and not just by some crude 'timeout' function... Yes they do, the key there being that they are tracking who is log

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
heh, i did it too. John, oh, good to know, thanks. $final should be composed of strings, not integers, so i guess that is his problem. i just read that it is best to quote every variable, now I know why... so you can change implementations later and not have to worry about types (and php

Re: [PHP] whats wrong in this program.

2005-09-14 Thread John Nichel
Jordan Miller wrote: you need single quotes around $subnum in the sql statement. don't know why you seem to be arbitrarily leaving them off (put them around $uv and $duration, too!). It's not needed if those fields are integers. *damnit, that's twice today I've replied to the poster and no

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
you need single quotes around $subnum in the sql statement. don't know why you seem to be arbitrarily leaving them off (put them around $uv and $duration, too!). also, you should never insert stuff directly from a user into a database. first escape every variable with: http://www.php.net/m

Re: [PHP] Deny access from certain hosts

2005-09-14 Thread Jordan Miller
if people are allowed to post copyrighted images to your bulletin board, shouldn't you have some sort of password protection anyway? negating that, i would do it with PHP and not Apache. rather than simply serving up the file raw: why not setup a php script to do URL referring blocking:

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
Hostname lookup is always off in all config. There is no allow, deny directive with hostnames. In my original post, I said I've tested with apache 1.3 and 2.0. And btw, I forgot to mention an important point, during the 8-15 seconds it takes to display the page, the particular thread serving t

Re: [PHP] Issues with News sites again...

2005-09-14 Thread John Nichel
Jay Blanchard wrote: [snip] I would be very worried about the quality of any reply that posts a link that says the opposite of what the person is saying. Nowhere in that link did I see them say that turning on the globals was a security issue. The page said the misuse of the globals was the se

[PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: Issues with News sites again...

2005-09-14 Thread Jay Blanchard
[snip] I would be very worried about the quality of any reply that posts a link that says the opposite of what the person is saying. Nowhere in that link did I see them say that turning on the globals was a security issue. The page said the misuse of the globals was the security risk due to forg

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Brent Baisley
There are two thing to check in the Apache config to make sure DNS is not the thing slowing you down. HostnameLookups defaults to On in Apache2, but defaulted to off in Apache1. Check that setting. Also, if you use Allow and Deny directives with domain names, Apache does a double reverse tr

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Mark Rees
> I tried to use the final array values in a insert statement, but the values are not inserted. > the code is > > foreach ($final as $subnum){ > $res = $db->query("INSERT INTO substrate_protocoll(substrate_type,substrate_num,operator,location,solvent,u ltrasonic,duration,cdate,ctime,comment) > VA

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: Issues with News sites again...

2005-09-14 Thread Death Gauge
I would be very worried about the quality of any reply that posts a link that says the opposite of what the person is saying. Nowhere in that link did I see them say that turning on the globals was a security issue. The page said the misuse of the globals was the security risk due to forgetting

Re: [PHP] Webservices and PHP?

2005-09-14 Thread -k.
You may also check out SOAP. There is a SOAP PEAR package... http://pear.php.net/package/SOAP With PHP 5 you can compile in a SOAP extension. http://www.php.net/SOAP I know you said you were running PHP 4.3.11 so the SOAP extension may not be an option. I think a little googling with PHP and

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
In all cases, it was the same httpd.conf. Of course, from apache 1 to 2 there where differences, but basicly it's the same. your description gives the impression that there is a DNS configuration problem... like apache is trying for 5-10 seconds to look something up, fails and then finally de

RE: [PHP] incrementing cookie

2005-09-14 Thread George Pitcher
Hi, > if (isset($add)) { > $pakora++; > setcookie("cookie[pakora]", "$pakora Pakora"); > } If I'm not mistaken, you also need to be sure that you are writing your script to html/display and not redirecting to another page after the cookie has been set - as redirecting will not write t

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Jochem Maas
Nicolas Ross wrote: Now, in a different server room, we have a set of 3 xserves cluster node dual g5 with 4 gigs of ram each. One of them was upgraded to Mac OS X 10.4 (server) and the other 2 are still with 10.3. If I take the same setup (same compile options, same versions) on these machines

Re: [PHP] trying to figure out the best/efficient way to tell whoisloggedinto a site..

2005-09-14 Thread Jason Barnett
On 9/14/05, bruce <[EMAIL PROTECTED]> wrote: > > ben... > > i understand what you've stated, but i was under the impression that a > number of sites (etrade, etc...) can/do track who is/is not logged into > their sites.. and not just by some crude 'timeout' function... This might be possible t

Re: [PHP] incrementing cookie

2005-09-14 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Thanks for your reply, yeah but that doesn't mean you have to start replying to just me, keep your replies on list please - it helps others, and stops me from getting the feeling I'm your personal bug fixer. This is what I have so far if (isset($add)){ $pakora++;

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread John Nichel
Florian P. wrote: No reason to run this twice $data = array(); if ( $result = mysql_query ( 'SELECT * FROM comments' ) ) { while ( $temp = mysql_fetch_array ( $result, MYSQL_ASSOC ) ) { $data[] = $temp; } $rows = mysql_num_rows ( $result );

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
Now, in a different server room, we have a set of 3 xserves cluster node dual g5 with 4 gigs of ram each. One of them was upgraded to Mac OS X 10.4 (server) and the other 2 are still with 10.3. If I take the same setup (same compile options, same versions) on these machines, the exact same site

Re: [PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Torgny Bjers
Quoting Nicolas Ross <[EMAIL PROTECTED]>: [snip] Now, in a different server room, we have a set of 3 xserves cluster node dual g5 with 4 gigs of ram each. One of them was upgraded to Mac OS X 10.4 (server) and the other 2 are still with 10.3. If I take the same setup (same compile options, sam

RE: [PHP] trying to figure out the best/efficient way to tell whoisloggedinto a site..

2005-09-14 Thread bruce
ben... i understand what you've stated, but i was under the impression that a number of sites (etrade, etc...) can/do track who is/is not logged into their sites.. and not just by some crude 'timeout' function... i might be wrong, but it was my understanding that those kinds of sites have the abi

[PHP] php Slow with Mac OS X 10.4

2005-09-14 Thread Nicolas Ross
Hi all ! Here, we've got several Mac computer acting as servers to serve many kinds of sites. One of wich was running, until the middle of august, Mac OS X 10.2. It was then with apache 1.3.x, and php 4.3.10 dso. All things were "normal". At the middle of august, we upgraded to Mac OS X 10.4 (re

Re: [PHP] incrementing cookie

2005-09-14 Thread Jochem Maas
Ross wrote: Hi, I want to increment a cookie by 1 every time a click a button if (isset($add) { $number++; setcookie("cookie[number]", "$number Is the number") } I know I should retireve the cookie value for $number but the problem is it has 2 bits, a number and a bit of text. in your cas

Re: [PHP] Re: Quick Poll: PHP 4 / 5

2005-09-14 Thread Jochem Maas
Jim Moseby wrote: Personally I keep using PHP 4 and do not see the motivation to upgrade. First because, for me, PHP 4 is already a feature complete language for Web development. Second, because I do not have the time nor the patience to chase all the backward incompatibilities of PHP 5 that

[PHP] incrementing cookie

2005-09-14 Thread Ross
Hi, I want to increment a cookie by 1 every time a click a button if (isset($add) { $number++; setcookie("cookie[number]", "$number Is the number") } I know I should retireve the cookie value for $number but the problem is it has 2 bits, a number and a bit of text. Thanks, Ross -- PHP G

RE: [PHP] Re: Quick Poll: PHP 4 / 5

2005-09-14 Thread Jim Moseby
> > Personally I keep using PHP 4 and do not see the motivation > to upgrade. > First because, for me, PHP 4 is already a feature complete > language for > Web development. Second, because I do not have the time nor > the patience > to chase all the backward incompatibilities of PHP 5 that

Re: [PHP] whats wrong in this program.

2005-09-14 Thread babu
Hi, I tried to use the final array values in a insert statement, but the values are not inserted. the code is foreach ($final as $subnum){ $res = $db->query("INSERT INTO substrate_protocoll(substrate_type,substrate_num,operator,location,solvent,ultrasonic,duration,cdate,ctime,comment)

Re: [PHP] launch app

2005-09-14 Thread Niels Ganser
No way. PHP is server based you can't trigger anything on the client side. Use Javascript, ActiveX, XUL or the like. > What's the best way to send an executable to a client desktop in PHP? > > I'm doing a project where we need to check and see which files need to > be updated on a client-desktop

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Gustav Wiberg
Hi there! Thanx! I think this will solve the problem... /G http://www.varupiraten.se/ - Original Message - From: "Jesper Gran" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, September 14, 2005 11:59 AM Subject: Re: [PHP] Output of html

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Jesper Gran
I have tried a class called "HTTP protocol client" from phpclasses to retrive sourcecode from other websites. You should be able to used it to get the output from your remote script. And it works on b-one. http://www.phpclasses.org/browse/package/3.html /Jepser -- PHP General Mailing List (ht

Re: [PHP] Dynamically determine class

2005-09-14 Thread Norbert Wenzel
Thanks. Norbert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Jochem Maas
hi Ryan, here are my crosses :-) It would be nice if you could compile a small summary at some stage based on the replies - any chance of that? Ryan A wrote: ... [x] I am still working on PHP 4 [] I never work with PHP 4 anymore, all my work is with PHP 5 [] Oops, call me old fashioned but

Re: [PHP] Dynamically determine class

2005-09-14 Thread Jochem Maas
Norbert Wenzel wrote: Hi, I'm using PHP5 and try to do something like this: I have a base class called 'Entry' and a child class called 'ExtendedEntry'. I want to read all Entries to a certain topic from a database. While constructing the EntryObject I would like to look if Entry is a simp

Re: [PHP] Deny access from certain hosts

2005-09-14 Thread Jens Schulze
Aaron Greenspan wrote: > Can you do that with .htaccess? Please have a look at http://www.webmasterworld.com/forum92/2783.htm found it on the second page with the search termin "apache block requests from specific referrers". Jens -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Re: PHP 5, LDAP/Active Directory

2005-09-14 Thread Mark Rees
> >> On my server I'm running: > >> Fedora Core 4 > >> Apache 2 > >> PHP 5 compiled with OpenLDAP > >> To shed more light on the topic, bug #30670 [ http://bugs.php.net/ > >> bug.php?id=30670&edit=0 ] seems to fit my situation perfectly. As > >> some of the posts on that bug suggest, I've tried us

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Gustav Wiberg
Hi there! Ok.. Thanx! Yes, I must be able to get info from his site, BUT i can't install anything (Not Curl either) on the server because the server belongs to b-one.net and not me. Is it impossible then? /G http://www.varupiraten.se/ - Original Message - From: "George Pitcher" <[

Re: [PHP] Re: ADODB vs PHP extension

2005-09-14 Thread Jens Schulze
Dean Maunder wrote: > My apologies, I meant the PEAR ADODB abstraction layer/ If you mean DB_ado (from http://pear.php.net/package/DB_ado) I can't say anything about it because I haven't used it. But if you mean ADOdb Database Abstraction Library for PHP (from http://adodb.sourceforge.net/): It

Re: [PHP] Webservices and PHP?

2005-09-14 Thread Gustav Wiberg
- Original Message - From: "Robert Graham" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, September 14, 2005 10:01 AM Subject: Re: [PHP] Webservices and PHP? Gustav Wiberg wrote: Hi there! I want to learn about creating webservices

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Gustav Wiberg
- Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, September 14, 2005 9:47 AM Subject: RE: [PHP] Output of html without using functions? Gustav, For true simplicity (platform independence), you need to do a lot more

Re: [PHP] Webservices and PHP?

2005-09-14 Thread Robert Graham
Gustav Wiberg wrote: Hi there! I want to learn about creating webservices with PHP? (Is it possible with PHP 4.3.11?) and calling webservices against ASP.Net. Anyone has suggestion where I should start looking? /G http://www.varupiraten.se/ Hi Gustav What I can suggest is to try and get

[PHP] Dynamically determine class

2005-09-14 Thread Norbert Wenzel
Hi, I'm using PHP5 and try to do something like this: I have a base class called 'Entry' and a child class called 'ExtendedEntry'. I want to read all Entries to a certain topic from a database. While constructing the EntryObject I would like to look if Entry is a simple Entry or an Extended

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Jochem Maas
Gustav Wiberg wrote: Hi there! Look at the following code code1.php code2.php //Here I want to get the output of code1.php without using functions. Is it possible? // //Something like $test = require("http:///mobil_info.php"); but instead of returning 1 at success I want to return the

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: //Something like $test = require("http:///mobil_info.php"); but instead of returning 1 at success I want to return the random value... $test = file_get_contents("http:///mobil_info.php"); assuming allow_url_fopen is on, otherwise look at the CURL functions or use raw sock

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Shafiq Rehman
Hi, You can use your code1.php as and then you can get the value as $returnedData = require("code1.php"); On 9/14/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > > Hi there! > > Look at the following code > > > code1.php > > echo rand(1,1); > ?> > > > code2.php > > //Here I want

[PHP] Re: Webservices and PHP?

2005-09-14 Thread Florian P.
Hi. What kind of webservices do you mean??? Do you mean Guestbooks? Or do you mean Forums? Or what else? Greets ""Gustav Wiberg"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi there! > > I want to learn about creating webservices with PHP? (Is it possible with > PHP 4.

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian P.
ID: Name: Titel: Kommentar: Thats the code i have written. And I would like to post the how often I have SQL-entries in my database. I hope you understand what I would like to say. And in each cycle it ought to put out the next entry of the database.

Re: [PHP] uk summer time

2005-09-14 Thread Gustav Wiberg
- Original Message - From: "Ross" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 14, 2005 9:06 AM Subject: [PHP] uk summer time Hi, I am looking for a function that returns the local time in the uk, it has to account for the clock changes in winter and summner. date_default

Fwd: [PHP] linux embedded no db which way(2)

2005-09-14 Thread adriano ghezzi
-- Forwarded message -- From: Jasper Bryant-Greene <[EMAIL PROTECTED]> Date: 14-set-2005 9.01 Subject: Re: [PHP] linux embedded no db which way To: php-general@lists.php.net adriano ghezzi wrote: > guys hi all, quite new in this list > I'm involved in a project with php in a linux

  1   2   >