Re: [PHP] Re: Question regarding passwords/security

2011-12-23 Thread Curtis Maurand
Store everything in the database in an encrypted form. Stuart Dallas wrote: On 22 Dec 2011, at 19:34, Paul M Foster wrote: I have concerns that the items in a session buffer can be copied and used to spoof legitimate logins. This is harder to do when the info is held in a database.

[PHP] Re: Question regarding passwords/security

2011-12-22 Thread Al
On 12/22/2011 10:05 AM, Paul M Foster wrote: Not sure how to ask this question... I've always eschewed consulting a database on page loads to determine if a user is logged in, primarily because of latency issues. For example, you could store a nonce like the session ID in a table for a user

Re: [PHP] Re: Question regarding passwords/security

2011-12-22 Thread Paul M Foster
On Thu, Dec 22, 2011 at 12:55:41PM -0500, Al wrote: On 12/22/2011 10:05 AM, Paul M Foster wrote: Not sure how to ask this question... I've always eschewed consulting a database on page loads to determine if a user is logged in, primarily because of latency issues. For example, you could

Re: [PHP] Re: Question regarding passwords/security

2011-12-22 Thread Stuart Dallas
On 22 Dec 2011, at 19:34, Paul M Foster wrote: I have concerns that the items in a session buffer can be copied and used to spoof legitimate logins. This is harder to do when the info is held in a database. Storing stuff in a database is no more secure, it simply requires one single extra

Re: [PHP] Re: Question regarding passwords/security

2011-12-22 Thread Al
On 12/22/2011 2:54 PM, Stuart Dallas wrote: On 22 Dec 2011, at 19:34, Paul M Foster wrote: I have concerns that the items in a session buffer can be copied and used to spoof legitimate logins. This is harder to do when the info is held in a database. Storing stuff in a database is no more

[PHP] Re: Question about losing port number

2011-09-26 Thread Shawn McKenzie
On 09/26/2011 05:45 PM, vince chan wrote: Hi: I have a general question about PHP: So basically I have a link, and I want the href to be absolute., so I do 'https://' . $_SERVER['HTTP_HOST'] . '/login' ; this gives me https://127.0.0.1/login on my local; however, what i really want is

[PHP] Re: Question about news.php.net

2010-09-16 Thread MikeB
MikeB wrote: Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeBmpbr...@gmail.com wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and

[PHP] Re: Question about news.php.net

2010-09-15 Thread MikeB
Gary wrote: MikeB wrote: I understand that the news server is based on a mailing list, but I can't handle another high-volume source dumping stuff into my email (even if I filter it into a separate folder) so I am trying to subscribe through the news group. However, getting access seems to be

[PHP] Re: Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Nathan Rixham
Ryan Park wrote: Hypothetically say that I have MySQL with petabytes of data. I want to use XSL as my template language. But in order to use XSL, I need to make XML filled with petabytes of data. This does not sound elaborate way to use XSL/XML; I would rather use PHP/MySQL/Smarty. Is there a

[PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Tony Marston
What you are trying to do is ridiculously easy, and something which I accomplished years ago. Basically every column heading needs to be output as a hyperlink which repeats the current page with the addition of orderby=column_name in the URL. This information appears in the $_GET array, so you

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Marcus Gnaß
Tony Marston wrote: You cannot do this in a separate class as it requires action in both the presentation (UI) and data access layers, and a single class is not allowed to operate in more than one layer. You can, but you shouldn't if you want to write your classes according to the MVC

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Bastien Koert
On Mon, Sep 14, 2009 at 3:29 PM, Marcus Gnaß gona...@gmx.de wrote: Tony Marston wrote: You cannot do this in a separate class as it requires action in both the presentation (UI) and data access layers, and a single class is not allowed to operate in more than one layer. You can, but you

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Bastien Koert
On Mon, Sep 14, 2009 at 3:57 PM, Bastien Koert phps...@gmail.com wrote: On Mon, Sep 14, 2009 at 3:29 PM, Marcus Gnaß gona...@gmx.de wrote: Tony Marston wrote: You cannot do this in a separate class as it requires action in both the presentation (UI) and data access layers, and a single class

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Ralph Deffke
good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar things before, so I use

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Michael A. Peters
Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Tony Marston
Parham Doustdar parha...@gmail.com wrote in message news:5c.b0.05105.f18be...@pb1.pair.com... Hi there, I I've heard of frameworks, but I don't quite know what they are used for. I've done a little search on the internet, but even though I've been able to find different PHP frameworks, I'm

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Sudheer Satyanarayana
Michael A. Peters wrote: Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Bastien Koert
On Sun, Aug 9, 2009 at 9:29 AM, Sudheer Satyanarayanasudhee...@binaryvibes.co.in wrote: Michael A. Peters wrote: Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library,

[PHP] Re: Question on code profiling

2009-07-24 Thread Lupus Michaelis
Andrew Ballard a écrit : I'm trying to profile a site on our development server to see why it takes around 4 seconds to generate a pretty basic page. Last time I seen this is when I did validate DOM Document without DTD on local disk :D Can you put somewhere the essential code that take

Re: [PHP] Re: Question on code profiling

2009-07-24 Thread Andrew Ballard
On Fri, Jul 24, 2009 at 2:27 AM, Lupus Michaelismickael+...@lupusmic.org wrote: Andrew Ballard a écrit : I'm trying to profile a site on our development server to see why it takes around 4 seconds to generate a pretty basic page.  Last time I seen this is when I did validate DOM Document

Re: [PHP] Re: Question on code profiling

2009-07-23 Thread Jonathan Tapicer
Just an idea: try using the (microtime(true) - $start) approach in portions of code to try isolate the portion that is taking more time. Sometimes that helps me to find the function that is slowing everything down. Jonathan On Thu, Jul 23, 2009 at 6:18 PM, Andrew Ballardaball...@gmail.com wrote:

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Robert Cummings
On Wed, 2009-03-04 at 18:01 -0800, Michael A. Peters wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the template target. To

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Robert Cummings
On Wed, 2009-03-04 at 21:42 -0700, Nathan Nobbe wrote: On Wed, Mar 4, 2009 at 7:01 PM, Michael A. Peters mpet...@mac.com wrote: echoing html involves mixing html and php. Using an XML class (like DOMDocument) to build the document does not. ive actually written a little templating

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Michael A. Peters
Robert Cummings wrote: On Wed, 2009-03-04 at 18:01 -0800, Michael A. Peters wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Robert Cummings
On Thu, 2009-03-05 at 02:04 -0800, Michael A. Peters wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 18:01 -0800, Michael A. Peters wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Michael A. Peters
Robert Cummings wrote: function hiddenInput($document,$name,$value) { $input = $document-createElement(input); $input-setAttribute(type,hidden); $input-setAttribute(name,$name); $input-setAttribute(value,$value); return($input); } Does that answer your question?

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Robert Cummings
On Thu, 2009-03-05 at 03:08 -0800, Michael A. Peters wrote: Robert Cummings wrote: function hiddenInput($document,$name,$value) { $input = $document-createElement(input); $input-setAttribute(type,hidden); $input-setAttribute(name,$name);

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Michael A. Peters
Robert Cummings wrote: Is there a reason I shouldn't be doing it that way? I didn't say you shouldn't. It's just expensive on every page request to regenerate a document node by node. it also strikes me as tedious :/ It's definitely tedious - but I end up writing functions that do the

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Nathan Nobbe
On Mar 5, 2009, at 4:16 AM, Robert Cummings rob...@interjinn.com wrote: On Thu, 2009-03-05 at 03:08 -0800, Michael A. Peters wrote: Robert Cummings wrote: function hiddenInput($document,$name,$value) { $input = $document-createElement(input); $input-setAttribute(type,hidden);

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Shawn McKenzie
Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 12:46 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Nathan Nobbe
On Wed, Mar 4, 2009 at 11:51 AM, Robert Cummings rob...@interjinn.comwrote: On Wed, 2009-03-04 at 12:46 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 12:15 -0700, Nathan Nobbe wrote: On Wed, Mar 4, 2009 at 11:51 AM, Robert Cummings rob...@interjinn.comwrote: On Wed, 2009-03-04 at 12:46 -0600, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote: Robert

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Michael A. Peters
Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the template target. To simplify the use of parameters so that they can be used in arbitrary order with default values. To allow for the encapsulation of complex content in

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the template target. To simplify the use of parameters so that they can be used in arbitrary order with

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Michael A. Peters
Robert Cummings wrote: On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the template target. To simplify the use of parameters so that they can be used in

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Nathan Nobbe
On Wed, Mar 4, 2009 at 7:01 PM, Michael A. Peters mpet...@mac.com wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the

[PHP] Re: Question about template systems

2009-03-03 Thread Martin Zvarík
Matthew Croud napsal(a): Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data

Re: [PHP] Re: Question about template systems

2009-03-03 Thread Ashley Sheridan
On Tue, 2009-03-03 at 20:53 +0100, Martin Zvarík wrote: Matthew Croud napsal(a): Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be

[PHP] Re: Question about template systems

2009-03-03 Thread Shawn McKenzie
Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data with

[PHP] Re: Question about template systems

2009-03-03 Thread Shawn McKenzie
Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to

RE: [PHP] Re: Question about template systems

2009-03-03 Thread Chetan Rane
to avoid it. From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Wednesday, March 04, 2009 9:05 AM To: php-general@lists.php.net Subject: [PHP] Re: Question about template systems Shawn McKenzie wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP

[PHP] Re: Question about version control.. sorta..

2008-12-31 Thread Nathan Rixham
TG wrote: Ok.. so I know about CVS and SVN and unfortunately haven't had as much experience with them as I'd like. I've used them, but always in a really basic sense and always on systems that have already been set up. A friend recently mentioned GIT ( http://git.or.cz/ ) too. But here's

[PHP] Re: Question on if() priorities

2008-12-12 Thread Maciek Sokolewicz
Frank Stanovcak wrote: I can't seem to find a reference to this in the manual, but is there an order of precedence for and or xor in an if statement? Kind of like PPMDAS or polish notation for math (PPMDAS = Powers. Parenthacies. Multiplication...) I ask because this seems to be working for

[PHP] Re: Question on if() priorities

2008-12-12 Thread Frank Stanovcak
Thanks. Don't know how I could have missed that. Maciek Sokolewicz tula...@php.net wrote in message news:49428d51.3090...@php.net... Frank Stanovcak wrote: I can't seem to find a reference to this in the manual, but is there an order of precedence for and or xor in an if statement? Kind of

[PHP] Re: question on parameter specification in href tag

2008-12-12 Thread Xaver Thum
Hi, thanks for the quick solutions ! Regards Xaver Xaver Thum xaver.t...@t-online.de schrieb im Newsbeitrag news:9b.01.31950.6dbe0...@pb1.pair.com... Hi, I want to set a link like a href=http://www.anyurl.com?mypar=17color=red; ... into my HTML file; that works fine. But if I

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Stut
On 22 Oct 2008, at 00:22, Jochem Maas wrote: Stut schreef: I use destructors to update dirty objects in memcache. care to eloborate ... sounds interesting. Nothing complicated. The core objects in my application are all cached in memcache. If anything changes in an object it changes an

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Jochem Maas
Stut schreef: On 22 Oct 2008, at 00:22, Jochem Maas wrote: Stut schreef: I use destructors to update dirty objects in memcache. care to eloborate ... sounds interesting. Nothing complicated. The core objects in my application are all cached in memcache. If anything changes in an object it

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Dan Joseph
On Tue, Oct 21, 2008 at 5:14 PM, Stut [EMAIL PROTECTED] wrote: When a script ends everything is released (with some small exceptions), thus also all references to instances of classes. Thus AFAIK a deconstructor will always be called at the end of script execution. but you have no

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Eric Butera
On Wed, Oct 22, 2008 at 9:42 AM, Dan Joseph [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 5:14 PM, Stut [EMAIL PROTECTED] wrote: When a script ends everything is released (with some small exceptions), thus also all references to instances of classes. Thus AFAIK a deconstructor will

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Stut
On 22 Oct 2008, at 14:42, Dan Joseph wrote: On Tue, Oct 21, 2008 at 5:14 PM, Stut [EMAIL PROTECTED] wrote: When a script ends everything is released (with some small exceptions), thus also all references to instances of classes. Thus AFAIK a deconstructor will always be called at the end of

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Stut
On 22 Oct 2008, at 09:35, Jochem Maas wrote: Stut schreef: On 22 Oct 2008, at 00:22, Jochem Maas wrote: Stut schreef: I use destructors to update dirty objects in memcache. care to eloborate ... sounds interesting. Nothing complicated. The core objects in my application are all cached

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Dan Joseph
On Wed, Oct 22, 2008 at 2:29 PM, Stut [EMAIL PROTECTED] wrote: Never any issues this way? They always run without a hitch? Not had any issues to far, and it's being used on some pretty busy sites and various PHP versions and several different web servers. Terrific! Thanks for the

[PHP] Re: Question about __destruct()

2008-10-21 Thread Mike van Riel
Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true when a page ends its execution? Example, I call a database class. It constructs,

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Jochem Maas
Mike van Riel schreef: Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true when a page ends its execution? Example, I call a database

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Stut
On 21 Oct 2008, at 22:08, Jochem Maas wrote: Mike van Riel schreef: Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true when a page

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Jochem Maas
Stut schreef: On 21 Oct 2008, at 22:08, Jochem Maas wrote: Mike van Riel schreef: Dan Joseph wrote: Hi, I want to make sure I completely understand __destruct() and when its hit... Understand that it will run if all references to a particular object are removed, but is that also true

[PHP] Re: question about EOF

2008-09-30 Thread Ross McKay
On Tue, 30 Sep 2008 12:48:35 +0800, LKSunny wrote: i want on inner EOF do something, calculate and call function ? can not ? if yes, how to ? Same way as you do with strings. e.g. ?php class foo { function bar() { return 'world!'; } function hello() { echo ENDHELLO Hello,

[PHP] Re: Question before I end up writing alot of extra code...

2008-07-07 Thread Shawn McKenzie
Jason Pruim wrote: Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application is breaking... Here's the details... PHP 5.2 MySQL 5.2 I

[PHP] Re: question about validation and sql injection

2008-05-15 Thread Chris W
Sudhakar wrote: A) validating username in php If you do what needs to be done to prevent sql injection, it doesn't matter what you let users have for their user name. B) preventing sql injection htmlentities this has nothing to do with sql injection it just is needed so when you

[PHP] Re: Question regarding fopen

2008-05-01 Thread Joep Roebroek
Does anyone have an idea? Is this a bug in PHP? Because when I add or remove one static letter in the filename, it does work. And if I don't the file is created, but the $imgstr (random 8 characters) is replaced by a totally different value (also random 8 characters).. I have no idea where this

Re: [PHP] Re: Question regarding fopen

2008-05-01 Thread James Dempster
?php $foldersystem = getcwd().'/test1'; $id = '54961'; $imgstr = 'tdtdtdtd'; //uniqid(); $i = 2; $imagenamesmall = $foldersystem . '/' . $id . $imgstr . '-s' . $i . '.jpg'; echo $imagenamesmall; // For debugging purposses -- returns exactly what I want. //attempt to create folder

Re: [PHP] Re: Question regarding fopen

2008-05-01 Thread Joep Roebroek
Strangely enough.. It does.. But I have also tried adding a letter (which gives me the good result) and then renaming it... But then the value is wrong again :S I've never had a problem like this.. Very strange.. 2008/5/1 James Dempster [EMAIL PROTECTED]: ?php $foldersystem =

Re: [PHP] Re: Question regarding fopen

2008-05-01 Thread James Dempster
Do you have a piece of example code that will reproduce the problem? -- /James On Thu, May 1, 2008 at 12:26 PM, Joep Roebroek [EMAIL PROTECTED] wrote: Strangely enough.. It does.. But I have also tried adding a letter (which gives me the good result) and then renaming it... But then the

Re: [PHP] Re: Question regarding fopen

2008-05-01 Thread Joep Roebroek
This problem is getting stranger by the minute. I will explain in a little more detail what the script is actually for.. It is an advert site and per advert, you can add 5 photo's.. Now you set the $i = 2; When I set the $i (which indictates the index of the photo, so $i = 5; is the last photo)

Re: [PHP] Re: Question regarding fopen

2008-05-01 Thread Joep Roebroek
Small correction $i = 4, means the last photo not 5.. Not so important but still.:P 2008/5/1 Joep Roebroek [EMAIL PROTECTED]: This problem is getting stranger by the minute. I will explain in a little more detail what the script is actually for.. It is an advert site and per advert, you can

[PHP] Re: question about linux editor

2008-03-25 Thread Nilesh Govindrajan
Sudhakar wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. apart from the ip address, username and password are there any other details i would need to connect to the server. please advice. thanks.

[PHP] Re: question about linux editor

2008-03-25 Thread Ross McKay
On Tue, 25 Mar 2008 11:28:07 +0900, Sudhakar wrote: i need to connect to the linux server using an editor. can anyone suggest which would be an ideal linux editor to connect to the server. Geany - http://geany.uvena.de/ Also look at: Quanta Plus - http://quanta.kdewebdev.org/ Bluefish -

[PHP] Re: question about customized error

2008-03-22 Thread Nilesh Govindrajan
Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page which will still have

[PHP] Re: question about direct access to url

2008-03-18 Thread Donn Ingle
Use sessions or (not as secure) pass a hidden form field along from form.php to thankyou.php. You can look for it in thankyou.php and if it's not there then you know something's wrong. You'd check the $_POST array for your secret field and value. \d -- PHP General Mailing List

[PHP] Re: Question about cURL, and iFrames...

2008-02-19 Thread Shawn McKenzie
Jason Pruim wrote: Happy friday to all of you! May the Beer[1] flow freely from the kegs to your lips after work! I am trying to think through something, I am writing a simple proxy script for my own knowledge and to simplify my life :) What I want to do is bring in multiple website by

Re: [PHP] Re: Question about development

2008-02-12 Thread Shawn McKenzie
Jason Pruim wrote: On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff

Re: [PHP] Re: Question about development

2008-02-12 Thread Jason Pruim
On Feb 12, 2008, at 4:24 PM, Daniel Brown wrote: On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a request. $_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5 thus with mine, preference is en-gb, failing that

Re: [PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason, If you don't mind I may give you an email off the list in a moment to brain storm up a quick list of questions to ask clients and indeed client gotchas. For the time being as this seems to be going down the line of how to handle multilingual sites here's my two pennies. XML, store

Re: [PHP] Re: Question about development

2008-02-12 Thread Jason Pruim
On Feb 12, 2008, at 2:09 PM, Aleksandar Vojnovic wrote: Could you explain this a little better - ...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language? Aleksandar I'll

Re: [PHP] Re: Question about development

2008-02-12 Thread Wolf
Jason Pruim [EMAIL PROTECTED] wrote: On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan

Re: [PHP] Re: Question about development

2008-02-12 Thread Aleksandar Vojnovic
Could you explain this a little better - ...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language? Aleksandar Quoting Jason Pruim [EMAIL PROTECTED]: On Feb 12, 2008, at 1:03

Re: [PHP] Re: Question about development

2008-02-12 Thread Jason Pruim
On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff like Does it need a

[PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff like Does it need a forum, live support, database driven etc. etc. Does

Re: [PHP] Re: Question about development

2008-02-12 Thread Daniel Brown
On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a request. $_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5 thus with mine, preference is en-gb, failing that anything en; failing that whatever you've got.

Re: [PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason Pruim wrote: On Feb 12, 2008, at 2:09 PM, Aleksandar Vojnovic wrote: Could you explain this a little better - ...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language?

Re: [PHP] Re: Question about development

2008-02-12 Thread Richard Lynch
On Tue, February 12, 2008 3:32 pm, Jason Pruim wrote: On Feb 12, 2008, at 4:24 PM, Daniel Brown wrote: On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a request. $_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5

[PHP] Re: Question about functions

2008-01-24 Thread Nathan Rixham
Jason Pruim wrote: Hi everyone! So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call it? Right now I just have a link like this:

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-19 Thread Per Jessen
Richard Lynch wrote: On Fri, January 18, 2008 10:41 am, Per Jessen wrote: 2. check that the domain exists and has an MX. I believe this will foul you up... I *think* many domains just use their regular domain as MX if there is no MX. We've been using the method on public forms for at

[PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way to check if the email address is of a specific format and if so

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:55 AM, Javier Huerta [EMAIL PROTECTED] wrote: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way

[PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Manuel Lemos
Hello, on 01/18/2008 01:55 PM Javier Huerta said the following: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Stut
On 18 Jan 2008, at 16:01, Eric Butera wrote: On Jan 18, 2008 10:55 AM, Javier Huerta [EMAIL PROTECTED] wrote: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
What does your form actually do? Does it email you, email them, stick something in a DB? What? The form sends an email to a listserv and cc's the sender and then enters data into a database. Regardless, if they're entering a nonsense email address and are managing to get your script to

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Per Jessen
Javier Huerta wrote: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way to check if the email address is of a

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 10:41 am, Per Jessen wrote: 2. check that the domain exists and has an MX. I believe this will foul you up... I *think* many domains just use their regular domain as MX if there is no MX. And the Bad Guy can easily change tactics to use [EMAIL PROTECTED] or whatever,

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-16 Thread Richard Lynch
On Tue, January 15, 2008 11:03 pm, Manuel Lemos wrote: Hello, on 01/16/2008 02:11 AM mike said the following: Why not look at phpmailer? Probably more robust than some random classes. I did not suggest any random classes. I developed those classes since 1999 and I know they work reliably

[PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Manuel Lemos
Hello, on 01/16/2008 01:38 AM Wang Chen said the following: I wrote a class to send mail by remote mail server. But it was failed. So I captured the network packets by tcpdump, and found that there is a strange packet NOOP was sent. But in the source code I mean to send command DATA. I don't

[PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Wang Chen
Manuel Lemos said the following on 2008-1-16 11:55: Maybe you are accessing a SMTP server with a grey listing or anti-spam/anti-virus frontend that sits on the front of the actual SMTP server and only passes information to the backend server when it is ready. It is possible that your message

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread mike
Why not look at phpmailer? Probably more robust than some random classes. http://phpmailer.codeworxtech.com/ Not to bash on Manuel, but I find phpclasses to be littered with lots of crappy code and is too ad-laden and hard to use for me to bother. On 1/15/08, Wang Chen [EMAIL PROTECTED] wrote:

[PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Manuel Lemos
Hello, on 01/16/2008 02:00 AM Wang Chen said the following: Maybe you are accessing a SMTP server with a grey listing or anti-spam/anti-virus frontend that sits on the front of the actual SMTP server and only passes information to the backend server when it is ready. It is possible that your

Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA

2008-01-15 Thread Manuel Lemos
Hello, on 01/16/2008 02:11 AM mike said the following: Why not look at phpmailer? Probably more robust than some random classes. I did not suggest any random classes. I developed those classes since 1999 and I know they work reliably because they are used by me and tens of thousands of users

  1   2   3   >