php-windows Digest 22 Sep 2001 23:52:06 -0000 Issue 768

Topics (messages 9462 through 9466):

Re: IP Address
        9462 by: pasupathy

Re: how can I use or run a php sample?
        9463 by: pasupathy

Re: swatch internet time
        9464 by: Daniel Beulshausen

Reinstall PHP and MySQL Problems
        9465 by: Matt Neimeyer

time limit
        9466 by: dries

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]


----------------------------------------------------------------------




Glenn Pickett wrote:
> 
> Yes, look at REMOTE_ADDR in the manual.
> 
> Glenn
> 
> "Craig Morrison" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > My apologies if this is a faq..
> >
> > Will PHP allow me to get the remote IP of a connection?

I have tried that apache variable in my website, but anyone who logs in
get  127.0.0.1 displayed.My site runs on the free webhosting server at
f2s.com...... 
When inquired ,no reply given so far.....is there any other means  pls
suggest






Burak Delice wrote:
> 
> hi,
> 
> I have been making some tests. I want to learn PHP. But I have not achived
> to run a php sample like below. Actually I want to make a mail sender on my

try the examples and tutorials at http://www.myscripting.com
they are simple and easy

you may try as well download the foxserver a combination of
preconfigured apache/php/mysql/phpmyadmin for your study




At 14:44 22.09.2001 +1200, Arron Edwards wrote:
>Hey all i worked it out.  Someone emailed me the C code, I converted it to
>PHP here it is if any one else wants it.

you can just use date("B")

daniel

--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.com





I just reinstalled the Win2K server that I had PHP4 and MySQL installed on.

Now whenever I pull up a PHP page it doesn't actually pull data from MySQL 
BUT I don't get any errors.

I've set all the MySQL stuff in the php.ini and I can otherwise connect to 
and use the MySQL databases (as the user that PHP is using) I've also got 
PHP set to display all errors and warnings.

I've only installed this once before (and it worked then) so I'm not sure 
where to start looking.

Can anyone offer any advice?

If it makes a difference here's the script I'm using in my library database 
to pull options for a form Select out of a database. When I do this it 
simply ends up as a blank select with no options. but again there are no 
errors at all. I've also tried paring the Select down to just SELECT Series 
FROM Books, in case the query was wrong (even though it worked before) with 
no luck.

<?php /*==================================================*/

$db = mysql_connect("localhost", "myuser", "mypassword");
mysql_select_db("isbn",$db);
$result = mysql_query("SELECT DISTINCT Series FROM Books WHERE Series IS 
NOT NULL and Series != '' ORDER BY Series",$db);

if($myrow = mysql_fetch_array($result))
        {
        do      {
                echo '                                                  <OPTION 
VALUE="';
                echo $myrow["Series"];
                echo '">';
                echo $myrow["Series"];
                echo "</OPTION>\n";
                } while ($myrow = mysql_fetch_array($result));
        }
/*==================================================*/ ?>

Thanks

Matt





Why does the time limit doesn't work ?
Any suggestions how to fix this?

Thanks!


function connect1()
{
    set_time_limit(2);
    $url  = http://www.example.com;
    $file = implode('',file($url));
}





Reply via email to