Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
abrir archivo y descargar no funciona en ubuntu

Completé mi código en Windows xampp para descargar el archivo de texto (u otro archivo) y funciona bien, pero cuando cargo el código en el servidor de ubuntu no funciona, ¿pueden ayudarme, por favor?

 $file = "$username.rsc"; $txt = fopen($file, "w") or die("Unable to open file!"); fwrite($txt, "{ anything } "); fclose($txt); header('Content-Description: File Transfer'); header('Content-Disposition: attachment; filename='.basename($file)); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); ob_clean(); flush(); header('Content-Length: ' . filesize($file)); header("Content-Type: text/plain"); readfile($file);

¡la respuesta en ubuntu es No se puede abrir el archivo!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Esto suena como un problema de permisos. Asegúrese de que su usuario y grupo de Apache tengan acceso al archivo y al directorio que está tratando de modificar.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!