JNT> If I do this:
JNT> echo $PHPSESSID;
I've encountered the same when instaling the Mandrake Linux 8.1 with a
precompiled php - also 4.1.0.
Sessions just doesn't seem to work no matter how I access them.
I installed Redhat 7.1 on my server again, and left the problem for my
ISP.
Kind reg
DK> Ant is a hard worker in the summer and very powerfull ( can lift 30 times
DK> it's weight ) and small.
Does that mean that php should be ineffective during winter? ;)
Great idea I sincerely think!
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net/)
To uns
RB> if (strstr($DomResults,$Match))
RB> print "Congratulations! $domain.$suffix is available!";
?>>
RB>
RB>
RB>
RB> else
RB> print "Sorry, $domain.$suffix is already taken.";
?>>
You definitely needs curly brackets.
Kind regards,
Morten Winkler
--
PHP
OSv> How can is check with php wether a number is even or not? What i want is
OSv> that in a while loop the background color of a cell changes!
Try
echo (($i++ % 2) == 0) ? "#FF" : "#00FF00";
First it performs an integerdivision and checks if the remainder is 0.
If that is the case it p
p> $Query = "INSERT INTO table_name (Obj,Descrip) VALUES (keyboard,Device
p> to pound on when frustrated.)";
p> $Results = mysql_query($Query)
p> or die ("Query FAILED");
need to embed your strings in "" like
$Query = "INSERT INTO table_name (Obj,Descrip) VALUES (\"keyboard\",\"Device
to pou
I hate to have to duplicate the file with different permissions
AMK> just so that the process can read it when it needs to.
How about persorm a exec("su username password") grabbing the output?
Or something like that...
--
Kind regards,
Morten Winkler
--
PHP General Mailing List (http
x> The problem is, i need a javascript which i can write into the database,
x> which on the oher side can read out a php SESSION. Is this possible?
x> Yes? how?
Javascript in browser
php on server
Pass varibales from javascript -> php via urls and forms
Pass varibales from php -> javascript vi
Hi php'ers
I'm about to build a site that allows payment with credit card.
Of cause the card number, expiration date etc. should be secured
when transfered. How do I do that?
I've been looking at the OpenSSL functions in php, but they seem to
be unsatisfying.
Kind regards,
Mor
NV> Hi !
NV> I'm making a web site which allows user to add his own news, or other data to the
page
NV> via the form. The user inputs the data into the and the data is placed
into a
NV> table. The problem is that all the text is placed into a single line !
NV> Is there a html catch to preven
EK> I'm using a simple print() (PHP) but alert() would
EK> be much better.
Have php print your BODY tag like this:
That's the best solution I think.
--
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
I might have got something wrong, but shouldn't you have your script
parsed by php, ie. getting it through your webserver, like:
lynx http://yourwebserver/myfunction.php
and _not_ like
lynx myfunction.php
I'd suggest that as one error source.
--
Kind regards,
Morten Winkler
--
PHP Gene
If you want to make a fixed size of your in IE you can
do it like this:
a
b
c
d
or use 100% to make the box be as wide as the container it is within.
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net/)
To
Notice that if a user enters
"life anger"
in the search field
SELECT * FROM table WHERE question LIKE "%life anger%" none of the
questions
>> [1] How do you deal with anger?
>> [2] Ever been full of anger in your life?
>> [3] Is life always easy?
will match. For that you must split the query
Try this page. It is a hack but I think it does what you want it to.
This is a page with a button on it. When you press it you willget something in the
layer.
--
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi Elias
This might be what you are looking for. Found on
http://www.hotscripts.com -> PHP -> Scripts and Programs ->
Database Tools -> "TextDB" (page 8 of 9, entry 76)
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
>> Besides... do you REALLY have anything so mind bogglingly original in your
>> code that you have to
>> go to all these extremes to protect it?
MG> That's what I've never understood about people wanting to hide their source.
MG> HTML isn't rocket science. Any server side scripting won't be se
CD> Hey, I need a set of extra eyes:
OK. I'll put on my magic X-ray typ-oh-glasses ;)
CD> $res_id = mysql_query ("update contacts_data set (
CD> description='$description',
CD> data='$data',
CD> filename='$input_file_name',
CD> filesize='$input_fil
Only use hide(), show(), block(), etc. if you want an "ordinary"
htmlpage to be shown. If you on the other hand want the values of form
elements to change you should do something like this:
function fillForm(){
document.form_name.txt.value = document.form_name.a_selection.value;
}
>> How you want to get a value from client side to php on the same page?
Well. Actually I didn't invent the code. I just correcteded it so it
worked on my installation. I must admit I was amazed that it somehow
worked, but it did.
Kind regards,
Morten Winkler
--
PHP General Mailing Lis
Hi Frederik
Run this code. It does what you want it to.
In your original code you compared two strings in the IF-statement.
When the $resolution gotten from your JavaScript returned '800' it would
have a lexical higher value than '1024' and thereby do exacely what
you wanted it to - actually the
Hi Matthew,
MG> Now I want to be able to generate this report from the web. It doesn't
MG> have to use Access (and I would prefer that it didn't, so I can convert to
MG> MySQL). But I don't know of a nice (and easy!) way to generate such a
MG> report. Using HTML tables isn't acceptable---when
Hi php'ers
Since I have a site that relies on cookies it would be good to
detect if a user has turned them off.
How cat I determine if that is the case?
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Hi php'ers
Executing the following code on my Redhat 7.2 box, through Apache i
get the most annoying output:
Code:
function listDirectory($basedir){
$diary_directory = opendir($basedir);
while($filename = readdir($diary_directory)) {
if(strcmp(".", $filename) != 0) {
if(strc
Joseph,
You will have to declare
myArray = new Array();
myArray[0] = "a string";
myArray[1] = 11;
myArray[2] = new Array();
since JavaScript 1.2 has arrays implemented.
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net
It is most certain _not_ Norweigan.
To me it looks loke a mixture of Dutch and German.
I'll send it to a Duch exchangestudent.
Kind regards,
Morten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
25 matches
Mail list logo