Re: [PHP] Teen Hobos having sex? ..no.. but MAYBE

2001-07-30 Thread Andrew Sterling Hanenkamp
Actually, if you use telnet you can write your own headers and say you've been refered by whoever you want to say you were refered by and then use the script anyway, because you'll just say you came from someplace where they have a form. This script is very bad. I submitted an update to the

[PHP] Re: Regex question

2001-07-31 Thread Andrew Sterling Hanenkamp
You're making your expressions too complicated. To test for just that string, eregi(HTTP/1\.[01] 302, $output) should work. Later, Sterling Boaz Yahav wrote: I'm trying to find if a string exists inside a string. Instead of using strstr() twice I want to use eregi() once. What I want

[PHP] Re: Sort by bigger count(*)

2001-07-31 Thread Andrew Sterling Hanenkamp
Unless you've used GROUP BY you'll only return one row. I think that something like SELECT x, count(y) FROM table GROUP BY y ORDER BY count(y); Ought to work. Later, Sterling Elias wrote: Hello, I made a query that uses count(*) now how can i get the results sorted following the

[PHP] Re: also window.open(javascript)

2001-07-31 Thread Andrew Sterling Hanenkamp
Javascript occurs on the client side, so the second page you are opening will not be passed the file. If you are going to try and pass the file like this you could try saving the file to disk temporarily in the first PHP script. Then, pass an identifier to the file in the query string of

[PHP] Re: Syntax Error On Line 1

2001-07-31 Thread Andrew Sterling Hanenkamp
Uh...this is just a guess, but could it be the line endings are confusing PHP? Perhaps you have DOS formatted files in Unix or Unix files in DOS or Mac files in DOS or DOS files in Mac or ...you get the idea... That is, in DOS lines are ended by \n\r, in Unix by \n, and in Mac by \r. Lacking

[PHP] Re: include_once vs require_once

2001-07-31 Thread Andrew Sterling Hanenkamp
Did you look at the difference between include() and require()? Basically, as I understand it, require() and require_once() are replaced during parsing--before code execution. And include() and include_once() are replaced during code execution. Thus, a required file is always imported into

Re: [PHP] Re: include_once vs require_once

2001-08-04 Thread Andrew Sterling Hanenkamp
Perhaps the manual should be made to reflect this since, my understanding came from the online version of the manual. Sterling Philip Olson wrote: Yes, this is essentially true. Zeev posted this to the list awhile ago, see the following :

[PHP] Classes and sessions

2001-07-24 Thread Andrew Sterling Hanenkamp
I am having some trouble with storing a class in a session variable. According to the information in the manual, an object will be serialized at the end of each request and then unserialized at the beginning automatically. However, with this code: ?php session_register(objectvar, stringvar);