Re: [php-list] Indenting code

2008-10-13 Thread Bob
languages. It will also search replace using regexs for 100+ pages if ever you needed to. The free utility called phpCodeBeautifier is useful, which you can add to your right click. This is handy for re-formatting old code or if you're using some downloaded code. Regards, Bob E.

Re: [php-list] Log files

2008-10-02 Thread Bob
? I'm assuming these problems wouldn't occur with a DB. Regards, Bob E. Please remember to write your response BELOW the previous text. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe

Re: [php-list] Log files

2008-10-02 Thread Bob
- Original Message - From: James Keeline --- On Thu, 10/2/08, Bob [EMAIL PROTECTED] wrote: Would it be suitable to use a mysql database for an error log? I'm assuming these problems wouldn't occur with a DB. Regards, Bob E. From the very beginning of this thread I thought

Re: [php-list] Log files

2008-10-01 Thread Bob
- Original Message - From: [EMAIL PROTECTED] Hi Bob, Too late lol, I had already installed php 4.4.4 onto Apache 2.0.63 I have a tested and working script below. I didn't know if you wanted oldest first or newest first. It is not hard to reverse it. flock has issues

[php-list] Log files

2008-09-30 Thread Bob
) for the first time. Is it needed? I've tried flock() before and it seemed to screw things up. Clicking the refresh button repeatedly shows it works, but is it any good, or should I start again? Thanks, Bob E. Please remember to write your response BELOW

Re: [php-list] Log files

2008-09-30 Thread Bob
- Original Message - From: [EMAIL PROTECTED] Sent: Wednesday, October 01, 2008 1:58 AM Subject: Re: [php-list] Log files - Original Message - From: Bob snip $logdata = file_get_contents($logfile); $nline = strpos($logdata, \n, 500); $newdata = substr($logdata, $nline

Re: [php-list] Rolling Road Log

2008-09-27 Thread Bob
- Original Message - From: [EMAIL PROTECTED] Hi Bob, Most of what I post is hand written code, often bugs and all! But that last script for php 4.x.x was straight off the php.net web site. I really don't spend any time with php 4.x.x any more. I looked to find one of my

Re: [php-list] Rolling Road Log

2008-09-26 Thread Bob
- Original Message - From: [EMAIL PROTECTED] Hi Bob, Below is the additional code for php version 4.x.x compatibility. The $_SERVER[REMOTE_PORT] was just a curiosity thing. Thanks, Rob. file_put_contnets for php 5.x.x ?php if ( !function_exists('file_put_contents

Re: [php-list] Rolling Road Log

2008-09-25 Thread Bob
- Original Message - From: [EMAIL PROTECTED] - Original Message - From: Bob I used to use the following to log specific errors: snip But, this meant that sometimes there would only be a few errors shown, if the file had reached it's 2 limit and deleted itself. So

Re: [php-list] Rolling Road Log

2008-09-25 Thread Bob
that I'll keep as reference. Thanks, Bob E.

[php-list] Rolling Road Log

2008-09-24 Thread Bob
it? Regards, Bob E. Please remember to write your response BELOW the previous text. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED

Re: [php-list] Rolling Road Log

2008-09-24 Thread Bob
- Original Message - From: Patrick Bierans Bob schrieb: I used to use the following to log specific errors: ?php $log = 'rejected'; if (filesize($log) 2) unlink($log); $data = date('d-m-Y H:i:s'). [$fault]\r\n; error_log($data,3,$log); ? But, this meant that sometimes

Re: [php-list] Assigning Variables from preg_match arrays

2008-09-24 Thread Bob
- Original Message - From: James Keeline What do all of those numbers mean in tire sizes anyways? Hi James, You don't drive or you have a company car? The bigger the number, the more they cost. Sorry James, I couldn't resist it. No offence meant. Best regards, Bob E.

[php-list] O/T automated [EMAIL PROTECTED]

2008-09-17 Thread Bob
your message../h2 /body /html 30 min delay, then goto a non-existant site which will 404. This hiccups their automated list and I think they've finally given up on filling my error log with 100's per day. Hope this helps someone. Regards, Bob E. Please

[php-list] Error 403 redirects

2008-08-17 Thread Bob
will never see the error. My thinking is to slow or snag the automated systems. Thanks, Bob E. Please remember to write your response BELOW the previous text. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED

[php-list] Matching links in a message

2008-08-15 Thread Bob
Hi, I'm trying to match 2 or more links. ?php $raw = visit http://site.com and http://www.site.com for gifts!; if (preg_match(/(http:){2,}/i, $raw)) echo SPAM; else echo CLEAR; ? The above doesn't work. Where am I going wrong? Thanks, Bob E. Please

Re: [php-list] Matching links in a message

2008-08-15 Thread Bob
- Original Message - From: James Keeline --- Bob [EMAIL PROTECTED] wrote: Hi, I'm trying to match 2 or more links. ?php $raw = visit http://site.com and http://www.site.com for gifts!; if (preg_match(/(http:){2,}/i, $raw)) echo SPAM; else echo CLEAR; ? The above doesn't

[php-list] O/T multiple question marks after the request?

2008-05-01 Thread Bob
one two or three question marks at the very end. What I don't understand is what are the 3 question marks for? If I knew what it was, I'd have a better understanding of any additional security needed. Thanks, Bob E. Please remember to write your response

Re: [php-list] Strange problem : Cannot display images

2008-04-15 Thread Bob
doing this. It isn't a 100% effective, and I now use other methods to stop it. If the site owner has a daily visitors log, they will know where the hotlinking is coming from, so expect some complaints. Bob E.

Re: [php-list] Comparing values

2008-04-07 Thread Bob
are what you would expect to receive. If there's PHP and a variable involved, someone will try and do something they shouldn't with it, you can guarantee on that :-) Regards, Bob.

[php-list] Comparing values

2008-04-06 Thread Bob
foreach($colr as $item) { if ('blue' == $item) // Do something } Obviously, example 1 is more readable. But I seem to remember reading that one is more beneficial, but dismissed it at the time. Thanks, Bob. Please remember to write your response BELOW

Re: [php-list] Comparing values

2008-04-06 Thread Bob
- Original Message - From: James Keeline --- Bob [EMAIL PROTECTED] wrote: Something I've always been meaning to ask. If going thro a large amount of data, does it matter whether I compare the value to the array item, or visa-versa? $colr = array('red', 'blue', 'green', etc

Re: [php-list] Re: Image Watermarking with PHP

2008-03-23 Thread Bob
($img); to get the mime type and $attr is really handy. It's all in the downloadable PHP manual. As mentioned previously, you'd need to check if the image exists. Bob.

[php-list] Stopping automated spam

2008-03-13 Thread Bob
without the correct session variables. Hopefully, this may help someone, or maybe improve it? Can't remember were I got random session trick from, but just to say I didn't think it up. Regards, Bob. Please remember to write your response BELOW the previous

Re: [php-list] Using sessions in include files

2008-03-11 Thread Bob
- Original Message - From: James Keeline --- Bob [EMAIL PROTECTED] wrote: Should a session variable work, if used in an include file? i.e. I set session_start(); in the first line of the main page. In the include file, I check if the session variable is set. if (isset($_SESSION

Re: [php-list] Using sessions in include files

2008-03-11 Thread Bob
out again. Regards, Bob.

Re: [php-list] Format date in left join

2008-03-04 Thread Bob
- Original Message - From: William Piper Bob wrote: snipped some message here The 1st DATE_FORMAT() is working fine. My trouble is when I try to add the 2nd DATE_FORMAT(): No matter where I add it, the query fails. Tried it in different places etc. $sql = SELECT *, DATE_FORMAT

Re: [php-list] Format date in left join

2008-03-04 Thread Bob
- Original Message - From: [EMAIL PROTECTED] Bob wrote: snipped some message here You need to group your selects together, also it is a good idea to name your tables in the join to keep from ambiguity issues though not mandatory. See below: SELECT *, DATE_FORMAT(h.msg_id,'%W %D

Re: [php-list] File - List Etiquette

2008-02-25 Thread Bob
, then answer below the quote. Jeopardy-style quoting (answer before the question) is confusing and difficult to read. You can even intersperse your answers between lines, but do so sparingly Hi Richard, I guess you didn't read the List Etiquette then big grin? Regards, Bob. p.s. I'm

Re: [php-list] Using full-text searching

2008-01-31 Thread Bob
- Original Message - From: ahsan khairi - Original Message From: Bob Hi, I'm using mysql 4.1.21 Have just started using full-text searching on my home grown message board, and it's working great. I was previously using LIKE, but this seems so superior. My question

[php-list] Using full-text searching

2008-01-30 Thread Bob
Hi, I'm using mysql 4.1.21 Have just started using full-text searching on my home grown message board, and it's working great. I was previously using LIKE, but this seems so superior. My question is: what does it actually do when I add FULLTEXT to a column? Just curious. Thanks, Bob

Re: [php-list] Re: Calulate 2nd Sun in Nov

2007-11-21 Thread Bob
images etc. Thanks, Bob.

[php-list] Calulate 2nd Sun in Nov

2007-11-20 Thread Bob
. Speed is not too important, as it's only called one. Any advice on how to tackle this? Thanks, Bob. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page

[php-list] Regex for valid link

2007-11-07 Thread Bob
may need escaping, and the dash is awkward, but I just can't seem to get it correct. Thanks, Bob. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page

Re: [php-list] Regex for valid link

2007-11-07 Thread Bob
Hi Rob, - Original Message - From: [EMAIL PROTECTED] Hello Bob, You didn't mention what you want to do with this url. There are security issues that are diffferent on different platforms, different configurations and different versions of PHP. What platform and version of PHP

Re: [php-list] Regex for valid link

2007-11-07 Thread Bob
Hi Rob, - Original Message - From: [EMAIL PROTECTED] Hi Bob, It is much faster to do this sort of thing without REGEX - if (strlen(strspn(strtolower($addr), abcdefghijklmnopqrstuvwxyz0123456789/_.-)) != strlen($addr)) { // exit; string not valid } You've shown me something

Re: [php-list] Problem with image+MySql+php

2007-10-04 Thread Bob
- Original Message - From: raquibul islam Thanks bob it work.but still 1 problem. $query = SELECT image, image_type FROM $tbl_name WHERE image_id=.$_GE[i]; this line dosent work. so i put $query = SELECT image, image_type FROM $tbl_name WHERE image_id=X; line where X=1,2,3,4

Re: [php-list] Problem with image+MySql+php

2007-10-03 Thread Bob
exists (with $total items); } mysql_close(); ? Regards, Bob.

Re: [php-list] Problem with image+MySql+php

2007-10-02 Thread Bob
that it is an image that is being uploaded, and not something nasty. I don't know your level of experience in php, so these questions may be irrelevate. I'm still learning myself, and probably will be for some time yet grin. Regards, Bob.

Re: [php-list] Problem with image+MySql+php

2007-10-02 Thread Bob
Hi Raquibul, - Original Message - From: raquibul islam Bob here is the 1st file i change. html body ?php $dbhost='localhost'; $dbuser='root'; $dbpass='123456'; $dbname='image'; $tbl_name='images'; $conn=mysql_connect($dbhost,$dbuser,$dbpass) or die ('Error in Connecting

Re: [php-list] Problem with image+MySql+php

2007-10-02 Thread Bob
Hi Raquibul, - Original Message - From: raquibul islam Hey bob thanks for ur help But still stuck in it and HTML file name show.htm !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional/ /EN http://www.w3. org/TR/xhtml1/ DTD/xhtml1- transitional. dtd html xmlns=http

Re: [php-list] Problem with image+MySql+php

2007-10-01 Thread Bob
-8859-1 / /head body divimg src=image.php?i=1 alt=Image description //div /body /html Hope this helps you? Regards, Bob.

Re: [php-list] permutations

2007-09-11 Thread Bob
dianne phillip Not sure if this is what you need? It will select 6 unique names, so you could maybe modify it to suit. I used this in something similar. ?php $names = array(bob, david, dianne, harry, john, harry, henry, mary, phillip, phyllis); $total = 6; // Create array to store results

[php-list] Plain text email

2007-08-04 Thread Bob
obviously be different. This would cover just the name, subject and message. I don't need newlines etc. Thanks, Bob Exton. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED

Re: [php-list] Re: Proofing contact forms

2007-04-17 Thread Bob
confirm that this is correct? Regards, Bob Exton. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo

Re: [php-list] Re: Proofing contact forms

2007-04-14 Thread Bob
/editor/ Feel free for anyone to try and break it, as it will help me make it more secure. A non-clickable link is allowed www.mysite.com though. It saves the message to a DB, then emails me that a message has been left. Regards, Bob Exton. Community email addresses: Post message: [EMAIL

Re: [php-list] Re: Proofing contact forms

2007-04-13 Thread Bob
Recognition, which I wouldn't think too many have? I've just put one on, but mainly just to learn how to do it. Hope you find a solution. Regards, Bob Exton. Community email addresses: Post message: [EMAIL PROTECTED] Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner

Re: [php-list] Re: Proofing contact forms

2007-04-12 Thread Bob
could use something similar to suit your needs. As someone said earlier, you wouldn't think it was worth their while targeting one person, but they do seem to. Regards, Bob Exton. Community email addresses: Post message: [EMAIL PROTECTED] Subscribe:[EMAIL PROTECTED] Unsubscribe

Re: [php-list] Writing to a .htpasswd file

2007-04-04 Thread Bob
that the password is not good enough. Have you created a password file, which would be located above root? If these passwords are generated online, you would need a secure connection. Depends on what you're protecting. I'm presuming you know what to put in the .htaccess file. Regards, Bob Exton

[php-list] Paypal and ukhost4u.com

2007-03-22 Thread Bob
just lost my money. UkHost4U have taken my money with nothing in return and got away with it. Well, that's where Paypal make most of their money from, not the buyer. It was only 12.90 UK pounds for a months trial, but it shows how this company operates. Sorry for my rant! Disgusted, Bob Exton

Re: [php-list] Recommend a good hosting service

2007-03-03 Thread Bob
account. They are refusing to even reply to any emails I've sent to them and I have now initiated a Paypal Dispute with them. The've got my money and I have nothing. Companies like this think they are a law unto themselves. Regards, Bob Exton. - Original Message - From: Mark Mckee Hi

Re: [php-list] Recommend a good hosting service

2007-03-03 Thread Bob
think my judgement is already clouded concerning www.UKHost4u.com. Regards, Bob Exton. - Original Message - From: Mark Mckee [EMAIL PROTECTED] To: php-list@yahoogroups.com Sent: Saturday, March 03, 2007 2:46 PM Subject: Re: [php-list] Recommend a good hosting service Hi Bob Sorry

Re: Re: [php-list] list test

2007-01-29 Thread Bob
Hi Patrick, - Original Message - From: Patrick Bierans Bob wrote: Hi Patrick, You helped me a lot in my early stages of learning php. Regards, Bob Exton. Ah, Hi Bob - I remember. ;) That's because now I am working as a pro and nearly have no more time. ;) But I still read

Re: [php-list] list test

2007-01-27 Thread Bob
Hi Patrick, - Original Message - From: Patrick Bierans works Not often we hear from you lately. You're just too verbose :-) You helped me a lot in my early stages of learning php. Regards, Bob Exton. Community email addresses: Post message: php-list@yahoogroups.com Subscribe

Re: [php-list] Email query

2006-12-24 Thread Bob
Hi James, - Original Message - From: James Keeline --- Bob [EMAIL PROTECTED] wrote: Hi all, Is there any way that the following php line can be used to send an email to anyone other than [EMAIL PROTECTED] ? ?php @mail('[EMAIL PROTECTED]', $subject, $message, From: $name $email

[php-list] Email query

2006-12-23 Thread Bob
that this line could be used to send spam to anyone! I was under the impression that as '[EMAIL PROTECTED]' wasn't a variable and it's in single quotes, that it couldn't be altered? Thanks, Bob Exton. [Non-text portions of this message have been removed]

Re: [php-list] MYSQL - Select XX Months

2006-11-25 Thread Bob
to select XX months. Hi Gordon, Couldn't you just use DESC LIMIT 2 or where limit is a variable. Regards, Bob Exton.

[php-list] Re: Learn php

2006-10-24 Thread Bob Baker
here's a good place to start http://www.w3schools.com/php/default.asp http://www.w3schools.com/php/default.asp [Non-text portions of this message have been removed] Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL

RE: [php-list] Event Calendar

2006-09-26 Thread Bob Boisvert
Hi Mark, I just found this doing a Google Search, hope it helps. http://www.zend.com/zend/tut/calendar-ver7f.php Bob -Original Message- From: php-list@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Mckee Sent: 09/26/2006 4:09 PM To: PHP-List Subject: [php-list

Re: [php-list] AOL is blocking form submissinos

2006-09-19 Thread Bob
, and check what the format is. Hope this may help. Regards, Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group

Re: [php-list] similar to a blog post help

2006-09-12 Thread Bob
? Are you wanting to format a full html page, and upload it? Regards, Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com

Re: [php-list] similar to a blog post help

2006-09-11 Thread Bob
file? Regards, Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links * To visit

[php-list] OT links generating errors

2006-09-09 Thread Bob
using rel=nofollow in the link, but this seems to be used to stop visitors leaving links to get higher ranking results, and I don't allow live links. I'm not sure what nofollow would do to my own site. Thanks, Bob E. [Non-text portions of this message have been removed] Community email

Re: [php-list] OT links generating errors

2006-09-09 Thread Bob
when asking this sort of question. Hi James, Thanks very much for your reply. I made an extremely large boob and I'm too embarrassed to say what is was! So it's sorted. It wasn't the ampersand, but I've heeded what you said and corrected that. Thanks again James. Best regards, Bob E

Re: [php-list] Preventing scripted form posts

2006-08-06 Thread Bob
- Original Message - From: Mike Brandonisio Hi Bob, How do you deal with 500 or more Xs with no spaces? Hi Mike, My last regex about this wouldn't have worked. I thought I'd reproduce it just as an exercise. It's really overkill and took it off

Re: [php-list] Preventing scripted form posts

2006-08-05 Thread Bob
- Original Message - From: Mike Brandonisio Hi Bob, How do you deal with 500 or more Xs with no spaces? You could explode the posted message on [space] and do a strlen() on each position in the array? Then test for strlen() greater than 60 characters. If you get a hit do str_replace

Re: [php-list] Preventing scripted form posts

2006-08-04 Thread Bob
is 500 or more Xs with no spaces. The idea is to make your page wider (if they put enough in) to spoil your page layout. Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED

Re: [php-list] Zend Optimizer errors

2006-08-02 Thread Bob
happened before), but then they would have the same version of PHP that I have. I'll contact the company about it. Regards, Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL

Re: [php-list] Empty values in MySql DBs

2006-07-23 Thread Bob
rewrite it. To be on the safe side, I'll use if ($email == $valid) or something similar. Thanks, Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL

Re: [php-list] Empty values in MySql DBs

2006-07-22 Thread Bob
with an empty string to see what it does (just returns an empty string and doesn't cause an error) though I think this method might be frowned on. Regards, Bob E. For anyone learning mysql like myself:- ?php // short test prog for encode/decode require ($_SERVER['DOCUMENT_ROOT'].'/cgi-bin

[php-list] Empty values in MySql DBs

2006-07-21 Thread Bob
any light on why I can't read an empty DB value, or why I can't get default 'no' working? Thanks, Bob E. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/HKFolB/TM

Re: [php-list] Empty values in MySql DBs

2006-07-21 Thread Bob
', it would use the default value specified. So, how do I make it use the default value? I've tried using NULL. Regards, Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED

Re: [php-list] grouping database results in pagination

2006-07-20 Thread Bob Sawyer
Hey, Pete! --- Pete [EMAIL PROTECTED] wrote: so if we are on page 15, 10 11 12 13 14 [15] 16 17 18 19 20 I like that... however, running into some implementation problems. Let me see if I'm getting this right: for ($i = $current-page-5; $i= $current_page+5; $i++) { $next_start = $start +

Re: [php-list] Freelance Work

2006-06-07 Thread Bob Sawyer
Please take this conversation off-list. -Bob --- Ahmad [EMAIL PROTECTED] wrote: Hi! What are your fields of expertise? And what are your terms and conditions? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

RE: [php-list] Looking for help ~ Interested?

2006-06-05 Thread Bob Boisvert
a small fee depending upon the number of subscribers you have to your newsletter. They take care of all subscribe and unsubscribe issues. They also have many templates to choose from for your newsletter or you can make your own. Bob -- No virus found in this outgoing message. Checked by AVG Free

[php-list] Saving a file from one server to another

2006-06-02 Thread Bob Sawyer
. However, it seems that I'm not getting the entire file from the remote server. Am I going about this wrong? Is there a better, easier way (that doesn't involve CURL or any of those other acronyms) to get these images? Thanks, -Bob __ Do You Yahoo

Re: [php-list] Saving a file from one server to another

2006-06-02 Thread Bob Sawyer
I'm half-way there with this, but I need some assistance, please. Disregard --- I found the problem and fixed it. Thanks, _Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

[php-list] Parsing XML, getting all array vals

2006-05-18 Thread Bob Sawyer
12345 and 67890. When I print_r, I get the following: [MULTIPLE_ITEMS] = Array ( [ITEM] = 67890 ) So, what happened to '12345'? How do I get it to also print? Thanks for any assistance! -Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

Re: [php-list] Having a problem with coding from a book

2006-05-03 Thread Bob
('192.168.2.59','root','XX') or die('Unable to connect ' . mysql_error()); Are you running this locally on your computer or on your server? Have you got the info correct to connect:- mysql_connect(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD); Bob E. Community email addresses: Post message: php

Re: [php-list] Having a problem with coding from a book

2006-05-02 Thread Bob
would-be attackers. Though I prefer error_reporting(0); to suppress all error messages (except my own) once the code is fully tested. Bob E. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL

[php-list] Accessing an Oracle CLOB with standard SQL

2006-04-27 Thread Bob Sawyer
.* So my question is a two-parter: 1) Can someone adequately explain the oracle CLOB field type to me (Google was not my friend here), and 2) Assuming the SQL I'm using to access the data in the Oracle db looks like MySQL SQL*, how would I access the CLOB data? Thanks for the assist. -Bob

Re: [php-list] Accessing an Oracle CLOB with standard SQL

2006-04-27 Thread Bob Sawyer
and insert the overflow into the overflow field. Damn Oracle and it's stupid limits! :-) -B --- Bob Sawyer [EMAIL PROTECTED] wrote: (I think the first time I tried this, I sent before I was done... if so, I apologize for the truncated post...) So, I'm not sure that I completely understand

[php-list] Blocking PHP insertion into mail() routines

2006-04-27 Thread Bob Sawyer
way of blocking these insertions? Thanks, Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL

Re: [php-list] Open PHP with Include

2006-04-22 Thread Bob
Hi Brian, If it's not in the same directory as the file you're calling it from, you need to work from the root, but not in the same way as you do with html. ?php include $_SERVER['DOCUMENT_ROOT'].'/Blog/Index.php'; ? Brackets are optional. Bob E. - Original Message - From: Brian E

Re: [php-list] Re: Query similar to .. where column_name contains x

2006-04-06 Thread Bob Sawyer
=$sub AND products.id=categorized_items.item_id AAAHH!!! That would probably do the trick. Thanks for the suggestion. I'll give that a shot tonight. Cheers, -Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: [php-list] Re: Converting title

2006-04-06 Thread Bob
Hi Wretha, That was just a test program. You would need to alter: echo trim($filename)..html; To: $filename = trim($filename)..html; Bob E. - Original Message - From: W. Smith [EMAIL PROTECTED] Hello, I tried both, they both work except now they don't add .html on the end

Re: [php-list] Converting title

2006-04-06 Thread Bob
purposes), without trotting through an array manually. I did notice array_filter(); which sounds good, but didn't understand it :-( Bob E. - Original Message - From: girish umanandan [EMAIL PROTECTED] Use it with a slight change ?php $title = Bob 123 #*%$£! to the Say's

Re: [php-list] Re: Converting title

2006-04-06 Thread Bob
($filename, smallWords); $filename = implode(_, $filename); $filename = trim($filename)..html; echo $filename; ? The downloadable php manual is great, but it takes a lot of wadding through. Bob E. p.s. Girish, you were right about implode(_, $filename); - Original Message - From: W. Smith

Re: [php-list] pre-determined time/date in script

2006-04-05 Thread Bob
it slightly, if you want a default image. Bob E. - Original Message - From: Mark Mckee [EMAIL PROTECTED] I have had a search through google and the usual php sites and forums over the last few days. I am looking for info to make a script that will display a different logo on a pre

Re: [php-list] Re: Request for PHP code adjustment

2006-04-05 Thread Bob
will work. I normally put a space between array items to make them more readable (but don't include them if I post) as they get all mashed up. That's where a colour coded editor is helpful. Bob E. - Original Message - From: W. Smith [EMAIL PROTECTED] $remove = array

Re: [php-list] Re: Request for PHP code adjustment

2006-04-04 Thread Bob
that? Bob E. - Original Message - From: W. Smith [EMAIL PROTECTED] $filename=strtolower($title); $filename=substr(str_replace( ,_,$title),0,20)..html; Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED

[php-list] Query similar to .. where column_name contains x

2006-04-04 Thread Bob Sawyer
COLUMN1 or COLUMN2 contains a number like '21' or '42', in which case the match would occur, but the product would display where it shouldn't. Is there any hope for this query? Thanks, -Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best

[php-list] contains statement in MySQL?

2006-03-26 Thread Bob Sawyer
. I tried the in modifier, but kept getting an SQL error: select * from products where cats = '1' and '2' in subcats Any ideas? Thanks, -Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: [php-list] The Missing Session Variable

2006-03-26 Thread Bob
passing the SID it's recommended to use: ?php echo strip_tags(SID); ? but this wouldn't cure your problem. Bob E. - Original Message - From: new_wave_photo [EMAIL PROTECTED] To: php-list@yahoogroups.com Sent: Sunday, March 26, 2006 6:49 PM Subject: [php-list] The Missing Session Variable

Re: [php-list] contains statement in MySQL?

2006-03-26 Thread Bob Sawyer
--- Bob Sawyer [EMAIL PROTECTED] wrote: first pull all the products whose SUBCAT field contained \n's (since that's the delimiter), use PHP to create an array of the field, and match the link subcat using in_array() ... unless anyone here can think of anything better? Well, again, if anyone

Re: [php-list] contains statement in MySQL?

2006-03-26 Thread Bob Sawyer
--- Bob Sawyer [EMAIL PROTECTED] wrote: Well, again, if anyone can think of anything better, I'm all ears, but for now, it seems that simply using ... LIKE '%$sub%' ... works OK. My main concern about LIKE is that if the linked subcat is 1 and the SUBCAT field contains '13,21' it'll pick

Re: [php-list] Problem with mail function......plz help me...

2006-03-15 Thread Bob Sawyer
Apparently not. In addition, he cross-posted to about a dozen other groups. Bye-Bye, Asif. --- Michael Sullivan [EMAIL PROTECTED] wrote: On Tue, 2006-03-14 at 22:57 -0800, Asif Ali wrote: Note: forwarded message attached. So there was no actual question with this

Re: [php-list] Problem with mail function......plz help me...

2006-03-15 Thread Bob Sawyer
--- James Keeline [EMAIL PROTECTED] wrote: Does the landing page for the group or the welcome message explicitly discourage cross posting? It does now. :-) Good catch. Thanks for reminding me. -Bob __ Do You Yahoo!? Tired of spam? Yahoo

[php-list] Hiding a passed email addr

2006-03-10 Thread Bob
= $addr . 'pal=' . $name . '%40' . $site . '.com'; header(Location: $goto); ? Yep, I know it's pointless (only Paypal members can verify other members) but it ain't for me. If I was a verified Paypal member, I'd create a seperate email address to :blackhole: and let them spam this. Thanks, Bob

[php-list] Deleting an array item

2006-03-06 Thread Bob Sawyer
, and if it does, delete it from the array. if (in_array($bar, $foo)) { // what goes here??? } I've done this before, but for the life of me, I'm drawing a blank now. Help a bruthah out? Thanks, -Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

  1   2   3   >