ll show the path to the local php.ini file. Then, just put the
specific directive in there, such as:
magic_quotes_gpc = Off
This works on some hosts.
Janet
--
janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to it alone, I have decided to keep all steps on one page.
Is there any way to use the "hidden" attribute of HTML variables to prevent
the output message from overwriting the page?
On Jan 30, 2008 5:30 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Janet N schreef:
> > is
is it possible to use "input type="hidden" for signkey form and put it in
the register form before the submit button? I'm not sure but
is it possible to use hidden to make this work?
Thanks.
On Jan 30, 2008 3:16 AM, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
Hi there,
I have two forms on the same php page. Both forms has php embeded inside
html with it's own submit button.
How do I keep the second form from not disappearing when I click submit on
the first form? My issue is that when I click the submit button from the
first
form (register), the sec
I have root; I was able to compile php with java and working now. Thanks
all!
On Jan 16, 2008 4:06 PM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, January 15, 2008 5:32 pm, Jochem Maas wrote:
> > Janet N schreef:
> > with a bit of luck you'll then have a
On Jan 15, 2008 11:36 AM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, January 15, 2008 12:39 pm, Janet N wrote:
> > I'm trying to call java within php. I have JAVA JRE 1.6 installed.
> > The php
> > I'm using is distributed by our partner so I couldn
I'm trying to call java within php. I have JAVA JRE 1.6 installed. The php
I'm using is distributed by our partner so I couldn't configure it to use
JAVA.
I've modified the "php.ini" file to add the JRE path to it:
java.class.path="/usr/java/jre1.6.0_01"
java.home="/usr/java/jre1.6.0_01/bin"
ja
u tried to change it?
Perhaps it does not contain what you think it does.
Janet
Cheers,
tedd
--
janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$query = "SELECT * FROM maillist WHERE
email='$emailcheck' AND passwd='$passcheck'";
$result = mysql_query($query);
Idon't think it's your problem, but you have two different
variable
d problem, you will get a PHP
error message. Perhaps you have errors turned off in your PHP script.
Turn them on until you get it working.
Second, you should be able to use phpMyAdmin to see what the permissions
are for the account you are using.
Janet
brian
--
Janet Valade -- janet.va
uld buy it. But, I buy tons of books.
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
words. My words. It's
no different than a stack of paper with typewritten words on it that an
author produced with a typewriter.
Just as a matter of curiosity, do you also spend time writing long
emails correcting people who use the term "identity theft"?
Janet
Of course
Anyone who is concerned about the trees doesn't need to steal the book.
They can buy it as a PDF.
Janet
Richard Davey wrote:
Hi Crayon,
Monday, July 16, 2007, 4:22:14 PM, you wrote:
I think no matter which way you dice it, sending 1 email is a lot more
energy efficient than print
Here's a page with more info about unsubscribing and problems. Have you
seen this? http://www.php.net/unsub.php
Janet
-Patrick wrote:
Stut wrote:
I've never known an unsubscribe request to need identity confirmation.
Are you sure you're asking the system to unsubscribe yo
The error comes from having output before the session_start(). This
means that anything before the space.
Janet
Humani Power wrote:
Hi! Im trying to make a login page. I have searched for examples that makes
me check the user name with a database, and the one that suits better is
this code
bob pilly wrote:
Hi all
Can anyone tell me what '&' means before a var?
e.g function(&$var)
http://us3.php.net/manual/en/language.references.php
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
created here.
Thanks in advance!
The function mysql_insert_id will return the previous id inserted.
http://us3.php.net/manual/en/function.mysql-insert-id.php
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I wasn't really sure where to start looking, but I think I have enough
information that I can go and look at how we have things set up. I will
try to provide more information as I find it.
Thanks
>>> Jochem Maas <[EMAIL PROTECTED]> 12/4/2006 10:42 AM >>>
Ja
We have an application using PHP. If users have forgotten their
password, they click on the link 'Forgot Password' and enter this e-mail
address. This is suppose to send their new password to the e-mail
address provided. We can not get the e-mail to be sent. I have changed
the php.ini file to inclu
ted. Try
the following code:
$result = mysql_query($query)
or die("Query failed: ".mysql_error());
With this code, if the query fails, the program will stop and an error
message will be displayed.
You also may want to display $query before you execute it to see what,
exactly, is
","',$fields_form);
$query = "INSERT INTO Table1 ($fields) VALUES (\"$values\")";
$result = mysqli_query($cxn,$query);
$fields_form is an associative array of all the fields to be entered
into the database, with the field names as keys and the field values as
va
I am new to PHP and am trying to learn how it works.
We have a PHP program that is using MySQL. We are wanting to use our Oracle
database instead. The Oracle database is on a different server that our PHP
program. Does any one know how I can change connections from MySQL to Oracle?
We have this
ed to be set to get PHP to report errors
for me?
You won't see the notice for an undefined variable with this setting.
You have notices turned off. You will only see warnings and fatal
errors. If you want to see notices, you need to use the following setting:
error_reporting =
) to see that this is true. It probably contains false.
You get false when there's a problem with your query. If you echo
mysql_error() after the query, you will get more information about what
is wrong.
Janet
*
Below are snippets of my code,
Line 22: $result = mysql_query("SELECT pr
omething like,
$val)
echo "$key = $val\n";
?>
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or() after
your query to see what's wrong.
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are not correct. Check the lines
carefully. You may have a typo. You need to add two lines in the correct
location:
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php
Janet
Satya Prakash.
Yahoo! India Matrimony: Find your life partneronline.
--
Janet Val
en?
For organization. The file name shows what the file is, without having
to look at the contents of any scripts.
Janet
/Perry
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
With register_globals off, you need to use $_SERVER['PHP_SELF']. You
possibly have your errors turned off in php.ini. Check that
error_reporting is E_ALL and display_errors is on.
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
f not most elegant, way to be sure PHP can
find them is to copy them into your windows\system32 directory.
Janet
Thanks a lot.
Gregor
--
Startuj z INTERIA.PL!!! >>> http://link.interia.pl/f1837
--
Janet Valade -- jane
rigid and it's easy to have it wrong invisibly.
$varname = <<
The first END must be at the end of the line, nothing after it, not even
a blank space. The last END must be at the beginning of the line, not
before it, not even a blank space.
Janet
--
Janet Valade -- janet.valade.com
-
to work and I am racking my brain trying to figure out what.
It probably has to do with settings in php.ini. The new server probably
has register_globals = off. The old one probably had it set to on.
Try $_GET['area'] instead of $a
incorrect on this statement. It should be:
foreach($admin_get_options_result as $api => $file)
PHP is expecting the ) after $file. Here's the documentation for
foreach. http://www.php.net/manual/en/control-structures.foreach.php
Janet
Can any one please assist.
***ENTIRE CODE
You can do this with sprintf, as in:
$str_num = sprintf("%05.0f",$i);
You can use var_dump($varname) to see what kind of data is stored in
$varname.
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nick Wilson wrote:
hi everyone,
I have a simplified bit of code below:
What i'd like to do is have a count inside that loop that will trigger
some action every 20 iterations of the foreach. Like this:
How might i do that?
if($count % 20 == 0 ) {
Janet
--
Janet Valade -- janet.valad
'',$newArr);
?>
A function that would give you the position to truncate from would be
shorter. But, I don't seem to be finding that function either. So, the
above seems like a solution.
Janet
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ou want all the values in MyGoals added to a single variable as a
string? If so, look at the function implode.
www.php.net/manual/en/function.implode.php
Or, you can have a statement in your forrach loop something like:
$string .= $value." ";
Janet
#x27;user'] == me) {
Also, your string isn't quoted. That's not causing the parse error in
this message, but will cause a problem after you fix your parentheses.
(e.g., "me").
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
's more I turned on Display Errors and
restarted the server, but still got no error message.
Your errors are still not displaying. Recheck display errors and
error_reporting. Your line with the if statement is generating a parse
error. You have an = sign that PHP is sure to complain abou
. It is database independent. I'm
quite sure about this. I know this book well. I love it. I use this book
almost every day.
I promise I won't write any more on this subject.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
focused on MySQL. It has examples in the database access
chapter from MySQL, Oracle, PostgreSQL, and others. And shows how to use PEAR
DB.
Janet
Janet Valade
Author, PHP 5 for Dummies
PHP & MySQL for Dummies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In a message dated 6/15/2004 10:20:59 AM Pacific Daylight Time,
[EMAIL PROTECTED] writes:
>I've forgotten how to assign something like this...
>
>$someStr = EOF>>>"
> bunch of raw non-echo'd html
>"
>EOF>>>;
>
>But can't seem to get the right syntax. Tried looking in the manual, but
>don't
isposition: attachment; filename=test.txt\n";
$mailsend = mail($to,$subj,$mess,$headers);
This will send the message in $mess as an attachment with the filename
test.txt.
Good Luck,
Janet
---
Janet Valade,
Author, PHP & MySQL for Dummies
Author, PHP 5 for
Catalin,
Could you please be a little more specific about where on the manual page you
found the answers to my questions. I don't seem to be smart enough to find
them myself. If I was, I wouldn't have had to post the questions to the list.
Thanks,
Janet
In a message dated 9/7/2003
n get? Or is mysqli support available
only if I compile the Windows version myself?
Thanks,
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rays are attached.
$state\n";
}
?>
Good luck,
Janet
"AL" ,
"AK" ,
"AZ" ,
"AR" ,
"CA" ,
"CO" ,
"CT" ,
"DE" ,
&q
rt is built-in. Can someone tell me what I need to do to
use MySQL.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n't
have to do this when I previously installed PHP 5. I just started having to
copy these dlls yesterday. My question is whether this is a permanent change
to the installation process or something that will be fixed.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
past.
Thanks,
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
>
That's it. That is the problem. Good eye.
Thank you,
Janet
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Monday, March 03, 2003 9:02 AM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] heredoc problem
>>
7;t get the <<<. Why not? I've tried all the combinations of spaces and
no space in that line that I can think of.
So, what's wrong. Undoubtedly something obvious to anyone except me.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;Can't connect
to MySQL");
$db = mysql_select_db("dbname") or die("Can't select db");
$sql = "SQL query here";
$result = mysql_query($sql) or die("Couldn't execute query");
And the following only if the query was a SELECT
$row = mysql_fetch_array($result);
extract($row);
Good luck,
Janet
__
Janet Valade
Author, PHP & MySQL for Dummies
janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;dog', 'dog');
>
>if I use array_count_values it gives "dog => 5"
>I would like to get 'dog' and '5' into a $variable.
array_count_values gives you an array with the values for keys and the count
of each value as the value ($array['d
advance
$string = '"'.implode('","',$testarray).'"';
Janet
--
Janet Valade
Author, PHP & MySQL for Dummies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing that needs to change to make ini_set work? Any suggestions?
TIA
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
our php.ini file. But it would be better to learn
to program with globals turned off. The following program would run correctly.
Input yourname
Janet
---
Janet Valade
Author, PHP & MySQL for Dummies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this instead of the edit
>box:
>">";;">
>}?>
>any reason for that?
It sounds like $name and/or $new_var may be empty. Did you echo the variables
before using them in your form to check whether the values from the database
are actually in the variables?
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
instance,
echo "";
Then, in the script that processes the form, update the database record with
the values that were passed from the form.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
selecting unique values so that
>each value is displayed only once in the check boxes or radio buttons?
Take a look at the function array_unique() which removes duplicate values
from an array. Perhaps this function can help you.
Janet
------
Janet Valade
Author, PHP & M
In a message dated 1/15/2003 4:18:10 PM Pacific Standard Time,
[EMAIL PROTECTED] writes:
>I am trying to make use of sessions to auhenticate users on the secure
>parts of the website. Things seems to work fine...but I keep getting
>this warning. Can some one pl explain what this means ...
>Wa
rms that use the post method. If trans-sid is not
turned on, you have to pass the session ID yourself.
Janet
>
> Alex
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You need double quotes around the value. E.g.,
- Original Message -
From: "Jule" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 6:27 PM
Subject: [PHP] method=post problem
Hey guys and gals,
i have a form with method=post which sends
to the same page,
The message means that that your script produced some output before the
session_start. You have to use session_start before any output. The message
shows where the output was started (line 9 of the given file). Sometimes
output is started accidentally by having a blank space before your
To: <[EM
an see the value in the URL, but when you access
$tosend, it has no value. You should be able to get it from $_GET['tosend'].
Or if you are using a version of PHP prior to 4.1.0, you can use
$HTTP_GET_VARS. The problem may be that you have register_globals turned
off.
Janet
>
> If som
value
mysql.default_socketno valueno value
mysql.default_user no valueno value
mysql.max_links Unlimited Unlimited
mysql.max_persistentUnlimited Unlimited
Thanks
Janet Cook
--
PHP General Mailing List (http
Thanks Matt,
I've got it working now - there must be another admin_do[] somewhere - I
changed it to adm_do and it worked!
Thanks for your help
Janet
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 6 March 2002 11:41
To: WG4- Cook, Janet
Cc: PHP
#x27;];
echo (" value is $myval ");
echo (" admin_do is $admin_do ");
echo $HTTP_POST_VARS['admin_do'];
for ($i=0; $i <5; $i++)
{
echo (" counter = $i value is $admin[$i] ");
};
?>
the only value I get is the $admin_do which has the value "Arra
ected?
My HTML code (which is inside another PHP page) is as follows
Add new
user
Change
User password
Delete User
Add new
document
I have tried various things in admin.php but nothing gives me which radio
button was selected.
TIA
Janet
--
PHP General Mailing List (http://www.php.net
ase at this time.");
exit();
}
else
{ echo( "Established connection to DMS db");
};
$whoid=10;
?>
testlink
and in jtest.php I have
The connection establishes, but the values do not appear to be there in the
jtest page?
Any ideas
Thanks
Janet
--
PHP General Mailing
Do I
have to include it with the variables passed to each page or is there a
simpler way of doing it. Can I put the variable in an include file and
include it in every page - will that work?.
Surely someone must have had a similar situation before and can tell me how
they solved it.
Many
Well I tried setting the variable to a constant value and it still didn't
work. What I eventually want to pass is an ID retrieved from the DB that
will be needed by every page
Janet
-Original Message-
From: Simon Willison [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 21 February 2
Thanks for the suggestion but it made no difference!
I am still getting nothing through
I think its something to do with the "test link" bit - what actually should
go in here - how does it relate this to all links?
Janet
-Original Message-
From: Rick Emery [mailto:[EMAIL
That's not a lot of help - its a new installation, as far as I know
everything has been done to default settings.
What can I do to check the server setup
Janet
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 20 February 2002 10:59
To: '
Ok - I changed it to
">test link
First login page now has
" <http://147.76.130.12/dms/demo/welcome.php3?dbcnxid= >test
linkthen the login stuff,
and I still don't get the value through
Janet
-Original Message-
From: Martin Towell [mailto:[EMAIL PRO
ly
going to have all the users with logins to the DB - but have our own
internal table of users, password and rights information, thus the userid
form this table needs to be available to all pages.
Many Thanks in advance for your help
Janet Cook
Software Engineer
IT &CM
CSDD
NEC Australia Pt
Yes, there is a function strip_tags(). Also look at the functions,
htmlentities() and htmlspecialchars().
Janet
- Original Message -
From: "Police Trainee" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 9:47 PM
Subject:
, www.apache.org, and follow links to apache-ssl and mod_ssl.
Janet
- Original Message -
From: "gaukia 345" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 5:43 AM
Subject: [PHP] How to start a secure HTTP session?
> I heard from my cou
to remove before you construct the query. A comma on the first line and a
semicolon on the second line.
Janet
- Original Message -
From: "Paul Fowler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 17, 2002 8:17 PM
Subject: [PHP] Include file for
Did you use session_start() on the second page?
In other words, the first page should have
session_start();
session_register("the_var");
$the_var=-"here it is";
link or whatever takes you to the second page.
Then the second page needs
session_start();
echo "$the_var
The problem is on this line.
print ("\n");
There is a space between the \ and the " before Submit.
Janet
- Original Message -
From: "Mike C" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 19, 2002
I'm not sure what you mean by the session is still active, but if you mean
that the variables still are set to the same values, try moving the
session_unregister after the session_unset, but still before the
session_destroy.
Janet
- Original Message -
From: "Lee P Reill
select * from tbl_lit where lit_source like "c%"
Janet
- Original Message -
From: "Wolf-Dietrich von Loeffelholz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 12:09 PM
Subject: [PHP] sql question
i want that a select quer
t I should be aware of?
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Thank you. That was exactly the problem.
Janet
> -Original Message-
> From: Charlie Llewellin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 14, 2001 11:00 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] ereg problem
>
> the - ne
characters, e.g. + or .
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
85 matches
Mail list logo