[PHP] OpenCart

2009-08-29 Thread HallMarc Websites
need. Thank you, Marc Hall HallMarc Websites 610.446.3346 __ Information from ESET Smart Security, version of virus signature database 4380 (20090829) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Converting URL's to hyperlinks.

2009-08-29 Thread Nisse Engström
On Sat, 29 Aug 2009 16:47:47 -0600, LinuxManMikeC wrote: > 2009/8/29 Nisse Engström : >> On Sat, 29 Aug 2009 16:19:05 -0600, LinuxManMikeC wrote: >> >>> As for your "more elaborate example", I'm sure that heredoc will >>> validate nicely. >> >> It does. >> > > Perhaps you haven't met a few good f

Re: [PHP] Converting URL's to hyperlinks.

2009-08-29 Thread LinuxManMikeC
2009/8/29 Nisse Engström : > On Sat, 29 Aug 2009 16:19:05 -0600, LinuxManMikeC wrote: > >> As for your "more elaborate example", I'm sure that heredoc will >> validate nicely. > > It does. > Perhaps you haven't met a few good friends of mine. Their names are html, head, and body. So what crawled

Re: [PHP] Converting URL's to hyperlinks.

2009-08-29 Thread Nisse Engström
On Sat, 29 Aug 2009 16:19:05 -0600, LinuxManMikeC wrote: > As for your "more elaborate example", I'm sure that heredoc will > validate nicely. It does. > and rethink your code so you aren't processing the same data over and > over again. I "see this kind of slop all over." Touché! Would you b

Re: [PHP] What is the best way to process live data?

2009-08-29 Thread LinuxManMikeC
On Sat, Aug 29, 2009 at 3:31 PM, Paul Halliday wrote: > For those of you that remember (not likely but anyway) I am working on > some code that splits CLF records and feeds them into a database. > > What I need to do now is automate it. > > So what I have is a program (urlsnarf) that redirects its

Re: [PHP] Converting URL's to hyperlinks.

2009-08-29 Thread LinuxManMikeC
2009/8/29 Nisse Engström : > On Fri, 28 Aug 2009 17:22:20 -0600, LinuxManMikeC wrote: > >> click here > > *Groan* > > Throw any random web site to an HTML validator > and you're likely to see this kind of slop all > over. > > The correct solution is of course: > >  $u = htmlspecialchars ($url); >  

[PHP] What is the best way to process live data?

2009-08-29 Thread Paul Halliday
For those of you that remember (not likely but anyway) I am working on some code that splits CLF records and feeds them into a database. What I need to do now is automate it. So what I have is a program (urlsnarf) that redirects its output (simple "cmd > file.txt") to a file. The script currently

Re: [PHP] Converting URL's to hyperlinks.

2009-08-29 Thread Nisse Engström
On Fri, 28 Aug 2009 17:22:20 -0600, LinuxManMikeC wrote: > click here *Groan* Throw any random web site to an HTML validator and you're likely to see this kind of slop all over. The correct solution is of course: $u = htmlspecialchars ($url); echo "$u"; [A more elaborate way to flay this

[PHP] Re: PHP Crash in file_get_contents

2009-08-29 Thread Ralph Deffke
on a regulary base I read the docs even on functions I know, I just read about the funstion u use and the doc says this: Note: If you're opening a URI with special characters, such as spaces, you need to encode the URI with urlencode(). did u try to avoid the problem by using urlencode ? just a t

[PHP] RE: starting session with AJAX

2009-08-29 Thread John Pillion
Nevermind. It was a simple mistake - I had "session_start()" on the page the ajax was calling from, but not at the beginning of the php script it was calling to.

[PHP] RE: starting session with AJAX

2009-08-29 Thread John Pillion
I found two small errors in the isLoggedIn(), which are corrected below. They don't have any effect on the issue at hand though. ** function isLoggedIn($debug = 0){ global $COOKIE_NAME; // if there is an active session. if (isset($_SESSION) && $_SESSION['sessDBID'] !=

RE: [PHP] user permissions

2009-08-29 Thread John Pillion
> As described, a "role" appears to act essentially the same as a "group" > - a predefined set of permissions that can be assigned to multiple > users (as opposed to a set of permissions unique to the user). [JP] I should say, the logic of a role is essentially the same as the logic behind a grou

RE: [PHP] user permissions

2009-08-29 Thread John Pillion
> > In this mechanism, does a "role" differ significantly from a "group"? > I have to admin a CRM system that has both roles /and/ groups, and it > always seems a bit excessive. But maybe there's some benefit to roles, > as such, that I'm not seeing. > > Thanks, Ben [JP] As described, a "role"

[PHP] starting session with AJAX

2009-08-29 Thread John Pillion
Ok, so I've got an authentication/login form that is "powered by" ajax. The user logs in, is authenticated, and the last step is to start a session and save the necessary information in the $_SESSION vars. For some reason, it appears (and almost of makes sense) that the session that is started vi

[PHP] Re: Login should not allow users to login if the application is logged in with the same login credentials

2009-08-29 Thread John Pillion
"Balasubramanyam A" wrote in message news:<893c34ce0908270424n2d81596dq8529f13818dc9...@mail.gmail.com>... > Hello, > > I've written a simple application, where users need to login to access the > features of the application. I want to develop login system such that, if > user is already logged i

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread Tom Worster
On 8/29/09 9:29 AM, "tedd" wrote: > At 1:18 AM -0700 8/29/09, Warren Vail wrote: >> To test a form I usually send the form contents to a php file that contains >> the following; >> >> foreach($_POST as $nm => $val) echo "_POST[".$nm."] [".$val."]"; >> foreach($_GET as $nm => $val) echo "_GET[".$

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread Robert Cummings
Warren Vail wrote: To test a form I usually send the form contents to a php file that contains the following; foreach($_POST as $nm => $val) echo "_POST[".$nm."] [".$val."]"; foreach($_GET as $nm => $val) echo "_GET[".$nm."] [".$val."]"; Checkboxes and radio buttons only send their value if the

RE: [PHP] Date Comparison

2009-08-29 Thread tedd
At 1:01 PM -0400 8/28/09, David Stoltz wrote: Hey Stuart - RTFM yourselfI did read it, and obviously misunderstood... I'm really sorry to bother you. I thought that was what a listserv like this was for - to ask questions... I'll try not to ask questions I should know the answer to next

RE: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread tedd
At 1:18 AM -0700 8/29/09, Warren Vail wrote: To test a form I usually send the form contents to a php file that contains the following; foreach($_POST as $nm => $val) echo "_POST[".$nm."] [".$val."]"; foreach($_GET as $nm => $val) echo "_GET[".$nm."] [".$val."]"; Checkboxes and radio buttons on

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread tedd
At 5:51 PM +0100 8/28/09, Ashley Sheridan wrote: I usually just tend to use the $_REQUEST array instead of $_POST or $_GET. You get the benefit of being able to work with both arrays (as well as $_SESSION and $_COOKIE) without any drawbacks. Thanks, Ash Ash: Drawbacks are funny things. Not

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread tedd
At 5:33 PM +0100 8/28/09, Ashley Sheridan wrote: On Fri, 2009-08-28 at 12:28 -0400, tedd wrote: > Ash: What catches me every once in a while is using variable names that are the same as $_SESSION indexes, such as: $session_name = $_SESSION['session_name']; Believe it or not, that do

Re: [PHP] Calling extension function from another

2009-08-29 Thread Stuart
2009/8/28 leledumbo : > > Is it possible to call a function that resides in an extension from another > extension? It's certainly possible but I've never needed to do it so I don't know how. I suggest you ask this question on the PHP Internals list. -Stuart -- http://stut.net/ -- PHP General

Re: [PHP] Calling extension function from another

2009-08-29 Thread J DeBord
On Sat, Aug 29, 2009 at 10:14 AM, leledumbo wrote: > > extension A has function a, extension B has function b. How can I make b > calls a? What is an extension? > > -- > View this message in context: > http://www.nabble.com/Calling-extension-function-from-another-tp25185839p25200892.html > Sen

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: "Eric" To: ; "Ralph Deffke" Cc: Sent: Saturday, August 29, 2009 5:01 PM Subject: Re: [PHP] File Open Prompt? > > - Original Message - > From: "Ashley Sheridan" > To: "Ralph Deffke" > Cc: > Sent: Saturday, August 29, 2009 3:16 PM > Subject: Re:

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: "Ashley Sheridan" To: "Ralph Deffke" Cc: Sent: Saturday, August 29, 2009 3:16 PM Subject: Re: [PHP] File Open Prompt? > On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote: >> are u shure, u dont send anything out before u send the headers? even one >> sp

[PHP] Re: Best way to test for form submission?

2009-08-29 Thread O. Lavell
Shawn McKenzie wrote: > Adam Jimerson wrote: >> This question might give away the fact that I am a php noob, but I am >> looking for the best way to test for form submission in PHP. [..] > Just to throw it into the mix: > > if(!empty($_POST)) for a general test of whether any form was posted. T

RE: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread Warren Vail
To test a form I usually send the form contents to a php file that contains the following; foreach($_POST as $nm => $val) echo "_POST[".$nm."] [".$val."]"; foreach($_GET as $nm => $val) echo "_GET[".$nm."] [".$val."]"; Checkboxes and radio buttons only send their value if the control is "checked"

Re: [PHP] Calling extension function from another

2009-08-29 Thread leledumbo
extension A has function a, extension B has function b. How can I make b calls a? -- View this message in context: http://www.nabble.com/Calling-extension-function-from-another-tp25185839p25200892.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List

Re: [PHP] File Open Prompt?

2009-08-29 Thread Ralph Deffke
even the .tif is valid or not, the file should be downloaded "Ashley Sheridan" wrote in message news:1251530173.27899.135.ca...@localhost... > On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote: > > are u shure, u dont send anything out before u send the headers? even one > > space would be t

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread Nisse Engström
On Sat, 29 Aug 2009 12:50:41 +0800, "Keith" wrote: > I don't know why or in what condition that pressing [ENTER] will not submit > the whole form include the $_POST['submit']. /Nisse -- PHP Genera

Re: [PHP] File Open Prompt?

2009-08-29 Thread Ashley Sheridan
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote: > are u shure, u dont send anything out before u send the headers? even one > space would be too much. > > ralph_def...@yahoo.de > > "Dan Shirah" wrote in message > news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com... > > > >

Re: [PHP] File Open Prompt?

2009-08-29 Thread Ralph Deffke
are u shure, u dont send anything out before u send the headers? even one space would be too much. ralph_def...@yahoo.de "Dan Shirah" wrote in message news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com... > > > > You will need to add some headers to the page to popup the prompt, at

Re: [PHP] Converting URL's to hyperlinks.

2009-08-29 Thread Eric
- Original Message - From: "John Meyer" To: Sent: Friday, August 28, 2009 1:56 AM Subject: [PHP] Converting URL's to hyperlinks. > What sort of function would I need if I wanted to convert those URLs > from plain jane text? > You should encode the url before printing as usual way