The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> fwrite wont make a new file if it contains a question mark?
allenph
post Mar 3 2012, 06:22 AM
Post #1


Novice
**

Group: Members
Posts: 21
Joined: 15-February 12
Member No.: 16,477



So there is no need to post code because I know for a fact it works. It is weird I can do an fwrite of my new .php page and it will create a new file for me with !./,\ whatever puncuation you wan't...other than question marks. Kind of strange! anyone know why this is happening?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Ephraim F. Moya
post Mar 3 2012, 06:31 PM
Post #2


Advanced Member
****

Group: Members
Posts: 167
Joined: 2-September 07
From: New Mexico
Member No.: 3,702



QUOTE(allenph @ Mar 3 2012, 04:22 AM) *

So there is no need to post code because I know for a fact it works. It is weird I can do an fwrite of my new .php page and it will create a new file for me with !./,\ whatever puncuation you wan't...other than question marks. Kind of strange! anyone know why this is happening?


Unix allows almost any char in a file name. A couple have to be quoted. See http://www.cyberciti.biz/faq/linuxunix-rul...irectory-names/

Special characters (except _ and .) are considered VERY BAD FORM in a file or folder name.

Randomly making files with strange characters in the name is not a good way to test which work and don't work.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
allenph   fwrite wont make a new file if it contains a question mark?   Mar 3 2012, 06:22 AM
Brian Chandler   No idea. Try the php manual http://jp2.php.net/ma...   Mar 3 2012, 07:07 AM
allenph   Ya doesn't say anything... code... <?php s...   Mar 3 2012, 07:30 AM
Brian Chandler   Where is this question mark? What have you done ab...   Mar 3 2012, 12:23 PM
allenph   Where is this question mark? What have you done a...   Mar 4 2012, 12:11 AM
Ephraim F. Moya   So there is no need to post code because I know f...   Mar 3 2012, 06:31 PM
Brian Chandler   Unix allows almost any char in a file name. A cou...   Mar 4 2012, 02:07 AM
Ephraim F. Moya   The link I provided says that the only two charact...   Mar 4 2012, 08:49 AM
Brian Chandler   The link I provided says that the only two charac...   Mar 5 2012, 01:00 AM
Ephraim F. Moya   The link I provided says that the only two chara...   Mar 6 2012, 01:53 PM
Brian Chandler   [quote name='Brian Chandler' post='66242' date='M...   Mar 6 2012, 02:42 PM
Ephraim F. Moya   It seems to me that you're confusing strings a...   Mar 6 2012, 02:50 PM
Brian Chandler   Good, but what I mean is "show your working...   Mar 4 2012, 02:00 AM
Christian J   This really makes no sense. You open a file wit...   Mar 4 2012, 09:18 AM
Brian Chandler   Can you give a manual reference that explains th...   Mar 6 2012, 03:26 PM
Ephraim F. Moya   Can you give a manual reference that explains t...   Mar 6 2012, 08:05 PM
Brian Chandler   [quote name='Brian Chandler' post='66286' date='M...   Mar 7 2012, 10:53 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 11:17 PM