php-windows Digest 17 Feb 2005 18:49:36 -0000 Issue 2579

Topics (messages 25604 through 25608):

Re: XP and PHP
        25604 by: RaveRod

Re: mysql connect problems
        25605 by: Reptilevl

Re: php_printer.dll and iconv.dll
        25606 by: Reptilevl

Re: Time limit in the script
        25607 by: Reptilevl
        25608 by: Randy Clamons

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Try using either $_POST['NAMES'] or $_REQUEST['NAMES'].

You can only use $NAMES if you have register_globals on (which is a bad
thing).

-----Original Message-----
From: Stan Holmes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 17 February 2005 2:06 AM
To: [email protected]
Subject: [PHP-WIN] XP and PHP

Hi
  New at this game. I loaded php5 on XP with the php installer. I cannot get

a varable to parse. Can anyone help. I do believe it is with the 
instalation. I have checked the rights to the ini file and the the php 
directory - i gave full control to try and get it working. Set the path 
varable. Here is the code which is in the root directory of the IIS web 
site. Right are correct on these files.

<html>
<head>
  <title>PHP Test</title>
</head>
<body>
<FORM METHOD="POST" ACTION="p-3-3.php">
<BR> NAMES:
<INPUT TYPE="TEXT" NAME="NAMES">
<BR>
<INPUT TYPE="SUBMIT" VALUE="SEND">
</FORM>
</body>
</html>

==========================
PHP FILE
==========================

<?php

echo ("Names=$NAMES");
?>


My email address is [EMAIL PROTECTED]
Thanks
  Stan 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Make sure you copied the libmysql.dll from your php folder to your system 
folder as well


"Patrick Roane" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I am trying to est. a connection to mysql via PHP5 on
> my win XP and I keep getting the undefined function
> error. By the way I am running apache 1.3.23.
>
> I believe I've made the necessary adjustments to the
> php.ini. (uncommented the extension=php_mysql.dll) and
> copied this to my windows dir.
>
> There is a line in php.ini that says:
>
> ; Default host for mysql_connect() (doesn't apply in
> safe mode).
> mysql.default_host =
>
> Do i need to put anything here?
>
> thanks
>
> =====
>
> ----------------
> "forget your lust for the rich man's gold. All that you need, is in your 
> soul. You can do this if you try. All that I want for you my son, is to be 
> satisfied"
>
>  ~ Lynard Skynard 

--- End Message ---
--- Begin Message ---
on http://www.php.net  under the download section there is a PECL now for 
5.0.3 the printer one is in there

"Dale Attree" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Where can get the above mentioned files for PHP 5.0.3?
>
> Kind Regards,
> Dale
> 

--- End Message ---
--- Begin Message ---
you could allways set a cookie with the timestamp in it and calculate
problem is, that you won't be able to forward when it's exactly an hour if 
you know what I mean.

I made a similar thing once.
I did the forms and stuff in PHP
but I used Javascript for the timer.
I would give you the code but i lost it in a format I'm afraid.
but it worked like a charm.

I hope thise gives you an idea on how you can solve your problem

"Veselina Jecheva" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hello, everyone,
> I have to make a script, that allows the user to solve an online test 
> (multiple choise). The test has to be solved during the specific period of 
> time (1 hour).
> How can I interrupt the user after the end of the hour and redirect him to 
> another page with the results, for example?
> Thanks in advance
> Veselina
> 

--- End Message ---
--- Begin Message ---
Using Javascript, try this function:

iTimerID = window.setTimeout(vCode, iMilliSeconds)

Set iMilliSeconds to one hour (60*60*1000 = 3600000)
vCode should call a function that submits the form for scoring. Something like 
"document.forms[0].submit()" should work, assuming there is only one form on 
the page.

If your multiple choice test is several pages long, your problem is more 
complicated.

Randy Clamons
Systems Programming
Novaspace.com


> ------------Original Message------------
> From: "Reptilevl" <[EMAIL PROTECTED]>
> To: [email protected]
> Date: Thu, Feb-17-2005 0:58 AM
> Subject: [PHP-WIN] Re: Time limit in the script
>
> you could allways set a cookie with the timestamp in it and calculate
> problem is, that you won't be able to forward when it's exactly an hour 
> if 
> you know what I mean.
> 
> I made a similar thing once.
> I did the forms and stuff in PHP
> but I used Javascript for the timer.
> I would give you the code but i lost it in a format I'm afraid.
> but it worked like a charm.
> 
> I hope thise gives you an idea on how you can solve your problem
> 
> "Veselina Jecheva" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> > Hello, everyone,
> > I have to make a script, that allows the user to solve an online test 
> 
> > (multiple choise). The test has to be solved during the specific 
> period of 
> > time (1 hour).
> > How can I interrupt the user after the end of the hour and redirect 
> him to 
> > another page with the results, for example?
> > Thanks in advance
> > Veselina
> > 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---

Reply via email to