On 3 Apr 2001 19:29:14 -0700, Brian Hardwick <[EMAIL PROTECTED]>
wrote:
>Im trying to optimize some php/mysql code. Does anyone know a way to
>measure the amount cpu time a php script consumes?
Check out the POSIX functions - in particular the posix_times() function, which
not only shows CPU tim
If you want to check where your submit is comming from, then you need to
check the REFERER url. do so by useing the global $HTTP_REFERER
variable.
global $HTTP_REFERER;
if($HTTP_REFERER == "YOUR_FORM_PAGE_HERE")
{
//PROCESS CODE.
}
else
{
echo"Your a hacker, so BITE ME!!!";
}
--
Hi people
What is the different between session_unregister and session_destroy? If i want to
delete session, which one should I used?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"
Correct me if I'm wrong, but isn't it possible to fake the referrer?
This may not matter for your application -- are you writing a financial app
or a personal portfolio? -- but if you really need to authenticate the
source of data that comes from some other IP address (as is the case with a
web
Hi,
I have written a html which contains a form and then I use a "GET" method to
pass a variable to PHP program with
http://xxx.xxx.xxx.xxx/test.php?testing=testing. However, I can't get the
variable testing by using "echo $testing".
I don't know what is the problem.
Thank You!
HK Woo
--
P
First of all, in sessions you have two different things. You have the
session itself, which is basically a "container" for variables. Then you
have the variables themselves, which is what is inside your container.
session_unregister removes the variable from the container (you have to say
which o
Try using a print_r($HTTP_GET_VARS) and see what comes up.
It could be that PHP has been set not to turn GET/POST variables into
seperate values.
If so you'll need to use:
echo $HTTP_GET_VARS[testing];
--
Plutarck
Should be working on something...
...but forgot what it was.
""HK Woo"" <[EM
Hey,
Is anyone using php and UDDI together, if so I would appreciate some
comments, insights, recommendations etc...
I really don't feel like selling my soul to Microsoft yet :-)
Regards,
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
You are right. It's painfully easy to fake the referer to make it say
anything you want it to.
I do it occasionally to screw with people's heads ;)
Making the referer become something like www.fbi.gov is always a hoot.
So using referer really isn't a very good solution, and many browsers just
> "Michael Roark" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I've a script has many functions in it all of which hit databaseA . I've
> > added a new function which is to get data from databaseB how can I go
> about
> > this in one script when I try to
Hi
Web pages in Xitami live at c:\Xitami\webpages\ if you installed on C:
unless you specifically installed it so they are at d:\InetPub\wwwroot (the
PWS default)
Try putting the php script in the document root - not the cgi-bin. PHP
scripts usually go in the
sub-directories under the document
jason Tue Apr 3 21:41:02 2001 EDT
Modified files:
/php4/build buildcheck.sh
Log:
This is a temporary fix to the previous patch that breaks the build.
This keeps the functionality of searching for glibtool or libtool,
but have you checked the rest of the bui
Hi all
How can I enclose files into my letter & send it from the php script (using
for example mail() function)
Thanks, Vlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list ad
Hi
You dont say which db you are using, but I assume MYSQL
This may work -
When you log onto the second database it must be a different user (not all
root for example)
make sure you capture the database handle in two different variables
something like
$db1=mysql_connect($blah1,$blah2,$blah3)
Hi all
script example:
function smth(){
$result = '1234 - the number';
return $result;
}
...
$res = smth();
...
After this $res takes value of 1234 not the actual string.
Is any soolution here?
Thanks, Vlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
On Wed, 4 Apr 2001 15:44, Vlad wrote:
> Hi all
>
> script example:
>
> function smth(){
> $result = '1234 - the number';
> return $result;
> }
> ...
> $res = smth();
> ...
> After this $res takes value of 1234 not the actual string.
> Is any soolution here?
>
> Thanks, Vlad
If you do
functio
On Wed, 4 Apr 2001 04:24, Boget, Chris wrote:
> > echo date( "r h:ia" );
>
> returns:
>
> Tue, 3 Apr 2001 13:45:46 +0500 12:875903540pm
>
> What's up with the minutes? Does anyone else get
> this problem? It seems the minutes are only screwed
> up with the "r" format specifier is used...
>
> C
Hi, Plutarck
Thank You for your help.
I would like to know how to turn on the feature to let PHP to separate the
variable by GET/POST
Thank You!
HK Woo
""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9ae7sf$f96$[EMAIL PROTECTED]">news:9ae7sf$f96$[EMAIL PROTECTED]...
> Try using a print_r($HT
On 3 Apr 2001 20:31:28 -0700, SED <[EMAIL PROTECTED]> wrote:
>I think the latter part of the value is Unix-time in sec (right?), but what
>does the former part say like: 0.25576700 ?!?
For some reason, microtime() returns results backwards - the first part is the
decimal portion of the second par
On 3 Apr 2001 21:02:34 -0700, Les Neste <[EMAIL PROTECTED]> wrote:
>Correct me if I'm wrong, but isn't it possible to fake the referrer?
Quite easily, even when doing it by hand using telnet or netcat.
>This may not matter for your application -- are you writing a financial app
>or a personal
i just test that code and i got the full string fine...check and see if
what you typed here is the same as your original code...
jack
Vlad wrote:
>
> Hi all
>
> script example:
>
> function smth(){
> $result = '1234 - the number';
> return $result;
> }
> ...
> $res = smth();
> ...
> After
Yup, as Chris said it's register.globals that's the entry in your php.ini
file.
In my php.ini it's on line 200 (without wordwrap), and it will probably look
like:
register_globals = Off ; Whether or not to register the EGPCS variables as
global
In yours. Change the value to On and you should b
If you "have" to you can use phpMyAdmin's dump feature to copy out your
database, along with the data inside of it.
As I don't always have access to more than the browser-based phpMyAdmin
program I often have to just do it that way. Works pretty well, though it
can become hard for very large tabl
In article <148501c0bcad$35052e70$6501a8c0@workstation7>,
[EMAIL PROTECTED] ("Steve Werby") wrote:
> "Justin French" <[EMAIL PROTECTED]> wrote:
> > Problem is, line 88 is the last line of the file, which
> > simply has ""
> > Since the last line of the file has NO PHP CODE, and all the php code
Hi there,
I have a problem. I am trying to use a simple php script to display a JPEG
from a "protected" catalog (the image files are out of the web tree). It's
called from an IMG tag, like this:
--- main file ---
...
";
?>
---
In viewer.php I use session_start() to resume the current sessi
I really hope someone can help me. I select mulitiple values from a dropdown list and
then display them 3 at a time on a next page. They're displayed as hyperlinks so the
on I click on get displayed on the next page with it's details. Then I need to be
able to move forward and backward throu
Hello,
I have a simple question when connecting through mysql. It seems that php
is trying to connect to /tmp/mysql.sock, but it's not in the /tmp directory.
It's in /var/lib/mysql/mysql.sock. I can connect throught mysql through the command
line just fine, but php functions cannot. It gives t
I really hope someone can help me. I select mulitiple values from a
dropdown list and then display them 3 at a time on a next page. They're
displayed as hyperlinks so the one I click on gets displayed on the next
page with it's details. Then I need to be able to move forward and backward
throug
201 - 228 of 228 matches
Mail list logo