Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread Jochem Maas
Jay Blanchard wrote: [snip] I was working with objects, and suddenly i got this error: *Parse error*: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in * D:\Apache\Apache(re)\Apache2\htdocs\Include.php* on line *11* is this like a bug in PHP or is it a valid error? thanks in advance [/snip] It

RE: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread George Pitcher
It means that you have two colons not being used correctly its a good thing this mailinglist is not about the practice of medicine ;-) If it was, I suppose you would recommend 'colonic irrigation' then? Twice, perhaps? George -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread M
Chris Shiflett wrote: Ben Ramsey wrote: $clean = array(); $sql = array(); Glad to see someone spreading this habit. :-) Thanks, Ben. if (ctype_alnum($_POST['pass'])) { $clean['pass'] = $_POST['pass']; } I think it's fine to cheat a bit with the password and trust the output

[PHP] post and variables

2005-11-10 Thread Ross
Thanks fpr all the feedback on the password but I have another one... How do I use $_POST with variables. Cant find an example of this anywhere on php.net if ($_POST['$table_name== 1']) { //do something } Ta, ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: post and variables

2005-11-10 Thread Ross
Sorry I got confused. I am using variable variables. Disregard. Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks fpr all the feedback on the password but I have another one... How do I use $_POST with variables. Cant find an example of this anywhere on php.net if

Re: [PHP] post and variables

2005-11-10 Thread Adrian Bruce
if (($_POST['$table_name']) == 1){ //do something } what you have is essentialll looking for a posted value called '$table_name== 1'! Ross wrote: Thanks fpr all the feedback on the password but I have another one... How do I use $_POST with variables. Cant find an example of this

Re: [PHP] post and variables

2005-11-10 Thread Richard Davey
Hi Ross, Thursday, November 10, 2005, 10:39:48 AM, you wrote: How do I use $_POST with variables. Cant find an example of this anywhere on php.net if ($_POST['$table_name== 1']) { if ($_POST['form_element_name'] == 'whatever') There are many examples of this all over the web. You need to

Re: [PHP] Re: post and variables

2005-11-10 Thread Jochem Maas
Ross wrote: Sorry I got confused. I am using variable variables. Disregard. Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks fpr all the feedback on the password but I have another one... How do I use $_POST with variables. Cant find an example of this anywhere on

[PHP] undefined index and php

2005-11-10 Thread Ross
Before someone advises me to 'google' my question. I have and can't find a PHP.net example either. I have turned off registered globals and am updating my scripts so they work but I keep getting an undefined index problem using $_POST I tried this to set the value... if

Re: [PHP] undefined index and php

2005-11-10 Thread Jasper Bryant-Greene
Ross wrote: because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. ? $heading_insert= stripslashes($_POST['heading']);? That's because before the submit button has been pressed, $_POST is empty and so 'heading' is indeed an undefined

Re: [PHP] undefined index and php

2005-11-10 Thread ross
I have never really used this abreviated format before why the question mark and the colon? What is the long hang eqivalent. I turned magic quotes off too. thanks. R. - Original Message - From: Jasper Bryant-Greene [EMAIL PROTECTED] To: Ross [EMAIL PROTECTED] Cc:

RE: [PHP] Re: post and variables

2005-11-10 Thread Robbert van Andel
Essentially, Ross, you can use $_POST variables as a regular associative array. $_POST values come from the posted values in a form. If you have a form element called table_name, and your form uses the post method (as opposed to the get method), your script would have $_POST['table_name']

RE: [PHP] undefined index and php

2005-11-10 Thread Robbert van Andel
The question mark and colon is the equivalent for the iif function. It's a short hand for if/else. You start with the expression, and if true, do what's after the question mark and if false, after the column. Robbert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [PHP] undefined index and php

2005-11-10 Thread Jochem Maas
Robbert van Andel wrote: The question mark and colon is the equivalent for the iif function. It's a 'if () ...' is not a function it's a language construct. they are different :-) for instance 'echo' is also a language construct which is why it does not require brackets e.g. $space = ' ';

Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread Dan McCullough
That could get messy On 11/10/05, George Pitcher [EMAIL PROTECTED] wrote: It means that you have two colons not being used correctly its a good thing this mailinglist is not about the practice of medicine ;-) If it was, I suppose you would recommend 'colonic irrigation' then?

RE: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread Jay Blanchard
[snip] It means that you have two colons not being used correctly its a good thing this mailinglist is not about the practice of medicine ;-) If it was, I suppose you would recommend 'colonic irrigation' then? Twice, perhaps? That could get messy [/snip] Well, you see what it did

[PHP] Re: undefined index and php

2005-11-10 Thread Mark Rees
I tried this to set the value... if (!isset($_POST['heading'])) { $_POST ['heading'] = ; } because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. ? $heading_insert= stripslashes($_POST['heading']);? What everyone else said, but also:

Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread Dan McCullough
LOL coding mirrors life. On 11/10/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] It means that you have two colons not being used correctly its a good thing this mailinglist is not about the practice of medicine ;-) If it was, I suppose you would recommend 'colonic

[PHP] Text between two tags

2005-11-10 Thread Normmy2k
Hello I'm trying to extract some text between two tags: Example I have this string : $text='td/td td align=right class=yfnc_tabledata3/td td/td td align=right class=yfnc_tabledata2/td td/td td align=right class=yfnc_tabledata11234/td td/td td/td td/td td align=right class=yfnc_tabledata5/td ';

Re: [PHP] java .vs php

2005-11-10 Thread Skippy
Quoting [EMAIL PROTECTED]: I know Yahoo! uses PHP and I've heard Google does as well? Google uses Python. http://www.python.org/Quotes.html -- Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] undefined index and php

2005-11-10 Thread Gustavo Narea
Hello. [EMAIL PROTECTED] wrote: why the question mark and the colon? What is the long hang eqivalent. That's the Ternary operator. Whether you want to get further information, go to: http://php.net/manual/en/language.operators.comparison.php Regards. -- Gustavo Narea. PHP Documentation -

RE: [PHP] Text between two tags

2005-11-10 Thread mike bellerby
try explode using td align=right class=yfnc_tabledata1 then on array index[1] explode /td your answer will then be in index[0] Hope this helps Mike Message Received: Nov 10 2005, 03:01 PM From: Normmy2k [EMAIL PROTECTED] To:

Re: [PHP] java .vs php

2005-11-10 Thread Gustavo Narea
Google uses PHP too. For example: http://toolbar.google.com/failed.php http://toolbar.google.com/whatsnew.php3 http://www.google.co.ve/search?q=%22google+uses+php%22 Regards. Skippy wrote: Quoting [EMAIL PROTECTED]: I know Yahoo! uses PHP and I've heard Google does as well? Google

Re: [PHP] Catch the WMV first frame picture in PHP script?

2005-11-10 Thread 張 峰銘
Mr. M: Hello, thanks for your kind help. But my Linux system is Fedora Core 1 , there isn't any totem-video-thumbnailer. What should I do? Do I have to upgrade the Linux system to FC 3 or heigher ? (the Totem exists in FC3 ) or Is there any other method to solve this problem? Thanks a

RE: [PHP] java .vs php

2005-11-10 Thread Nathan Tobik
Google uses Java also: http://java.sun.com/developer/technicalArticles/J2SE/google/limoore.html Nate Tobik (412)661-5700 x206 VigilantMinds -Original Message- From: Gustavo Narea [mailto:[EMAIL PROTECTED] Sent: Thursday, November 10, 2005 10:25 AM To: php-general@lists.php.net Subject:

Re: [PHP] Text between two tags

2005-11-10 Thread Leonard Burton
HI, Hello I'm trying to extract some text between two tags: I am answering your question from the perspective that you are going to have more than one column that you want the data from. I would use this pattern and this code to test the pattern. ? $pattern=/(td align=\(.*)\

[PHP] compiling PHP

2005-11-10 Thread Leonard Burton
HI All, I have been digitizing a bungh of 35 mm slides for a client and making a static index and putting all of this on a CD. They are getting to the stage where they would like it to be at least somewhat dynamic. On my laptop I have installed XAMPP and it seems to work decently well. Is

Re: [PHP] Text between two tags

2005-11-10 Thread tg-php
Maybe just treat it like XML and use PHP's XML parsing routines. Should work pretty good but maybe someone else has a better way of handling it. (code below) -TG // $string - contains your HTML string $innerText = ; $_XML_PARSER = xml_parser_create();

Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread Jochem Maas
Jay Blanchard wrote: [snip] It means that you have two colons not being used correctly its a good thing this mailinglist is not about the practice of medicine ;-) If it was, I suppose you would recommend 'colonic irrigation' then? Twice, perhaps? That could get messy [/snip] Well, you

RE: [PHP] compiling PHP

2005-11-10 Thread Jay Blanchard
[snip] I have been digitizing a bungh of 35 mm slides for a client and making a static index and putting all of this on a CD. They are getting to the stage where they would like it to be at least somewhat dynamic. On my laptop I have installed XAMPP and it seems to work decently well. Is there

Re: [PHP] Text between two tags

2005-11-10 Thread tg-php
Great example.. haha.. I knew someone would pull some nice regex out for this one.. I suck at regex. hah I still like my XML parsing fix, but Leonard's regex is probably better. hah -TG = = = Original message = = = HI, Hello I'm trying to extract some text between two tags: I am answering

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Chris Shiflett
M wrote: $clean['pass'] = md5((ini_get('magic_quotes_gpc') ? stripslashes($_POST['pass']) : $_POST['pass'])); or users with quotes in their password won't be able to log in. This is best handled in one place, so that it's easier to maintain and less likely to be overlooked. In the examples

Re: [PHP] Re: security code

2005-11-10 Thread Jochem Maas
rant mode=troll sarcasm=true anger=+3 replies=duck this email contains swearing so that the sensitive amongst you will be spared what I have to say (assuming you have a stupid 'Im a sensitive person, don't expose me to bad language' mail filter) Gustavo Narea wrote: Hello, Clive. Depending on

Re: [PHP] Re: security code

2005-11-10 Thread Gustavo Narea
Hello. CAPTCHA tests are indispensables. The problem comes when you *only* use visual tests (such as visual turing numbers). If you need CAPTCHA tests, you may use them both visuals and audibles. This is a good example: https://www.e-gold.com/acct/login.html Regards. Jochem Maas wrote:

[PHP] simplexml_load_string always FALSE

2005-11-10 Thread Scott Klarenbach
I have a call $oXML = simplexml_load_string($xmlString); I then check it, with if(!$oXML) throw new XMLException(); For some reason, it's always evaluating to FALSE. Even though there are no errors and the rest of the xml parsing works fine. If I change it to if($oXML === FALSE) throw new

[PHP] FORM not printing

2005-11-10 Thread Chirantan Ghosh
Hi Guys, Looks like I am making an elemental mistake somewhere but can't figure out where can anyone please help? This form is not printing at all but doesn't show any error in my browser. The URL of defected PHP: http://www.primarywave.com/eRSP_Contact.php The URL of How It Should Look:

RE: [PHP] FORM not printing

2005-11-10 Thread Jay Blanchard
[snip] Looks like I am making an elemental mistake somewhere but can't figure out where can anyone please help? This form is not printing at all but doesn't show any error in my browser. The URL of defected PHP: http://www.primarywave.com/eRSP_Contact.php The URL of How It Should Look:

Re: [PHP] FORM not printing

2005-11-10 Thread Chirantan Ghosh
Thanks Jay. Unfortunately I am still at loss. I posted the code I wrote in this URL: http://www.primarywave.com/NONworkingCODE.txt The Source displays exact as is for all markup. If you can help it would be great. Thanks, C - Original Message - From: Jay Blanchard [EMAIL PROTECTED]

RE: [PHP] FORM not printing

2005-11-10 Thread Jay Blanchard
[snip] Unfortunately I am still at loss. I posted the code I wrote in this URL: http://www.primarywave.com/NONworkingCODE.txt The Source displays exact as is for all markup. If you can help it would be great. [/snip] Remove all of the JavaScript code from the page and try it then. What is the

Re: [PHP] FORM not printing

2005-11-10 Thread Chirantan Ghosh
I tried that was with no avail. The JS was just cosmetics by the original designer. Now I am trying a new angle. The Form remains in: http://www.primarywave.com/eRSP_Contact.htm but the form processing code is in http://www.primarywave.com/eRSP_Contact.php Its says I have an error in last

RE: [PHP] FORM not printing

2005-11-10 Thread Jay Blanchard
[snip] Now I am trying a new angle. The Form remains in: http://www.primarywave.com/eRSP_Contact.htm but the form processing code is in http://www.primarywave.com/eRSP_Contact.php Its says I have an error in last line of the code i.e line 35. [/snip] I get this error when I click... Parse

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread GamblerZG
Richard Lynch wrote: IP is useless for identification or authentication of the general web-surfer: Users behind firwalls will all appear to be from one (1) IP AOL users change IPs faster than drummers change underwear I think it's still reasonable to restrict a session to a single IP. --

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread Chris Shiflett
GamblerZG wrote: I think it's still reasonable to restrict a session to a single IP. No, it's not, for all of the reasons Richard mentioned and more. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] a code question..??

2005-11-10 Thread bruce
hi.. i have a situation where i have a client app (A), and another app (B). i'd like to be able to have app A have a login dialog. I'd like the login dialog to be comming/run from app B. so i envision somehow having code from app B within app A, that essentially is bing run

Re: [PHP] FORM not printing

2005-11-10 Thread Chirantan Ghosh
Hi Suhas, Thanks a lot for the closing {, you are a life saver. I can't believe I could have been so blind then even stupid not to see after your mail. Thanks again, C Jay, Thanks to you too. - Original Message - From: Suhas [EMAIL PROTECTED] To:

Re: [PHP] a code question..??

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 2:20 pm, bruce wrote: i have a situation where i have a client app (A), and another app (B). i'd like to be able to have app A have a login dialog. I'd like the login dialog to be comming/run from app B. so i envision somehow having code from app B within app A,

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 1:08 pm, GamblerZG wrote: Richard Lynch wrote: IP is useless for identification or authentication of the general web-surfer: Users behind firwalls will all appear to be from one (1) IP AOL users change IPs faster than drummers change underwear I think it's

Re: [PHP] simplexml_load_string always FALSE

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 12:26 pm, Scott Klarenbach wrote: I have a call $oXML = simplexml_load_string($xmlString); I then check it, with if(!$oXML) throw new XMLException(); For some reason, it's always evaluating to FALSE. Even though there are no errors and the rest of the xml

Re: [PHP] Text between two tags

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 8:56 am, Normmy2k wrote: Example I have this string : $text='td/td td align=right class=yfnc_tabledata3/td td/td td align=right class=yfnc_tabledata2/td td/td td align=right class=yfnc_tabledata11234/td td/td td/td td/td td align=right class=yfnc_tabledata5/td

RE: [PHP] a code question..??

2005-11-10 Thread bruce
the primary issue i'm trying to address is whether it's possible for a php app to somehow display on one app, code/forms that essentially resides on another server? doens't have to be a login form.. in all honesty, i don't see how it can be possible.. using curl, would simply download the code

Re: [PHP] undefined index and php

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 5:54 am, Ross wrote: Before someone advises me to 'google' my question. I have and can't find a PHP.net example either. I have turned off registered globals and am updating my scripts so they work but I keep getting an undefined index problem using $_POST I tried

Re: [PHP] Re: undefined index and php

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 8:38 am, Mark Rees wrote: It's not good practice (in fact I don't even know if it's possible) to It's definitely possible in the sense that you can cram things in there. You can store your lunch in the trash can and pull it back out when it's time to eat. Neither of

Re: [PHP] a code question..??

2005-11-10 Thread Ben
bruce said the following on 11/10/2005 01:15 PM: the primary issue i'm trying to address is whether it's possible for a php app to somehow display on one app, code/forms that essentially resides on another server? doens't have to be a login form.. in all honesty, i don't see how it can be

Re: [PHP] post and variables

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 4:39 am, Ross wrote: Thanks fpr all the feedback on the password but I have another one... How do I use $_POST with variables. Cant find an example of this anywhere on php.net if ($_POST['$table_name== 1']) { I believe you want this: if

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Richard Lynch
On Wed, November 9, 2005 10:36 pm, Dan Rossi wrote: Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have been experiencing the same issue however the php people cant see to reproduce the bug. Its most definately doing it for

Re: [PHP] Gotta learn asp.net...

2005-11-10 Thread Richard Lynch
On Wed, November 9, 2005 6:54 pm, Joseph Szobody wrote: *sigh* I'm a hardcore PHP programmer.. I've been using it for over five years now, and would consider myself fairly advanced. I have a project where I'm being forced to do some ASP.NET development, which I've never touched. I need to

Re: [PHP] PHP 5 OO performance exceptions

2005-11-10 Thread cron
I was not considering that, I was using $obj_string-getValue(), the __toString method and type casting could save me some keystrokes :) Anyway, did you abandon the development with the basic types class? Angelo - Original Message - From: Jake Gardner [EMAIL PROTECTED] To:

RE: [PHP] a code question..??

2005-11-10 Thread bruce
here's the basic logic flow that i'm contemplating... app A (server A)app B (server B) -app displays page -app gets code from app B ---code/form section -app displays rest of page with code/form from app B -user enters name

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Richard Lynch
On Wed, November 9, 2005 7:15 pm, Chris Shiflett wrote: Ben Ramsey wrote: $clean = array(); $sql = array(); Here's an idea... Quite possibly half-baked. Suppose PHP had a superglobal $_CLEAN which was an empty array. Further suppose it was documented in the manual as *the* place to put

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Max Belushkin
I've been having a problem with PHP 4.4.1 and mod_rewrite, which, as Geert Booster kindly pointed out, has been reported on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027038.html, which also has a link to the PHP bug report in the thread. Not sure if this is relevant to

Re: [PHP] Select and $_POST

2005-11-10 Thread Richard Lynch
On Wed, November 9, 2005 5:21 pm, Ross wrote: $query = SELECT * FROM login where username='$_POST['username']' AND pass ='$_POST['pass']'; In addition to the fine posts regarding SQL Injection and curly braces, I'd like to provide one other alternative heretofore unmentioned: $query = SELECT

Re: [PHP] a code question..??

2005-11-10 Thread Ben
bruce said the following on 11/10/2005 01:44 PM: as you can see, there are interactions that occur betwwen app A and app B. but i'm not sure if what i'm thinking of can be accomplished... the information in the code/forms from app B will change based on the username... thoughts/comments..

RE: [PHP] java .vs php

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 9:45 am, Nathan Tobik wrote: Google uses Java also: http://java.sun.com/developer/technicalArticles/J2SE/google/limoore.html Google uses Pigeons as well. :-) After doing enough web development for enough time, you get to where you really don't care what so-and-so is

RE: [PHP] a code question..??

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 3:15 pm, bruce wrote: the primary issue i'm trying to address is whether it's possible for a php app to somehow display on one app, code/forms that essentially resides on another server? doens't have to be a login form.. in all honesty, i don't see how it can be

Re: [PHP] Gotta learn asp.net...

2005-11-10 Thread Larry E. Ullman
On Wed, November 9, 2005 6:54 pm, Joseph Szobody wrote: *sigh* I'm a hardcore PHP programmer.. I've been using it for over five years now, and would consider myself fairly advanced. I have a project where I'm being forced to do some ASP.NET development, which I've never touched. I need to

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread GamblerZG
Chris Shiflett wrote: GamblerZG wrote: I think it's still reasonable to restrict a session to a single IP. No, it's not, for all of the reasons Richard mentioned and more. I agree that using only IP to identify session is bad. Using only SID is ok. Using SIDs that are tied to a single IP is

Re: [PHP] Gotta learn asp.net...

2005-11-10 Thread Jasper Bryant-Greene
Larry E. Ullman wrote: Also, in my opinion, having a good knowledge of how to create a dynamic Web site helps when going from PHP to ASP.NET. If you know what the program must do in terms of functionality, protocol, etc., then it's mostly a matter of picking up the right syntax. I found

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Ben Ramsey
On 11/10/05 4:48 PM, Richard Lynch wrote: Here's an idea... Quite possibly half-baked. Suppose PHP had a superglobal $_CLEAN which was an empty array. Further suppose it was documented in the manual as *the* place to put your scrubbed data. This rather small and hopefully inexpensive change

Re: [PHP] Re: security code

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 10:11 am, Jochem Maas wrote: rant mode=troll sarcasm=true anger=+3 replies=duck ... or put another way - is there a good reason why the web should be any less discriminating than the rest of society. Yes. It's the WORLD WIDE WEB. I mean, it's all very well to

Re: [PHP] Re: security code

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 10:45 am, Gustavo Narea wrote: CAPTCHA tests are indispensables. The problem comes when you *only* use visual tests (such as visual turing numbers). If you need CAPTCHA tests, you may use them both visuals and audibles. This is a good example:

Re: [PHP] Unable to send variables to MySQL table

2005-11-10 Thread Richard Lynch
On Wed, November 9, 2005 1:15 pm, Stewart Priest wrote: I've written this script shown below. It gets its variables from a form, and then it (supposedly!) writes these values into a MySQL table ('invoices'). The script executes with no errors, but when I check the table, the table is still

RE: [PHP] a code question..??

2005-11-10 Thread bruce
as i understand curl functions (and correct me if i'm wrong). the functions simply allow the user/app to download/copy the file from the remote server, where the existing app could do whatever with the content... this isn't what i want.. i'm trying to figure out if there's a way to run a chunk of

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread GamblerZG
Richard Lynch wrote: AOL users WILL change their IP in a single [web-surfing] session. Ugh... I did not know that. That's horrible. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 3:08 pm, GamblerZG wrote: Chris Shiflett wrote: GamblerZG wrote: I think it's still reasonable to restrict a session to a single IP. No, it's not, for all of the reasons Richard mentioned and more. I agree that using only IP to identify session is bad. Using only

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread GamblerZG
GamblerZG wrote: This comes at a price of a small inconvinience for dial-up users (since they would need to login on each reconnect), but I think such price it reasonable. Ok, scrap this statement. I did not know about AOL thing. But this one still stands: IMO, the best way is to

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread Chris Shiflett
GamblerZG wrote: I think it's still reasonable to restrict a session to a single IP. No, it's not, for all of the reasons Richard mentioned and more. I agree that using only IP to identify session is bad. Read more carefully. Enforcing IP consistency is bad, and many good reasons have

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread GamblerZG
Richard Lynch wrote: Please pay attention. Sorry, I did not see your message when I posted that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a code question..??

2005-11-10 Thread Ben
bruce said the following on 11/10/2005 02:30 PM: as i understand curl functions (and correct me if i'm wrong). the functions simply allow the user/app to download/copy the file from the remote server, where the existing app could do whatever with the content... It depends... You could get the

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 4:21 pm, Ben Ramsey wrote: On 11/10/05 4:48 PM, Richard Lynch wrote: The only issue I see with building in a superglobal to the language (or this extension) is that it doesn't force the user to instantiate the empty array at the top of the script. This could make for

RE: [PHP] a code question..??

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 4:30 pm, bruce wrote: as i understand curl functions (and correct me if i'm wrong). the functions simply allow the user/app to download/copy the file from the remote server, where the existing app could do whatever with the content... this isn't what i want.. i'm

[PHP] Inserting a NULL value into MySQL via PHP

2005-11-10 Thread [EMAIL PROTECTED]
Is there a way when making a MySQL database entry through a PHP script and there is no data to make the db treat it as NULL?

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 3:29 pm, GamblerZG wrote: IMO, the best way is to re-generate SIDs on each request, but such method will decrease perfomance of a script. But if Cookies are off, you just destroyed their Back button in their browser, which should be a crime. Re-generate only when

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Curt Zirzow
On Thu, Nov 10, 2005 at 05:21:51PM -0500, Ben Ramsey wrote: On 11/10/05 4:48 PM, Richard Lynch wrote: Here's an idea... Quite possibly half-baked. Suppose PHP had a superglobal $_CLEAN which was an empty array. Further suppose it was documented in the manual as *the* place to put your

Re: [PHP] Re: Security Issues - Where to look?

2005-11-10 Thread Jasper Bryant-Greene
GamblerZG wrote: Richard Lynch wrote: Please pay attention. Sorry, I did not see your message when I posted that. Oh and would you mind using an email address that exists? Every time I reply to one of your posts, I get a returned mail from highstream.net saying your user doesn't

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 8:36 AM, Richard Lynch wrote: On Wed, November 9, 2005 10:36 pm, Dan Rossi wrote: Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have been experiencing the same issue however the php people cant see to

RE: [PHP] a code question..??

2005-11-10 Thread bruce
richard... in your example, wouldn't app A, essentially download the code from app B, and run the source on app A? or would the code be run on app B, with the resulting html/content/page being transferred to app A? would this be better if it were perhaps done as a soap client/server process...

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 8:53 AM, Max Belushkin wrote: I've been having a problem with PHP 4.4.1 and mod_rewrite, which, as Geert Booster kindly pointed out, has been reported on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/ 027038.html, which also has a link to the PHP bug

Re: [PHP] Inserting a NULL value into MySQL via PHP

2005-11-10 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: Is there a way when making a MySQL database entry through a PHP script and there is no data to make the db treat it as NULL? Wouldn't this just work: INSERT INTO myTable (myField) VALUES (NULL) Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Array_merge, safety and race condition?

2005-11-10 Thread Ezra Nugroho
Php experts everywhere, I want to merge two arrays, and I want to store the result as the first array. Something like the following: $array1 = array_merge ($array1, $array2); So far the code gives me what I want. However, suppose if $array1 is extremely huge, am I introducing a bug here

[PHP] xml-rpc and xml-rpci

2005-11-10 Thread Alex Duggan
Hello, What is the future of the xml-rpc client and server functions in php 5.x? I see the old xml-rpc extension is still marked as expirimental and the newer xml-rpci extention in pecl has not been worked on in 8 months and doesn't have server functionality. I am in the process of porting a

Re: [PHP] a code question..??

2005-11-10 Thread comex
in your example, wouldn't app A, essentially download the code from app B, and run the source on app A? or would the code be run on app B, with the resulting html/content/page being transferred to app A? If the PHP file has a .php extension, it will be run on the webserver like any PHP page.

RE: [PHP] a code question..??

2005-11-10 Thread bruce
ok... so can i do something like... +---+ | | | user| | 'sub_btn'| | | | | |

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Curt Zirzow
On Thu, Nov 10, 2005 at 06:10:50PM +1100, Dan Rossi wrote: On 10/11/2005, at 4:18 PM, Curt Zirzow wrote: On Thu, Nov 10, 2005 at 03:36:07PM +1100, Dan Rossi wrote: Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 1:21 PM, Curt Zirzow wrote: Of course i dont get what your trying to do, the rewriterule doesn't match your description of what you said. Ok i am vague at most times, i wasnt going to give an exact example as it will give away some of the systems secret and not so good

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Curt Zirzow
On Fri, Nov 11, 2005 at 01:27:32PM +1100, Dan Rossi wrote: On 11/11/2005, at 1:21 PM, Curt Zirzow wrote: Of course i dont get what your trying to do, the rewriterule doesn't match your description of what you said. Ok i am vague at most times, i wasnt going to give an exact example

Re: [PHP] a code question..??

2005-11-10 Thread comex
the app B server would then return a result, based on the user input... i'm trying to figure out how to essentially allocate a section of the page, to a remote application. after i've finished with the remote stuff, the user could go ahead and select other items/buttons on the page that are in

Re: [PHP] Inserting a NULL value into MySQL via PHP

2005-11-10 Thread Curt Zirzow
On Fri, Nov 11, 2005 at 01:09:39PM +1300, Jasper Bryant-Greene wrote: [EMAIL PROTECTED] wrote: Is there a way when making a MySQL database entry through a PHP script and there is no data to make the db treat it as NULL? Wouldn't this just work: INSERT INTO myTable (myField) VALUES (NULL)

Re: [PHP] wanting to get host name instead of ip

2005-11-10 Thread Curt Zirzow
On Thu, Nov 10, 2005 at 11:35:06PM -0600, matt VanDeWalle wrote: hello, I was wondering, is there a way to get a connection's name(host's name instead of just ip), i am using the cli version of php and am now using the function getpeername() but for example, i would like to be able to

Re: [PHP] wanting to get host name instead of ip

2005-11-10 Thread matt VanDeWalle
yes, you assume right, I really did mean socket_getpeername() its about midnight here and my brain shuts down at about 10:30 :p thanks for the reply matt On Thu, 10 Nov 2005, Curt Zirzow wrote: On Thu, Nov 10, 2005 at 11:35:06PM -0600, matt VanDeWalle wrote: hello, I was wondering, is there