473,513 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Double back slahses from nowhere?

2 New Member
Expand|Select|Wrap|Line Numbers
  1. #!C:\Perl\bin\perl.exe -w
  2. use CGI;
  3. use Net::FTP;
  4. my $q = new CGI;
  5. #my $thefile = $q->param('filename');
  6. $thefile = "name.ts";
  7. my $dl = chr(92);
  8. $localdir = join ($dl, "S:", "Free");
  9. $filename = join ($dl, $localdir, $thefile);
  10. $ftpobj = Net::FTP -> new ("192.168.0.2");
  11. $ftpobj -> login("cms","cm5u53r");
  12. $ftpobj -> binary;
  13. $ftpobj -> put ($filename);
  14. $ftpobj -> quit;
  15. #unlink $filename;
  16. print "Content-type: text/html\n\n";
  17. print "\n<html><head>";
  18. print "<title>Uploading Complete</title>";
  19. print "</head>";
  20. print "<body><h2>Uploading Complete</h2><br><br>filename: [$filename] thefile: [$thefile]<br><br>";
  21. print "</body></html>";
the error:
Expand|Select|Wrap|Line Numbers
  1. [Tue Aug 05 10:47:08 2008] [error] [client 172.16.71.53] Cannot open Local file S:\\Free\\name.ts: No such file or directory, referer: http://172.16.71.53/Encore.html
  2. [Tue Aug 05 10:47:08 2008] [error] [client 172.16.71.53]  at C:/CGI-bin/Encore.pl line 13, referer: http://172.16.71.53/Encore.html

Where are the double backslashes coming from? This is killing me!!!!
Aug 5 '08 #1
3 1182
KevinADC
4,059 Recognized Expert Specialist
hehehe.... you sure jumped forums quickly.
Aug 5 '08 #2
MaxDes
2 New Member
yeah I noticed you were on here as the highest poster and I was like crap he's gonna think I'm a an @ss. haha

It's just something I really need to figure out and very very soon. The software team here at work is also stumped so I am just reachin out everywhere!
Aug 5 '08 #3
Ritusriv
7 New Member
Instead of trying ...
$localdir = join ($dl, "S:", "Free");
$filename = join ($dl, $localdir, $thefile);

you should have written :

$filename = join ($dl, "S:","Free",$thefile);
Aug 6 '08 #4

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

Similar topics

2
2741
by: Randell D. | last post by:
I've solved this problem once before but for the life of me these past couple of hours have got me nowhere... I hope someone can help... I have one form split in two... so the user can switch...
14
1975
by: Lyle Fairfield | last post by:
d1 and d2 are numbers we can store as doubles (8 bytes). d1 > 0 d2 > 0 d1 < d2 Now s1 and s2 are strings of length 8 bytes. (We can ignore unicode here). Into s1 and s2 we copy the 8 bytes...
29
3953
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
6
1926
by: tshad | last post by:
I am trying to set up a Javascript popup box that has a way of sending back a message to asp.net on how to process some data. At the moment I am just doing: ...
20
5089
by: Charles Law | last post by:
This is actually a follow on from yesterday's post about masking mouse clicks in a user control. The solution I have implemented - from Herfried - places a transparent window over the entire...
16
5849
by: Charles Law | last post by:
I have a string similar to the following: " MyString 40 "Hello world" all " It contains white space that may be spaces or tabs, or a combination, and I want to produce an array...
67
9816
by: lcw1964 | last post by:
This may be in the category of bush-league rudimentary, but I am quite perplexed on this and diligent Googling has not provided me with a clear straight answer--perhaps I don't know how to ask the...
11
3680
by: Ole Nielsby | last post by:
First, sorry if this is off-topic, not strictly being a C++ issue. I could not find a ng on numerics or serialization and I figure this ng is the closest I can get. Now the question: I want...
4
2137
by: PJ6 | last post by:
Is there a way to prevent the double-click event on an element from causing IE6 to select everything? Cancelling the event doesn't work. Paul
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.