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

2005-09-14 Thread Jasper Bryant-Greene
Death Gauge wrote: I'll try that...But why shouldn't I have register_globals on (which my ISP does and every tutorial I've ever read says to do in order to use several different features of PHP:-/). http://php.net/security.globals I would be very worried about the quality of any tutorial

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

2005-09-14 Thread Ben Holt
bruce wrote: ben... your statements/approach is pretty much what i've been thinking of. however, with regards to the forums/cms apps.. i've yet to find one that actually keeps a track of the logged in users, that works when the user kills the browser.. the ones that i've seen, that allow an

[PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian Paucke
Hi. I'm new to PHP. I need some help from you, because, I'm creating a guestbook. But I have a little problem. I have a table, where the different My-SQL-Entries are read out. But now I get only one Entry, but not more. How can do it, that the table read out 4 times, when 4 entries are in the

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Jasper Bryant-Greene
Florian Paucke wrote: I need some help from you, because, I'm creating a guestbook. But I have a little problem. I have a table, where the different My-SQL-Entries are read out. But now I get only one Entry, but not more. How can do it, that the table read out 4 times, when 4 entries are in

RE: [PHP] Modifying data in forms with values

2005-09-14 Thread info
Robert, Murray's suggestion is good. Here is some code to produce the current value of 'county' in a select list: !-- START of counties.php -- ?php $_REQUEST['county'] = !isset($_REQUEST['county'])? NULL:$_REQUEST['county']; // initialize or capture ? select name=county option value=?php echo

[PHP] Re: Little Problem with my Guestbook

2005-09-14 Thread David Robley
Florian Paucke wrote: Hi. I'm new to PHP. I need some help from you, because, I'm creating a guestbook. But I have a little problem. I have a table, where the different My-SQL-Entries are read out. But now I get only one Entry, but not more. How can do it, that the table read out

[PHP] linux embedded no db which way

2005-09-14 Thread adriano ghezzi
guys hi all, quite new in this list I'm involved in a project with php in a linux embedded environment, it's impossibile to use a db server, any suggestion on how to handle few hundreds of simple records ? tia - happy work with php! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Webservices and PHP?

2005-09-14 Thread Gustav Wiberg
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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] linux embedded no db which way

2005-09-14 Thread Gustav Wiberg
- Original Message - From: adriano ghezzi [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, September 14, 2005 8:57 AM Subject: [PHP] linux embedded no db which way guys hi all, quite new in this list I'm involved in a project with php in a linux embedded environment,

Re: [PHP] linux embedded no db which way

2005-09-14 Thread Jasper Bryant-Greene
adriano ghezzi wrote: guys hi all, quite new in this list I'm involved in a project with php in a linux embedded environment, it's impossibile to use a db server, any suggestion on how to handle few hundreds of simple records ? A text file, comma-separated or similar? http://php.net/fputcsv

[PHP] uk summer time

2005-09-14 Thread Ross
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_timezone_set('GMT'); - does not work. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SOAP?

2005-09-14 Thread Gustav Wiberg
Hi there! If you look at this link (it shows info of the server) http://www.stammis.com/agendalatina/info.php Is it possible to use PEAR SOAP-package? /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Output of html without using functions?

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

Re: [PHP] linux embedded no db which way

2005-09-14 Thread Kevin Waterson
This one time, at band camp, adriano ghezzi [EMAIL PROTECTED] wrote: guys hi all, quite new in this list I'm involved in a project with php in a linux embedded environment, it's impossibile to use a db server, any suggestion on how to handle few hundreds of simple records ? sqlite.org SQLite

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

Re: [PHP] uk summer time

2005-09-14 Thread Gustav Wiberg
- Original Message - From: Ross [EMAIL PROTECTED] To: php-general@lists.php.net 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

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian P.
?php include(sql.inc.php); include(config.inc.php); $connection = mysql_connect($sql['host'],$sql['uid'],$sql['pwd']); $select_db = mysql_select_db($sql['db']); $select = mysql_query('SELECT * FROM comments'); $data = mysql_fetch_array($select); $result = mysql_query('SELECT * FROM comments');

[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.3.11?)

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

2005-09-14 Thread Shafiq Rehman
Hi, You can use your code1.php as ?php return rand(1,1); ? 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 ?php echo rand(1,1); ? code2.php

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

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

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 ?php echo rand(1,1); ? code2.php //Here I want to get the output of code1.php without using functions. Is it possible? // //Something like $test = require(http://domain/mobil_info.php); but instead of returning 1

[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

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

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 work.

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 php-general@lists.php.net Sent: Wednesday, September 14, 2005 10:01 AM Subject: Re: [PHP] Webservices and PHP? Gustav Wiberg wrote: Hi there! I want to learn about

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] 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: 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=30670edit=0 ] seems to fit my situation perfectly. As some of the posts on that bug suggest, I've tried using

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 unsubscribe,

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

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 Norbert Wenzel
Thanks. Norbert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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 php-general@lists.php.net Sent: Wednesday, September 14, 2005 11:59 AM Subject: Re: [PHP]

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] 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] 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 will

[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

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

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 case

[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: [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

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, same

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

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread John Nichel
Florian P. wrote: ?php include(sql.inc.php); include(config.inc.php); $connection = mysql_connect($sql['host'],$sql['uid'],$sql['pwd']); $select_db = mysql_select_db($sql['db']); $select = mysql_query('SELECT * FROM comments'); $data = mysql_fetch_array($select); $result =

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] 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 to do

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

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 the

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

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

[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] 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)

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

[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

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

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

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: img src=image.gif why not setup a php script to do URL

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:

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!). snip It's not needed if those fields are integers. *damnit, that's twice today I've replied to the poster

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

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

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] 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

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

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 ?php function chkIfPasswordTrue($un, $pw, $typeUser) {

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

[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 expecting a post look

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, don't!). If you're

[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 going to use $_REQUEST you might as well

[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: 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,

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 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 to you via

[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;

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_      

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

[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

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] 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] 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

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...

[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

[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

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

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

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] 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: [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] 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, I have

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 brains

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 far if

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 any of

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 visit

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 that

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 equivalent. If 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 http://bugs.php.net/ A reference where _I_ have to

[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

[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

  1   2   >