Re: [PHP] mysterious include problem

2009-12-10 Thread Jochem Maas
Ashley Sheridan schreef: On Tue, 2009-12-08 at 17:32 +0100, Jochem Maas wrote: Hi Allen, gonna be a bit ruthless with you :). 1. your not filtering your input (your open to include being hacked) 2. your not validating or error checking (e.g. does the include file exist??) 3. keeping

Re: [PHP] mysterious include problem

2009-12-10 Thread Kim Emax
LinuxManMikeC wrote on 2009-12-07 22:48: Instead of hard coding cases you can validate and constrain the input with a regex. Much more flexible when adding content. I would also add code to make sure the file exists, otherwise fall through to the default. In huge sites with a lot of include

Re: [PHP] mysterious include problem

2009-12-10 Thread Kim Madsen
LinuxManMikeC wrote on 2009-12-07 22:48: Instead of hard coding cases you can validate and constrain the input with a regex. Much more flexible when adding content. I would also add code to make sure the file exists, otherwise fall through to the default. In huge sites with a lot of

Re: [PHP] mysterious include problem

2009-12-08 Thread Jochem Maas
Hi Allen, gonna be a bit ruthless with you :). 1. your not filtering your input (your open to include being hacked) 2. your not validating or error checking (e.g. does the include file exist??) 3. keeping large numbers of content pages with numerical filenames is a maintenance nightmare and

Re: [PHP] mysterious include problem

2009-12-08 Thread Ashley Sheridan
On Tue, 2009-12-08 at 17:32 +0100, Jochem Maas wrote: Hi Allen, gonna be a bit ruthless with you :). 1. your not filtering your input (your open to include being hacked) 2. your not validating or error checking (e.g. does the include file exist??) 3. keeping large numbers of content

[PHP] mysterious include problem

2009-12-07 Thread Allen McCabe
I have been using includes for my content for a while now with no problems. Suddenly it has stopped working, and it may or may not be from some changes I made in my code structure. I use default.php for most or all of my pages within a given directory, changing the content via page numbers in the

Re: [PHP] mysterious include problem

2009-12-07 Thread Kim Madsen
Hi Allen Allen McCabe wrote on 2009-12-07 21:03: I have been using includes for my content for a while now with no problems. Suddenly it has stopped working, and it may or may not be from some changes I made in my code structure. I use default.php for most or all of my pages within a given

Re: [PHP] mysterious include problem

2009-12-07 Thread Ashley Sheridan
On Mon, 2009-12-07 at 21:14 +0100, Kim Madsen wrote: Hi Allen Allen McCabe wrote on 2009-12-07 21:03: I have been using includes for my content for a while now with no problems. Suddenly it has stopped working, and it may or may not be from some changes I made in my code structure.

Re: [PHP] mysterious include problem

2009-12-07 Thread LinuxManMikeC
Instead of hard coding cases you can validate and constrain the input with a regex. Much more flexible when adding content. I would also add code to make sure the file exists, otherwise fall through to the default. On Mon, Dec 7, 2009 at 1:14 PM, Kim Madsen php@emax.dk wrote: Hi Allen

Re: [PHP] mysterious f character appearing. Why??

2009-07-10 Thread kranthi
I faced the same problem many times. The reason turned out to be an additional character outside /td tags. HTML formating software like Dreamweaver, HTML Tidy, Notepad++ will be helpful in these cases. Above all use HTML Validatior extension for firefox. Any ways this question has got nothing to

[PHP] mysterious f character appearing. Why??

2009-07-09 Thread Govinda
The atmosphere is weird now so you all may think I am out there. . but this is a sincere question- (and not due to dumb oversight of my HTML code) I have a mysterious f character (Yes, just the letter f ) appearing in my HTML between these two seemingly benign HTMl tags: My source file

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Phpster
On Jul 9, 2009, at 5:50 PM, Govinda govinda.webdnat...@gmail.com wrote: The atmosphere is weird now so you all may think I am out there. . but this is a sincere question- (and not due to dumb oversight of my HTML code) I have a mysterious f character (Yes, just the letter f )

RE: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread HallMarc Websites
-Original Message- From: Govinda [mailto:govinda.webdnat...@gmail.com] Sent: Thursday, July 09, 2009 5:51 PM To: PHP-General List Subject: [PHP] mysterious f character appearing. Why?? The atmosphere is weird now so you all may think I am out there. . but this is a sincere

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Eric Wood
Govinda wrote: I have a mysterious f character (Yes, just the letter f ) appearing in my HTML between these two seemingly benign HTMl tags: On same computer, do a view source in other browsers too - IE, Chrome, Safari etc. F still there? There could be a FireFox addon module

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Shawn McKenzie
Phpster wrote: On Jul 9, 2009, at 5:50 PM, Govinda govinda.webdnat...@gmail.com wrote: The atmosphere is weird now so you all may think I am out there. . but this is a sincere question- (and not due to dumb oversight of my HTML code) I have a mysterious f character (Yes, just the

RE: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread HallMarc Websites
-Original Message- From: Eric Wood [mailto:e...@interplas.com] Sent: Thursday, July 09, 2009 9:17 PM To: php-general@lists.php.net Subject: Re: [PHP] mysterious f character appearing. Why?? Govinda wrote: I have a mysterious f character (Yes, just the letter f

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Govinda
problem was solved, it was just a simple typo and sometimes all it takes is a fresh pair of eyes. The confusing part comes in when it prints to the screen and your mind looks in that area of the code and finds nothing because it actually somewhere else and because it is outside of a tag the

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Michael A. Peters
HallMarc Websites wrote: problem was solved, it was just a simple typo and sometimes all it takes is a fresh pair of eyes. The confusing part comes in when it prints to the screen and your mind looks in that area of the code and finds nothing LOL - I wanted to display generated XML on

[PHP] Mysterious gap

2003-01-30 Thread Lightfirst
Hello All, I am hoping someone can help me with a problem I am having with PHP (3.23.49) and mysql (4). My objective is to fill a table with data from a database. My problem is that I cannot figure out why I get a gap (noticeable with about 20 records) at the top of the page (just below the text

Re: [PHP] Mysterious gap

2003-01-30 Thread Jason Wong
On Friday 31 January 2003 02:00, Lightfirst wrote: Hello All, I am hoping someone can help me with a problem I am having with PHP (3.23.49) and mysql (4). My objective is to fill a table with data from a database. My problem is that I cannot figure out why I get a gap (noticeable with about

[PHP] Mysterious /

2002-01-18 Thread Gaylen Fraley
For some (yet) unknown reason, when some text is being entered into a form, a mysterious / is being appended. It's almost as if some XML functionality is bein added w/o my intention. For example, I might echo br and the html source will show br /. I might have an end anchor tag /a that comes

RE: [PHP] Mysterious /

2002-01-18 Thread James Cox
- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 10:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Mysterious / For some (yet) unknown reason, when some text is being entered into a form, a mysterious / is being appended. It's almost as if some XML

Re: [PHP] Mysterious /

2002-01-18 Thread Gaylen Fraley
: Friday, January 18, 2002 10:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Mysterious / For some (yet) unknown reason, when some text is being entered into a form, a mysterious / is being appended. It's almost as if some XML functionality is bein added w/o my intention. For example,

Re: [PHP] Mysterious /

2002-01-18 Thread Gaylen Fraley
st/23IVGHQ61RJGO/ -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 10:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Mysterious / For some (yet) unknown reason, when some text is being entered into a form, a mysterious / i

[PHP] Mysterious MYSQL Error..

2001-07-22 Thread Greg Schnippel
I'm stumped on this one.. I set up PHP 4.04/Apache/Mysql 3.23 on my Windows 98 box for development purpouses. Its been working flawlessly for 2-3 years now (using the same configuration files, etc). However, as of 3 days ago, i can't get it to execute a simple select * from table query. Here's

RE: [PHP] Mysterious MYSQL Error..

2001-07-22 Thread Greg Schnippel
to explain it to a colleague. I should 'pretend' to send a letter to php-general next time :p -greg -Original Message- From: Greg Schnippel [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 22, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Mysterious MYSQL Error.. I'm stumped on this one.. I

Re: [PHP] Mysterious MYSQL Error..

2001-07-22 Thread Steve Edberg
Do you know if you've even made a valid database connection? Try echoing $this-database as well. If that is null, you haven't connected to your database; perhaps the username, password and or permissions were changed, so that you're unable to connect from your PHP program. - steve