mahirharoon
Dec 15 2007, 02:27 PM
edit:sorry for the mistake it is php not html and its with not whith my code checking script= CODE <?php $file = '$CHECK';
if (file_exists($file)) { echo "The file $filename exists"; } else { echo "The file $filename does not exist"; } ?> my question is how to check the file whith html example:on a page a text box is provided and a button the user writes a file name (or website) the user clicks on the submit button then it checks and show it (with the code above) i got the code CODE <?php $filename=$_POST['check'];
if (file_exists($filename)) { echo "The file $filename exists"; } else { echo "The file $filename does not exist"; } ?>
<form method="post"> <input name="check"> <input type="submit" /> </form> but...... the problem is , it will first show $_POST['check'] or Notice: Undefined index: check in path\to\filecheck.php on line 2 The file does not exist
Reply
galexcd
Dec 18 2007, 02:40 AM
You can tell php to hide errors such as this if you put an at symbol (@) before the function returning the error. i.e. CODE if(@file_exists($filename)){
Reply
mahirharoon
Dec 22 2007, 06:59 AM
thanks alex the programmer i used it for my project CODE <?php $filename=$_POST['check'];
if (@file_exists($filename)) { echo "The file $filename exists"; } else { echo "The file $filename does not exist , and the non existing file is created";
fopen("$filename", "a+"); }
?>
<form method="post"> <input name="check"> <input type="submit" /> </form> now it checks whether it i there and makes one if not existing
Reply
Similar Topics
Keywords : file, checker, check, file, whith, html, html,
- Naming Web Page Files
Which way you like- MyPage.html or my-page.html or my_page.html (7)
Internal File Transfer
(5) Is there some kind of file transfer utility that can be used within the intranet for file
transfers..? We have so much need for such an utility here in my work place.... The problem with
what we are using is very big... we are basically using skype in my workplace and the problem with
that is it happens with the internet... So whenever i transfer files via skype it occupies the
bandwidth.... which is very bad since we have a limited bandwidth connection. So... What i require
is a utility where the transfer happens within the network and not via the internet. So... if ....
Add Flashing Inbox To Invisionfree Forum
Html code for invsiionfree!! (0) Do you find it annoying when you are on your invisionfree forum, and you get a new message, and it
ends up taking you 5 minutes to notice? This code makes the inbox link flash bold red saying how
many messages you have. In version 1 the word inbox stays the same, and doesnt change at all (for
Example this is flashing: Inbox (2) In version 2 (the second code) the word inbox changes to
messages (constantly, so that if you have none, it says messages (0) instead of inbox (0). It still
flashes Red Put the following In the Header and Body Section (Admin Cp>>>Skinning ....
Free Software For File Recovery
RECUVA (3) Hi all, I was loking for a software to recover my lost files and I found this /biggrin.gif"
style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> And the best part is ,
its free Recuva - File Recovery Recuva (pronounced "recover") is a freeware Windows utility to
restore files that have been accidentally deleted from your computer. This includes files emptied
from the Recycle bin as well as images and other files that have been deleted by user error from
digital camera memory cards or MP3 players. It will even bring back files that have been d....
Where Is The Bookmarks File Stored With Ff2?
(4) My bookmarks are critical and lengthy. I'd like to save them to a flash drive, since my laptop
is ancient and it's been acting up lately. I went into the FireFox folder, but couldn't find
the bookmarks info anywhere. there's a bookmarks.html page, but it doesn't contain the
actual bookmarks. Where does FF2 store the bookmarks? Or is there an easier way to copy and paste
the bookmarks to another file? /huh.gif" style="vertical-align:middle" emoid=":huh:" border="0"
alt="huh.gif" /> 2 poor 4 a sig ....
Motorola Rizr Z3
the new Cell phone ( Check out ) (2) Motorola RIZR Z3 Cell Phone
After the RAZR comes RIZR (for riser). The all-new Motorola RIZR Z3 was showcased in
Cape Town, South Africa. Also known as the Capri, the Z3 is available in a slider form-factor
boasting quad-band GSM and EDGE support.
The phone has Bluetooth capability, and a nice addition is the A2DP (advanced
audio distribution profile) thrown in - you can conveniently use a wireless stereo headset w....
Flash Media Into Html/css Website
does anyone know how to import a flash into a webpage with transparenc (1) Hi I need some help , Im designing this website for school studies However, I made a flash drop down
menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
For example my flash is width= 800, and height = 200 but my div box on my html page for my
navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
animations i want to insert it into my navigation div box but i want to set the flash background to
transparent so that when the drop down menu comes down it overlaps the text or whateva....
Learn Html, Css, C And C++ Online For Free
Wanna learn to write programs and/or make websites? You can do it fre (12) Have you ever used an application or played a game and thought, "If you could only..." or "If I knew
how I would add..." but didn't know where to start? I did and decided to do a lil research. I
came across a site with great tutorials. There are many ranging from beginner all the way to
advanced. After each tutorial there is a test to practice what you just learned. I dunno if I am
allowed to post the url to these sites here due to spam filters but I will say that if you search
for "c programming" in any major search engine it should be the first link (after the....
Html Form!
Using MySQL?! (4) Hey, I need your help again! I need some good working tutorial how I can update my SQL through
HTML form. I did use some tutorials online found with the help of google; but they do not work
properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
should be based on security and more things. It has to be done in proper way.......
Has Anybody Tried Ms Expression Web Html Editor
It's much better than Frontpage (3) I was desperate to finish a site I was designing after I lost my hard drive and my software. I
downloaded Expression Web from the Microsoft site for a 3 month free trial, and guess what? It's
surprisingly good! Nothing like that crappy frontpage, it's standards compliant and very
good for writing CSS. Haven't heard anybody mention the program and wondering if anybody else
has tried it out. It's free to try from the MS site.....
Question Regarding File Transfer!
FILE TRANSFER (4) Hi friends, I am looking for a secure and robust file transfer web service. I am handling a sales
force which is stationed at different locations and is frequently moving. They need to upload there
activity reports frequently to our servers. So I am looking for an easy to use secure and robust
file transfer web service which can be used by my sales force for their needs. Thanks & Warm
Regards. ....
Where Is There A Good Site To Learn Web Html?
(18) im a noob when it comes to web html to design web sites, can some one tell me where to find a good
website that has good tutorials on how to use web html?....
Html Code Tester. Online Script
(15) Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
Current script: CODE <?php //Save this as something like htmltest.php function
CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
input $html_safe=str_replace("<?php"," ",$html_unsafe);
//Starts security measures $html_safe=str_replace("?>","
",$html_sa....
Help! Php Or Just Html?
i want to start buliding my website. which is better, php or basic htm (13) i try to start this topic in webhost category but it seems like i cant. i dont have the permission
so i just post my topic here. im sorry mod.. i want to build a website which contains: - Links to
videos - Informations - photos - flash i don't know if i should use php or just HTML. guys,
what are your opinions..??....
2nd Method Of Disabling Safe Mode On Winxp
Check this one out too (2) Another method to disable safe mode is to remove the registry key: Backup the key before deleting
it, of course. This method does not remove the boot menu. However, it disables Windows' ability
to actually boot to safe mode. Attempting to boot to safe mode will cause a quick Blue Screen of
Death (BSOD) and restart.....
Learn Html Quick And Easy
HTML, javascript, and CSS (14) well eversince i got interested in web desighn i've looked for tutorials but they where not that
helpfull and uderstanderble but there where two web sites that i liked 1. my favorite one was
htmldog it had tutorials on HTML, CSS, and a little bit of javascript. they where very
comprehenseve . and i read through all of them, understoode them, in about less than a week. also
has full references for HTML, and CSS tags. 2.since html dog did not provide realy good javascript
tutorial i looked to w3school for that while it wasnt very understandable too me, maybe it....
Read File (.txt) On Another Website Using Jsp?
(3) in my jsp program,i need to read a file (.txt) on another website,how can i do this? thanks a lot.
shorten title ....
A Trap17 How-to Guide For Beginners
Something for those who can't get enough of the Trap17 Readme file (12) I am not entirely sure if this the right place to post about this, but here goes anyway... For
those who find themselves slightly (or considerably more than slightly) clueless about where to get
started after getting a hosting account, here is an user guide that might potentially help you
out. I wrote it out of three hours, so forgive me if it's clumsy, but I'm hoping that a few
people here may find it useful. Feedback is greatly appreciated /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I'm planning to build on
a FAQ....
How To Open A .daa File
(37) Hi there, How do i have to open a file with extension .daa Somebody told me to copy it on cd and to
run it from cd rom but i got the same problems. What dp i need to do to ppen the file? Thanks....
Linux Question: Amarok And File Permissions
please help, i can't get it to work with all music files (4) hey, i use to use Linux DC++ to download music from some hubs and i usually download it to
/home/downloads/ and then i move the files to my collection on another HDD a sata one, on
sda3/music/ but when i move the files using krushader root mode they become posessed by root and
amarok can't play them displaying a locker on the file's icon. I tried to " chmod 774 music
", where music is my music directory, as root in konsole but no luck. What should i do to make a
whole directory accessible from amarok as user?....
How To Put Music In The Background Of A Powerpoint Presentation
without having the viewer download the music file (9) Well, i made this power poit presentation in memory of my grandfather as many of you kno, passed
away exactly a week ago....and i am trying to get this song to play as background music..and i did,
but there is one humongus problem... in order for the people who are viewing it to hear the
background music they have to download the music file as well ad the powerpoint presentation, which
on my DSL conntection taked almost 2 minutes, and i could just imagine what it will be for a dial-up
user (my grandma who wants to see it)... Some people may say, its impossible, but i kn....
Simple C File Handling In Action
Small code snipet which covers most of basic file handling and navigat (3) Yesterday I suddenly got a lot of work. The same work we try to push off, yes you are right all
formalities to get the code review incorporated and update all source code files with code review
headers. Imagine if you need to open 300 files one by one and append code review headers at the
end. Since most files are reviewed in groups of 20 to 30 files. We require one header to be placed
in say 20 to 30 files. To simplify I went back to my class assignment days and wrote this small c
utility to open all files passed on command line and open attach code review headers an....
Adding Rows & Columns In Html Table Using Javascript
(1) I'm trying to create a website with a form that collects some user information to store in MySQL
database. However, I've a problem when I want to dynamically add new rows and columns in the
HTML table so that the user can add more information in the dynamically added textboxes. Here's
what I have: CODE <table border="0" width="90%"
align="center" id="itemsTable"> <tr>
<td width="20%"> Quantity
<....
Transfer File Of Any Size Using Winsock Control
Winsock Help (5) This tutorial shows how to transfer file of any size using winsock control. - Open VB; - Select
standard exe; - Press Ctrl + t to show the add component window; - Select winsock control and
microsoft common dialog; - Add one winsock control in the project; - Name it winsock1; - If you want
to add chat then add another winsock and name it winsock2; - Insert another winsock object if you
want to add chat also; - Add a microsoft common dialog box; - Name it cd; - We will use this
winsock1 object to transfer the file and winsock2 for chat; ------------- The basic idea : ....
Import From Excel File Into Mysql Database
(7) Has anyone tried using the excel import function that comes with phpmyadmin
http://www.phpmyadmin.net/home_page/ - it does not require any additional plug-ins or scripts and
is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish
to import the data to , there is a link on the bottom left corner which says "insert data from a
text file into the table" - although it says text file it still can be used to import an excel file.
When you click on this link you will be taken to a page where you will be asked for the file name
(the....
My File Manager Is Working
(2) I tried to change the html for my site in file manager but it just has the default page - the one
when you activate your site. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
How do i change files?....
Html Tag For A Code Box
Where You Put HTML Code For Your Users (4) Well I have seen it all over the web. Lots of sites have code boxes so you can promote them or they
show you a code you can use for javascript and stuff like that. I would like to know the HTML code
for those boxes. Thanks in advance for your help.....
The Best And Free Website/html Editors + Text Editors
A good collection! Check it out. (48) Here they are, the best html editors. Just pick one because they are all free, or choose one of the
ones i most recommend. WebCore Designer 2005 http://www.mpsoftware.dk/webcoredesigner.php
HTMLGate Free http://www.mpsoftware.dk/htmlgate.php Ma Page Web http://www.aldweb.com
MAX's HTML Beauty++ 2004 http://www.htmlbeauty.com WebWorks http://w1.213.telia.com
PageBuilder HTML Editor http://www.tafweb.com Website Mentor http://www.dark-street.com
Cascade DTP http://www.price-media.demon.co.uk BPlainPro http://home5.swipnet.se/~w-52253/hy....
Does Anyone Know Where I Can Get A Free Html Maker
(13) I was curious. There is a program clled dreamweaver which does what I want but it cost to much.....
where did you learn html from?
(84) HI, i am intresting in knowing where you began learning html of what inspired you to start learning
html. which programs did you use or which progs dyu use?....
Looking for file, checker, check, file, whith, html, html,
|
|
Searching Video's for file, checker, check, file, whith, html, html,
|
advertisement
|
|