You are here: Re: Match a filename from a text file « All PHP « IT news, forums, messages
Re: Match a filename from a text file

Posted by robert on 09/28/39 11:46

| <pre>
| <code>file_exists($path . $filename);</code>
| </pre>
| which returns false. What really has me befuddled, though, is that if
| I put in the line
| <pre>
| <code>file_exists($path . "OpACoeffofPowervsSpeed.wmf");</code>
| </pre>
| it returns true. I can't figure out, for the life of me, why it is
| doing this. If anyone can help, I would be very much appreciative. If
| you need to see the rest of the script, or the originating text file, I
| can get those to you, but there's not really a whole lot else to see.

use this:

echo '<pre>' . $path . $filename . '</pre>';

that's far more helpful than file_exists...it will show *why* your dynamic
path is failing...we *already* know that the file doesn't live where you're
telling php it does.

anyway, i'd rather see your code that parses out the file name.

hth,

me

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация