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 inc
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 f
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??)
>>
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 conten
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 inci
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 wrote:
> Hi Allen
>
> Allen McCabe wr
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 structu
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 dire
I faced the same problem many times. The reason turned out to be an
additional character outside 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 do wi
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 scree
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
> -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 myst
Phpster wrote:
>
>
> On Jul 9, 2009, at 5:50 PM, Govinda 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 " )
>>
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
injec
> -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 si
On Jul 9, 2009, at 5:50 PM, Govinda
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 " )
appearing in my HTML between t
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 abou
Solved a part of this. The nl2br (which I am using) converts "\n" to XHTML
compliancy . I'm still trying to replicate the other.
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
"Gaylen Fraley" <[EMAIL PROTECT
Those are real examples. The /> gets appended when I use preg_replace
and/or str_replace, as far as I can determine. And it's not every time.
I'll try to replicate it. I've been working with code to strip it out and I
need to get back to point zero. If I can get the code back, I will post it.
can you give an example?
eg, is XHTML correct, however /> isn't correct at all :)
Thanks,
James Cox
--
James Cox :: [EMAIL PROTECTED]
Please CC me when replying to my messages on lists.
Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/
> -Original Message-
>
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
Never mind this one.. :) I figured out that it
was because I'm using mysql_query, but declaring
the database which means that the mysql_query
command will fail and of course won't return a
mysql_error code. Geeez...
Another classic case of figuring out the problem
in the process of trying to exp
22 matches
Mail list logo