Re: [PHP] Restrict access per IP Address

2001-02-14 Thread Mark Green
be Careful using the IPAddress as a primary security measure. If the client has accessed your site through a proxy, then the IP Address shown will be the IP Address of the proxy. While you can use X_FORWARDED_FOR (or something similar,c ant remember off the top of my head :p ) to determine the req

[PHP] Parse HTML Block

2001-02-12 Thread Mark Green
Hi Guys, Im looking for a way to parse a value from between two tags This is what i want to return Basically its simply a block of HTML from within a large HTML file. Speed is definately a consideration in any solution. Any ideas? Cheers, Mark -- << If I was a signature file, where would I

Re: [PHP] UN-Escaping text from a form submit?

2001-02-07 Thread Mark Green
run $blah = stripslashes($blah); PHP automatically does the equivalent of addslashes() to all form submits. ^^@rk John Vanderbeck wrote: > > Hello again, > > I have a form that is used to submit data to my script. If the user enters > something like: > > The title of this book doesn't rea

Re: [PHP] breaking up images to sets of 5

2001-02-06 Thread Mark Green
Boy my syntax on that one sure was rough... think I need another coffee! Hope you get the idea thou, Limit is really useful for moving through large queries ;] Mark Green wrote: > > enthalpy wrote: > > > > i use mysql to store urls for all my images and have php query that

Re: [PHP] breaking up images to sets of 5

2001-02-06 Thread Mark Green
enthalpy wrote: > > i use mysql to store urls for all my images and have php query that for > the images. is there an easy way to set it up so it does 5 at a time and > has a lil next 5 link at the bottom.. the entriees in the table are not > numbered. Append your SQL query with LIMIT $edge,

Re: [PHP] Retrieve HTML page

2001-02-01 Thread Mark Green
http://snoopy.sourceforge.net/ very cool class for retrieving remote webpages even supports cookies and HTTPS (using cURL) ^^@rk Jared Howard wrote: > > I've been looking through the manual but I keep on missing the function or > it doesn't exist. > I need to know if there is a way to get a s

Re: [PHP] session question

2001-01-30 Thread Mark Green
How about this: session_start(); session_register($funky_session_var); $funky_session_var ++; print $funky_session_var; Cheers, ^^@rk Peter Van Dijck wrote: > > Hi, > help: shouldn't this increase the number every time you reload the page? > > session_start(); > $funky_session_var ++; >