473,388 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

whats wrong with F(Open)

190 100+
Expand|Select|Wrap|Line Numbers
  1.  
  2. <?php
  3.   echo $OverrideDuplicates = $_GET["OverrideDuplicates"];
  4.   echo $importfile  =$_GET["importfile"];
  5.   echo $useserver = $_GET["useserver"];
  6.   echo $serverfile= $_GET["serverfile"];
  7.   echo $Headers = $_GET["Headers"];
  8.   echo $FieldSeparator =$_GET["FieldSeparator"];
  9.   echo $FieldEnclosure=$_GET["FieldEnclosure"];
  10.  
  11.  
  12.  
  13.  
  14.  
  15.    echo $fh = fopen($importfile,"r");
  16.  
  17.  

can any one tell me why fopen() is not working here ? i want to fetcha csv file name from one input php form to another php file which will open it and read it
but .... i am able to get name of file to the neext page but its not opening for further process...

kindly help asap
Nov 27 '08 #1
5 1100
code green
1,726 Expert 1GB
is not working here is not very helpful.
What errors are you getting?
Nov 27 '08 #2
Shalini Bhalla
190 100+
i am not getting any error , but i am trapping $handler so its showing , it can't open
Nov 27 '08 #3
code green
1,726 Expert 1GB
PHP issues a level E_WARNING when fopen fails.
So again, what is the error?
Nov 27 '08 #4
Markus
6,050 Expert 4TB
Are you getting a 'Resource id #3' ?

You should be.. you're trying to print a resource handle.

Read fread().
Nov 27 '08 #5
Shalini Bhalla
190 100+
i am using fgetcsv() and not fread() .......any ways i have changed my way of doing , now i am not taking it dynamically but i have uploaded it in the server and then using csv file..........
Dec 1 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: cricketunes | last post by:
Hi folks, this one's had me stumped! $conn=ora_logon("cricketunes@pickles","j8j3kf"); if ($conn != TRUE) die("Unable to connect to oracle, exiting...\n"); $cursor = ora_open($conn); if...
4
by: asdf | last post by:
Hello! Can someone tell me whats wrong with this piece of code: Option Compare Database Option Explicit Sub retrieve() Dim rst As ADODB.Recordset Dim i As Integer
1
by: Matthew Wilson | last post by:
I need to write a function crc(msg, len) that gets a char array of length len and then calculates the crc32 for the code. I don't understand what's going wrong in the code I have. It goes...
1
by: aa | last post by:
When I am reading from local disk (d:), everithing is OK, but then I am reading from map disk I am geting the this error. Whats wrong. Thanks Server Error in '/Extra' Application....
3
by: mahsa | last post by:
Hi do you know whats wrong with this code? <asp:HyperLink id="HLink_Help" runat="server" NavigateUrl='<%# "javascript:window.open('comments.aspx?id=1,width=500,height=600, scrollBars=yes');"...
3
by: Vaidas Gudas | last post by:
I has web project on virtual pc, maked with framework 2.0. there I was used the method role.roleexists("admin") and everything was worked good. but when i replace this project on my local machine,...
4
by: lothar.behrens | last post by:
Hi, my own stream implementation writes correctly, but it does not read all back. Why ? Thanks, Lothar Here is the output: 'Testdata1: ', 0
7
by: Mike Barnard | last post by:
It's a simple test... VERY SIMPLE. But... In an external stlyesheet some attributes don't show. With the same styles cut and pasted to the test internally it works as expected. Anyone tell...
10
by: joestevens232 | last post by:
Ok everything is good...I read in all my grades into each of the different arrays that they need to go in. Now Im trying to write a function that takes the grades and computes the average on a...
5
by: hiqu | last post by:
This issue is driving me nuts and not able to figure out whats wrong. I've this code in my firefox extension. Firefox always hangs and reports the script is busy. if I introduce a break...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.