Go Back   Web Server Hosting Forum by BODHost > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-07, 08:00
BOD Member
 
Join Date: Jan 2007
Posts: 23
Default PHP cmdline issues - Win + Cygwin

Hmph!!

I've taken to using PHP for general scripting, and it's been working pretty well, but now something's happened & I can't quite figure out what's going on.

Here's the crux: If I run a script from anywhere but the directoy it resides in, I get: "Could not open input file: <fully qualified filename>."

I'm running PHP 4.3.11, cygwin latest (just upgraded, again, to check), from a tcsh shell, script starts with:

#! /usr/local/bin/php

Which is where my php is installed. It runs great from the script-local directory, won't run from anywhere else.

Anybody have a clue on this?

Thanx,
Reply With Quote
  #2 (permalink)  
Old 01-22-07, 08:04
BOD Member
 
Join Date: Jan 2007
Posts: 32
Default

When you enter the fully qualified filename, are you using forward slashes or backward slashes?

i.e. are you using DOS syntax or Unix syntax?

Try the other one.
Reply With Quote
  #3 (permalink)  
Old 01-22-07, 08:10
BOD Member
 
Join Date: Jan 2007
Posts: 23
Default

Answer:

Build PHP under cygwin.

I was lazy and was trying to use the windows pre-built php.

BZZZT!

The windows binaries aren't aware of cygwin directory specs & don't know how to handle it. Building everything under cygwin fixes it.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:22.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.