Author |
Message |
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16662 Location: On a slope
|
php question (pig)
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
Thu Oct 09, 2003 9:14 am |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
_________________ ++
|
Fri Oct 10, 2003 2:16 am |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
|
Fri Oct 10, 2003 6:32 am |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
|
Fri Oct 10, 2003 7:51 am |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
Pig, I'm on some directory (sim. home/usr/mr02117/) and I cannot do anything out of that.
<?php?>
This is code i put and it cause error.
What went wrong? Piggie?
_________________ ++
|
Fri Oct 10, 2003 8:42 am |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
There's an error in your code. Can you post your code?
|
Fri Oct 10, 2003 8:44 am |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
Code is only:
----------------------------
<?php?>
----------------------------
.
?
_________________ ++
|
Fri Oct 10, 2003 9:18 am |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
Your code has to go between the tags.
So if your page is called xe.php, and you wanted to the referring page, your page would look like this:
<?php
echo("You just came from " . $_SERVER['HTTP_REFERRER'] . "!");
?>
Try putting those 3 lines in, and see what you get.
|
Fri Oct 10, 2003 10:21 am |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
_________________ ++
|
Fri Oct 10, 2003 10:31 am |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
|
Fri Oct 10, 2003 11:44 am |
|
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16662 Location: On a slope
|
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
Fri Oct 10, 2003 4:37 pm |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
Let me know if anything I said was unclear, or requires further explanation.
Also, when I said:
Something can be empty, or zero, and still unsset.
I meant ...and still be set
|
Fri Oct 10, 2003 5:09 pm |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
Pig, PHP faster than CGI?
_________________ ++
|
Wed Oct 15, 2003 10:31 am |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
In general, yes. PHP is faster and more efficient than most CGI languages. PHP is designed specifically for the web, where as most languages (eg: python, Perl) ended up there by accident.
|
Wed Oct 15, 2003 12:10 pm |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
Yes, tought that. Just want to be sure... it must be PHP interpreter already exist in the RAM and the just need to create another object... CGI goes in one part and, in general, PHP shall do 10000 requests faster than CGI regardless there works interpreting.
BTW, Satis, you haven't download the (I shall remove it soon from there) or you was to lazy to read or search for 'em OR you found greater enjoy in the beer?
_________________ ++
|
Fri Oct 17, 2003 12:25 am |
|
|