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 from a string.
IThe trim(str_replace(' ','',$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 it?
Perhap
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 t
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
ot;? Of course not, but it's still illegal.
Is copyright infringement "theft"? Of course not, but it's still illegal.
Copyright infringement is no more "theft" than walking against the light
is "speeding".
I, for one, just call theft what it is.
And ever
ipping off 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/)
this email address's life. wtf.
-Patrick
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
code the session_start(); output is before anything else.
can you give me a tip?
Thanks in advance.
Yamil
*
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
e any gotchas in the upgrade that I might be missing? I can't
think of anything else that could 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, Ap
ere 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 -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
E_ALL
Janet
--
Janet Valade -- janet.valade.com
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ey.com tut for php/mysql.
http://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
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
-
rea.
Janet
"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/)
To unsu
ults_reference) > 0)
{
require "mod/admin/".trim(strtolower($admin_get_page_result[1]));
}
else
{
echo "ERROR: Invalid Admin Page Requested ";
echo 'Please Try Again ... Click
Here ';
}
}
?>
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
''. 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 to
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?
print "You are interested in: ";
foreac
[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 somethi
[EMAIL PROTECTED] wrote:
I appreciate the help, but unfortunately it still doesn't work. I changed
testing2.php, the action page to do this:
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
resta
- 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
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
> 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
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 t
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 y
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 mi
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 Me
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 4:02 AM
Subject: [PHP] Re: Does anyone have
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 PROTECTE
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
Previously on this list, there have been questions about the Warning: page
has expired problem. When you submit a form, then press the back button, you
get this message and have to press refresh before the page will redisplay.
I have discovered that if you use the following header command, the p
ject: Re: [PHP] ereg problem
>
>
> > In article <[EMAIL PROTECTED]>,
> > [EMAIL PROTECTED] (Janet Valade) wrote:
> >
> > > if (!ereg("^[0-9\-\+\.\ \)\(]{10,}$",$value)) {
> > >
> > > Can anyone tell me why this works for ever
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. + o
44 matches
Mail list logo