LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-09-2016, 06:58 PM   #1
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 18

Rep: Reputation: Disabled
php "file" command not working after update


I hate updates. I just updated my home server running debian. There were 200+ updates. Now a php "file" command is no longer working. The script does work on another server. Command is basically:

$array=file("https://some.server.com/file.csv");

It returns nothing. No errors, no nothing. I don't know if this is more likely apache or ssl or php. I am hoping somebody has had the same problem and found a solution. I am leaning toward a change in how http headers are sent.

At this point I am looking for someone who has had and solved this exact problem. Questions will not be answered. Please do not leave a reply unless you have had this problem or absolutely know what is going on.

Thanks.
 
Old 04-10-2016, 02:39 PM   #2
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 18

Original Poster
Rep: Reputation: Disabled
using curl as temporary workaround

it would be nice to know why it changed but curl seems to work. i'm not sure that is a solution though.
 
Old 04-10-2016, 02:55 PM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
php.net is often a good place to search for explanations.

The function "file" reads from URLs when fopen wraooers have been enabled in php.ini

http://php.net/manual/en/filesystem....llow-url-fopen
 
1 members found this post helpful.
Old 04-10-2016, 03:21 PM   #4
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 18

Original Poster
Rep: Reputation: Disabled
wow

is this the best this forum has to offer? another linux master with RTFM written on his forehead? you dont think i know about php.net? are you suggesting the last update process modified my php.ini to disable wrappers by default? ssshhhheeeeeesshhh... RTFP (manual->post)... this is why i asked for people with same problem ONLY
 
Old 04-10-2016, 03:29 PM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
your arrogance is impressive
 
1 members found this post helpful.
Old 04-10-2016, 03:40 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Quote:
Originally Posted by linux6 View Post
At this point I am looking for someone who has had and solved this exact problem. Questions will not be answered. Please do not leave a reply unless you have had this problem or absolutely know what is going on...

...is this the best this forum has to offer? another linux master with RTFM written on his forehead? you dont think i know about php.net? are you suggesting the last update process modified my php.ini to disable wrappers by default? ssshhhheeeeeesshhh... RTFP (manual->post)... this is why i asked for people with same problem ONLY
What distro?

What version of distro?

What old php version?

What new php version?

How was the update performed?

Without that minimal information, and more, it is simply not possible for anyone else to know whether their problem is exactly the same as yours or not, so your question is unanswerable on its face.

Please reconsider your aggressive and unhelpful attitude, provide a bit more info, and understand that RTFM is always good advice, not that anyone has suggested that.

So please take a deep breath, calm down, read the LQ Rules and LQ FAQ links in the right sidebar, and here, and restate your question with at least the exactness you demand of others.

Last edited by astrogeek; 04-10-2016 at 03:44 PM.
 
1 members found this post helpful.
Old 04-10-2016, 05:44 PM   #7
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 18

Original Poster
Rep: Reputation: Disabled
wow2

dear sirs:

I am not looking for someone to help guide me through solving this problem... I know exactly how long it would take me to solve this problem: 4 days on the critical path... i can write up a checklist of the process and get the answer within 4 days or less if i'm lucky... but I'm trying to save time hoping someone has this exact problem: I said debian, i said just updated, i said a php file command is the problem, i said it is working on another server... there are probably 100 or more who have experienced this problem in the last month or two but maybe they are not on this board... i want to hear from them... why is that a problem? others need not apply
 
Old 04-10-2016, 06:22 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Ok, bye.
 
Old 04-10-2016, 09:00 PM   #9
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 18

Original Poster
Rep: Reputation: Disabled
wow2

why would anybody bother saying "ok bye"... dont people realize every post beyond zero replies makes it harder? here is the most productive format for a forum: problem/solution,problem/solution... all the stuff in between is garbage... the forum should allow the thread owner to delete all the garbage...sorry if it hurts anybody's feelings....aaarrrrggghhh... 120+ views and I found my own workaround... i hope it helps someone else
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php file command not working after server update linux6 Linux - Newbie 1 04-10-2016 09:16 AM
[SOLVED] Errors executing shell script: "command not found" and "no such file or directory" eko000 Linux - Newbie 1 01-14-2011 07:54 AM
"file" command not working properly for UTF8 files mcasuman Linux - Newbie 5 11-03-2009 01:16 AM
Command "mail" returns "panic: temporary file seek" kenneho Linux - Software 5 12-23-2008 03:27 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration