IMO, writing programs that work without register_globals to be enabled, is a
good thing.
Throughout the book, the code examples will have been created with
register_globals on. (The default setting for older PHP
installations/versions)
just keep in mind that variables are not auto created for you
As PHP is normally installed, your pages should work, however, when I was
getting started I had this same problem. I was working on the windows
version, and while I had the windows browser plainly showing the two files,
"double clicking" the first page produced the first page in a browser, just
li
shouldn't it just be:
echo($author);
and not:
echo $author;
:: Bobo Wieland :: www.elstudion.com/bobo/
- Original Message -
From: "Wade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 12, 2003 6:42 AM
Subject: [PHP-WIN] Using the GET Method
> 01112003 2132 CST
>
Please, explain this to me, because I couldn't figure it out by myself...
If register_globals is set to 'off', and because it's good practice, you
should allways initzialize your variables?
So I should write:
$test = $_POST['test']; and then I can use $test as usuall... But what about
local varia
At 23:03 10/01/2003 -0400, you wrote:
I use Win XP with Service Pack 1 and I have not had problem with my PC,
in fact it has better performance on my machine. But if you don't want
to upgrade use Xitami
I guess you were luck, it certainly screwed up my machine.
-Original Message-
From
- Original Message -
From: "Bobo Wieland" <[EMAIL PROTECTED]>
To: "Sean Malloy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, January 12, 2003 2:59 PM
Subject: [PHP-WIN] initialize variables (was: Using the GET Method)
> Please, explain this to me, because I couldn't figure it o
php-windows Digest 12 Jan 2003 15:15:01 - Issue 1531
Topics (messages 17782 through 17789):
Using the GET Method
17782 by: Wade
17783 by: Dash McElroy
17784 by: Sean Malloy
17785 by: Warren Vail
17786 by: Bobo Wieland
initialize variables (was: Using
Xitami is not a good choice for XP. I don't know why, but it has problems
handling sessions properly, not to mention a few other bugs I ran into. I
strongly suggest you use something like Apache, IIS (if you have XP
professional, although IIS does suck quite badly lol), or even Abyss
(http://www.ap
Hi. Is it possible to get the IP Address and the URL from which a request
was made to a PHP script? I need this to implement a security barrier.
I have an image that links to a PHP script. I need the IP of the client that
clicked on the image and the URL of the page where the image is placed.
Is
Sure. If you ever want to see what variables you can access and how they are
stored, simply write a script with
phpinfo(32);
in. It outputs ALL variables which you can access from your script. In this
case:
Remote IP (Person who accessed the script)
$_SERVER["REMOTE_ADDR"]
File that was accessed (a
Thanks! that was exactly what I needed. I used $_SERVER["HTTP_REFERER"]
instead of $_SERVER["HTTP_HOST"], which returned the complete url, not only
the host.
"Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
006301c2ba54$76ee67b0$ae00a8c0@q">news:006301c2ba54$76ee67b0$ae00a8c0@q...
> Sure.
I solved this using
ini_set("sendmail_from", "[EMAIL PROTECTED]");
and
ini_set("SMTP", "mail.server");
everytime i needed to use mail().
"Ignacio DomíNguez" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I get the following error every time I send mail.
Ben Edwards wrote:
> I am using XP and have been trying to work out which web server to use with
> PHP & MySQL.
> First I tries IIS and it said I have an OCX missing.
> Then I looked at Apache and it said I need Service Pack 1, which if I
> install slows the whole machine down. This is a know
I've always had a problem with books on PHP, because the language changes
and evolves more quickly than books can be written, printed, and
distributed.
If register_globals is set to off, cookie variables, query string variables,
form (post) variables, and session variables are not automatically tu
I'm needing to debug a mailer script on my site as it has recently started
to throw up several time out errors. When I put in some timing code and
observed the results, I found that a call to the mail() function was taking
17 seconds to execute, which does not seem right under any definition of
rig
php-windows Digest 13 Jan 2003 07:04:57 - Issue 1532
Topics (messages 17790 through 17797):
Re: Which Web server to run under XP
17790 by: Stephen Edmonds
17795 by: Michael Harding
Getting IP Address and previous URL from user??
17791 by: Ignacio Domínguez
17
Can anyone please tell me why i can not use php fully under win98SE with
apache 1.3.24 and PHP 4.3.0 I have most of the features of PHP but i can not
seem to test scripts that i design that need forms or sessions. This gets
rather anoying as with each new script i need to test it on a remote
co
17 matches
Mail list logo