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

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
ugh if anyone believes that it could be more efficient or something, of course I'm all ears. Thank you for all 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] 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

RE: [PHP] RE:[PHP] Client Computer Registration

2006-10-03 Thread Kristen G. Thorson
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 03, 2006 2:10 PM > To: Wesley Acheson > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] RE:[PHP] Client Computer Registration > > On Tue, October 3, 2006 2:33 am, Wesley Ache

[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] Disable all caching

2006-10-10 Thread Kristen G. Thorson
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 10, 2006 12:55 PM > To: php-general@lists.php.net > Subject: RE: [PHP] Disable all caching > > > I have a php (ver 4.x) script that is being cached. > > I have placed: > > > > but the page is still

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"

RE: [PHP] PHP causing seg fault

2006-10-12 Thread Kristen G. Thorson
> -Original Message- > From: Glenn Richmond [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 12, 2006 4:45 AM > To: php-general@lists.php.net > Subject: [PHP] PHP causing seg fault > > Hi guys, > > I'm attempting to run a SugarCRM variant that uses SOAP to access > information from the

[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

RE: [PHP] backing up a database

2006-11-29 Thread Kristen G. Thorson
> -Original Message- > From: James Tu [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 28, 2006 5:03 PM > To: PHP General List > Subject: Re: [PHP] backing up a database > > Thanks Brad: > > I'm just surprised that when people mention mysqldump, most of the > time they don't talk about

RE: [PHP] php and DB2

2006-12-08 Thread Kristen G. Thorson
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, December 08, 2006 3:39 PM > To: php-general@lists.php.net > Subject: [PHP] php and DB2 > > hi to all, > my IT director got an idea to replace mysql with DB2. more > "power/flexibility/stability/securit

RE: [PHP] How php works?

2006-12-19 Thread Kristen G. Thorson
> -Original Message- > From: Larry Garfield [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 19, 2006 10:26 AM > To: php-general@lists.php.net > Subject: Re: [PHP] How php works? > > On Tuesday 19 December 2006 02:12, Robert Cummings wrote: > > > > Is that why the PHP License is non-GP

RE: [PHP] String is not zero-terminated

2006-04-10 Thread Kristen G. Thorson
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 4:44 PM To: php-general@lists.php.net Subject: [PHP] String is not zero-terminated In order to attempt to figure out why my script segfaults PHP (5.0.4, 5.1.2, 5.1.3RC3) I've been compiling --wit

Re: [PHP] hosting reselling

2006-05-05 Thread Marc G. Fournier
) To unsubscribe, visit: http://www.php.net/unsub.php Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: [EMAIL PROTECTED] Yahoo!: yscrappy ICQ: 7615664 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] PHP & JavaScript

2006-05-19 Thread Kristen G. Thorson
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Friday, May 19, 2006 10:34 AM > To: php-general@lists.php.net > Subject: [PHP] PHP & JavaScript > > > Suddenly JavaScript doesn't care for the object and throws an error > (take the brackets out and it works

[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
within those tags. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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
ects this week, so I know I am missing a very basic thing. If anyone can nudge me in the right direction, that would be fantastic. Thank you for your 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 [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

RE: [PHP] Re: File Download Headers

2006-06-16 Thread Kristen G. Thorson
> -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 9:11 AM > To: tedd > Cc: [EMAIL PROTECTED]; Barry; php-general@lists.php.net > Subject: Re: [PHP] Re: File Download Headers > > tedd wrote: > > Barry says you can use these three: > > > > he

RE: [PHP] Stream download problem

2006-06-21 Thread Kristen G. Thorson
> -Original Message- > From: Michael Satterwhite [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 20, 2006 8:32 PM > To: PHP Users > Subject: [PHP] Stream download problem > > I have a site that generates a file to be streamed down. The relevant > code is: >

RE: [PHP] Stream download problem

2006-06-21 Thread Kristen G. Thorson
> -Original Message- > From: Michael Satterwhite [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 21, 2006 12:11 PM > To: Kristen G. Thorson > Subject: Re: [PHP] Stream download problem > > Kristen G. Thorson wrote: > >>-Original Message- > &g

[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
2 e[type] = T e[resource] = T e[type] = T e[resource] = T e[type] = 1 e[resource] = 1 e[type] = 1 e[resource] = 1 e[type] = 1 e[resource] = 1 e[type] = 1 e[resource] = 1 I could cycle through the other variants I've tried, but the bottom line remains the same - it ain't workin

[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

Fw: [PHP] unexpected include parse error

2004-01-26 Thread Renan G. Galang
I might be incorrect, but i think there's supposed to be a semicolon at the line: $dir="./" it should read as $dir="./"; cheers! =) > - Original Message - > From: "Paul Furman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, January 27, 2004 1:10 PM > Subject: Re

Re: [PHP] help with mysql

2004-01-26 Thread Renan G. Galang
could you send the line 16 the parser was pointing out? (B (BIt could be you have the wrong number of parameters for the call to (Bmysql_connect(), or your PHP wasn't compiled with mysql functionality (Benabled. (This is doubtful since mysql functionality is ON by default). (B (B (B- Ori

Re: [PHP] PHP EDITORS

2004-01-27 Thread Renan G. Galang
If you are already using eclipse, you could try the a PHP plugin, which can be downloaded free from www.xored.com It's got the basics: outlining, highlighting and error detection and some more. I guess the only thing this has over the other full featured editors out there is that you don't have to

Re: [PHP] naming a directory after a user-submitted string

2004-01-28 Thread David T-G
er in order to get rid of bad chars or to make something unique in the event of a collision. Thus, a simple if ( preg_match('/[EMAIL PROTECTED]/',$string) || file_exists($string) ) { puke() ; } could work nicely. HTH & HAND :-D -- David T-G * There is

php-general@lists.php.net

2004-01-28 Thread David T-G
consult the Great Programmer. Something is coming to me ... I see a function ... It's ... It's ... It's in the manual! [HINT: look for 'special character' since you clearly didn't look for '&', which would do about as well.] HTH & HAND :-D -- David T

php-general@lists.php.net

2004-01-28 Thread David T-G
because I completely fail to see how this will satisfy her requirement. Does this somehow do something other than what it obviously appears to do? % % -- % Stuart HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and n

Re: [PHP] Size of Arrays

2004-01-29 Thread David T-G
reaks. My bet is that you'l exhaust RAM and swap before you break php, especially if you actually store something -- like, say, 32 bytes of useless string output -- in each entry. % % Thanks a lot, % % Sandro HTH & HAND & Good luck :-D -- David T-G * There

Re: [PHP] Create a zip archive from a folder

2004-01-29 Thread David T-G
http://phpconcepts.net/ but that seems a little sicko at the moment, so you might try sourceforge instead. If you google for pclzip you'll get lots of links. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not su

Re: [PHP] Size of Arrays

2004-01-29 Thread David T-G
Stuart, et al -- ...and then Stuart said... % % David T-G wrote: % >2) Five minutes with a test script would tell you, and I bet google could ... % >all) it breaks. My bet is that you'l exhaust RAM and swap before you % >break php, especially if you actually store something --

[PHP] Question about dates

2004-02-02 Thread Renan G. Galang
I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys.

[PHP] boolean search class

2004-02-05 Thread David T-G
g SQL code off to a real searcher.] TIA & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.or

Re: [PHP] boolean search class

2004-02-05 Thread David T-G
Daniel, et al -- ...and then [EMAIL PROTECTED] said... % % Mysql 4 MATCH AGAINST Thanks for the reply, but how will this help me when a database is not involved? HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not

Re: [PHP] boolean search class

2004-02-06 Thread David T-G
Ray, et al -- ...and then Ray Hunter said... % % On Thu, 2004-02-05 at 20:46, David T-G wrote: % > % > I'm implementing a search and would like to move beyond accepting ... % > are not in a database, so I won't be passing SQL code off to a real % > searcher.] % % How ar

Re: [PHP] boolean search class

2004-02-06 Thread David T-G
Ray, et al -- ...and then Ray Hunter said... % % On Fri, 2004-02-06 at 06:47, David T-G wrote: % > Very, very simple stuff. The list of directories and files is held in an %... % That is simple enough, however, I dont see much flexibility in it with Just between you and me, I tend to ag

Re: [PHP] thumbnail script

2004-02-06 Thread David T-G
heir image tags to output in the page. HTH & HAND & Good luck! :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health&quo

Re: [PHP] recursive direcotry listing

2004-02-06 Thread David T-G
gt; ./f2 [2] => ./d1/f3 ) ) and $mixed looks like Array ( [0] => f1 [1] => f2 [d1] => Array ( [0] => f3 ) ) % % Thanks % % Binay HTH & HAND :-D -- David T-G * There is too much animal courage in (pla

Re: [PHP] FreeBSD to Linux -- PHP Issues

2004-02-06 Thread David T-G
to and I don't get anything else in any case :-) % % Thanks, % % % Daryl Meese HTH & HAND & Happy hunting :-) :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL

Re: [PHP] thumbnail script

2004-02-06 Thread David T-G
for jpg stuff, will try that out. That's why we're all here :-) % % > HTH & HAND & Good luck! % % Sure did, and the same to you dude. Thanks :-) % % Cheers, % -Ryan % HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED

Re: [PHP] writing a manual

2004-02-10 Thread David T-G
ct only to not get paid for any of it. % % Thanks % -Tim HTH & HAND & please let us know what you find and how you go :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED]

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread David T-G
x27;foreign keys' in your relational database. This ensures that, should you change the country ID in the country table, all of the clubs for that country will be updated. You'll still have to enter the country ID, though, whether manually, through a pulldown, or by matching te

Re: [PHP] A dumb question

2004-02-12 Thread David T-G
ge the left var you change the value for the right var, too. $a = 1 ; $b = $a ; $c = &$a ; $b++ ; $c-- ; print "a = $a ; b = $b ; c = $c ;\n" ; // a = 0 ; b = 2 ; c = 0 3) You can't, as far as I know, assign-by-reference a function, so your code should

<    5   6   7   8   9   10   11   12   >