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   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

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 t

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

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

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

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

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

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

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

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

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

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

Re: [PHP] Login page error

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

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:

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

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

Re: [PHP] Passwords suddenly not working

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

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

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

Re: [PHP] Error checking

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

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

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

Re: [PHP] radio buttons in $_POST

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

Re: [PHP] Php error with MySql

2005-01-06 Thread Janet Valade
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

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 Val

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

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

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

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

Re: [PHP] Apache+PHP on Windows

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

Re: [PHP] heredoc syntax

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

Re: [PHP] url

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

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

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

Re: [PHP] Problem with a while loop

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

Re: [PHP] Loop within Loop help please

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

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 ''. 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

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? print "You are interested in: "; foreac

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 somethi

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: 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

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

Re: [PHP] method=post problem

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

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 To: <[EM

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

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 t

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 y

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 mi

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 Me

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

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

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 PROTECTE

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

[PHP] Warning: page expired and cache-control header

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

RE: [PHP] ereg problem

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

[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. + o