[PHP] Going from simple to super CAPTCHA

2007-06-09 Thread Dave M G
on a pre-built library of images? Can someone maybe point me to an online instructional on how to get a CAPTCHA image that really works? Tips on what differentiates a good CAPTCHA from a bad one would also be really sweet. Thank you for any advice. -- Dave M G Ubuntu Feisty 7.04 Kernel 2.6.

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Dave M G
nes that is not obvious to me. I came across this page: http://sam.zoy.org/pwntcha/ ... which conveys a feeling that some CAPTCHAs that look good actually aren't. According to this page, the Yahoo CAPTCHA image, which looks quite minimal to me, is actually one of the better ones. -- Da

[PHP] Reformatting the URI on return to the browser

2007-06-13 Thread Dave M G
a URI request and returning a page that the URI will get set. Can anyone help me with figuring out at what point I can gain control over the URI sent back, as Wikipedia does? Thanks for any advice. -- Dave M G Ubuntu Feisty 7.04 Kernel 2.6.20-15-386 -- PHP General Mailing List (http://www.ph

Re: [PHP] Reformatting the URI on return to the browser

2007-06-14 Thread Dave M G
it seems to work like a charm so far. Thanks for all your advice and assistance. -- Dave M G Ubuntu Feisty 7.04 Kernel 2.6.20-15-386 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Includes eating up my time

2007-07-31 Thread Dave M G
at any one time, so I'm unsure how to efficiently include only the necessary classes. My second question is: Is there a systematic way of determining how to incrementally include files that people use? Or is it just a constant process of testing and checking? Thank you for any advice.

Re: [PHP] Includes eating up my time [SOLVED]

2007-08-02 Thread Dave M G
w and again, but I think I have a handle on that. Thank you for pointing that out to me. Just the right solution. -- Dave M G Ubuntu Feisty 7.04 Kernel 2.6.20-16-386 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Strip numerical indices from array

2007-08-12 Thread Dave M G
index, leaving only the associative key names? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strip numerical indices from array [SOLVED]

2007-08-13 Thread Dave M G
imple as replacing every instance of mysql_ with mysqli_. I will look into it further and see if I can migrate to using mysqli_ somehow. Thank you for the advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP sessions possibly eating up inodes

2006-07-03 Thread Dave M G
Is there a way I can: 1. Verify that sessions are in fact the cause of inodes being created? 2. Destroy them? Thank you for any advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-07-07 Thread Dave M G
. Something like this: Array ( [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"

[PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-13 Thread Dave M G
find any information on configuring Zend in this matter. What do I need to do to make Zend listen on the MySQL socket that I want it to listen on? (Which, by the way, is /var/run/mysqld/mysqld.sock) Thank you for any advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Dave M G
able in thinking that asking about how to set up a PHP development environment so that I can debug my PHP scripts without it conflicting with the PHP database administration system is on-topic? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Dave M G
, and for making this list a great source of support. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Dave M G
m unsure where to look to diagnose this problem further. Any advice would be much appreciated. Thank you. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Debugger Recommendations

2006-07-22 Thread Dave M G
llaborating with someone who uses Windows, so something cross platform, Java based or whatever else, would be best. Are there any recommendations? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Debugger Recommendations

2006-07-22 Thread Dave M G
it was an Easter egg hunt that exceeded my patience. What about Protoeditor or PHPEclipse? I am going to try them out. Thank you for suggesting them. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is this a PHP issue, or a CGI issue?

2006-08-02 Thread Dave M G
cript at monash.edu.au that I need to contact the developer about? Is it something do to with how the form action is structured? Please advise on how to diagnose and address this problem. If necessary, please tell me where this issue would be best addressed if it is not a PHP issue. Thank yo

Re: [PHP] Is this a PHP issue, or a CGI issue? [SOLVED]

2006-08-03 Thread Dave M G
Jochem, Thank you for responding. no doubt it will become a php issue in the near future ;-) I'm sure it will. However, you have kick started me in the right direction, and I have the beginnings of a working page. Thank you for your helpful advice. -- Dave M G -- PHP General Ma

[PHP] The difference between ereg and preg?

2006-08-03 Thread Dave M G
ot;, $htmlPage); But that didn't work, and returned an error. Since ereg was working, though, I figured I would just stick with it. Still, I thought it worth asking: Is there any reason why either ereg or preg would be more desirable over the other? Why does the ereg work for the command

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
Chris, Ligaya, Dave, Thank you for responding. I understand the difference in principle between ereg and preg much better now. Chris wrote: ! in perl regular expressions means "not" so you need to escape it: \! Still, when including that escape character, the following preg expre

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
Can I form an expression that would take $htmlPage and delete everything *except* text that is between a tag and a tag? Or is that something that requires much more than a single use of preg_replace? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
ax, and I can't see why it would fail. Have I messed up the regular expression, or the use of preg_match_all? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
. If I take off the "s" option, then it only looks at and tags within each line, thus returning small, discreet matches. I personally don't think this is very rational behaviour, so either I'm doing something wrong still, or perhaps it's me who isn't very ra

Re: [PHP] The difference between ereg and preg?

2006-08-05 Thread Dave M G
l behave the same, so perhaps "greediness" is determined by some other modifier? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using preg_match to find Japanese text

2006-08-05 Thread Dave M G
ck. If anyone has any advice to help get me started, it would be much appreciated. Thank you for your time and help. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The difference between ereg and preg? [SOLVED]

2006-08-06 Thread Dave M G
very well now. Thanks to the PHP list, especially Jochem, Ligaya, Dave, Robert, Mike, Robert, Adam, and John, for all your helpful information and advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Declaring variables from the url

2006-08-07 Thread Dave M G
Y_STRING'], the value is contained in there, so it is being assigned and contained somehow. What could I possibly be missing in what should be a super simple process? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular expression to find from start of string to first space

2006-08-08 Thread Dave M G
t be greedy". So, it should start at the beginning of the line and get everything up to the first space. But it doesn't work. Where did I go wrong? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using preg_match to find Japanese text

2006-08-08 Thread Dave M G
Richard, Madoka, Thank you for your insights into searching for Japanese characters. I've decided to stick with searching for words as determined by the placement of spaces within the source text. Thank you for your time and advice. -- Dave M G -- PHP General Mailing List

Re: [PHP] Regular expression to find from start of string to first space [SOLVED]

2006-08-08 Thread Dave M G
Richard, Adam, Barry, Dave, David, Thank you all for your helpful advice regarding expressions. I was able to combine all your advice, and made some additional discoveries along the way. The winning expression is: "#^(.*)\s#iU" First, I discovered that sometimes the source t

[PHP] Dividing, and keeping, text from the first space

2006-08-08 Thread Dave M G
e? Thank you for all your time and help. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Dave M G
ckslash and "s" again. Hmm... does the (.*) after the second "\s" mean to match all the whitespace found? For example if there happened to be two space characters instead of just one? The PHP manual says the "$" means to "assert end of subject". Which

[PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Dave M G
e that no one goes out of their way to document or explain it. I'm too lost to know where to begin. How do I create a file that the user saves, and is not stored on the server? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Dave M G
rything I set out for it to do. Everyone's time and expertise is very much appreciated. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dividing, and keeping, text from the first space

2006-08-09 Thread Dave M G
his advice has come together, and my script now accomplishes what I had hoped it would. Thank you and the PHP list in general for the continued great support. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating User Friendly URLS

2006-08-17 Thread Dave M G
up. But, while I'm sure there are more steps than that, I'm halted initially because I'm not sure where in the $_SERVER array my URL is being stored. Any advice on how to proceed here would be greatly appreciated. Thank you. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating User Friendly URLS [SOLVED]

2006-08-19 Thread Dave M G
at it seemed like it was supposed to be listed there. If anyone can see problems in the above, or if I've misunderstood some part, please let me know. Thanks to the PHP list for their ever-present help and support. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Recommendations for PHP debuggers?

2006-08-20 Thread Dave M G
rk on Linux? Any tutorials or instructions available anywhere that are newbie friendly? After all, aren't the newbies the ones most likely to be the ones to use a GUI debugger? Any advice or help would be greatly appreciated. Thank you for your time. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.

Re: [PHP] Recommendations for PHP debuggers?

2006-08-20 Thread Dave M G
own set of error handlers, which would themselves need constant tweaking, especially as I'm a newbie. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strip slashes from beginning and end of string in one expression

2006-08-31 Thread Dave M G
;. I've looked around and can't seem to find a way of connecting these in the same search. However, I'm sure that is because I'm not familiar enough with regular expressions to know what I'm looking at. How would I connect "#^/*#" and "#*/$#" in

[PHP] Re: strip slashes from beginning and end of string in one expression

2006-08-31 Thread Dave M G
iated. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using a variable to call another variable

2006-09-08 Thread Dave M G
ted. Thank you for your time. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using a variable to call another variable [SOLVED]

2006-09-09 Thread Dave M G
of a class and method, which is my ultimate intent with this process. I will also make sure to name my variables with at least one leading alphabet character. Thanks for the warning. All your time and expert advice is much appreciated. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual

[PHP] Working with overly aggressive anti-spam measures

2006-10-09 Thread Dave M G
Sun, 03 Sep 2006 14:22:42 -0700 Which parts are key to change, and how? Thank you for any and all advice. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with overly aggressive anti-spam measures

2006-10-10 Thread Dave M G
r.com [123.123.123.123] (may be forged) (Note that I've changed the names of servers and the DNS just to keep some info private) Why are my attempts to set these headers in PHP not taking effect? -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with overly aggressive anti-spam measures [SOLVED]

2006-10-10 Thread Dave M G
ddress = "[EMAIL PROTECTED]"; $fromName = "My Name"; $headers = "From: " . $fromName . " <" . $fromAddress . ">\n"; $headers .= "Reply-to: " . $fromName . " <" . $fromAddress . ">\n"; $extra = "-f"

[PHP] Setting PHP to use SMTP

2006-10-15 Thread Dave M G
ctly do I set the variables? Do I have to manually edit php.ini and then restart Apache? Is there a command I should be running? Thank you for any and all advice. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List

Re: [PHP] Re: Setting PHP to use SMTP

2006-10-16 Thread Dave M G
and full of settings I don't need, really turns me off. Is there no way to simply force my PHP emails through SMTP? I'm happy about everything else with my email set up, so surely there's a way to handle this one thing. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dua

[PHP] Setting try and catch to use my own error handler

2006-10-19 Thread Dave M G
rfile . $errline ; } However, I get errors saying that the arguments for handleError don't exist. Shouldn't they be automatically passed to my own error handler? Thank you for any advise. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL

[PHP] array_walk, or array_map, or foreach?

2006-10-20 Thread Dave M G
ray) I've even tried accomplishing it with a foreach(), but no matter what I do, it doesn't work. As it walks through the array, it seems to trim a copy of the element in the array, trim that, but leave the original array untouched. What am I missing here? -- Dave M G Ubuntu

[PHP] Ensuring all links go to index.php

2006-10-20 Thread Dave M G
t;); Or: header("/local/server/www/directory/"); Bottom line is, how do I ensure that all links and user requests through the URL end up going to the index.php in my web site's root directory? I hope this question is clear enough, and thank you for any and all advice. -- Dave M

Re: [PHP] Ensuring all links go to index.php [SOLVED]

2006-10-23 Thread Dave M G
time and advice. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload not finding directory to write to.

2006-10-27 Thread Dave M G
e" directory has fully open permissions, and it's currently set to "drwxrwxrwx", or "0777". Am I missing some fundamental issue with directory structures on an Apache server? -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Storing objects in sessions recursively

2006-11-24 Thread Dave M G
7;]; } I may have missed a detail in trying to keep this brief and readable. If so, please let me know and I will try to provide it. Thank you for any advice. -- Dave M G Ubuntu 6.06 LTS Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Dave M G
finitely a serialization issue. -- Dave M G Community Moderator -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passwords suddenly not working

2006-11-29 Thread Dave M G
#x27;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, Apache 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting the right path output from $_SERVER

2006-05-21 Thread Dave M G
RVER[SCRIPT_NAME], but without including the file name? Thank you for any advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] str_replace(), and correctly positioned HTML tags

2006-05-25 Thread Dave M G
s images and lines, but they are all similar in that they will take some text code and convert into an HTML entity. I need to be able to separate those out and then be able to place opening and closing tags at the right place before and after paragraphs. Is there a way to do this? Is the

Re: [PHP] str_replace(), and correctly positioned HTML tags

2006-05-25 Thread Dave M G
it is displayed. But I definitely thank you for giving me something to think about, and also the tips on how to make my code more efficient. It's my hope that someone can still steer me towards the ability to get tags surrounding paragraphs, and to be able to separate and other tags from

[PHP] Why does this preg_replace function not work?

2006-05-26 Thread Dave M G
either misunderstood the use of preg_replace(), or regular expressions, or arrays, despite having looked them up in the PHP online manual. I also tried str_replace(), but predictably that did not help. As far as I understand it, it does not accept arrays. What am I doing wrong in the abov

Re: [PHP] Why does this preg_replace function not work?

2006-05-27 Thread Dave M G
Robin, Dan, Rabin, Thank you all for your advice. You've helped me understand regular expressions a little better, and cleared some some confusion about arrays. I'll be adapting all the code you provided for me needs. Thank you for taking the time to help. -- Dave M G -- P

[PHP] Using variable content to name a class

2006-06-05 Thread Dave M G
= "nameFromDatabase"; $object = new $className(); Is this possible? I hope I've asked my question clearly. Thank you for any advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using variable content to name a class

2006-06-05 Thread Dave M G
cific command I was missing. Well, anyway, I guess I've stumbled on the right syntax. Thank you for pointing it out to me. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail() function dying half way through.

2006-06-08 Thread Dave M G
have limitations on how many emails it sends out. But I thought it took hundreds, somewhere between 500 and a thousand, of individual emails before it would die. And I also thought the set_time_limit(0) function would alleviate the problem of timing out. Where have I gone wrong with this? Any

Re: [PHP] mail() function dying half way through. [SOLVED]

2006-06-11 Thread Dave M G
nk you for taking the time to help. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Seeking recommendations for use of include()

2006-06-13 Thread Dave M G
s that will change as I work on the system? Do most people create a function to detect the included files, or do most people make a static list that they edit by hand? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Seeking recommendations for use of include()

2006-06-13 Thread Dave M G
er way for them to exploit a dynamic include() function, then please let me know. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Seeking recommendations for use of include()

2006-06-14 Thread Dave M G
nd it. But can someone show me more explicitly how someone could exploit a dynamic include() function with simple access through forms? And, can that access be exploited even when fairly common restrictions on form data is implemented (such as no tags and such)? -- Dave M G -- PHP General Ma

[PHP] Simple class declaration returns error

2006-06-14 Thread Dave M G
I gone wrong? Thank you for any advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple class declaration returns error

2006-06-14 Thread Dave M G
t. Now I have to consider whether or not to make my code PHP 4 compatible, or upgrade to version 5. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Seeking recommendations for use of include()

2006-06-14 Thread Dave M G
Jochem, ::index.php Wouldn't strip_tags() eliminate the tags that make this possible? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upgrade to PHP5 on Fedora Core

2006-06-14 Thread Dave M G
a smooth upgrade to PHP 5? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple class declaration returns error

2006-06-15 Thread Dave M G
PHP List, Okay, I've upgraded to php 5 on my home machine, and I'm still getting some syntax errors. Parse error: syntax error, unexpected T_NEW in /home/dave/web_sites/thinkingworks.com/web/database.class on line 5 This is the code producing the error: class database { pub

Re: [PHP] Simple class declaration returns error [SOLVED]

2006-06-16 Thread Dave M G
it like this: $data = database::getDB()->getData($arg1, arg2); Thank you for your time and advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Equivelant to mysql_fetch_row for normal array

2006-06-22 Thread Dave M G
Thank you for any advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Equivelant to mysql_fetch_row for normal array

2006-06-22 Thread Dave M G
] . ""; echo "val[resource] = " . $val[resource] . ""; } What I'm getting back doesn't make sense. I can't go all the way into my code, but $val[type] should be a string value containing the words "Article" or "Text". But i

Re: [PHP] Equivelant to mysql_fetch_row for normal array

2006-06-23 Thread Dave M G
t;All In One: PHP, MySQL and Apache". foreach($elements as $e){ while(list($key, $value) = each($e)){ echo "key = " . $key . ""; echo "value = " . $value . ""; } } But it still doesn't work. It says: Warning: Variable passed to each() i

[PHP] Kill Magic Quotes

2008-08-07 Thread Dave M G
blic static function restoreSlashes($string) { // Check if "Magic Quotes" is turned on. if (get_magic_quotes_gpc()) { // Add escape slashes. return addslashes($string); } // Return a string that has escape slashes. return $string; } Any advice much appreciated. -- Da

Re: [PHP] Kill Magic Quotes

2008-08-07 Thread Dave M G
eason for the restoreSlashes function to exist. If you ever think you need it, you're wrong. I guess that makes sense. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Kill Magic Quotes [SOLVED]

2008-08-07 Thread Dave M G
hp_value magic_quotes_gpc off php_flag magic_quotes_gpc off Right now I'm using php_value, so I'll stick with that. This seems to have solved my magic quotes woes. Thank you Richard, Chris, Roger, Viraj, and the PHP list for responding. -- Dave M G -- PHP General Mailing List (http://www.php.ne

[PHP] Forward slashes and header requests

2008-08-20 Thread Dave M G
27;t figure out why this: click here ... does not work with this: $userRequest = trim($_SERVER['REQUEST_URI'], "/"); header ("Location: /$userRequest"); Any suggestions or help would be greatly appreciated. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forward slashes and header requests

2008-08-21 Thread Dave M G
r the suggestion, though. Anyone have any other ideas? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mozilla user agent escapes detection

2008-09-01 Thread Dave M G
illa would be different. Any suggestions? Is there something about my code right in front of my face that I'm not seeing? Any suggestions would be greatly appreciated. Thanks. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mozilla user agent escapes detection

2008-09-02 Thread Dave M G
that does that? Or a good recommendation? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can the URL be controlled for more user-friendly readability?

2005-12-23 Thread Dave M G
rformer data if someone typed the name directly into the URL. Obviously, I'm still a bit of a beginner with PHP. I may have approached this issue from the wrong starting point, so please let me know if I'm missing something fundamental. Thank you for any advice you may ha

Re: [PHP] Re: Can the URL be controlled for more user-friendly readability? [SOLVED]

2005-12-26 Thread Dave M G
more questions. I appreciate you taking the time to offer advice. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Which is faster, a MySQL access, or a set of PHP variables?

2005-12-30 Thread Dave M G
eason why I've never seen it done this way. Opinions would be much appreciated. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Which is faster, a MySQL access, or a set of PHP variables?

2006-01-02 Thread Dave M G
st of variables from the database once a day with a cron job. I appreciate all the help people have given to let me understand the issue. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread Dave M G
distort it so it's only legible to humans, nor how to correlate the image with a number that a user inputs into a form field. Any advice would be much appreciated. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Graphically displayed number to confirm user is a human [SOLVED]

2006-01-04 Thread Dave M G
Thank you all for pointing me in the right direction. I was extremely unlikely to come across the term "CAPTCHA" by starting with the search terms I was using. I'm really glad I asked here. Your time taken to answer my query is much appreciated. -- Da

[PHP] phpinfo returns a permission error

2006-02-13 Thread Dave M G
I created a phpinfo.php file, put in the following code: ... and then accessed it through FireFox at localhost. To my surprise, I got the following error message: Warning: Unknown(/home/dave/web_sites/phpinfo.php): failed to open stream: Permission denied in Unknown on line 0 Warning

Re: [PHP] phpinfo returns a permission error

2006-02-14 Thread Dave M G
So, what does this say: $umask It says: 0022 and this: $ ls -l /home/dave/web_sites/phpinfo.php It says: -rw--- 1 dave dave 20 2006-02-13 22:45 /home/dave/web_sites/phpinfo.php and are you using the browser to view the file via a server (e.g., the browser address bar says "

[PHP] \Z characters

2002-12-21 Thread Dave J. Hala Jr.
om lhpl_side WHERE PVLN ="\Z"; from the mysql command prompt it works properly. (returns a 172 rows) I realize that I need to do an update to change the value in field. However, right now I just need to get a query that works to the db. Anyone got any ideas? :) Dave -- "...U

Re: [PHP] Re: \Z characters

2002-12-22 Thread Dave J. Hala Jr.
This field contains ONLY the \Z. Thanks for the suggestion but it generates the following error message: Parse error: parse error, unexpected '\"' in On Sun, 2002-12-22 at 04:49, Mattia wrote: > > "Dave J. Hala Jr." <[EMAIL PROTECTED]> ha scritto nel

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Dave Restall - System Administrator
-oganise your SQL statement so it only returns the required data ?. "select * from table where StudentID = $StudentID"; if (mysql_num_rows() == 1) do this; else do that; Vic 20's were for wimps ;-) TTFN Dave mail/php/2003

[PHP] Is there an RTFM for 'use strict' ?

2003-06-23 Thread Dave Restall - System Administrator
way, I can't find a reference to anything in the manual that will force PHP to strictly check variable names etc. to see if they are declared before use and if not throw up an error. Can somebody tell me which M to FR ? Regards, Dave mail/php/2003-06-23.tx

[PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
#x27;t know what changed, but it only happens with certain variables on certain posts. Anyone else seen this type of behavior? :) Dave -- "...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and the Ugly)" OSIS Dave J. Hala Jr. 641.485.1606 -- PHP General Mailing List (ht

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
first one then > that is what you will get when you post or get the form. > > if you want a blank one then do > > > and that should not pass anything in the post or get... > > > > On Mon, 2002-11-18 at 17:30, Dave J. Hala Jr. wrote: > > I'm running p

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
menu.php";>Liheap Processing Menu https://122.192.204.199/main.php";>Main Menu https://122.192.204.199/logout.php";>Logout What does the entire form look like? > > > > On Mon, 2002-11-18 at 17:43, Dave J. Hala Jr. wrot

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
quot;; On Mon, 2002-11-18 at 04:55, BigDog wrote: > but where is the form that you created... > > That was i can see what you have set up inside of the form tag... > > > On Mon, 2002-11-18 at 17:51, Dave J. Hala Jr. wrote: > > SQN: 4SQN=4 SQN: 4

<    5   6   7   8   9   10   11   >