Export YellowPages Data to CSV, 100% free

Status
Not open for further replies.
badnewsday and anyone else who is getting permission errors

Change line 81 of index.php to

Code:
    file_put_contents("output/".$time.".csv.", $csv);

Then create a directory called "output" and ensure it is writable from PHP (chmod to 0777 on most shared hosts.)

Regarding 0777, it's almost a non-issue. On a dedicated server, you know what's on the server. On a VPS, same thing. Yes, something you uploaded can write to files on your own server. On a shared plan, any legitimate shared host is going to have some sort of open_basedir protection on to stop other people from writing their own files to your 0777 directory.
 


badnewsday and anyone else who is getting permission errors

Change line 81 of index.php to

Code:
    file_put_contents("output/".$time.".csv.", $csv);
Then create a directory called "output" and ensure it is writable from PHP (chmod to 0777 on most shared hosts.)

Regarding 0777, it's almost a non-issue. On a dedicated server, you know what's on the server. On a VPS, same thing. Yes, something you uploaded can write to files on your own server. On a shared plan, any legitimate shared host is going to have some sort of open_basedir protection on to stop other people from writing their own files to your 0777 directory.

Maybe, but at the same time changing permissions to 777 is retarded at best. I've had peoples accounts/boxes compromised because of this in the past - not trying to scare anyone but it is a true risk (I've learned it the hard way).

I'd not recommend anyone run this from a shared hosting account and hopefully on your other system you have root access.
 
badnewsday and anyone else who is getting permission errors

Change line 81 of index.php to

Code:
    file_put_contents("output/".$time.".csv.", $csv);

Then create a directory called "output" and ensure it is writable from PHP (chmod to 0777 on most shared hosts.)

Regarding 0777, it's almost a non-issue. On a dedicated server, you know what's on the server. On a VPS, same thing. Yes, something you uploaded can write to files on your own server. On a shared plan, any legitimate shared host is going to have some sort of open_basedir protection on to stop other people from writing their own files to your 0777 directory.

Tried this, is creating empty .csv files. FML
 
Maybe, but at the same time changing permissions to 777 is retarded at best. I've had peoples accounts/boxes compromised because of this in the past - not trying to scare anyone but it is a true risk (I've learned it the hard way).

I'd not recommend anyone run this from a shared hosting account and hopefully on your other system you have root access.

I assume because of 0777 and something else, not just 0777?
 
This is the biggest geek-fest in the world, but at least every time someone makes some 0777 remark my thread gets sent to the top of the list.

Tomorrow I'll have a version of my scraper out that doesn't require 0777. It'll just output the CSV in your browser. End of discussion.

But if you use my non-0777 version I'm going to require to stop using WordPress, vBulletin, IPB, and Joomla, since they all require 0777...
 
Still haven't got this to work.
Still looking for someone to give me access to an install - if only for a day even!?
 
Status
Not open for further replies.