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
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
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
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
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
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
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 :
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);
8 matches
Mail list logo