\hypertarget{get__file_8php}{}\doxysection{/opt/lampp/htdocs/sfcode/backend/get\+\_\+file.php File Reference}
\label{get__file_8php}\index{/opt/lampp/htdocs/sfcode/backend/get\_file.php@{/opt/lampp/htdocs/sfcode/backend/get\_file.php}}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{get__file_8php_ab1d99e9211e0764ab2dcf25497fa40e4}\label{get__file_8php_ab1d99e9211e0764ab2dcf25497fa40e4}} 
{\bfseries \$post\+Data} = file\+\_\+get\+\_\+contents(\char`\"{}php\+://input\char`\"{})
\item 
\mbox{\Hypertarget{get__file_8php_a227a9443cabbe5e23cfc10c4371e09d1}\label{get__file_8php_a227a9443cabbe5e23cfc10c4371e09d1}} 
{\bfseries \$uname} = \$post\+Data\mbox{[}\textquotesingle{}username\textquotesingle{}\mbox{]}
\item 
\mbox{\Hypertarget{get__file_8php_a3f910b7833f09507df883bf8b04d3bdb}\label{get__file_8php_a3f910b7833f09507df883bf8b04d3bdb}} 
{\bfseries \$f\+\_\+path} = \$post\+Data\mbox{[}\textquotesingle{}file\+\_\+path\textquotesingle{}\mbox{]}
\item 
\mbox{\Hypertarget{get__file_8php_a0a4baf0b22973c07685c3981f0d17fc4}\label{get__file_8php_a0a4baf0b22973c07685c3981f0d17fc4}} 
{\bfseries \$path} = \char`\"{}../users/\char`\"{} . \$uname . \char`\"{}/\char`\"{} . \$f\+\_\+path
\item 
if(file\+\_\+exists(\$path)) {\bfseries else}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This script uses the username and file path in the user\textquotesingle{}s workspace to return the contents in the requested file (code file). If the file path is not found on the server, a 404 HTTP error is raised. 

\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{get__file_8php_aba62ef45f8e65bde63a30f4b93459af6}\label{get__file_8php_aba62ef45f8e65bde63a30f4b93459af6}} 
\index{get\_file.php@{get\_file.php}!else@{else}}
\index{else@{else}!get\_file.php@{get\_file.php}}
\doxysubsubsection{\texorpdfstring{else}{else}}
{\footnotesize\ttfamily if (file\+\_\+exists( \$path)) else}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\{}
\DoxyCodeLine{    http\_response\_code(404)}

\end{DoxyCode}
