Re: [PHP] Shopping Cart, security concerns

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 8:26 pm, mayo said: I'm making my first shopping cart in PHP. I'm concerned about the security of my session variables, concerned about people altering data (lowering the price). Is there anything I should pay attention to. There are approximately 247 other PHP shopping

[PHP] Compiling PHP 4.3.11 on FreeBSD 5.4 amd64

2005-05-14 Thread Tim Traver
Hi all, For some reason, when I compile php on my FreeBSD 5.4 machine (amd64 architecture), it is not creating the shared object file. Here is my config : ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-mcrypt=/usr/local -with-openssl -enable-url-fopen-wrapper

Re: [PHP] 'Require' and 'Select' lists

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 5:59 am, Andre Dubuc said: However, the behavior continues intermittently. I've duplicated it one time. If I click on the 'State' dropdown list, allow the mouse to scan through it, but do not choose a value, and then immediately go to the previous or next field and click

Re: [PHP] Strange comparison behaviour

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 1:18 am, Erwin Kerk said: Can anyone explain me why the following code: if (info == 0) echo is 0\n; else echo not 0\n; Results in: not 0 Whereas: if (inf == 0) echo is 0\n; else echo not 0\n; Results in: is 0 Notice the difference: info in the first sample, inf

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 1:06 am, Marek Kilimajer said: Richard Lynch wrote: On Thu, May 12, 2005 6:58 am, Shaun said: $_SERVER['HTTP_HOST'] Mbneto [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I need to access a website (written in php) using two different domains

Re: [PHP] Finding current PHP sessions

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 1:01 am, Bogdan Stancescu said: I know I could read the session files themselves, but I'd very much rather use a proper way to retrieve the active sessions, which would work with alternate methods of storing session data, if there is any such proper way to do this.

Re: [PHP] MySql injections (related question)

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 12:51 am, Marek Kilimajer said: Richard Lynch wrote: On Thu, May 12, 2005 4:43 pm, Chris Shiflett said: From me: The fact that it uses the character set of your current connection to MySQL means that what your escaping function considers to be a single quote is exactly

Re: [PHP] Seeking decent domain registrar

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 1:25 am, Marcus Bointon said: They did change the rules starting in November 2000, with RFCs (3454, 3490, 3491, 3492) finalised in 2003. See http:// www.verisign.com/products-services/naming-and-directory-services/ naming-services/internationalized-domain-names/index.html

RE: [PHP] php works in IE not Firefox?

2005-05-14 Thread Simon Allison
By the time a properly executed script(executed on the remote server) gets to your computer, regardless of the fact it was done in php(or any other server side language for that matter) it will just be plain html. Once it makes you computer the file/html will be the same as the same page written

[PHP] Re: [thelist] SEO

2005-05-14 Thread john
For example: mysite/sweaters/ (I think) is better than: mysite/index.php?section=1content=23style=5. It's more usable I guess. What handles that though? I'm finding it hard to organise the back end of that in my head. I don't think there's any way around that ending up looking for an

RE: [PHP] Hello, I'm new...

2005-05-14 Thread Brujah
|-Original Message- |From: Jason Barnett [mailto:[EMAIL PROTECTED] |Sent: 13 May 2005 21:21 |To: php-general@lists.php.net |Subject: Re: [PHP] Hello, I'm new... | [SNIP] |Based on the somewhat vague OP, you have somewhat vague (but somewhat |useful) answers. ;) I apologise for the

[PHP] DOMDocument and html doctype

2005-05-14 Thread Claudio
Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype back from DOMDocument I only found the name (HTML) but nothing more...

Re: [PHP] changing php ini location

2005-05-14 Thread Burhan Khalid
Richard Lynch wrote: On Fri, May 13, 2005 12:20 pm, Faith Emre YILMAZ said: anyone knows how to change php ini location? I m using php5, apache 1.3 on windows xp. Re-compile. Since that's not practical for most users, you just have to use whatever phpinfo says is the right directory. Add : #

RE: [PHP] Hello, I'm new...

2005-05-14 Thread john
When I recently looked at asp.net, Microsoft had a Community starter kit/framework which included all the basic modules/applications needed to get such a site up and running and detailed documentation about it's design and implementation. I've not looked at asp, but that sounds like a

Re: [PHP] changing php ini location

2005-05-14 Thread emre
i am not using apache 2.0 as i mentioned before i am using apache 1.3 which means that i dont have the oppurtunity to use phpnidir config parameter. since apache 1.3 doesnt support that. i cannot compile php neither, since i m using a php precompiled windows edition. - Original Message

Re: [PHP] Finding current PHP sessions

2005-05-14 Thread Bogdan Stancescu
Ok, I went with the solution you recommended, by the way of a thank you to the list, here's the resulting function: /** * This function returns the IDs of the current PHP sessions. * At this time, it only works with * [EMAIL PROTECTED] http://www.php.net/manual/en/ref.session.php#AEN129461} *

Re: [PHP] php works in IE not Firefox?

2005-05-14 Thread Rory Browne
it seems more likely that the server is having issues. On 5/14/05, Simon Allison [EMAIL PROTECTED] wrote: By the time a properly executed script(executed on the remote server) gets to your computer, regardless of the fact it was done in php(or any other server side language for that matter) it

Re: [PHP] Hello, I'm new...

2005-05-14 Thread Rory Browne
I only really put in the bit about the community site as a sort of statement about where I would like to go in my php quest. When I recently looked at asp.net, Microsoft had a Community starter kit/framework which included all the basic modules/applications needed to get such a site up and

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread mbneto
Hi, They are in the same machine. My major concern is with security and the hability to make sure if a user logs in, or adds something to a shopping cart in one domain it will be available to the other domain. Can I set call setCookie twice with the same variable name but different domain ? I

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Jared Williams
Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype back from DOMDocument I only found the name (HTML) but nothing

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread Marek Kilimajer
Richard Lynch wrote: On Fri, May 13, 2005 1:06 am, Marek Kilimajer said: Richard Lynch wrote: On Thu, May 12, 2005 6:58 am, Shaun said: $_SERVER['HTTP_HOST'] Mbneto [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I need to access a website (written in php) using two different

Re: [PHP] MySql injections (related question)

2005-05-14 Thread Marek Kilimajer
Richard Lynch wrote: On Fri, May 13, 2005 12:51 am, Marek Kilimajer said: Richard Lynch wrote: On Thu, May 12, 2005 4:43 pm, Chris Shiflett said: From me: The fact that it uses the character set of your current connection to MySQL means that what your escaping function considers to be a single

RE: [PHP] Hello, I'm new...

2005-05-14 Thread Brujah
|-Original Message- |From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] |Sent: 14 May 2005 11:35 |To: php-general@lists.php.net |Subject: RE: [PHP] Hello, I'm new... | | |PS. there it is again, hit reply and the 'to' address is the email |sender, not the list. How so? | I am on a

Re: [PHP] Finding current PHP sessions

2005-05-14 Thread Marek Kilimajer
Bogdan Stancescu wrote: Ok, I went with the solution you recommended, by the way of a thank you to the list, here's the resulting function: /** * This function returns the IDs of the current PHP sessions. * At this time, it only works with * [EMAIL PROTECTED]

[PHP] Repost: mod_rewirte loses POST data

2005-05-14 Thread Bart Seresia
Hi, I'm currently developing a webapplication that uses mod_rewrite. At some point i have to post data but i't seems to get lost, checking the web and some archives i've found that normaly mod_rewrite should preserver this data, but apparently it doesn't. Could anyone help me? Im using:

RE: [PHP] Shopping Cart, security concerns

2005-05-14 Thread mayo
I have to say it's a pretty simple project. The don't want to keep any information in a db. (!!??!!) Info will be sent to a merchant services account and to the distributor which will process the form. Info will be kept in hidden fields input type=hidden ... and in session variables then sent

Re: [PHP] 'Require' and 'Select' lists

2005-05-14 Thread Andre Dubuc
On Saturday 14 May 2005 02:14 am, you wrote: On Fri, May 13, 2005 5:59 am, Andre Dubuc said: However, the behavior continues intermittently. I've duplicated it one time. If I click on the 'State' dropdown list, allow the mouse to scan through it, but do not choose a value, and then

Re: [PHP] Hello, I'm new...

2005-05-14 Thread Rory Browne
AFAIK, PHP doesn't offer that kind of packaged approach. Perhaps there's a major difference between the way MS approaches things and the way PHP/open source does. Traditional ASP, and PHP, were fairly similar. ASP.NET and PHP are two very different solutions, to what is possibly the same

[PHP] CASE tool

2005-05-14 Thread Krid
Hello, can anybody here tell me if there is a (open souce) CASE tool which supports PHP code generation? I could not find anything like this yet. What's the best way designing PHP applikations? I guess anybody knows a whitepaper or tutorial URI ?! Thanks Krid -- PHP General Mailing List

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 06:00, Claudio wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype back from DOMDocument I

Re: [PHP] Hello, I'm new...

2005-05-14 Thread john
PS. there it is again, hit reply and the 'to' address is the email sender, not the list. How so? Is there a 'reply to all' button on your mail client. Some mailing lists add a 'Reply-to' header asking all clients to redirect replys to the list. PHP-general doesn't have such a feature. I

Re: [PHP] Re: why are session only working with cookies?

2005-05-14 Thread Brian V Bonini
On Fri, 2005-05-13 at 23:31, Jason Wong wrote: On Saturday 14 May 2005 09:42, Brian V Bonini wrote: Yeah, I know session support is there and I DO NOT have it set to use ONLY cookies. But if I disable cookies in the browser stuff relying on sessions stops working. I'm using 5.0.3

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 07:57, Jared Williams wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype back from

[PHP] using require

2005-05-14 Thread Cima
hi all, i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my web site. when i log on, this auth.php connects

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Jared Williams
On Sat, 2005-05-14 at 07:57, Jared Williams wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Johannes Findeisen
On Saturday 14 May 2005 16:25, Brian V Bonini wrote: ?php $html = EOS !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN htmlbodyTestbr/body/html EOS; $pattern = '!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN'; $doc = new DOMDocument(); $doc-loadHTML($html);

[PHP] Re: Repost: mod_rewirte loses POST data

2005-05-14 Thread Bart Seresia
Evert from collan thouht it wy have to do with the rewrite rules or the script and asked to post both of them this are the rewrite rules i use: RewriteEngine On RewriteRule ^/(.*[^/])/Admin/(.*)$ https://my.domain.com/$1/Admin/$2 [R,L,NS] RewriteCond

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 16:08, Johannes Findeisen wrote: On Saturday 14 May 2005 16:25, Brian V Bonini wrote: ?php $html = EOS !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN htmlbodyTestbr/body/html EOS; $pattern = '!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 13:03, Jared Williams wrote: On Sat, 2005-05-14 at 07:57, Jared Williams wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone

Re: [PHP] using require

2005-05-14 Thread Leif Gregory
Hello Cima, Friday, October 14, 2005, 12:33:57 PM, you wrote: C any info will be highly appreciated!! The easiest way to handle this is to set a session variable once they're authenticated and on all your pages you have something like this: session_start(); if (!$_SESSION['isAuthenticated'] ==

Re: [PHP] using require

2005-05-14 Thread James Williams
On 10/14/05, Cima [EMAIL PROTECTED] wrote: hi all, i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my

Re: [PHP] using require

2005-05-14 Thread James Williams
On 5/14/05, James Williams [EMAIL PROTECTED] wrote: On 10/14/05, Cima [EMAIL PROTECTED] wrote: hi all, i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some

Re: [PHP] Finding current PHP sessions

2005-05-14 Thread Bogdan Stancescu
Marek Kilimajer wrote: Bogdan Stancescu wrote: Ok, I went with the solution you recommended, by the way of a thank you to the list, here's the resulting function: /** * This function returns the IDs of the current PHP sessions. * At this time, it only works with * [EMAIL PROTECTED]

[PHP] Re: CASE tool

2005-05-14 Thread Manuel Lemos
Hello, on 05/14/2005 10:49 AM Krid said the following: can anybody here tell me if there is a (open souce) CASE tool which supports PHP code generation? I could not find anything like this yet. What's the best way designing PHP applikations? I guess anybody knows a whitepaper or tutorial URI ?!

Re: [PHP] using require

2005-05-14 Thread Richard Lynch
On Fri, October 14, 2005 11:33 am, Cima said: i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my web site.

Re: [PHP] Re: why are session only working with cookies?

2005-05-14 Thread Richard Lynch
On Sat, May 14, 2005 7:49 am, Brian V Bonini said: On Fri, 2005-05-13 at 23:31, Jason Wong wrote: On Saturday 14 May 2005 09:42, Brian V Bonini wrote: Yeah, I know session support is there and I DO NOT have it set to use ONLY cookies. But if I disable cookies in the browser stuff relying on

RE: [PHP] Shopping Cart, security concerns

2005-05-14 Thread Richard Lynch
On Sat, May 14, 2005 6:30 am, mayo said: I have to say it's a pretty simple project. The don't want to keep any information in a db. (!!??!!) Info will be sent to a merchant services account and to the distributor which will process the form. Info will be kept in hidden fields input

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread Richard Lynch
On Sat, May 14, 2005 4:45 am, mbneto said: They are in the same machine. My major concern is with security and the hability to make sure if a user logs in, or adds something to a shopping cart in one domain it will be available to the other domain. Can I set call setCookie twice with the

[PHP] Auslaender bevorzugt

2005-05-14 Thread thies
Lese selbst: http://www.npd.de/npd_info/deutschland/2005/d0305-14.html Jetzt weiss man auch, wie es dazu kommt, dass Drogen, Waffen Handy's in die Haende der Knacki's gelangen! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [thelist] SEO

2005-05-14 Thread Richard Lynch
On Sat, May 14, 2005 12:25 am, [EMAIL PROTECTED] said: For example: mysite/sweaters/ (I think) is better than: mysite/index.php?section=1content=23style=5. It's more usable I guess. What handles that though? I'm finding it hard to organise the back end of that in my head. I don't think