Nathan Nobbe wrote:
On Fri, May 9, 2008 at 12:02 PM, Michael Satterwhite [EMAIL PROTECTED]
wrote:
I do know that on bluehost, they actually encourage people to use their own
php.ini file in their web directory ... and users certainly don't have the
authority to restart apache.
That said -
tedd wrote:
However, I still have not been able to remove nbsp; from a string.
IThe trim(str_replace('nbsp;','',$submit)); seems to work fine for me
when I assign the string from your message to $submit. Copy/pasted it.
Have you looked at $submit with var_dump before you tried to change
Brian Welter wrote:
I have the following code and it doesn't behave properly but I can't find my
error. The code is designed to validate user login. When I pass in an
invalid email name to the checkLogin function it returns a result, not FALSE
as the documentation describes. I can SELECT * from
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.valade.com
--
PHP General Mailing List (http://www.php.net
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
.
I, for one, just call theft what it is.
And everything else that is illegal too, apparently, regardless of whether or
not it is.
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
someones book as a PDF saves the environment,
while I'd argue that the very act of reading it electronically is
still detrimental to the environment. The irony just amused me.
Cheers,
Rich
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
.
-Patrick
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/connection/login.php* on line *2
I have searched for possible answers, and all I have found is that I
should not send any output before the session_start(); But in this
code the session_start(); output is before anything else.
can you give me a tip?
Thanks in advance.
Yamil
*
--
Janet Valade
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: http://www.php.net/unsub.php
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
be a culprit (though of course I'm
open to suggestions).
Any advice would be much appreciated.
--
Dave M G
Ubuntu 6.06 LTS
Kernel 2.6.17.7
Pentium D Dual Core Processor
PHP 5, MySQL 5, Apache 2
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
(
[0] = column1
[1] = column2
[2] = column3
)
At least, that's what it looks like if it's just echoed out.
Is there a way I can strip out the relevant column names to be more
like this:
column1, column2. column3
Thank you for any advice.
--
Dave M G
--
Janet Valade
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 = E_ALL
Janet
--
Janet Valade
://webmonkey.wired.com/webmonkey/99/21/index3a.html
Cheers.
Mark Sargent.
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
']))
echo radio_test = none\n;
foreach ($_POST as $key = $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
--
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 Valade
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
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: http://www.php.net/unsub.php
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 -- janet.valade.com
--
PHP
Theres no such thing as a problem unless the servers are on fire!
-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net
and it's easy to have it wrong invisibly.
$varname = END
Text of string
END;
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
/a';
}
}
?
/body
/html
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
($someArray as $someVal) {
if($count is divisible by 20 exactly) {
// do some stuff
}
//do some stuff
}
?
How might i do that?
if($count % 20 == 0 ) {
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Brian Dunning wrote:
Thanks Chris, that works great, but it's not doing what I want. I'm just
trying to get the position of the 3rd occurrence (for example) of
'br'. So I'm looking for a function that will return the value 19,
given the above example string.
From your first post, you just want
Luke Mackenzie wrote:
Subject: using foreach() to capture multiple selections
hi,
i would like to to put multiple selections from a form list into a single
variable using foreach but am unsure how to do so.
can someone advise how to adapt the following code?
?php
print You are interested in: ;
[EMAIL PROTECTED] wrote:
I appreciate the help, but unfortunately it still doesn't work. I changed
testing2.php, the action page to do this:
?php
if ($_POST['user']) == me {
echo Andrew;
} else {
echo not me;
}
?
I still get a blank page. What's more I turned on Display Errors and
[EMAIL PROTECTED] wrote:
You were right, my display_error function was turned off. I turned it on and
get this:
Parse error: syntax error, unexpected T_IS_EQUAL in c:\TSW\pages\testing2.php
on line 3
So it isn't working. How do I get to let me make comparisons between the post
data and
- Original Message -
From: Alex Shi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 24, 2002 8:25 PM
Subject: [PHP] How is SESSION_ID passed?
Hello,
I have created several web sites using php. In all these sites
session id is passed via cookie. However I noticed that some
You need double quotes around the value. E.g.,
input type=hidden name=quiz[owner_name] value=$quiz[owner_name]
- 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
On the browser i have a page in which i select the first button which has
a link in the form of products.php?tosend = 1
but in the second pagein where I try to trap the value of tosend to
include a file, i don't get anything.
I assume you mean that you can see the value in the URL, but when
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 ?php
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: [PHP] nullifying php and html tags?
INCLUDE is not really what you are looking for. INCLUDE is more to read in
files that contain PHP code. If I'm understanding correctly, what you want
to do is to read each line from your file and put each line into a separate
variable. Then, you can create the INSERT statement for each row.
It
To have a secure HTTP session, you must be communicating with a secure web
server. This is apache. It has nothing to do with PHP or Linux.
You classmate was right. The only difference for SSL is that you use https
instead of http. To find out if your server can communicate using SSL, try
it. If
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;
Janet
- Original Message
The problem is on this line.
print (INPUT TYPE=\submit\ NAME=\button\ value=\ Submit\\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 4:02
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 Reilly [EMAIL PROTECTED]
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 query display me all words beginning with an
I am using the following statement to check phone numbers.
if (!ereg("^[0-9\-\+\.\ \)\(]{10,}$",$value)) {
Can anyone tell me why this works for every character except the -. It
doesn't see the hyphen as a valid part of the phone number, even though it
recognizes the other characters, e.g. +
PROTECTED] (Janet Valade) wrote:
if (!ereg("^[0-9\-\+\.\ \)\(]{10,}$",$value)) {
Can anyone tell me why this works for every character except the -. It
doesn't see the hyphen as a valid part of the phone number, even
though
it
recognizes the other characters, e.g. + or .
43 matches
Mail list logo