Karina S wrote:
Hello,
I want to make a php site which can generate a html code and display it on
the screen. (Display the code itself.)
I use htmlspecialchars() function. It works fine, but now I have to add
about 200 lines of static html code to print it out. If I put all of the
code in a strin
Steve Buehler wrote:
Another question is this. The "&" in wsstrip(&$str). Does that mean
that it takes the input to the function as Global and changes it
Globally? I am assuming that because that is what the whole function
seems to do for me.
No, it means that it passes a reference to the va
Sparky Kopetzky wrote:
I'm getting this error while sending email with mail():
Warning: mail(): SMTP server response: 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied in (path to my program)
How do I turn relaying on??
That has nothing to do with PHP, it's your SMTP server. I'm guessing
you'r
Miranda, Joel Louie M wrote:
This is what I have made, im not sure if its correct.
---
enter name:
enter email:
---
Believe it or not, creating a variable called $value_* isn't going to
magically set an input box's value. Did you even read the example?!
--
The above message is encrypted
The INI file should be:
[mysql_info]
host=spore.org
uid=myuserid
passwd=mypassword
Also, you'll probably want to do:
$INI = parse_ini_file("/home/revref/mysql.ini");
Doug Essinger-Hileman wrote:
I am just beginning to use php and mysql together (I'm new to both).
I am having trouble getting th
Brian V Bonini wrote:
Can anyone make this work with Mozilla?
@import url("site.css.php");
No matter what I try , header("Content-type: text/css")
or ini_set to will not output anything other then text/html
This has nothing to do with PHP.
--
The above message is encrypted with double rot13
Marcus Akre wrote:
Hi.
I'm currently developing a system that accepts http requests
containing xml data. A third-party application delivers the xml data
in the post part of the http request. The post data is however not
associated with
any name. So it cannot be indexed as normal with $_POST["k
Blake Schroeder wrote:
Hey all
I used to include a perl script via Sever Side Include how could I do
this in php?
example:
You can't use SSI in PHP. PHP is not SSI. You can do something similar
though, www.php.net/virtual.
--
The above message is encrypted with double rot13 encoding. Any
D. R. Hansen wrote:
I am getting a "Call to undefined function" when invoking
session_regenerate_id().
No typos -- I've checked.
Fatal error: Call to undefined function: session_regenerate_id() in
/path_to_my_script/resetsession.php3 on line 5
Running PHP 4.3.1 on RH 8.0 and Apache 2
http://u
Stevie Peele wrote:
I am new to this list. Does this list also provide help with PHP?
Not sure what your post has to do with this thread, but what do you mean
by also? What else does the list do?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt
John Wulff wrote:
How would i find the value of the largest number in this array?
$example_data = array(
array("Mar-99",100,2000,5945.33,1234,10),
array("Feb-99",908,3454,4764.90,4321,50),
array("Jan-99",542,8000,13365.52,6012,60)
);
www.php.net/max
--
The above message is encrypted with double
Lso . wrote:
Thanks everyone. Honestly I tried so many things that Im not sure
exactly what combinations I tried. The textfield trick works, and I
so sick of looking at this script Im moving on. Ill try something
else the next time around. Thanks again for all of the excellent fast
help!!
Lso . wrote:
Ok I have been searching to no avail. I have a form that lets you
add new sets of information to a database. Once you add information i
have a page that displays this information in a series of text
fields. I have done this so you can alter the information in the
fields hit ed
Ow Mun Heng wrote:
Hi All,
How can I prevent the browser from sending in cached data after the
user pressed the 'back' button and re-inputted data.
Eg: Originall I enter 3 isbn numbers, submitted it, then the user presses
the 'back' button to re-input 1 new data and then re-submits the da
Ben wrote:
But how would I go about using the IF THEN statement but allowing the page
to see the variables.
Not sure if I know what you mean, but:
if($foo == 'bar'){
include('foo.php');
}
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will
Ben wrote:
How would I do this then?
include('foo.php');
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
Ben wrote:
Ok, I'm sort of a beginner at this, so cut me some slack. :-) Ok, I have an
if then statement that after you click a link it looks like this:
blah?page=pagename It looks something like this:
http://www.site.com/home.php";);
}
else{
include ("http://www.site.com/"; . "$page" . ".php");
I want to use highlight_file() in XHTML Strict. Is there any way to
change PHP to use (and other classes) and use a
stylesheet to colour it? If not, any other suggestions?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted
[EMAIL PROTECTED] wrote:
Hello all mailing list, House for rent - Good price, :), bye.
URL : http://www.geocities.com/rapogo
Can someone PLEASE unsubscribe the spammer?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted t
Denis 'Alpheus' Cahuk wrote:
Can some1 tell me how can I define Super Globals (like the Application
Scope in ASP)?
You can't.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General
Mark Clarkstone wrote:
hey everyone do any of you people use mod_l33t? I do it rocks you can have
about 1000 sites on your comp with their own domain & your ram won't even go
down 1mb. its easy to setup & its very cool
email me or post if you want of info
1) This has absolutley nothing to do wit
Thomas Hochstetter wrote:
Hi guys.
I want to call this generic echo function within a class, but have
trouble referencing the output function with $this-> .
Any suggestions? Maybe there is a better solution to this?
This is within a class:
[snip]
# generic WALK functions
function walki
Miranda, Joel Louie M wrote:
Hello,
Any ideas on this? I have a form some users try and try to reload and it
floods my mailbox
This is one of the most asked questions, right behind "OMG! MY
VARIABLES DONT PASS111". Search the archives.
--
The above message is encrypted with double rot13 e
Tony Arcucci wrote:
Why this error ( Linux Redhat 8.0, PHP 4.2.2):
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 1048576 bytes) in /var/www/html/xpai/xmail.class on line 71
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 131 byte
Lars Torben Wilson wrote:
I have no idea where you folks have gotten the idea that asking how to
get Javascript to interact with PHP would be particularly off-topic
here. Were it the vile transgression this thread has made it out to be,
we probably wouldn't have included the answer in the FAQ.
Tha
Vernon wrote:
Missing the point all tighter.
The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't w
Steve Marquez wrote:
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.
This has nothing to do with PHP.
--
T
Vernon wrote:
The point is I don't know how to do that. That's why I was asking. :)
But it's a javascript question, not a PHP question.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PH
Dan Joseph wrote:
Hi,
Just kind of curious what people think. In your opinion,
should a function avoid output? What I mean by that, is should a
function on "do something" without having echo or printf commands in it?
This is something I've been thinking about lately to improve my
pro
Mishari wrote:
Hi All
I built a MySQL table for all authorized users and
their password , when user correctly enter his
username and password he can access to a PHP site that
contains a link to all document he need
When he click on one of the document to he can
download it, the URL will appear :
http://us3.php.net/manual/en/function.session-decode.php
Andrew Warner wrote:
How do you manually unserialize session data? Using unserialize() on
session data from a sessions table is not working for me.
I have modified the gc function of my MySQL session handler to save
data from expired se
I reccomend you don't talk about cracking Zend software on a list owner
by Zend...
Ryan A wrote:
but you can make it a free version if you
want ;-p
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the
You need to name it formfield[], not formfield.
Noel Wade wrote:
Hi all,
So I was under the impression that an HTML form "SELECT MULTIPLE" item would
return an array with all of the selected items. This array can then be used
with any of the standard PHP array functions, yes?
I have 1 HTML page
Whoops!
$command = isset($HTTP_POST_VARS['action']) and $HTTP_POST_VARS['action'] == "data_input") ? "check" : "display";
Daniel J. Rychlik wrote:
I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')';
$command = isset($HTTP_POST_VARS['action'] and $HTTP_POST_VARS['action'] == "data_input") ? "check" : "display";
Daniel J. Rychlik wrote:
I have a line of code in my form that I am trying to get to work.
$action = ($HTTP_POST_VARS['action'] == "data_input") ? "check" : "display";
I recieved
Most likely, you're using some HTML that AOL doesn't like. It's
definitley a client-side issue, in any case.
rml wrote:
I have recently created a site that has some PHP in it. It works fine in
all browsers except AOL. I can see some of the PHP page in AOL except the
one that fetches informati
Unfortunatley, an equation to do what this script does would be as hard
to come up with, and as likely not to work. That's why I want a second
(human) opinion.
PHP4 Emailer wrote:
I'm gonna go out on a limb here, but isn't that why the "human brain" made
calculators? ;)
Good luck with the but
Use the optional second argument to imagejpeg(). www.php.net/imagejpeg
Monil Chheda wrote:
Can any one guide me as to how can I save dynamically
generated .JPEG images on the server ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$query = 'select * from table where fieldname in(\''.
implode('\',\'',$myArray) . '\')';
Roy W wrote:
I have a bunch of variables stuffed in myArray()
I want to run a MySQL SELECT statement ($query=" ..") where it will
access only those records in the database "WHERE" table.fieldname is fou
If $myoutput is "foo", it will attempt to get input from a file named
"foo". Use "command | $myoutput" instead.
Tim T wrote:
I have a mem var $myoutput I would like to pipe it to the input of a
shell_exec command.
I tried shell_exec("command < $myoutput") however this is not quite right.
Anybo
Already have, and it seems to work fine. Fairly hard to test though,
since the human brain has a hard time converting number of minutes into
years/monthes/weeks/days/hours/minutes.
Alex Earl wrote:
Why not just try it?
Alex
--
The above message is encrypted with double rot13 encoding. An
The following function converts minutes to years, monthes, weeks, days,
hours, minutes. For instance, 61 minutes would become "1 hour, one
minute". Before I use it, I want to make sure there are no stupid
mistakes. I can't find any, can any of you?
function min2ymwdhm($min){
$a = array();
*sigh* Just do:
eval($msg);
Ben Houlton wrote:
I use
echo $msg;
eval("\$msg = \"$msg\";");
echo $msg;
and it comes up with
include("menu.php");
on the live page
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMA
www.php.net/eval
Ben Houlton wrote:
Is there a way to get PHP script/code out of a DB? Becasue, when I enter PHP
code into the textbox and hit submit, and go check the page it has nothing
there with and just shows the code, e.g.
include("menu.php"); without the tags, the code I'm using to impor
And won't generate a notice.
Alex Earl wrote:
You can unset the variable www.php.net/unset but also I would recommend
using if(!isset($variable)) instead of just if(!$variable) its a little
more clear as to what you are really trying to see I think.
Alex
--
The above message is encrypted with
Nothing as far as I can tell. It works fine for me.
Diana Castillo wrote:
If I write a code like this,
$room_type=array();
$room_type[0][0]=4;
echo "value in array is ".$room_type[0][0];
yet I dont get any results out, what did i do wrong?
--
The above message is encrypted with double rot13
$$ is perfectly explained in the variable variables section.
Shawn McKenzie wrote:
Can you expand on this? I haven't found a ref to the $$ except for variable
variables. $$ What does it do? How is it used?
Thanks!
Shawn
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
if(!session_id()){
//Session not started
}
[EMAIL PROTECTED] wrote:
dumb question but how can i check if i have loaded the session_start
function without actually checking for a particular session variable , i
need to know as to prevent it being called twise within my DB class which
is seperate fr
Standards-compliant HTML can be written just as cheaply and easily as
IE-compliant HTML. If I chose to make my restraunt inaccessible to
wheel chairs, I would have to face the consquences.
chris sherwood wrote:
That's true but how would you feel if you made some choices and then had
people cri
And it's my choice to tell him to go to hell.
chris sherwood wrote:
if they choose to limit to ie thats their choice ...
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Maili
That's plain wrong. This is the /world wide/ web, not the IE users'
club. Either stop that BS or keep off of the internet!
Miles Thompson wrote:
We limited our users to using IE
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be pro
Use $$ unless you need to use eval. Easier to read, faster to process.
Also safer if you don't validate form data.
Jason Lehman wrote:
Is $$ the same as eval or is it different and my main question is, is it
safer to use to for processing form data?
--
The above message is encrypted with
Even better, try my BBCode class. Much more flexible.
http://www.phpclasses.org/browse.html/package/951.html
Manuel Lemos wrote:
Hello,
You may want to try this class:
Class: UBBCode
http://www.phpclasses.org/ubb
--
The above message is encrypted with double rot13 encoding. Any unauthorized
Put quotes around the value attribute of your input tag, for example
Mukta Telang wrote:
Hi,
if a string is:
$x="A.B. XYZ";
and if I post it as a hidden form control and echo $_POST['x'] then I
get:
A.B.
and not "A.B. XYZ" !
What should I do?
Mukta
--
The above message is enc
This has nothing to do with PHP!
Bruce Douglas wrote:
Hi.
I have a question regarding the DOM model. Does anyone know how to write to
the / text value using the DOM model. I more or less can write to
/ attributes of the DOM. but I can't figure out how to write
(or read) the text of a - attribute
Use a browser that displays errors properly, like Mozilla.
Frank Keessen wrote:
Hi,
It's pointing towards the booking.php
(which is the 'sender' page..)
Exact error message: The Page cannot be displayed..
So it's no 404.. I think..
Frank
- Original Message -
From: "Emma Jane Hogbin"
Why not just use file() and friends?
Simon Coggins wrote:
Hi,
After lots of looking I've worked out I can't use heredoc for what I
want. Does anyone else have any better ideas on how to do this:
I have a template file that is used to generate a html page. in this
template I currently have:
$body
Not sure what you mean, but try passthru().
Philip J. Newman wrote:
I would like to know where i should be looking to pass an image through PHP
Thanks
/ Phil
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full
Yay, a hack! The correct answer is ob_get_level().
Jim Lucas wrote:
output some html and then try and do an header() redirect.
if it works, then some sort of buffering is turned on.
if it fails and tells you that output has already been sent to the browser,
then it isn't turned on.
Jim Lucas
-
$_SERVER['REQUEST_URI']
Miranda, Joel Louie M wrote:
Can I use php to be apache's error directive?
I mean, im trying to change apache's error directive
But at the same time I can only change the page and couldn't see what error
it was, I can send it only to a page with an error saying 404, etc bu
You need to set it from a .htaccess file or php.ini to hide parse errors.
John W. Holmes wrote:
error_reporting(0);
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing Li
I don't have a study in front of me, but I'm fairly sure that cookies
are much more likely to be enabled than javascript. I reccomend opening
a normal popup using a link with a target, and opening a sized popup and
returning false with javascript in an onclick property. Something like:
Open po
It's using the case-insensitive switch.
Dan Joseph wrote:
Also, if you want upper case letters, make sure you add A-Z:
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailin
This has absolutley nothing to do with PHP, and is a client-side issue.
Michael A Smith wrote:
Hey,
So I've got this form that passes POST variables. However, they keep
getting passed as get variables. Example:
Get's sent to it as:
url.php?action=something
What's going on here? This is a n
e are other cases like this. I generally
initialize variables before using them, but there's always going to be a
time when someone forgets. That shouldn't present a security hazard,
which is why I think register_globals should *always* be off.
Rasmus Lerdorf wrote:
On Wed, 4 Jun 2003
It's true that register_globals being on only makes sloppy code more
insecure. Most people aren't going to write perfect code, though. It's
incredibly annoying to have to unset every variable that shouldn't be
from an outside source. Even if you do so, it's very likely that you
will forget o
The browser simply doesn't provide this information. You may be able to
do it with javascript, but certainly not PHP.
Tom Ray [Lists] wrote:
Simple question:
How do I check the expiration of a cookie that has been set? I can't
seem to find it on php.net, if it is there..please provide the prop
Please RTFM before asking questions! http://php.net/mcrypt answers your
question.
Gilberto Garcia Jr. wrote:
How I can use php and mcrypt on windows? I mean. What I have to do to turn php able to use mcrypt function on windows.
Thanks
--
The above message is encrypted with double rot13 enco
Uh, just putting those variables at the top of your page won't help
you. You need to do something with them.
Esteban Fernández wrote:
When you recivied that error ?, in a form ?, if is in a Form just put in the
top of .php files this code
$HTTP_GET_VARS["variable2"];
$HTTP_GET_VARS["variable3"]
Uh, I think you mean
echo $_POST['path'];
and
echo $_GET['path'];
Jonathan Wilkes wrote:
Hi,
What he means is that with "register_globals=off" you cannot do this:
echo $path
you need to do this (if the variable is sent by "POST" action)
echo _POST('path')
and through "GET"
echo _GET('path
My guess is that some moron subscribed [EMAIL PROTECTED] to the
list. I'm sure a moderator will remove it soon enough.
hui zhang wrote:
how to get rid off this auto repsonse from [EMAIL PROTECTED]
everytime i post in this news group i got auto repsonse from bonzi.
is this bonzi the host of th
http://us3.php.net/types.array#language.types.array.foo-bar
Øystein Håland wrote:
What's the difference (and what's correct)?
With the use of error_reporting = E_ALL in php.ini I get an error as
mentioned above. In the code I use $_SERVER[PHP_SELF]. Changing this to
$_SERVER['PHP_SELF'] report
www.php.net/flush
Roland Welker wrote:
Hi,
I am a bit of a newby in php, so I hope the group my forgive me, if I ask a
question answered before.
The presumtion: php is first evaluating the complete script, before sending
anything back to the browser.
The situation: I have got a script, which ret
If you'd bothered to RTFM, you'd know both answers already. strtotime()
for number one, and date() accepts an optional second argument (the
timestamp).
Ian Gray wrote:
I am wanting one field on a table in one of my MYSQL databases to contain different dates and times as a epoch timestamps.
Fi
I reccomend you RTFM!
www.php.net/rand
www.php.net/mt_rand
Marius wrote:
how to generate random number ?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http
Actually, the standards require an absolute URL, e.g.
header("Location: http://foo.com/bar/baz/something.php";);
David Grant wrote:
It might also be an idea to give the filename as a path relative to
the root directory, e.g.
header("Location: /foo/bar/index.php");
--
The above message is enc
To maintain absolute compatibility, just use $HTTP_GET_VARS. It's
availalable in all PHP versions, just deprectaed in versions here $_GET
is available.
[EMAIL PROTECTED] wrote:
Thank you! =)
Okay, okay... Sorry to keep rambling on like this, but I just need to get this 100% straight:
I read
This has asbolutley nothing to do with PHP! Ask it on an HTML list.
Diksha Neel wrote:
dear all,
hi!
an html file is being created by my php script.
i have used tables for the alignment of html file's text
and images.
i have an image and the value of variable $cname to be
displayed in a cell.
i
nk jscript even html
is OT !
= Original Message From Leif K-Brooks <[EMAIL PROTECTED]> =
There NEEDS to be a manual page for this! PHP is SERVER-SIDE! That
means that once the page loads (actually, a little before that), PHP is
done. IT DOES NOT KEEP RUNNING! IT RUNS ON THE SERV
There NEEDS to be a manual page for this! PHP is SERVER-SIDE! That
means that once the page loads (actually, a little before that), PHP is
done. IT DOES NOT KEEP RUNNING! IT RUNS ON THE SERVER'S MACHINE, NOT
THE CLIENT! RTFA!
Shantenese Williams wrote:
Does anyone know if there is a funct
Of course you can concatenate a string with a function! It works
perfectly for me.
Pablo wrote:
On 04/04/2003 7:06 PM, Daevid Vincent ([EMAIL PROTECTED]) wrote:
Here, try this bullshit...
Try this. Change this line:
echo "".alarmLightMySQL()."";
to this, and you will get the expected
Neither works. You're doing something like this in your other code:
function foo(){
echo "foo";
}
echo foo();
The foo() doesn't return the (non-existant) value from echo, it simply
echo()s and returns nothing, and there's nothing wrong with echo()ing
nothing. It would fail if you were using
//Beware, untested!
preg_match('|.*([0-9]{10}).*|',$_SERVER['HTTP_REFERER'],$matches);
$number = $matches[1];
Damon wrote:
Hi,
I have a realatively easy problem that I need help on. I want to
take a 10-digit number out of a referring url and put it in a variable.
Eg. www.jimmy.com/mypage/xy
Works fine for me, php 4.2.1.
Daevid Vincent wrote:
Here, try this bullshit...
I can't upgrade to a more recent version as I'm not in control of the
server, but I've tried it with both 4.1.2 and 4.2.3 on linux with a RH
install. Can anyone confirm or dispute this bug exists in later versions?
Ho
http://www.php.net/manual/en/security.registerglobals.php
Van Andel, Robbert wrote:
Is there a way that I can prevent session variables getting values from
query strings. I want them to receive values only from posted forms.
Robbert van Andel
--
The above message is encrypted with double ro
If I understand you right, you want:
if (HTTP_GET_VARS["id"] == $row_rsProducts['prID']){
...do stuff...
}
Tim Haskins wrote:
How does one create a statement that basically says:
" )
{ ?>
Basically, I want to say, "show if url value is equal to this database
record's ID value - The last part is
http://www.php.net/manual/en/ref.exec.php
Randy Johnson wrote:
What would be the syntax for executing a command line php script from the
web. and is there way to check the staus of the script via the web ie is
it stil running or not?
Randy
--
The above message is encrypted with double rot
Try this (minimal testing, un-optimized):
function permutations($letters,$num){
$last = str_repeat($letters{0},$num);
$result = array();
while($last != str_repeat(lastchar($letters),$num)){
$result[] = $last;
$last = char_add($letters,$last,$num-1);
}
$result[] = $last;
Based on the information gathered about thousands of people, you believe
they would all be in a position to help you? :)
PATRICK KOFI wrote:
BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS B
I've posted this before, but still haven't been able to solve it.
Often, users will get "Fatal error: Allowed memory size of 15728640
bytes exhausted (tried to allocate 86460 bytes) in Unknown on line 0".
I'm not doing anything very memory-intensive, and this sometimes does
mention a specific l
The manual is your friend! :)
www.php.net/nl2br
Diksha Neel wrote:
hi all!
in an html file thru a php script, i have to put in some
data.
i am using variable $string to write the data as under.
what i want to know is how can i ensure that the value of
$badd1 and $area get written on different lin
That's exactly what magic_quotes_runtime does. It adds slashes to data
at runtime - including data returned from functions such as
mysql_fetch_(assoc/row/array/object).
Justin French wrote:
Hi all,
Can I just have a quick head check on magic quotes runtime (&gpc)?
I have them both set to O
Keeping track of the last time each username / IP address has viewed a
page, and assuming that any user who was seen less than 5 minutes (or
so) ago is online.
[EMAIL PROTECTED] wrote:
How do applications know how many users are logged into the system? For
example postnuke will tell you '3 user
Not exactly true. unset() destroys the reference to the value, not the
value itself. For instance,
error_reporting(E_ALL);
$var1 = "foo";
$var2 = &$var1;
print "$var1\n$var2\n\n";
unset($var1);
print "$var1\n$var2";
will output:
foo
foo
Notice: Undefined variable: var1 in PHPDocument1 on li
That will work perfectly.
[EMAIL PROTECTED] wrote:
How does one delete an object? For example:
$object = new Class(...);
.
$object = new Class(...);
I want to throw away the old object and create a new, freshly
initialized one using the same variable. Is the above
It's using default settings. You'll have to recompile PHP to change
where it looks for php.ini, or you can move your php.ini file into that
location.
Justin French wrote:
Hi,
I can't believe I've never bothered to learn this stuff, so I apologise for
being totally dumb in advance :P
phpinfo()
It's not people who don't know everything I have a problem. It's people
who ask questions when the answer is right in front of their nose.
[EMAIL PROTECTED] wrote:
We subscribe to a few email lists on various languages.
This list would have to be the worst for anyone learning
- the amount of
If it doesn't exist, it will use default settings. To see where it's
looking for php.ini, use phpinfo().
Javier Carreras wrote:
Hi all,
Where does PHP get its settings if php.ini file doesn't exist?
BTW- I want to enable sockets that are not enabled. Could I do that without
creating a php.ini
What's wrong with using a "trick" like that in a professioanl
application? It doesn't hurt anything, and more importantly, IT WORKS!
If your client(s) only care about it not using "tricks", I wouldn't
reccomend doing work for them.
Arnaud De Bruyn wrote:
I don't want to use a trick like addin
First of all, you should be using quotes around string array keys.
$_SERVER['REMOTE_ADDR'] is more correct. Anyway, my guess is there's a
proxy here somewhere.
John wrote:
Makes me think.. what exactly the $_SERVER[REMOTE_ADDR] is doing
Cause it does not really show the actual IP
101 - 200 of 531 matches
Mail list logo