Re: [PHP] php.ini

2008-05-09 Thread Janet Valade
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 -

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Janet Valade
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

Re: [PHP] Problem With mysql_query

2007-09-05 Thread Janet Valade
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

Re: [PHP] MySQL, PHPMyAdmin, GRANT, headaches

2007-09-04 Thread Janet Valade
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

Re: [PHP] PHP Books - A poll of sorts

2007-08-12 Thread Janet Valade
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

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Janet Valade
. 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

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Janet Valade
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

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Janet Valade
. -Patrick -- Janet Valade -- janet.valade.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login page error

2007-06-11 Thread Janet Valade
/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

Re: [PHP] newbie question

2007-03-19 Thread 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

Re: [PHP] Getting last record ID created from DB

2007-03-16 Thread Janet Valade
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

Re: [PHP] Passwords suddenly not working

2006-11-29 Thread Janet Valade
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

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-07 Thread Janet Valade
( [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

Re: [PHP] Error checking

2005-05-23 Thread 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

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread 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

Re: [PHP] radio buttons in $_POST

2005-04-23 Thread Janet Valade
'])) 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

Re: [PHP] Php error with MySql

2005-01-06 Thread Janet Valade
-- Janet Valade -- janet.valade.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] about installing php

2004-12-08 Thread Janet Valade
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

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread 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

Re: [PHP] Cannot retrive the data ???

2004-11-01 Thread Janet Valade
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

Re: [PHP] Apache+PHP on Windows

2004-10-26 Thread Janet Valade
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

Re: [PHP] url

2004-10-20 Thread Janet Valade
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

Re: [PHP] heredoc syntax

2004-10-20 Thread Janet Valade
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

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Janet Valade
/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

Re: [PHP] Problem with a while loop

2004-10-07 Thread Janet Valade
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

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Janet Valade
($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

Re: [PHP] Split haystack at nth occurrence of needle?

2004-09-22 Thread Janet Valade
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

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Janet Valade
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: ;

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread Janet Valade
[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

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread Janet Valade
[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

Re: [PHP] How is SESSION_ID passed?

2002-05-24 Thread Janet Valade
- 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

Re: [PHP] method=post problem

2002-05-15 Thread Janet Valade
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

Re: [PHP] Newbie Question

2002-04-15 Thread Janet Valade
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

Re: [PHP] Session problem

2002-04-15 Thread Janet Valade
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

Re: [PHP] nullifying php and html tags?

2002-02-18 Thread Janet Valade
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?

Re: [PHP] Include file for MySQL insert rows

2002-02-17 Thread Janet Valade
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

Re: [PHP] How to start a secure HTTP session?

2002-02-17 Thread Janet Valade
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

Re: [PHP] session register!!

2002-02-08 Thread Janet Valade
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

Re: [PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Janet Valade
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

Re: [PHP] Newbie: Ending Sessions

2002-01-16 Thread Janet Valade
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]

Re: [PHP] sql question

2002-01-15 Thread Janet Valade
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

[PHP] ereg problem

2001-02-14 Thread Janet Valade
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. +

RE: [PHP] ereg problem

2001-02-14 Thread Janet Valade
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 .